/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: #222;
    background-color: #fff;
    overflow-x: hidden;
    letter-spacing: -0.03em;
}

/* Visibility Utilities */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Header */
#header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: #1a1a2e;
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Desktop Navigation */
#gnb ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

#gnb>ul>li {
    position: relative;
}

#gnb>ul>li>a {
    display: block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

#gnb>ul>li>a:hover,
#gnb>ul>li>a.active {
    color: #c9a84c;
}

/* Sub-menu (Desktop) */
#gnb .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: rgba(26, 26, 46, 0.95);
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
    list-style: none;
    margin: 0;
    z-index: 200;
}

#gnb>ul>li:hover .sub-menu {
    display: block;
}

#gnb .sub-menu li a {
    display: block;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-align: left;
}

#gnb .sub-menu li a:hover {
    color: #c9a84c;
}

/* Sub Hero Banner */
.sub-hero {
    background-color: #1a1a2e !important;
    background-image: none !important;
    padding: 60px 0 !important;
    text-align: center !important;
    position: relative !important;
    color: #fff !important;
    height: auto !important;
    min-height: unset !important;
    display: block !important;
}

/* Remove overlay causing mismatch */
.sub-hero::before {
    display: none !important;
}

.sub-hero .category {
    color: #c8a96e !important;
    font-size: 13px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
    display: block !important;
    font-weight: 500 !important;
}

.sub-hero h1 {
    color: #fff !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.sub-hero .desc {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 12px !important;
    font-size: 16px !important;
    display: block !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: all 0.3s;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Base Components */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

section {
    padding: 100px 0;
}

/* Footer Styles */
footer {
    background: #000;
    color: #fff;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.9;
    color: #aaa;
    margin-bottom: 8px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ddd;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col .footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col .hours {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #888;
    font-size: 14px;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: #c9a84c;
    border-color: #c9a84c;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #555;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #c9a84c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top:hover {
    background: #b8933e;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    #gnb {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        /* Compact width as requested */
        height: 100vh;
        background: #fff;
        padding-top: 70px;
        /* Optimized top spacing */
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        overflow-y: auto;
    }

    #gnb.open {
        right: 0;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        margin-bottom: 6px;
        transition: all 0.3s;
    }

    .mobile-menu-toggle span:last-child {
        margin-bottom: 0;
    }

    .mobile-menu-open {
        overflow: hidden;
    }

    #gnb ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    #gnb ul li a {
        padding: 12px 20px;
        /* Reduced padding for compact layout */
        font-size: 15px;
        /* Standardized main menu font size */
        color: #333;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    #gnb ul li.auth-link {
        padding: 10px 0;
        background: #f8f9fa;
        display: flex;
        flex-direction: column;
    }

    #gnb ul li.auth-link a {
        border-bottom: none;
        padding: 10px 20px;
        justify-content: flex-start;
        font-size: 14px;
    }

    #gnb ul li.auth-link a i {
        width: 20px;
    }

    #gnb .has-sub>a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 12px;
        transition: transform 0.3s;
    }

    #gnb li.sub-open>a::after {
        transform: rotate(180deg);
    }

    #gnb .sub-menu {
        position: static;
        background: #f9f9f9;
        display: none;
        box-shadow: none;
        padding-left: 0;
    }

    #gnb .sub-menu li a {
        padding: 8px 10px 8px 35px;
        /* Indented for clear hierarchy */
        font-size: 13px;
        /* Standardized sub-menu font size */
        color: #c9a84c;
        /* Gold color visible from start */
        border-bottom: none;
        display: block;
        width: 100%;
    }

    #gnb ul li.sub-open .sub-menu {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Manufacture Section (Mobile) */
    .manufacture-section {
        position: relative;
        padding: 90px 0;
        text-align: center;
        background: #111;
        color: #fff;
        overflow: hidden;
    }

    .manufacture-bg {
        position: absolute;
        inset: 0;
        background: url('../../assets/images/mobile/mfg_bg.jpg') no-repeat center center/cover;
        z-index: 0;
    }

    .manufacture-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(10, 10, 28, 0.82);
        /* Exact overlay from PC version */
    }

    .manufacture-inner {
        position: relative;
        z-index: 1;
        padding: 0 24px;
    }

    .manufacture-inner .section-label {
        font-size: 13px;
        /* Unified size */
        color: #FFE400;
        /* Point color */
        letter-spacing: 2px;
        margin-bottom: 25px;
        font-weight: 700;
        display: block;
    }

    .manufacture-inner h2 {
        font-size: 30px;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 20px;
        word-break: keep-all;
    }

    .manufacture-inner .en-sub {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 40px;
        display: block;
    }

    .mfg-btn {
        display: inline-block;
        border: 1px solid #fff;
        color: #fff;
        padding: 12px 30px;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        margin-bottom: 60px;
    }

    .mfg-process-bar {
        background: #fff;
        padding: 25px 0;
        position: relative;
        z-index: 1;
    }

    .mfg-process-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        padding: 0 10px;
        margin-bottom: 10px;
    }

    .mfg-process-labels {
        display: flex;
        justify-content: space-between;
        padding: 5px 10px 0;
    }

    .mfg-process-labels span {
        flex: 1;
        font-size: 10px;
        color: #333;
        font-weight: 600;
        text-align: center;
        letter-spacing: -0.05em;
    }
}

/* Tablet / Small Desktop Adjustments (above mobile redirect threshold) */
@media (min-width: 1025px) and (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    #gnb>ul>li>a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sub-hero h1 {
        font-size: 30px !important;
    }

    section {
        padding: 60px 0;
    }
}