/* ================================================================
   LIGHT CHURCH — Design System v2.0
   Palette: Cream + Forest Green + Terracotta
   Typography: Fraunces (display) + Pretendard (body/Korean)
   ================================================================ */

/* ── 0. Design Tokens ────────────────────────────────────────── */
:root {
    /* Colors */
    --bg:           #FDF6ED;
    --surface:      #F5EDE0;
    --primary:      #2D4F37;
    --primary-deep: #1A3324;
    --accent:       #C9775C;
    --accent-deep:  #B5644A;
    --accent-soft:  rgba(201, 119, 92, 0.12);
    --clay:         #A88B76;
    --text:         #3D2B24;
    --text-soft:    #6B5E56;
    --muted:        #9C9287;
    --line:         #E4DDD3;
    --line-soft:    #EDE8E0;
    --white:        #FFFFFF;

    /* Legacy aliases (so old Tailwind classes keep working) */
    --ink:          var(--text);
    --ink-soft:     var(--text-soft);
    --paper:        var(--bg);
    --paper-2:      var(--surface);
    --navy:         var(--primary);
    --navy-soft:    var(--text-soft);
    --gold:         var(--accent);
    --gold-deep:    var(--accent-deep);
    --shadow-soft:  0 1px 3px rgba(61, 43, 36, 0.06);
    --shadow-card:  0 4px 24px rgba(61, 43, 36, 0.07);
    --shadow-lift:  0 8px 32px rgba(61, 43, 36, 0.10);

    /* Typography */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Pretendard', 'Noto Sans KR', system-ui, -apple-system, sans-serif;

    /* Spacing & Shape */
    --radius-xs:   6px;
    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-pill: 999px;
    --shell-max:   1120px;
    --shell-pad:   1.25rem;

    /* Transitions */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --duration:    0.3s;
}

/* ── 1. Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 한글이 단어 중간에서 끊기지 않도록 (띄어쓰기 단위로만 줄바꿈) */
    word-break: keep-all;
    overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

::selection {
    background: var(--accent-soft);
    color: var(--text);
}

/* ── 2. Layout ───────────────────────────────────────────────── */
.site-shell {
    width: min(var(--shell-max), calc(100% - var(--shell-pad) * 2));
    margin-inline: auto;
}

/* ── 3. Header ───────────────────────────────────────────────── */
.site-header {
    position: fixed;
    width: 100%;
    z-index: 50;
    background: rgba(253, 246, 237, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: background var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.site-header.scrolled {
    background: rgba(253, 246, 237, 0.95);
    border-bottom-color: var(--line);
}

.home-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-header.scrolled {
    background: rgba(253, 246, 237, 0.95);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom-color: var(--line);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
}

/* 공식 로고 재현 (헤더) — 전구 + LIGHT the CHURCH, 사이트 팔레트 매핑 */
.brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);          /* "LIGHT" 색 (스크롤 후 그린 / 히어로 위 크림) */
    transition: color var(--duration) var(--ease);
    animation: bulb-glow 3s infinite alternate;
}

@keyframes bulb-glow {
    0%, 15%, 85% {
        filter: drop-shadow(0 0 3px rgba(255, 220, 140, 0.4));
    }
    10%, 90% {
        filter: drop-shadow(0 0 10px rgba(255, 235, 160, 0.8)) brightness(1.1);
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(255, 240, 180, 1)) brightness(1.2);
    }
}

.brand-wordmark .brand-icon {
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
}

.brand-wordmark .brand-text {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: flex-start;
}

.brand-wordmark .wm-light  { color: currentColor; }
.brand-wordmark .wm-church { color: var(--accent); margin-left: 0.12em; }

.brand-wordmark .wm-the {
    font-size: 0.5em;
    font-weight: 600;
    font-style: italic;
    color: var(--clay);
    align-self: flex-start;
    margin: 0.05em 0.05em 0 0.18em;
    letter-spacing: 0;
}

/* 전구: 유리는 라인(로고 색 따라감), 필라멘트는 강조색 */
.brand-wordmark .brand-icon-glass  { stroke: currentColor; }
.brand-wordmark .brand-icon-fill   { fill: var(--accent); }

/* 히어로 위(투명 헤더)에서는 "LIGHT"/유리 크림, CHURCH/필라멘트 강조색 유지 */
.home-header:not(.scrolled) .brand-wordmark { color: var(--bg); }
.home-header:not(.scrolled) .brand-wordmark .wm-the { color: rgba(253, 246, 237, 0.7); }

@media (max-width: 400px) {
    .brand-wordmark .brand-text { font-size: 1.15rem; }
    .brand-wordmark .brand-icon { width: 1.45rem; height: 1.45rem; }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0.01em;
    position: relative;
    transition: color var(--duration) var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--duration) var(--ease);
}

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

.nav-link:hover::after {
    width: 100%;
}

.home-header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.home-header:not(.scrolled) .nav-link:hover {
    color: #fff;
}

.home-header:not(.scrolled) .nav-link::after {
    background: var(--accent);
}

/* Mobile menu */
#mobile-menu {
    transition: transform 0.35s var(--ease);
    transform: translateX(100%);
}

#mobile-menu.active {
    transform: translateX(0);
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--duration) var(--ease);
}

.mobile-link:hover {
    color: var(--accent);
}

/* ── 4. Buttons ──────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--text-soft);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── 5. Section Typography ───────────────────────────────────── */
.section-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-kicker.has-line::before {
    content: '';
    display: inline-block;
    width: 1.75rem;
    height: 2px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-title[lang="ko"] {
    font-family: var(--font-body);
    font-weight: 800;
}

.section-copy {
    color: var(--text-soft);
    line-height: 1.85;
    font-size: 1rem;
    max-width: 65ch;
}

/* Dark section overrides */
.dark-section {
    background: var(--primary-deep);
    color: var(--bg);
}

.dark-section .section-kicker {
    color: var(--accent);
}

.dark-section .section-title {
    color: var(--bg);
}

.dark-section .section-copy {
    color: rgba(253, 246, 237, 0.75);
}

/* ── 6. Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-fullbleed {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 5vh;
    position: relative;
    overflow: hidden;
}

.hero-slider-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: sepia(0.12) saturate(1.02) contrast(1.03) brightness(1.03) hue-rotate(2deg);
    z-index: 0;
}

.hero-slider-bg:first-child {
    background-position: 62% 28%;
}

.hero-slider-bg:nth-child(4) {
    background-position: left center;
    transform: scale(1.4);
    transform-origin: left center;
}

.hero-slider-bg:nth-child(5) {
    background-position: center 25%;
}

.hero-slider-bg.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 51, 36, 0.08) 0%,
        rgba(26, 51, 36, 0.20) 45%,
        rgba(26, 51, 36, 0.50) 78%,
        rgba(26, 51, 36, 0.68) 100%
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.hero-line-kr {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    color: rgba(253, 246, 237, 0.9);
    line-height: 1.2;
}

.hero-line-display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 7rem);
    color: var(--bg);
    line-height: 1.0;
    letter-spacing: -0.03em;
}

.hero-line-display .accent {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    transition: all var(--duration) var(--ease);
}

.hero-cta:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 119, 92, 0.35);
}

.hero-cta-text {
    color: rgba(253, 246, 237, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--duration) var(--ease);
}

.hero-cta-text:hover {
    color: var(--bg);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(253, 246, 237, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 246, 237, 0.15);
    border-radius: var(--radius-sm);
    color: rgba(253, 246, 237, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

a.hero-meta-item:hover {
    background: rgba(253, 246, 237, 0.16);
    border-color: rgba(253, 246, 237, 0.28);
    transform: translateY(-1px);
}

.hero-meta-label {
    font-weight: 600;
    color: var(--bg);
}

@media (max-width: 640px) {
    .hero-fullbleed {
        min-height: 100svh;
        align-items: flex-end;
        padding-bottom: 2rem;
    }
    .hero-slider-bg:first-child {
        background-position: 92% center;
    }
    .hero-slider-bg:nth-child(4) {
        background-position: left center;
        transform: scale(1.3);
    }
    .hero-slider-bg:nth-child(5) {
        background-position: 50% 26%;
    }
    .hero-meta {
        flex-direction: column;
    }
}

/* ── 7. New Here Section ─────────────────────────────────────── */
.new-here {
    padding: 5rem 0;
    background: var(--surface);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.bento-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--line-soft);
    transition: all var(--duration) var(--ease);
}

.bento-card:hover {
    border-color: var(--line);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.bento-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.bento-card-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.bento-card-desc {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.65;
}

.bento-card.featured {
    grid-column: 1 / -1;
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.bento-card.featured .bento-card-icon {
    background: rgba(253, 246, 237, 0.15);
    color: var(--accent);
}

.bento-card.featured .bento-card-title {
    color: var(--bg);
}

.bento-card.featured .bento-card-desc {
    color: rgba(253, 246, 237, 0.75);
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 8. Cards ────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

.card:hover {
    border-color: var(--line);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

.card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* Legacy lux-card compatibility */
.lux-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

.lux-card:hover,
.lux-card-hover:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
}

/* ── 9. About (LIGHT Values) ────────────────────────────────── */
.about-section {
    padding: 5rem 0 6rem;
    background: var(--primary-deep);
    color: var(--bg);
}

.about-section .section-kicker {
    color: var(--accent);
}

.about-section .section-kicker::before {
    background: var(--accent);
}

.about-head {
    max-width: 38rem;
    margin-bottom: 3.5rem;
}

.about-head .section-title {
    color: var(--bg);
}

.value-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(253, 246, 237, 0.12);
}

.value-row {
    display: grid;
    grid-template-columns: 5rem 1fr auto;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(253, 246, 237, 0.12);
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}

.value-row:hover {
    background: rgba(253, 246, 237, 0.04);
}

.value-row-letter {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.value-row-head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-row-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bg);
    letter-spacing: 0.04em;
}

.value-row-kor {
    font-size: 0.85rem;
    color: rgba(253, 246, 237, 0.5);
    font-weight: 500;
}

.value-row-desc {
    display: none;
}

.value-row-arrow {
    color: rgba(253, 246, 237, 0.3);
    transition: color var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.value-row:hover .value-row-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .value-row {
        grid-template-columns: 3.5rem 1fr auto;
        padding: 1.25rem 0;
    }
    .value-row-letter {
        font-size: 2rem;
    }
    .value-row-title {
        font-size: 1.05rem;
    }
}

/* ── 10. Worship ─────────────────────────────────────────────── */
.worship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.worship-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all var(--duration) var(--ease);
}

.worship-card:hover {
    border-color: var(--line);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.worship-card.kids-highlight {
    border-color: var(--accent);
    position: relative;
}

.worship-card.kids-highlight::before {
    content: 'Kids Welcome!';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
}

.worship-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--primary);
    border-radius: var(--radius-md);
}

.worship-card.kids-highlight .worship-icon {
    background: var(--accent-soft);
    color: var(--accent);
}

@media (max-width: 768px) {
    .worship-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 11. Staff ───────────────────────────────────────────────── */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.staff-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all var(--duration) var(--ease);
}

.staff-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.staff-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--surface);
}

.staff-avatar-placeholder {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

.vision-card {
    background: var(--primary);
    color: var(--bg);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

.vision-card blockquote {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    color: rgba(253, 246, 237, 0.9);
}

/* ── 12. Giving ──────────────────────────────────────────────── */
.giving-card {
    background: var(--primary);
    color: var(--bg);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
}

.giving-account {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--bg);
    margin: 1.5rem 0;
}

.giving-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: rgba(253, 246, 237, 0.15);
    color: var(--bg);
    border: 1px solid rgba(253, 246, 237, 0.25);
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.giving-copy-btn:hover {
    background: rgba(253, 246, 237, 0.25);
}

/* ── 13. Find Us ─────────────────────────────────────────────── */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ── 14. Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--primary-deep);
    color: rgba(253, 246, 237, 0.6);
    padding: 4rem 0 2rem;
}

.site-footer a {
    transition: color var(--duration) var(--ease);
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(253, 246, 237, 0.08);
    color: rgba(253, 246, 237, 0.6);
    transition: all var(--duration) var(--ease);
}

.footer-social-link:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-social-link svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* ── 15. Subpage: Page Hero ──────────────────────────────────── */
.page-hero {
    padding-top: 8rem;
    padding-bottom: 2.5rem;
}

.detail-panel {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* ── 16. Gallery ─────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gallery-tile {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.gallery-tile:hover img {
    transform: scale(1.05);
}

.gallery-link-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    transition: color var(--duration) var(--ease);
}

.gallery-link-label:hover {
    color: var(--accent-deep);
}

.gallery-link-label svg,
.gallery-link-label i {
    width: 0.875rem;
    height: 0.875rem;
}

@media (min-width: 768px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 51, 36, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* ── 17. Media card ──────────────────────────────────────────── */
.media-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.media-card img {
    transition: transform 0.5s var(--ease);
}

.media-card:hover img {
    transform: scale(1.03);
}

/* ── 18. Data Table ──────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    background: var(--surface);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
}

.data-table tr:hover td {
    background: var(--surface);
}

/* ── 19. Tailwind Override Layer ──────────────────────────────── */
/* Remap Tailwind utility classes to new tokens */
.text-accent-gold  { color: var(--accent) !important; }
.bg-accent-gold    { background-color: var(--accent) !important; }
.accent-gold       { color: var(--accent) !important; }
.text-navy         { color: var(--primary) !important; }
.bg-navy           { background-color: var(--primary-deep) !important; }
.text-gray-400     { color: var(--muted) !important; }
.text-gray-500     { color: var(--muted) !important; }
.text-gray-600     { color: var(--text-soft) !important; }
.text-gray-700     { color: var(--text-soft) !important; }
.text-gray-800     { color: var(--text) !important; }
.bg-white          { background-color: var(--bg) !important; }
.bg-gray-50        { background-color: var(--surface) !important; }
.bg-gray-100       { background-color: var(--surface) !important; }
.bg-gray-200       { background-color: var(--line) !important; }
.border-gray-100   { border-color: var(--line-soft) !important; }
.border-gray-200   { border-color: var(--line) !important; }
.border-gray-300   { border-color: var(--line) !important; }
.hover\:text-accent-gold:hover { color: var(--accent) !important; }
.hover\:bg-accent-gold:hover   { background-color: var(--accent) !important; }
.font-playfair     { font-family: var(--font-display) !important; }

/* Focus rings */
.focus\:ring-\[\#e26b2c\]:focus {
    --tw-ring-color: var(--accent) !important;
}

/* ── 20. Scroll Animations ───────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── 21. Admin page compatibility ────────────────────────────── */
.admin-icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 1.8;
}

.tab-active {
    border-bottom: 3px solid var(--accent) !important;
}

.upload-zone {
    border: 2px dashed var(--line);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: border-color var(--duration) var(--ease),
                background var(--duration) var(--ease);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragging {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ── 22. Print ───────────────────────────────────────────────── */
@media print {
    .site-header,
    .site-footer,
    #mobile-menu { display: none !important; }
    body { background: #fff; color: #000; }
    .hero-fullbleed { min-height: auto; }
}
