:root {
  --ink: #16202e;
  --ink-soft: #4a5566;
  --paper: #faf7f2;
  --paper-2: #f1ebe1;
  --line: #e2d9cb;
  --accent: #c0392b;
  --navy: #1d3a6b;
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.eyebrow {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.section-head { margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.3; letter-spacing: -.01em;
}
.section-desc { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: .2s;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 72px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s;
}
.nav-logo img { height: 30px; width: auto; }
.nav .logo-dark { display: none; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: #fff; font-size: 15px; font-weight: 500; opacity: .9; }
.nav-links a:hover { opacity: 1; }
.nav.scrolled { background: rgba(250,247,242,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.scrolled .logo-light { display: none; }
.nav.scrolled .logo-dark { display: block; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 6px auto; transition: .3s; }
.nav.scrolled .nav-toggle span, .nav.open .nav-toggle span { background: var(--ink); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  transform: scale(1.04); animation: heroZoom 14s ease-out forwards;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,22,36,.75) 0%, rgba(14,22,36,.35) 70%),
    linear-gradient(180deg, rgba(14,22,36,.4) 0%, rgba(14,22,36,.3) 45%, rgba(14,22,36,.9) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { position: relative; max-width: 1120px; width: 100%; margin: 0 auto; padding: 96px 24px 140px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(42px, 7.5vw, 88px); line-height: 1.18; letter-spacing: -.02em;
}
.hero-sub { margin-top: 20px; font-size: clamp(16px, 2vw, 20px); font-style: italic; opacity: .85; }
.hero-cta { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-times {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.2);
  max-width: 1120px; margin: 0 auto;
}
.hero-times div { padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.hero-times div + div { border-left: 1px solid rgba(255,255,255,.2); }
.hero-times span { font-size: 13px; opacity: .7; }
.hero-times strong { font-size: 18px; font-weight: 600; }

/* About */
.philosophy { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.philosophy li {
  display: flex; gap: 24px; padding: 32px 8px 32px 0;
  border-bottom: 1px solid var(--line);
}
.philosophy li:nth-child(odd) { padding-right: 40px; }
.philosophy li:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }
.philosophy .num { font-family: var(--serif); color: var(--accent); font-size: 15px; font-weight: 600; padding-top: 4px; }
.philosophy p { font-size: 19px; line-height: 1.65; }
.philosophy em { font-style: normal; font-weight: 700; color: var(--navy); }

.pastor {
  margin-top: 80px; padding: 48px; background: var(--ink); color: #fff; border-radius: 4px;
  display: grid; grid-template-columns: auto auto 1fr; gap: 12px 40px; align-items: center;
}
.pastor-label { font-size: 14px; opacity: .6; letter-spacing: .1em; }
.pastor-name { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.pastor-name span { font-size: 18px; font-weight: 400; opacity: .7; margin-left: 4px; }
.pastor-note { font-family: var(--serif); font-size: 17px; opacity: .8; text-align: right; }

/* Worship */
.worship { background: var(--paper-2); }
.worship-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.w-card {
  grid-column: span 2; background: var(--paper); padding: 32px; border-radius: 4px;
  border: 1px solid var(--line);
}
.w-main { grid-column: span 3; background: var(--ink); color: #fff; border-color: var(--ink); padding: 44px 40px; }
.w-tag { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .05em; }
.w-main .w-tag { color: #f2a99f; }
.w-card h3 { margin-top: 10px; font-size: 19px; font-weight: 600; }
.w-time { margin-top: 6px; font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.w-main .w-time { font-size: 44px; }

/* Sermon */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 4px; overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: rgba(255,255,255,.85);
  background: linear-gradient(rgba(22,32,46,.78), rgba(22,32,46,.88)), url('images/gallery-4.jpg') center/cover;
}
.video-placeholder svg { color: var(--accent); }
.video-placeholder p { font-size: 17px; }
.sermon-foot { margin-top: 28px; display: flex; justify-content: center; }

/* Gallery */
.gallery { background: var(--paper-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.g-item { grid-column: span 2; position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3.4; }
.g-wide { grid-column: span 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 20px; color: #fff;
  background: linear-gradient(transparent, rgba(10,16,26,.8));
  display: flex; flex-direction: column;
}
.g-item figcaption strong { font-size: 17px; }
.g-item figcaption span { font-size: 13px; opacity: .8; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.info { display: grid; grid-template-columns: 64px 1fr; gap: 18px 16px; font-size: 17px; }
.info dt { color: var(--ink-soft); font-size: 14px; padding-top: 3px; }
.info dd a { border-bottom: 1px solid var(--line); }
.map-links { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; }
.map { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0; font-size: 14px; }
.footer-inner { display: flex; gap: 48px; align-items: center; }
.footer-logo { height: 40px; width: auto; flex-shrink: 0; }
.footer-text p + p { margin-top: 4px; }
.footer .copy { margin-top: 12px; opacity: .6; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .nav { padding: 0 16px; height: 64px; }
  .nav-logo img { height: 24px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-links a { color: var(--ink) !important; font-size: 22px; font-family: var(--serif); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav.open .logo-light { display: none; }
  .nav.open .logo-dark { display: block; position: relative; z-index: 2; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .container { padding: 0 16px; }
  .hero-inner { padding: 88px 16px 120px; }
  .hero-times div { padding: 16px; }
  .hero-times strong { font-size: 15px; }

  .philosophy { grid-template-columns: 1fr; }
  .philosophy li, .philosophy li:nth-child(odd), .philosophy li:nth-child(even) { padding: 24px 0; border-left: 0; }
  .philosophy p { font-size: 17px; }

  .pastor { grid-template-columns: 1fr; padding: 32px 24px; margin-top: 56px; }
  .pastor-note { text-align: left; }

  .worship-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .w-card { grid-column: span 1; padding: 24px 20px; }
  .w-main { grid-column: span 2; padding: 32px 24px; }
  .w-card:last-child { grid-column: span 2; }
  .w-time { font-size: 26px; }
  .w-main .w-time { font-size: 36px; }

  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .g-item, .g-wide { grid-column: span 1; }

  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-logo { height: 30px; }
}
