/* ============================================================
   Camp Nehemiah 2026 — "Rooted and Built Up"
   Design language: foundation stone, timber, root systems.
   ============================================================ */

:root {
  --ink: #1c1710;
  --soil: #2c2119;
  --soil-light: #3c2e23;
  --stone: #c9a876;
  --stone-light: #e4d3ab;
  --root: #2f4b3c;
  --root-light: #43664f;
  --ivory: #f3ecdd;
  --ivory-dim: #e9dfc8;
  --ember: #a8441f;
  --ember-light: #c25a34;

  --font-display: 'Fraunces', serif;
  --font-body: 'Karla', sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

::selection { background: var(--stone); color: var(--ink); }

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

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--root);
  outline-offset: 3px;
}

/* ============ HEADER ============ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28, 23, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 168, 118, 0.2);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--ivory-dim);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--stone-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--ivory);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--soil);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 60px;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-wrap .hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,20,13,0.75) 0%, rgba(28,20,13,0.6) 45%, rgba(28,20,13,0.88) 100%);
}

/* If no <video> is present, this subtle rule pattern still gives the hero texture */
.hero-video-wrap:empty {
  background-image:
    repeating-linear-gradient(0deg, rgba(201,168,118,0.05) 0px, rgba(201,168,118,0.05) 1px, transparent 1px, transparent 90px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--stone-light);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--ivory);
  margin-bottom: 14px;
}

.hero-title em {
  font-style: italic;
  color: var(--stone-light);
}

.hero-verse {
  font-size: 1.05rem;
  color: var(--ivory-dim);
  max-width: 42ch;
  margin-bottom: 26px;
  padding-left: 18px;
  border-left: 2px solid var(--stone);
}

.hero-dates {
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: var(--stone-light);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ember);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--ember-light); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border-color: rgba(243,236,221,0.4);
  color: var(--ivory);
}
.btn-secondary:hover { border-color: var(--stone-light); color: var(--stone-light); }

/* Cornerstone countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-item {
  background: linear-gradient(180deg, var(--stone) 0%, #b3925f 100%);
  color: var(--soil);
  padding: 18px 6px;
  text-align: center;
  border-radius: 2px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18);
}

.countdown-item + .countdown-item { margin-top: 0; }

.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  margin-top: 4px;
  color: var(--soil-light);
}

.countdown-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ivory-dim);
  margin-top: 14px;
}

/* ============ SECTION BASICS ============ */
section { padding: 100px 0; }

.section-header { max-width: 640px; margin-bottom: 56px; }

.section-kicker {
  color: var(--ember);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: #5a4f40;
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ============ WELCOME ============ */
.welcome { background: var(--ivory); }

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.welcome-text p {
  margin-bottom: 20px;
  color: #4a4032;
  font-size: 1.05rem;
}

.welcome-marks {
  border-top: 1px solid rgba(28,23,16,0.15);
  margin-top: 30px;
}

.mark {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(28,23,16,0.15);
  align-items: baseline;
}

.mark-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--stone);
  font-size: 1.6rem;
}

.mark h4 { font-size: 1.05rem; margin-bottom: 4px; }
.mark p { color: #5a4f40; font-size: 0.95rem; }

.welcome-host {
  background: var(--soil);
  color: var(--ivory);
  padding: 36px;
  border-radius: var(--radius);
  align-self: start;
}

.welcome-host h4 {
  color: var(--stone-light);
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
}

.welcome-host p { color: var(--ivory-dim); font-size: 0.95rem; margin-bottom: 18px; }

.welcome-host a { color: var(--stone-light); border-bottom: 1px solid var(--stone); font-size: 0.9rem; }

/* ============ SCHEDULE — rooted timeline ============ */
.schedule { background: var(--soil-light); color: var(--ivory); }
.schedule .section-subtitle { color: var(--ivory-dim); }
.schedule .section-kicker { color: var(--stone-light); }

.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--stone), var(--root-light));
}

.timeline-day {
  position: relative;
  margin-bottom: 54px;
}

.timeline-day:last-child { margin-bottom: 0; }

.timeline-day::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stone);
  border: 2px solid var(--soil-light);
}

.day-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.day-head h3 { color: var(--ivory); font-size: 1.5rem; }
.day-head .day-date { color: var(--stone-light); font-size: 0.9rem; }

.day-rows { display: grid; gap: 2px; }

.day-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(243,236,221,0.04);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.day-row:hover { border-left-color: var(--stone); background: rgba(243,236,221,0.07); }

.day-row .time { font-size: 0.85rem; color: var(--stone-light); font-variant-numeric: tabular-nums; }
.day-row .who { font-size: 0.98rem; color: var(--ivory); }
.day-row .what { font-size: 0.85rem; color: var(--ivory-dim); }

/* ============ SPEAKERS ============ */
.speakers { background: var(--ivory); }

.speaker-list { display: grid; gap: 0; }

.speaker-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(28,23,16,0.14);
  align-items: start;
}

.speaker-row:first-child { border-top: 1px solid rgba(28,23,16,0.14); }

.speaker-row:nth-child(even) { grid-template-columns: 1fr 190px; }
.speaker-row:nth-child(even) .speaker-photo { order: 2; }

.speaker-photo {
  width: 190px;
  height: 190px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ivory-dim);
  border: 3px solid var(--stone);
}

.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }

.speaker-body h3 { font-size: 1.4rem; margin-bottom: 2px; }
.speaker-role { color: var(--ember); font-size: 0.9rem; margin-bottom: 14px; font-family: var(--font-display); font-style: italic; }
.speaker-body p { color: #4a4032; font-size: 0.97rem; margin-bottom: 10px; max-width: 62ch; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--root); color: var(--ivory); }
.testimonials .section-subtitle { color: rgba(243,236,221,0.75); }
.testimonials .section-kicker { color: var(--stone-light); }

.testi-wrap { max-width: 760px; }

.testi-slide { display: none; }
.testi-slide.active { display: block; }

.testi-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  margin-bottom: 26px;
}

.testi-quote::before { content: "\201C"; color: var(--stone-light); }
.testi-quote::after { content: "\201D"; color: var(--stone-light); }

.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author-name { font-weight: 700; }
.testi-author-year { font-size: 0.85rem; color: rgba(243,236,221,0.7); }

.testi-dots { display: flex; gap: 8px; margin-top: 30px; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(243,236,221,0.35);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s ease;
}
.testi-dot.active { background: var(--stone-light); }

/* ============ VENUE ============ */
.venue { background: var(--ivory); }

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.venue-list { margin-top: 26px; display: grid; gap: 22px; }

.venue-list .item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.venue-list .item i { color: var(--ember); margin-top: 4px; }
.venue-list .item h4 { font-size: 0.95rem; margin-bottom: 3px; }
.venue-list .item p { font-size: 0.92rem; color: #5a4f40; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(28,23,16,0.15); }

/* ============ CONTACT ============ */
.contact { background: var(--soil); color: var(--ivory); }
.contact .section-subtitle { color: var(--ivory-dim); }
.contact .section-kicker { color: var(--stone-light); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }

.contact-list { display: grid; gap: 22px; margin-bottom: 30px; }
.contact-list .item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.contact-list .item i { color: var(--stone-light); margin-top: 4px; }
.contact-list .item h4 { font-size: 0.92rem; color: var(--ivory-dim); margin-bottom: 3px; }
.contact-list .item p { font-size: 0.98rem; color: var(--ivory); }

.social-icons { display: flex; gap: 12px; margin-top: 14px; }
.social-icons a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(243,236,221,0.3);
  border-radius: 50%;
  color: var(--ivory);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-icons a:hover { background: var(--stone); border-color: var(--stone); color: var(--soil); }

.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--ivory-dim);
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(243,236,221,0.06);
  border: 1px solid rgba(243,236,221,0.25);
  color: var(--ivory);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(243,236,221,0.4); }

.form-group select option { color: var(--ink); }

/* ============ FINAL CTA ============ */
.final-cta {
  background: var(--ember);
  color: var(--ivory);
  text-align: center;
  padding: 100px 0;
}

.final-cta h2 { color: var(--ivory); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.final-cta p { max-width: 54ch; margin: 0 auto 32px; color: rgba(243,236,221,0.9); font-size: 1.05rem; }
.final-cta .btn-primary { background: var(--soil); }
.final-cta .btn-primary:hover { background: var(--ink); }
.final-cta .cta-note { margin-top: 20px; font-size: 0.85rem; color: rgba(243,236,221,0.75); }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: var(--ivory-dim); padding: 70px 0 30px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-grid h3, .footer-grid h4 { color: var(--ivory); margin-bottom: 14px; }
.footer-grid h3 { font-size: 1.15rem; }
.footer-grid h4 { font-size: 0.9rem; }
.footer-grid p, .footer-grid li { font-size: 0.9rem; color: var(--ivory-dim); margin-bottom: 8px; }
.footer-grid ul { list-style: none; }
.footer-grid a:hover { color: var(--stone-light); }

.footer-bottom {
  border-top: 1px solid rgba(243,236,221,0.12);
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(243,236,221,0.5);
  text-align: center;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--ivory);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============ REVEAL (single orchestrated entrance) ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .welcome-grid { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .speaker-row, .speaker-row:nth-child(even) { grid-template-columns: 120px 1fr; }
  .speaker-photo, .speaker-row:nth-child(even) .speaker-photo { width: 120px; height: 120px; border-radius: 50%; order: 0; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--soil);
    flex-direction: column;
    padding: 20px 28px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  section { padding: 70px 0; }
  .day-row { grid-template-columns: 1fr; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}