/* =========================================================
   LIGHT CHURCH — Minimal monotone theme
   거의 검정 글자 + 따뜻한 흰 배경, 포인트는 따뜻한 오렌지 하나
   폰트 Pretendard (영문·한글 공통), Noto Sans KR 폴백
   ========================================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&display=swap');

:root {
    --ink: #1c1b19;          /* 거의 검정 (따뜻한) */
    --ink-soft: #56534e;     /* 본문 보조 */
    --muted: #8a8782;        /* 캡션/라벨 */
    --line: #e7e3db;         /* 헤어라인 */
    --line-soft: #efece6;
    --paper: #faf8f4;        /* 따뜻한 흰 배경 */
    --paper-2: #f3efe8;      /* 살짝 깊은 배경 */
    --white: #ffffff;
    --accent: #e26b2c;       /* 단 하나의 포인트 — 따뜻한 오렌지 */
    --accent-deep: #c4561f;
    --accent-soft: rgba(226, 107, 44, 0.1);

    /* 하위 호환: 기존 navy/gold 변수명을 새 톤으로 매핑 */
    --navy: var(--ink);
    --navy-soft: var(--ink-soft);
    --gold: var(--accent);
    --gold-deep: var(--accent-deep);
    --shadow-soft: none;
    --shadow-card: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: var(--paper);
    font-family: 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection,
::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

/* ---------- Tailwind 유틸리티 톤 재매핑 ---------- */
.accent-gold,
.text-accent-gold {
    color: var(--accent);
}

.bg-accent-gold {
    background-color: var(--accent);
}

.border-accent-gold {
    border-color: var(--accent);
}

.border-l-accent-gold {
    border-left-color: var(--accent);
}

.text-navy {
    color: var(--ink);
}

.bg-navy {
    background-color: var(--ink);
}

.font-playfair {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-weight: 300 !important;
    letter-spacing: -0.015em;
}

/* 화려한 그림자/진한 회색 → 차분한 모노톤으로 정리 */
.shadow-sm,
.shadow,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-2xl,
.shadow-inner {
    box-shadow: none !important;
}

.bg-white {
    background-color: var(--paper) !important;
}

.bg-gray-50,
.bg-gray-100 {
    background-color: var(--paper-2) !important;
}

.bg-gray-200 {
    background-color: var(--line) !important;
}

.border-gray-100,
.border-gray-200,
.border-gray-300 {
    border-color: var(--line) !important;
}

.text-gray-400 {
    color: var(--muted) !important;
}

.text-gray-500 {
    color: var(--muted) !important;
}

.text-gray-600,
.text-gray-700 {
    color: var(--ink-soft) !important;
}

/* ---------- 레이아웃 ---------- */
.site-shell {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

/* ---------- 헤더 ---------- */
.site-header,
.site-header.home-header {
    border-bottom: 1px solid var(--line);
    background: rgba(250, 248, 244, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: none;
}

.brand-mark,
.home-header .brand-mark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    color: var(--ink);
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-mark .accent-gold {
    color: var(--ink);
}

.nav-link,
.home-header .nav-link {
    color: var(--ink-soft);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.home-header .nav-link:hover {
    color: var(--accent);
}

.home-header .brand-mark,
.home-header #menu-btn {
    color: var(--ink);
}

#menu-btn {
    color: var(--ink);
}

/* ---------- 버튼 ---------- */
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: none;
}

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

.btn-secondary,
.home-header .btn-secondary {
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-ghost {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
}

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

/* ---------- 섹션 타이포 ---------- */
.section-kicker {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* 좌측 정렬 섹션 헤더 — 액센트 헤어라인 동반 */
.section-kicker.has-line {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.section-kicker.has-line::before {
    content: "";
    flex: none;
    width: 1.75rem;
    height: 1px;
    background: var(--accent);
}

.section-title {
    color: var(--ink);
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.14;
    letter-spacing: -0.015em;
}

/* 섹션 제목: 한글은 두껍게, 영어(lang="en")는 가늘게 유지 */
.section-title:not(:lang(en)),
.font-playfair:not(:lang(en)) {
    font-weight: 700 !important;
}

.section-copy {
    color: var(--ink-soft);
    line-height: 1.85;
    font-weight: 400;
}

/* ---------- 카드 (차분한 헤어라인) ---------- */
.lux-card {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: none;
    border-radius: 4px;
}

.lux-card-hover {
    transition: border-color 0.25s ease;
}

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

/* ---------- HERO (밝고 미니멀, 엔딩 크레딧 느낌) ---------- */
.hero {
    position: relative;
    background: var(--paper);
    text-align: left;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 9.5rem;
    padding-bottom: 4.5rem;
}

.hero-eyebrow {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
}

/* 히어로 — 좌측 정렬 3단 점증 타이포 (당신을 → 기다리는 → 빛이 있습니다) */
.hero-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18em;
    margin: 0;
    color: var(--ink);
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.hero-stack-1 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--ink-soft);
    font-size: clamp(1.2rem, 3.6vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-stack-1::after {
    content: "";
    width: clamp(3.5rem, 16vw, 11rem);
    height: 1px;
    background: var(--ink);
    opacity: 0.45;
}

.hero-stack-2 {
    white-space: nowrap;
    font-size: clamp(2.2rem, 7.4vw, 5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.015em;
}

.hero-stack-3 {
    white-space: nowrap;
    font-size: clamp(2.8rem, 15vw, 13rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

/* "빛"은 그대로, 서술부 "이 있습니다"는 조금 작게·조금 얇게 (초점 강조) */
.hero-stack-3-tail {
    font-size: 0.85em;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-top: 2.75rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 2px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.hero-cta:hover {
    background: var(--accent-deep);
}

.hero-cta-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* 예배 정보 — 가는 구분선의 미니멀 메타 */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    width: min(40rem, 100%);
}

.hero-meta > div {
    text-align: left;
}

.hero-meta-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-meta strong {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
}

/* HERO 하단 정적 이미지 밴드 (자동재생/줌 없음) */
.hero-photo {
    width: 100%;
    height: clamp(260px, 46vh, 520px);
    overflow: hidden;
    background: var(--paper-2);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.12) contrast(1.02);
}

/* --- 풀블리드 포토 히어로 --- */
.hero-fullbleed {
    min-height: 92vh;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(18, 17, 15, 0.20) 0%,
        rgba(18, 17, 15, 0.55) 52%,
        rgba(18, 17, 15, 0.88) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-fullbleed .hero-inner {
    position: relative;
    z-index: 1;
    padding-bottom: 6rem;
}

.hero-fullbleed .hero-stack        { color: #fff; }
.hero-fullbleed .hero-stack-1      { color: rgba(255,255,255,0.70); }
.hero-fullbleed .hero-stack-1::after { background: rgba(255,255,255,0.32); }
.hero-fullbleed .hero-eyebrow      { color: rgba(255,255,255,0.58); }
.hero-fullbleed .hero-meta         { border-top-color: rgba(255,255,255,0.18); }
.hero-fullbleed .hero-meta-label   { color: rgba(255,255,255,0.52); }
.hero-fullbleed .hero-meta strong  { color: #fff; }
.hero-fullbleed .hero-cta-text     { color: rgba(255,255,255,0.88); border-bottom-color: rgba(255,255,255,0.45); }
.hero-fullbleed .hero-cta-text:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 640px) {
    .hero-fullbleed {
        min-height: 88vh;
        background-position: center center;
    }
}

/* ---------- About — LIGHT 가치 리스트 ---------- */
.about-section {
    position: relative;
    overflow: hidden;
    background: var(--paper);
}

.about-section > .site-shell {
    position: relative;
    z-index: 1;
}

.about-head {
    max-width: 32rem;
}

.about-section .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
}

.about-section .section-kicker::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: var(--accent);
}

.about-section .section-title {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--ink);
}

.about-lead {
    margin-top: 1.25rem;
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

.about-lead strong {
    color: var(--ink);
    font-weight: 600;
}

.value-list {
    margin-top: 2.75rem;
    border-top: 1px solid var(--line);
}

.value-row {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    align-items: center;
    gap: 1.75rem;
    padding: 1.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s ease, background 0.3s ease;
}

.value-row:hover {
    background: var(--accent-soft);
    padding-left: 1.15rem;
}

.value-row-letter {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--line);
    transition: color 0.3s ease;
}

.value-row:hover .value-row-letter {
    color: var(--accent);
    transform: none;
}

.value-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.85rem;
    margin-bottom: 0.45rem;
}

.value-row-title {
    color: var(--ink);
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.value-row-kor {
    color: var(--accent-deep);
    font-size: 0.85rem;
    font-weight: 500;
}

.value-row-desc {
    max-width: 38rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.7;
}

.value-row-arrow {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 1rem;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.value-row:hover .value-row-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: none;
}

@media (max-width: 640px) {
    .value-row {
        grid-template-columns: 2.75rem 1fr;
        gap: 1rem;
        padding: 1.5rem 0.25rem;
        align-items: start;
    }

    .value-row:hover {
        padding-left: 0.25rem;
    }

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

/* ---------- 미디어/갤러리 ---------- */
.media-card img {
    transition: transform 0.45s ease;
}

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

.gallery-link-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
}

.gallery-link-label svg {
    width: 0.9rem;
    height: 0.9rem;
    stroke-width: 1.7;
}

.page-hero {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
}

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

.detail-panel h1 {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.gallery-tile {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--paper-2);
    box-shadow: none;
    cursor: pointer;
}

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

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

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background: rgba(28, 27, 25, 0.92);
    padding: 1.25rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ---------- 표 ---------- */
.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.data-table tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--paper-2);
}

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

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

@media (max-width: 640px) {
    .hero-inner {
        padding-top: 8rem;
        padding-bottom: 3.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }

    .hero-cta {
        width: 100%;
        max-width: 20rem;
    }

    .hero-meta {
        gap: 1.5rem 2rem;
    }
}
