/* =========================================
   HEADER VARIABLES
========================================= */

:root {
    --primary-gold: #D4AF37;
    --primary-gold-dark: #B8941F;
    --primary-gold-light: #F4E4A6;
    --secondary-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-cream: #FFF9F0;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #E5E5E5;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(212, 175, 55, 0.3);
    --gold-primary: #D4AF37;
    --gold-light: #F4E5C2;
    --gold-dark: #B8941F;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --gold-main: #C9A84C;
    --gold-soft: #fdfaf3;
    --text-dark: #111;
    --text-gray: #777;
    --border-color: #f2f2f2;
    --gold-point: #b38f40;
    --gold-light: #f1e6cc;
    --text-dark: #111111;
    --border-gray: #e0e0e0;
    --navy: #0c2f5d;
    --navy-deep: #081f3d;
    --navy-soft: #143b72;
    --gold: #c9a84c;
    --gold-light: #e2c472;
    --blue-text: #173f7b;
    --light-gray: #f3f4f6;
    --mid-gray: #e7e9ee;
    --text-gray: #5f6670;
    --green: #18a957;
    --red: #ef4444;
    --white: #fff;
    --line: rgba(12, 47, 93, 0.08);
    --gold-line: rgba(201, 168, 76, 0.16);
    --shadow: 0 10px 28px rgba(8, 36, 71, 0.08);
    --font-primary: 'Noto Sans KR', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}


@media (max-width: 768px) {
    :root {
        --gold: #D4AF37;
        --gold-light: rgba(212, 175, 55, 0.12);
        --gold-border: rgba(212, 175, 55, 0.25);
        --white: #ffffff;
        --bg-footer: #1a1a1a;
        --text-footer: #cccccc;
        --text-light: #999999;
        --transition: 0.25s ease;
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top:65px;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}



img {
  
    height: 31px;

}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}


/* =========================================
   HEADER
========================================= */

header {
    width: 100%;
    background-color: #ffffff;
       
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}


/* =========================================
   CONTAINER
========================================= */

.header-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    max-width: 1200px;

    width: 90%;

    height: 65px;

    margin: 0 auto;


}


/* =========================================
   LOGO
========================================= */

.logo img {
    height: 45px;
    width: auto;
    display: block;
    align-items: center;
}


/* =========================================
   NAV
========================================= */

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: gray;
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: -0.3px;
    padding: 0.5rem 0.8rem;
    position: relative;
    top: 0.3px;
       
}



nav ul li a::after {
    display: none;    
}

html {
    scroll-behavior: smooth;
}




/* =========================================
   CONSULT BUTTON
========================================= */

.consult-btn {
    position: relative;
    overflow: hidden;    
    
       
    background: #D6B57A; 
    color: #ffffff;   
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    margin-left: 16px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    top: -1px;
    
       
    box-shadow: 0 2px 6px rgba(212, 184, 134, 0.3);
}

   
.consult-btn:hover {
    background: #C5A059;    
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
    transform: translateY(-1px);
}

   
.consult-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);    
    transition: none;
}

.consult-btn:hover::before {
    left: 150%;
    transition: all 0.6s ease;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-toggle {

    display: none;

    width: 34px;

    height: 34px;

    padding: 5px;

    flex-direction: column;

    justify-content: center;

    gap: 5px;
}






/* =========================================
   SUCCESSMODAL
========================================= */
#successModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#successModal .modal-content {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    z-index: 2000;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#successModal .modal-title {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
    letter-spacing: 0.5px;
}

#successModal p {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 15px;
}

#successModal .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #000000;
    transition: color 0.3s ease;
}


#successModal .modal-image {
    max-width: 60px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

#successModal button {
    background-color: #0288d1;
    color: white;
    font-size: 1rem;
    padding: 12px 40px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    display: inline-block;
}

#successModal button:hover {
    background-color: #01579b;
    transform: scale(1.05);
}

#successModal button:active {
    transform: scale(0.98);
}

@keyframes scaleIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}


/* =========================================
   FAILMODAL
========================================= */
#failModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#failModal .modal-content {
    background-color: #FFFFFF;
    padding: 16px 0px 30px 0px;
    z-index: 2000;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

#failModal .modal-title {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
    letter-spacing: 0.5px;
}

#failModal p {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 15px;
}

#failModal .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #000000;
    transition: color 0.3s ease;
}


#failModal .modal-image {
    display: inline-flex;
    max-width: 90px;
    animation: scaleIn 0.5s ease-out;
}

#failModal button {
    background-color: #0288d1;
    color: white;
    font-size: 1rem;
    padding: 12px 40px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    display: inline-block;
}

#failModal button:hover {
    background-color: #01579b;
    transform: scale(1.05);
}

#failModal button:active {
    transform: scale(0.98);
}

@keyframes scaleIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}





/* =========================================
   MODAL
========================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    width: 100%;     
    max-width: 450px;    
    min-width: 280px;    
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;    
    overflow: hidden;
    z-index: 2000;    
    box-sizing: border-box;    
}

textarea#extra {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    resize: none;
    margin-top: 10px;
    margin-bottom: 5px;
}

.modal-title {
    text-align: center;
}

label {
    margin-bottom: 5px;
    font-weight: normal;
    text-align: left;
    width: 100%;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 28px;
    cursor: pointer;
}











form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 10px 0 5px;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    padding: 12px 20px;
    background-color: var(--primary-gold);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}

form button:hover {
    background: #C5A059;    
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
    transform: translateY(-1px);
}

select, textarea, input[type="text"], input[type="tel"] {
    width: 100%;
    height: 42px;
    font-size: 14px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #e6b94a;
    outline: none;
    border-width: 2px;
}
/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {

    /* 헤더 */
    .header-container {
        padding: 6px;
    }

    /* 햄버거 버튼 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        transition: transform var(--transition-normal);
    }

    .menu-toggle:hover {
        transform: scale(1.05);
    }

 
/* 모바일 메뉴 */
        nav {
            position: absolute;
            top: 60px;
            left: 0;
            right: 0;
            background: var(--white);
            box-shadow: var(--shadow-lg);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease, padding 0.35s ease;
        }

nav.open {
                max-height: 400px;
            padding: 8px 0 20px;
}

/* 메뉴 목록 */
        .bar {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--primary-gold);
            border-radius: 2px;
            transition: all var(--transition-normal);
            transform-origin: center;
        }
   
        .menu-toggle.active .bar:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }


        .menu-toggle.active .bar:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }
    
        .menu-toggle.active .bar:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }


        .nav-list {
            flex-direction: column;
            align-items: stretch;
            padding: 0 20px;
            gap: 0;
        }

        .nav-list a {
            display: block;
            padding: 14px 4px;
            font-size: 16px;
            color: var(--text-dark);
            font-weight: 500;
        }


        nav.open .nav-list li:nth-child(1) {
            opacity: 1;
            transform: none;
            transition-delay: 0.05s;
        }

        nav.open .nav-list li:nth-child(2) {
            opacity: 1;
            transform: none;
            transition-delay: 0.1s;
        }

        nav.open .nav-list li:nth-child(3) {
            opacity: 1;
            transform: none;
            transition-delay: 0.15s;
        }

        nav.open .nav-list li:nth-child(4) {
            opacity: 1;
            transform: none;
            transition-delay: 0.2s;
        }

        nav.open .nav-list li:nth-child(5) {
            opacity: 1;
            transform: none;
            transition-delay: 0.2s;
        }

        nav.open .nav-list li:nth-child(6) {
            opacity: 1;
            transform: none;
            transition-delay: 0.25s;
        }


        .consult-btn {
            display: block;
width: 100%;
padding: 10px 10px 10px;
background: var(--primary-gold);
color: var(--white) !important;
text-align: center;
border-radius: 8px;
font-weight: 600;
font-size: 18px;
line-height: 1.4;
cursor: pointer;
letter-spacing: 0.5px;
box-shadow: var(--shadow-gold);
margin-left: 0;
margin-top: 10px;
        }

    .logo img {
        height: 38px;
    }


        .modal-content {
            width: 95%;
            padding: 15px;
            max-width: 90%;
            z-index: 2000;
        }

input[type="text"], input[type="tel"] {
            width: 100%;
            height: 40px;
            font-size: 18px;
            padding: 12px;
            font-weight: normal;
            color: #333;
        }

}



@media (max-width: 768px) {
    @media (max-width: 480px) {
        input[type="text"], input[type="tel"] {
            width: 100%;
            height: 40px;
            font-size: 15px;
            padding: 10px;
            font-weight: normal;
            color: #333;
        }
    }
}