/* ===== CSS VARIABLES (Design Tokens) ===== */
:root {
    --color-on-surface: #1b1c1c;
    --color-surface-container: #f0eded;
    --color-secondary-fixed-dim: #ffb2b8;
    --color-on-tertiary-fixed-variant: #544600;
    --color-surface: #fbf9f8;
    --color-on-tertiary-container: #4c3f00;
    --color-surface-dim: #dcd9d9;
    --color-primary-fixed-dim: #b6c4ff;
    --color-on-error: #ffffff;
    --color-on-secondary-container: #fffbff;
    --color-on-secondary: #ffffff;
    --color-surface-container-highest: #e4e2e1;
    --color-on-secondary-fixed: #40000e;
    --color-on-primary-container: #afbfff;
    --color-on-primary-fixed: #00164e;
    --color-on-error-container: #93000a;
    --color-primary: #002f8f;
    --color-background: #fbf9f8;
    --color-tertiary-fixed-dim: #e7c400;
    --color-on-primary-fixed-variant: #003baf;
    --color-error-container: #ffdad6;
    --color-on-tertiary: #ffffff;
    --color-tertiary: #6f5d00;
    --color-surface-container-low: #f6f3f2;
    --color-primary-container: #1645b8;
    --color-primary-fixed: #dce1ff;
    --color-tertiary-container: #c8aa00;
    --color-secondary-container: #da3052;
    --color-on-tertiary-fixed: #221b00;
    --color-inverse-surface: #303030;
    --color-error: #ba1a1a;
    --color-tertiary-fixed: #ffe166;
    --color-outline: #747685;
    --color-outline-variant: #c4c5d6;
    --color-inverse-on-surface: #f3f0f0;
    --color-secondary: #b70e3c;
    --color-on-surface-variant: #434653;
    --color-surface-variant: #e4e2e1;
    --color-surface-tint: #2d55c8;
    --color-surface-bright: #fbf9f8;
    --color-on-secondary-fixed-variant: #91002c;
    --color-inverse-primary: #b6c4ff;
    --color-on-primary: #ffffff;
    --color-secondary-fixed: #ffdadb;
    --color-on-background: #1b1c1c;
    --color-surface-container-high: #eae8e7;
    --color-surface-container-lowest: #ffffff;

    --font-headline: 'Manrope', 'Noto Sans KR', sans-serif;
    --font-body: 'Inter', 'Noto Sans KR', sans-serif;
    --font-label: 'Inter', 'Noto Sans KR', sans-serif;

    --radius: 0.125rem;
    --radius-lg: 0.25rem;
    --radius-xl: 0.5rem;
    --radius-2xl: 1rem;
    --radius-full: 0.75rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    /* 고정 헤더 높이가 60px인 경우 */
    scroll-padding-top: 112px;
    /* 부드러운 스크롤 효과 추가 (선택) */
    scroll-behavior: smooth;
    height: 100%;
}
body {
    font-family: var(--font-body);
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    line-height: 1.5;
    min-height: 100vh;
}

/* ===== MAIN ===== */
main {
    padding-top: 7rem;
    flex: 1;
}



/* ===== FOOTER ===== */
footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 80rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .footer__grid { grid-template-columns: 1fr 2fr 1fr; }
}
.footer-col { display: flex; flex-direction: column; gap: 1rem; }
.footer-col img { height: 5rem; width: auto; object-fit: contain; }
.footer-col > p { font-size: 0.875rem; color: #64748b; }
.footer-col h6 {
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}
.footer-col nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    transition: text-decoration 0.2s;
}
.footer-col nav a:hover { text-decoration: underline; }
.footer-col .phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}
.footer-col .company {
    font-size: 1.0rem;
    font-weight: 700;
    color: #0f172a;
}
.footer-col .hours { font-size: 0.75rem; color: #64748b; }
.footer__bottom {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

.footer-col--middle {
    background-color: #f0f4f8; /* Light background to make it stand out */
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.footer-col--middle h3 {
    font-size: 1.25rem; /* Slightly larger heading */
    color: var(--color-primary); /* Use primary color */
    margin-bottom: 0.75rem;
}

.footer-col--middle .company {
    font-size: 0.95rem; /* Slightly larger text */
    line-height: 0.8;
    color: #334155; /* Darker text color */
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-headline); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;   /* px-8 */
    padding-right: 2rem;
}

/* ============================================
 Top Navigation Bar
 ============================================ */
.topnav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 112px;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.topnav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 80rem;
    margin: 0 auto;
    /* margin-top: 12px; */
}

/* Left: Logo + Links */
.topnav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.topnav-logo img {
    height: 5rem;
    width: auto;
    object-fit: contain;
}

.topnav-links {
    display: none;
    gap: 1.5rem;
    font-family: 'Manrope', 'Noto Sans KR', sans-serif;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.topnav-link {
    font-size: 0.9375rem;
    color: #475569;
    transition: color 0.3s;
}

.topnav-link:hover { color: #1e3a8a; }

.topnav-links .active {
    color: #1d4ed8;
    border-bottom: 2px solid #1d4ed8;
    padding-bottom: 0.25rem;
}

@media (min-width: 1024px) {
    .topnav-links { display: flex; }
}

/* Right: Account + Contact */
.topnav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Account Actions */
.topnav-account {
    display: none;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

.topnav-account-link {
    padding: 0.375rem 0.75rem;
    color: #475569;
    transition: color 0.2s;
}

.topnav-account-link:hover { color: var(--color-primary); }

.topnav-account-sep {
    width: 1px;
    height: 0.75rem;
    background-color: #cbd5e1;
}

@media (min-width: 1280px) {
    .topnav-account { display: flex; }
}

/* Contact Badge */
.contact-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.contact-badge-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-badge-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #1645B8;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.contact-badge-tel {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1645B8;
    letter-spacing: -0.05em;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.contact-badge-tel:hover { color: #1e40af; }

.contact-badge-tel .material-symbols-outlined { font-size: 1.125rem; }



/* 상단 전화번호 */
/* === Contact Badge === */

.contact-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.contact-badge-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-badge-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1645B8;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.contact-badge-tel {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1645B8;
    letter-spacing: -0.05em;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-badge-tel:hover {
    color: #1e40af; /* blue-800 */
}

.contact-badge-tel .material-symbols-outlined {
    font-size: 1.25rem;
}


/* 견적상담 알림 팝업 ========================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background-color: rgba(27, 28, 28, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 35rem !important;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(196, 197, 214, 0.1);
    animation: modalAppear 0.3s ease-out;
    margin: auto;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #434653;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #1b1c1c;
}

.modal-top-bar {
    height: 12px;
    background: linear-gradient(to right, #002f8f, #1645b8);
}

.modal-inner-content {
    padding: 40px;
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(22, 69, 184, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px auto;
}

.icon-circle .material-symbols-outlined {
    color: #1645b8;
    font-size: 40px;
}

.modal-headline {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1b1c1c;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.phone-highlight {
    color: #1645b8;
    font-weight: 800;
}

.modal-body-text {
    color: #434653;
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 15px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary-call {
    background: linear-gradient(to right, #002f8f, #1645b8);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 47, 143, 0.2);
    border: none;
}

.btn-primary-call:hover {
    filter: brightness(1.1);
}

.btn-secondary-later {
    background: none;
    border: none;
    color: #434653;
    padding: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-secondary-later:hover {
    color: #002f8f;
}

.modal-footer {
    background-color: #f6f3f2;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #434653;
}

.footer-brand {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.footer-brand img{
    max-height: 60px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-info .material-symbols-outlined {
    font-size: 14px;
}

@media (max-width: 640px) {
    .modal-headline {
        font-size: 24px;
    }

    .modal-inner-content {
        padding: 32px 24px;
    }

    .br-desktop {
        display: none;
    }
}