@charset "utf-8";

/* =========================================
   Responsiveness - Desktop, Laptop, Tablet, Mobile
   ========================================= */

/* Laptop (max-width: 1440px) */
@media (max-width: 1440px) {
    :root {
        --container-width: 1200px;
        --header-height: 90px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .product-grid {
        gap: 30px;
    }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 100%;
        --header-height: 80px;
    }
    
    .container-custom {
        padding: 0 20px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    /* GNB - Hidden on Tablet/Mobile */
    .gnb-list, .gnb-dropdown-wrapper, .lang-switch {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
        font-size: 24px;
         /* Force black */
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1005; /* Ensure above header layer */
        position: relative;
    }
    
    /* Hero */
    .hero-section {
        height: 600px;
        padding: 10px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Footer */
    .ft-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .ft-links {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .ft-links a {
        margin-right: 0;
    }
}

/* Responsive Header Tweaks */
@media (max-width: 991px) {
    .member-links.pc-only { display: none !important; }
    .header-util { gap: 10px; } /* Adjust gap for mobile */
}
@media (min-width: 992px) {
    .member-links.mobile-links { display: none !important; }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    /* Global Reset for Mobile */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Header & GNB */
    #logo a {
        display: block;
        height: 40px; /* Container height */
        line-height: 40px;
    }
    
    #logo img {
        height: 100%; /* Fit to container */
        width: auto;  /* Maintain aspect ratio */
        max-width: 150px; /* Absolute max width */
        object-fit: contain;
    }
    .header-util{gap:10px}

    
    /* Mobile Drawer Member Links Style */
    .member-links.mobile-links {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px 0px;
        /* background: #f8f9fa; */
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }
    .member-links.mobile-links a {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4px;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin: 0 2px;
        background: #fff;
        color: #333;
        font-size: 11px;
        text-decoration: none;
        transition: all 0.2s;
    }
    .member-links.mobile-links a:hover {
        background: #f1f1f1;
    }
    .member-links.mobile-links a i {
        margin-right: 5px;
        font-size: 16px;
        color: #004097; /* Point Color */
    }
    #hd.scrolled, #hd:hover{
        height: 60px;
    }
    
    .mobile-menu-btn {
        font-size: 24px;
        margin-bottom: 5px;
    }
    .member-links{
        gap:5px;
    }
    
    /* Hero */
    .hero-section {
        height: auto; /* Allow content to dictate height if needed */
        min-height: 600px; /* Minimum height */
        padding: 0;
        display: flex; /* Centering helper */
        align-items: center;
    }
    
    .hero-slider, .hero-slide {
        height: 100%;
        min-height: 600px;
        border-radius: 0;
    }
    
    .hero-bg {
        height: 100%;
        background-position: center;
    }

    .hero-content {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        text-align: center;
        position: absolute; /* Ensure it floats over */
    }

    .hero-title {
        font-size: 1.5rem; /* Smaller title */
        line-height: 1.3;
        margin-bottom: 25px;
        word-break: keep-all; /* Prevent awkward breaks in Korean */
    }
    
    .hero-desc {
        font-size: 0.875rem;
        margin-bottom: 25px;
        opacity: 0.9;
        word-break: keep-all;
        line-height: 1.2;
    }
    .hero-desc br{display:none;}
    .btn-hero {
        margin: 0 auto;
        padding: 5px 20px;
        font-size: 14px;
    }
    .slider-controls{
        bottom: 50px;
        gap: 20px;
    }
    .prev-btn, .next-btn{
        width: 35px;
        height: 35px;
    }
    .slide-counter{
        font-size:16px;
    }
    .current-slide{
        font-size:18px;
    }
    .progress-bar{
        width:120px;
    }
    .section-header {
        text-align: center;
        margin-bottom: 50px;
    }
    .qi-container { flex-direction: column; }
    .qi-left { width: 100%; padding-right: 0; margin-bottom: 40px; text-align: center; }
    .qi-slogan-desc br{display:none;}
    .qi-right { width: 100%; max-width: 500px; }
    .qi-slogan-title {font-size: 28px;word-break: auto-phrase;}
    .qi-slogan-desc{font-size:14px;word-break: auto-phrase;}
    .section-title {
        font-size: 1.7rem;
        font-weight: 700;
        color: var(--color-dark);
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }
    
    .section-desc {
        font-size: 1rem;
        color: var(--color-gray);
    }
    /* Grid */
    .sub-content{
        padding-bottom: 80px;
    }
    .section {
        padding: 40px 0;
        width: 100% !important;
        max-width: 100% !important;
    }
    .page-title-in-content{
        margin-top: 30px;
        font-size: 1.5rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-img {
        height: 240px;
    }
    
    /* Philosophy */
    .philosophy-section {
        height: 300px;
    }
    
    .philosophy-text {
        font-size: 1.2rem;
        padding: 0 20px;
        line-height: 1.6;
    }
    
    /* Footer */
    .ft-info {
        font-size: 12px;
    }
     .ft-info.mb{display:block;text-align: left;}
    .ft-info.pc{display:none}
    
    /* Quick Menu - Fix Overlap */
    .quick-menu {
        bottom: 0;
        right: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        width: 100%;
        z-index: 995;
    }
    
    .quick-btn {
        width: 100%;
        height: 50px;
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.1);
        font-size: 10px;
        background: rgba(26, 26, 26, 0.95);
    }
    
    .quick-btn i {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    #top_btn {
        bottom: 70px;
        right: 20px;
    }
    #ft{
        padding: 20px 0 60px;
    }
}

/* Mobile Menu Drawer - Common for Tablet/Mobile */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 99999;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-dark);
}

.mobile-gnb > li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-gnb > li > a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    justify-content: space-between;
}

.mobile-gnb .sub-menu {
    display: none;
    background: var(--color-light-gray);
    padding: 10px 15px;
    margin-bottom: 10px;
}

.mobile-gnb .sub-menu li a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-gray);
    position: relative;
    display: flex;
    justify-content: space-between;
}

/* 3rd Level for Mobile */
.mobile-gnb .sub-menu .sub-menu {
    background: #eeeeee; /* Darker gray for differentiation */
    padding-left: 15px;
    margin-top: 5px;
}

.mobile-gnb .sub-menu .sub-menu li a {
    font-size: 13px;
    color: #555;
}

.mobile-gnb > li.open .sub-menu {
    display: block;
}
