/* United Lutheran Church — West Olive, MI
   Palette drawn from the church's own emblem: gold cross + burgundy text. */

:root {
  --ink:        #2b2420;
  --ink-soft:   #5b4f47;
  --maroon:     #6e1a1e;
  --maroon-dk:  #511215;
  --gold:       #b0851f;
  --gold-lt:    #d6b35a;
  --gold-soft:  #ecdcb0;
  --cream:      #faf6ee;
  --cream-2:    #f4ebda;
  --paper:      #fffdf8;
  --line:       rgba(110, 26, 30, 0.14);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --shadow: 0 18px 50px -28px rgba(43, 36, 32, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0;
}

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.btn-primary { background: var(--maroon); color: #fff; box-shadow: 0 10px 24px -12px rgba(110, 26, 30, 0.7); }
.btn-primary:hover { background: var(--maroon-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 0.6rem 0;
}
.site-header.scrolled {
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px -22px rgba(43, 36, 32, 0.5);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.05;
  color: var(--maroon);
  transition: color 0.3s ease;
}
.brand-sub { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* on the transparent (hero) header, text is light */
.site-header:not(.scrolled) .brand-name { color: #fff; }
.site-header:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.92); }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-cta {
  background: var(--maroon); color: #fff !important; padding: 0.55rem 1.1rem; border-radius: 999px;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--maroon-dk); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 7rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("assets/church-exterior.jpg") center 38% / cover no-repeat;
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43, 18, 19, 0.62) 0%, rgba(43, 18, 19, 0.32) 40%, rgba(43, 18, 19, 0.72) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; padding-inline: 1.25rem; }
.hero-emblem { width: 116px; height: 116px; margin: 0 auto 1.5rem; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 4.7rem);
  font-weight: 600;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.5rem;
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--gold-soft);
  margin: 0 0 1.6rem;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.15rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 2rem;
}
.hero-meta strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px;
}
.scroll-cue::before {
  content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0);} 30%{opacity:1;} 100%{opacity:0; transform: translateY(12px);} }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: var(--cream-2); }
.section--maroon { background: var(--maroon); color: #fff; }
.section--maroon h2, .section--maroon h3 { color: #fff; }
.section--maroon .eyebrow { color: var(--gold-lt); }

.section-head { max-width: 660px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 1rem; }
.section--maroon .section-head p { color: rgba(255,255,255,0.85); }

/* decorative divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 1.1rem auto 0; max-width: 220px; }
.divider span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { width: 16px; height: 22px; fill: var(--gold); flex: none; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; }
.split-media { position: relative; }
.split-media .frame {
  position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold-soft); border-radius: 14px; z-index: -1;
}
.split-body p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.split-body .lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--ink); font-weight: 500; }

/* ---------- Mission pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.pillar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 2rem 1.6rem; text-align: center;
}
.pillar-num { font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.2em; color: var(--gold-lt); }
.pillar h3 { font-size: 1.9rem; margin: 0.4rem 0 0.8rem; color: #fff; }
.pillar p { color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; margin: 0; }
.mission-close { max-width: 720px; margin: 3rem auto 0; text-align: center; font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: rgba(255,255,255,0.92); font-style: italic; }

/* ---------- Timeline ---------- */
.timeline-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--gold-soft)); }
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2.4rem; top: 4px; width: 20px; height: 20px;
  background: var(--paper); border: 3px solid var(--gold); border-radius: 50%;
}
.tl-year { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--maroon); line-height: 1; }
.tl-item p { margin: 0.35rem 0 0; color: var(--ink-soft); }
.history-aside img { border-radius: 14px; box-shadow: var(--shadow); }
.history-aside figcaption { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 0.9rem; font-style: italic; }
.history-aside { margin: 0; position: sticky; top: 100px; }

/* ---------- Schedule ---------- */
.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.sched-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 2.2rem 1.8rem; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sched-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }
.sched-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sched-when { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.sched-card h3 { font-size: 1.7rem; margin: 0.5rem 0; }
.sched-time { font-family: var(--sans); font-size: 1.05rem; color: var(--ink-soft); font-weight: 500; }
.sched-time strong { color: var(--maroon); font-weight: 700; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.visit-info { display: flex; flex-direction: column; gap: 1.6rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; margin-top: 3px; }
.info-row .label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.info-row a, .info-row span { color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.info-row a:hover { color: var(--maroon); }
.visit-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }
.map-embed { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 360px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-dk); color: rgba(255, 255, 255, 0.82); padding: 3.5rem 0 2rem; text-align: center; }
.site-footer img { width: 88px; margin: 0 auto 1.2rem; }
.site-footer .f-name { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 0.6rem; }
.site-footer p { margin: 0.25rem 0; font-size: 0.96rem; }
.site-footer a { color: var(--gold-lt); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.f-syn { margin-top: 1.2rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }
.f-rule { width: 60px; height: 1px; background: rgba(255,255,255,0.2); margin: 1.6rem auto; }
.f-copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; z-index: 60; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    background: var(--cream); padding: 2rem; box-shadow: -20px 0 50px -30px rgba(0,0,0,0.5);
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--ink) !important; font-size: 1.1rem; }
  .site-header:not(.scrolled) .nav-links a { color: var(--ink); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header:not(.scrolled).nav-open .nav-toggle span { background: var(--ink); }

  .split, .timeline-grid, .visit-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media .frame { display: none; }
  .history-aside { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
