/* ──────────────────────────────────────────────────────────────
   유진안과 site styles — built on 청라빛안과 design tokens
   ──────────────────────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--fg1);
    background: var(--bg1);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    transition: background 250ms, color 250ms;
}

/* Dark mode overrides */
body.dark {
    --bg1: #0E1614;
    --bg2: #151F1B;
    --bg-section: #101815;
    --fg1: rgba(255, 255, 255, 0.92);
    --fg-heading: rgba(255, 255, 255, 0.98);
    --fg2: rgba(255, 255, 255, 0.72);
    --fg-muted: rgba(255, 255, 255, 0.55);
    --fg-disabled: rgba(255, 255, 255, 0.35);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-base: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.25);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark .app-card {
    background: var(--bg2);
}

body.dark .header {
    background: rgba(14, 22, 20, 0.85);
    backdrop-filter: blur(10px);
}

body.dark .spec-card {
    background: #080B0A;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── Layout ─── */
.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 32px;
}

.app {
    min-height: 100vh;
    padding-top: 80px;
}

/* ─── Header ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    transition: background 250ms;
}

.header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg-heading);
    padding-right: 13px;
}

.logo__mark {
    width: 32px;
    height: 32px;
    background-image: url("images/logo.svg");
    background-size: cover;
    position: relative;
}

.gnb {
    display: flex;
    gap: 0;
    flex: 1;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.gnb a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg1);
    padding: 10px 10px;
    position: relative;
    cursor: pointer;
    transition: color 150ms;
}

.gnb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--brand-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms var(--ease-out);
}

.gnb a:hover {
    color: var(--brand-400);
}

.gnb a:hover::after, .gnb a.active::after {
    transform: scaleX(1);
}

.gnb a.active {
    color: var(--brand-400);
}

.quick {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quick__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg2);
    padding: 9px 14px;
    border-radius: 4px;
    transition: all 150ms;
    border: 1px solid var(--border-subtle);
}

.quick__btn:hover {
    color: var(--brand-500);
    background: var(--brand-50);
    border-color: var(--brand-200);
}

.quick__btn--brand {
    background: var(--brand-400);
    color: #fff !important;
    border-color: var(--brand-400);
}

.quick__btn--brand:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    box-shadow: var(--shadow-brand);
}

body.dark .quick__btn:hover {
    background: rgba(95, 162, 122, 0.12);
}

/* ─── Eyebrow ─── */
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-400);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 150ms var(--ease-default);
    white-space: nowrap;
    font-size: 15px;
    padding: 14px 26px;
}

.btn--lg {
    padding: 18px 34px;
    font-size: 16px;
}

.btn--fill {
    background: var(--brand-400);
    color: #fff;
    border-color: var(--brand-400);
}

.btn--fill:hover {
    background: var(--brand-500);
    border-color: var(--brand-500);
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--fg-heading);
    border-color: var(--border-base);
}

.btn--outline:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    color: var(--brand-500);
}

body.dark .btn--outline:hover {
    background: rgba(95, 162, 122, 0.12);
}

.btn--ghost {
    background: transparent;
    color: var(--fg2);
}

.btn--ghost:hover {
    color: var(--brand-400);
}

.btn--link {
    background: transparent;
    color: var(--fg-heading);
    border: none;
    border-bottom: 1px solid var(--fg-heading);
    border-radius: 0;
    padding: 6px 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    gap: 10px;
}

.btn--link:hover {
    color: var(--brand-400);
    border-bottom-color: var(--brand-400);
}

/* ─── Section ─── */
.section {
    padding: 128px 0;
}

.section--sm {
    padding: 80px 0;
}

.section--tint {
    background: var(--bg-section);
}

.section--dark {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
}

.section--dark .eyebrow {
    color: var(--brand-200);
}

.section--dark h2, .section--dark h3 {
    color: #fff;
}

.sec-head {
    margin-bottom: 72px;
    max-width: 720px;
}

.sec-head .eyebrow {
    margin-bottom: 16px;
}

.sec-head__title {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--fg-heading);
    margin-bottom: 20px;
    text-wrap: pretty;
}

.sec-head__sub {
    font-size: 17px;
    line-height: 1.75;
    color: var(--fg2);
    text-wrap: pretty;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ─── Footer ─── */
.footer {
    background: var(--neutral-800);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 40px;
}

body.dark .footer {
    background: #050807;
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    color: #fff;
}

.footer__brand .logo {
    color: #fff;
    font-size: 22px;
}

.footer__brand p {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 20px;
}

.footer__col h5 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.footer__col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 0;
    transition: color 150ms;
}

.footer__col a:hover {
    color: var(--brand-300);
}

.footer__bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Fade-in scroll animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

.reveal[data-delay="1"] {
    transition-delay: 80ms;
}

.reveal[data-delay="2"] {
    transition-delay: 160ms;
}

.reveal[data-delay="3"] {
    transition-delay: 240ms;
}

.reveal[data-delay="4"] {
    transition-delay: 320ms;
}

.reveal[data-delay="5"] {
    transition-delay: 400ms;
}

/* ─── Page hero (non-home) ─── */
.page-hero {
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-section);
}

.page-hero .eyebrow {
    margin-bottom: 14px;
}

.page-hero h1 {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg-heading);
    line-height: 1.2;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 17px;
    color: var(--fg2);
    max-width: 680px;
    line-height: 1.75;
}

.breadcrumb {
    font-size: 13px;
    color: var(--fg-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb span.sep {
    color: var(--fg-disabled);
}

.breadcrumb a {
    cursor: pointer;
}

.breadcrumb a:hover {
    color: var(--brand-400);
}

/* ─── Utility ─── */
.mono-num {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

.hide-scroll {
    scrollbar-width: none;
}


/* ══════════════════════════════════════════════════════════════
   모바일 드로어 내비게이션
   ══════════════════════════════════════════════════════════ */

/* ─── 햄버거 토글 버튼 ─── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

/* 햄버거 3선 */
.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg-heading);
    border-radius: 2px;
    transition:
        transform 300ms var(--ease-out),
        opacity 200ms,
        width 200ms;
}

/* 열린 상태: X 모양으로 전환 */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── 드로어 패널 ─── */
.mob-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: var(--bg1);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 350ms var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

body.dark .mob-nav {
    background: #151F1B;
}

/* 슬라이드-인 활성 상태 */
.mob-nav.is-open {
    transform: translateX(0);
}

/* 드로어 내부 스크롤 가능한 컨테이너 */
.mob-nav__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 드로어 상단: 브랜드 + 닫기 버튼 */
.mob-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.mob-nav__brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg-heading);
}

/* 닫기(X) 버튼 */
.mob-nav__close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-base);
    background: transparent;
    cursor: pointer;
    color: var(--fg2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms;
}

.mob-nav__close:hover {
    background: var(--bg-section);
    color: var(--fg-heading);
}

/* 내비게이션 링크 목록 */
.mob-nav__list {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    flex: 1;
}

.mob-nav__link {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--fg-heading);
    border-radius: 8px;
    transition: all 150ms;
    letter-spacing: -0.01em;
}

.mob-nav__link:hover,
.mob-nav__link.is-active {
    background: var(--brand-50);
    color: var(--brand-500);
}

body.dark .mob-nav__link:hover,
body.dark .mob-nav__link.is-active {
    background: rgba(95, 162, 122, 0.12);
}

/* 드로어 하단: 전화 + 예약 버튼 */
.mob-nav__footer {
    padding: 20px 24px 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.mob-nav__tel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fg2);
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: all 150ms;
}

.mob-nav__tel:hover {
    color: var(--brand-500);
    border-color: var(--brand-200);
}

.mob-nav__reserve {
    width: 100%;
    justify-content: center;
}

/* ─── 백드롭 (드로어 외부 어두운 오버레이) ─── */
.mob-nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 350ms;
}

.mob-nav__backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}


/* ══════════════════════════════════════════════════════════════
   반응형 — 태블릿 (≤ 1024px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    .container {
        padding-inline: 24px;
    }

    /* 섹션 여백 축소 */
    .section {
        padding: 80px 0;
    }

    .sec-head {
        margin-bottom: 48px;
    }

    .sec-head__title {
        font-size: 36px;
    }

    /* 헤더: GNB 숨기고 햄버거 노출 */
    .gnb {
        display: none;
    }

    .quick .quick__btn:not(.quick__btn--brand) {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* 푸터: 2열 */
    .footer__top {
        grid-template-columns: 1.2fr 1fr;
        gap: 32px;
    }

    /* 페이지 히어로 */
    .page-hero {
        padding: 72px 0 56px;
    }

    .page-hero h1 {
        font-size: 40px;
    }

    /* 유틸 그리드 */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ══════════════════════════════════════════════════════════════
   반응형 — 모바일 (≤ 767px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    .container {
        padding-inline: 20px;
    }

    /* 섹션 여백 더 축소 */
    .section {
        padding: 56px 0;
    }

    .sec-head {
        margin-bottom: 32px;
    }

    .sec-head__title {
        font-size: 26px;
    }

    .sec-head__sub {
        font-size: 15px;
    }

    /* 헤더: 예약 버튼 패딩 조정 */
    .quick__btn--brand {
        padding: 8px 14px;
        font-size: 14px;
    }

    /* 버튼 크기 조정 */
    .btn--lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    /* 푸터: 1열 */
    .footer {
        padding: 48px 0 32px;
    }

    .footer__inner {
        padding: 0 20px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
    }

    /* 페이지 히어로 */
    .page-hero {
        padding: 60px 0 44px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 15px;
    }

    /* 유틸 그리드 1열 */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
