/* ============================================================
   정다운교회 — Pretendard Edition
   ============================================================ */

:root {
  --ink:        #0c0c0c;
  --body:       #4a4a4a;
  --muted:      #8a8a8a;
  --line:       #e4e4e4;
  --surf:       #f5f4f1;
  --white:      #ffffff;
  --accent:     #6b5040;
  --accent-dim: rgba(107, 80, 64, 0.10);
  --nav-h:      60px;
  --r:          12px;
  --font:       'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 80px;
}
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--body);
  font-weight: 400;
}
.hero-btns { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.hero-photo {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surf);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Buttons ---------------------------------------------- */
.btn-fill, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-fill {
  background: var(--accent);
  color: var(--white);
}
.btn-fill:hover { background: #5a4035; }
.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-line:hover { border-color: var(--ink); }

/* --- Eyebrow label ---------------------------------------- */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   QUICK NAV
   ============================================================ */
.qnav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.qnav-grid { display: flex; }
.qnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px;
  color: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s, background 0.2s;
  border-right: 1px solid var(--line);
}
.qnav-item:first-child { border-left: 1px solid var(--line); }
.qnav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.qnav-item:hover { color: var(--accent); background: var(--surf); }

/* ============================================================
   INTRO  —  Pastor + About
   ============================================================ */
.intro { padding: 100px 0; background: var(--white); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 64px;
  align-items: start;
}
.intro-divider { background: var(--line); align-self: stretch; }

.pastor-block { display: flex; flex-direction: column; gap: 28px; }
.pastor-photo {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 320px;
  background: var(--surf);
}
.pastor-photo img { object-position: top; }
.pastor-info { display: flex; flex-direction: column; gap: 10px; }
.pastor-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.pastor-quote {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--body);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  font-style: normal;
}
.pastor-denom { font-size: 0.78rem; color: var(--muted); }

.about-block { display: flex; flex-direction: column; gap: 20px; }
.about-photo {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surf);
}
.about-text { display: flex; flex-direction: column; gap: 12px; }

.block-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}
.block-body {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--body);
  word-break: keep-all;
}

.stats {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-n sup { font-size: 0.7em; }
.stat-l { font-size: 0.72rem; color: var(--muted); }

/* ============================================================
   WEEK  —  Worship schedule + Sermon
   ============================================================ */
.week { padding: 100px 0; background: var(--surf); }
.week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.worship-block { display: flex; flex-direction: column; gap: 20px; }
.wtabs {
  display: flex;
  gap: 4px;
  background: var(--line);
  border-radius: 8px;
  padding: 4px;
}
.wtab {
  flex: 1;
  padding: 8px 0;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}
.wtab.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}
.wpanel { display: none; }
.wpanel.active { display: block; }
.svc-list { display: flex; flex-direction: column; }
.svc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}
.svc-row:hover { background: rgba(0, 0, 0, 0.03); }
.svc-row.hi { background: var(--accent-dim); }
.svc-name { flex: 1; font-size: 0.875rem; font-weight: 600; }
.svc-day { font-size: 0.75rem; color: var(--muted); width: 56px; text-align: center; }
.svc-time { font-size: 0.875rem; font-weight: 700; color: var(--accent); min-width: 76px; text-align: right; }

.sermon-block { display: flex; flex-direction: column; gap: 20px; }
.sermon-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.more-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
  transition: color 0.2s;
}
.more-link:hover { color: var(--ink); }
.sermon-thumb {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}
.thumb-inner {
  width: 100%;
  min-height: 160px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  transition: opacity 0.2s;
}
.sermon-thumb:hover .thumb-inner { opacity: 0.75; }
.play-btn {
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn svg { width: 22px; height: 22px; }
.thumb-label { font-size: 0.78rem; font-weight: 600; opacity: 0.85; }
.sermon-meta { display: flex; flex-direction: column; gap: 4px; }
.sermon-date { font-size: 0.72rem; color: var(--muted); }
.sermon-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; }
.sermon-pastor { font-size: 0.78rem; color: var(--muted); }
.sermon-prev {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.prev-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  transition: color 0.2s;
}
.prev-row:hover { color: var(--accent); }
.prev-date { font-size: 0.72rem; color: var(--muted); width: 40px; flex-shrink: 0; }
.prev-title { flex: 1; font-size: 0.83rem; font-weight: 500; }
.prev-row svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }

/* ============================================================
   VISION
   ============================================================ */
.vision { padding: 100px 0; background: var(--ink); }
.vision .label { color: rgba(255, 255, 255, 0.38); margin-bottom: 40px; }
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.vision-card {
  padding: 48px 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vision-card + .vision-card { border-left: none; }
.vision-card:first-child { border-radius: var(--r) 0 0 var(--r); }
.vision-card:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.v-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.v-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.v-body { font-size: 0.86rem; line-height: 1.8; color: rgba(255, 255, 255, 0.50); word-break: keep-all; }

/* ============================================================
   MINISTRY
   ============================================================ */
.ministry { padding: 100px 0; background: var(--white); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 8px;
}
.section-quote {
  font-size: 0.83rem;
  color: var(--muted);
  font-style: italic;
  max-width: 300px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1.5;
}
.ministry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.m-card {
  background: var(--surf);
  border-radius: var(--r);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
}
.m-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }
.m-floor {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 2px 8px;
  align-self: flex-start;
}
.m-name { font-size: 0.93rem; font-weight: 700; letter-spacing: -0.01em; }
.m-desc { font-size: 0.8rem; line-height: 1.65; color: var(--body); word-break: keep-all; }

/* ============================================================
   NEWS
   ============================================================ */
.news { padding: 100px 0; background: var(--surf); }
.news .label { margin-bottom: 32px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.news-card {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surf); }
.news-img img { transition: transform 0.35s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.news-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.news-title { font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.news-date { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

/* ============================================================
   BOTTOM  —  New Visitor + Contact
   ============================================================ */
.bottom { padding: 100px 0; background: var(--white); }
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.new-block { display: flex; flex-direction: column; gap: 18px; }
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.step { display: flex; align-items: flex-start; gap: 14px; }
.step-n {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step strong { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.step p { font-size: 0.8rem; color: var(--body); line-height: 1.5; }

.contact-block { display: flex; flex-direction: column; gap: 18px; }
.contact-rows { display: flex; flex-direction: column; }
.crow {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 0.875rem;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.ckey { font-size: 0.72rem; font-weight: 700; color: var(--muted); width: 32px; flex-shrink: 0; padding-top: 2px; }
.crow a { color: var(--accent); font-weight: 600; }
.map-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.map-link:hover { opacity: 0.65; }
.map-wrap {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surf);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.footer-meta { font-size: 0.72rem; color: var(--muted); line-height: 1.8; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-yt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body);
  transition: color 0.2s;
}
.footer-yt:hover { color: #ff0000; }
.footer-copy { font-size: 0.68rem; color: var(--muted); }

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
.reveal-hero {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-hero.visible { opacity: 1; transform: none; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-height: 320px; }

  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .intro-divider { display: none; }

  .week-grid { grid-template-columns: 1fr; gap: 48px; }

  .vision-grid { grid-template-columns: 1fr; }
  .vision-card {
    border-radius: var(--r) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  .ministry-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; max-width: 520px; }

  .bottom-grid { grid-template-columns: 1fr; gap: 48px; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-quote { text-align: left; max-width: 100%; }
}

@media (max-width: 640px) {
  .qnav-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .qnav-item { min-width: 88px; padding: 18px 12px; }

  .ministry-grid { grid-template-columns: 1fr; }
  .news-grid { max-width: 100%; }

  .hero { padding-top: calc(var(--nav-h) + 8px); }
  .hero-inner { padding-top: 24px; padding-bottom: 56px; }

  .intro    { padding: 64px 0; }
  .week     { padding: 64px 0; }
  .vision   { padding: 64px 0; }
  .ministry { padding: 64px 0; }
  .news     { padding: 64px 0; }
  .bottom   { padding: 64px 0; }

  .vision-grid { gap: 8px; }
  .stats { gap: 20px; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-right { align-items: flex-start; }
}
