/* =====================================================================
   Sally & Adetunji — Traditional Wedding
   A tri-cultural celebration: Yorùbá · Kikuyu · Kisii
   ===================================================================== */

:root {
  /* Palette — drawn from the invitation */
  --cream:       #F4ECD7;
  --cream-2:     #EFE4C9;
  --paper:       #FAF6EA;
  --ink:         #2A1B10;   /* deep brown text */
  --brown:       #5A3A22;
  --brown-2:     #7A5230;
  --green:       #26432E;   /* forest */
  --green-2:     #1B3021;
  --green-deep:  #14261B;
  --gold:        #BE9A3E;
  --gold-2:      #D8BC6E;
  --gold-soft:   #E7D6A0;
  --terracotta:  #BB5A37;
  --terracotta-2:#A24A2C;

  /* Type */
  --serif:  "Cormorant Garamond", "Times New Roman", serif;
  --body:   "EB Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;

  /* Layout */
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: clamp(16px, 1.05vw + 13px, 19px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { margin: 0; font-weight: 500; line-height: 1.1; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Shared helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.section { padding: clamp(32px, 4.5vw, 65px) 0; position: relative; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section__eyebrow {
  font-family: var(--script);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold);
  margin: 0 0 .35rem;
  line-height: 1;
}
.section__eyebrow--light { color: var(--gold-2); }
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--brown);
}
.section__title--light { color: var(--paper); }
.section__intro { margin: 1.4rem auto 0; max-width: 620px; color: var(--brown-2); }
.section__intro--light { color: var(--gold-soft); }

/* Decorative rule with centre mark */
.rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.1rem auto; max-width: 260px; }
.rule span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.rule i { color: var(--gold); font-style: normal; font-size: 1rem; }
.rule--dark span { background: linear-gradient(90deg, transparent, var(--brown-2)); }
.rule--dark span:last-child { background: linear-gradient(90deg, var(--brown-2), transparent); }
.rule--dark i { color: var(--brown-2); }
.rule--gold span { background: linear-gradient(90deg, transparent, var(--gold-2)); }
.rule--gold span:last-child { background: linear-gradient(90deg, var(--gold-2), transparent); }
.rule--gold i { color: var(--gold-2); }

.motif { width: 62px; height: 62px; color: var(--gold); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__monogram {
  font-family: var(--serif); font-size: 1.6rem; letter-spacing: .18em;
  color: var(--brown); text-transform: uppercase; transition: color .4s var(--ease);
}
.nav__amp { color: var(--gold); margin: 0 .06em; }

/* signet / monogram mark */
.nav__brand { display: inline-flex; align-items: center; }
.nav__signet {
  width: 52px; height: 52px; display: block; overflow: visible;
  color: var(--brown);
  transition: color .4s var(--ease), transform .45s var(--ease), width .4s var(--ease), height .4s var(--ease);
}
.nav__signet text   { transition: fill .4s var(--ease); }
.nav__signet circle { transition: stroke .4s var(--ease); }
.signet__letter { fill: currentColor; font-family: var(--serif); font-weight: 600; }
.signet__amp    { fill: var(--gold);  font-family: var(--script); }
.signet__ring2  { stroke: var(--gold); }
.signet__accent { fill: var(--gold); transition: fill .4s var(--ease); }
.nav__brand:hover .nav__signet { transform: scale(1.06); }

.nav.is-scrolled .nav__signet { color: var(--paper); width: 46px; height: 46px; }
.nav.is-scrolled .signet__amp,
.nav.is-scrolled .signet__accent { fill: var(--gold-2); }
.nav.is-scrolled .signet__ring2 { stroke: var(--gold-2); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav__links a {
  font-family: var(--serif); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brown); position: relative; transition: color .3s var(--ease); white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid currentColor; padding: .5em 1.25em; border-radius: 2px;
  color: var(--green) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--green); border-color: var(--green); color: var(--cream) !important; }

/* scrolled state → dark bar, light text */
.nav.is-scrolled { background: rgba(24,42,29,.96); box-shadow: 0 6px 30px rgba(0,0,0,.18); height: 62px; backdrop-filter: blur(6px); }
.nav.is-scrolled .nav__monogram { color: var(--paper); }
.nav.is-scrolled .nav__amp { color: var(--gold-2); }
.nav.is-scrolled .nav__links a { color: var(--paper); }
.nav.is-scrolled .nav__links a::after { background: var(--gold-2); }
.nav.is-scrolled .nav__cta { color: var(--gold-2) !important; }
.nav.is-scrolled .nav__cta:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--green-deep) !important; }
.nav.is-scrolled .nav__toggle span { background: var(--paper); }

/* top of page now sits over the dark countdown hero → light nav even before scroll */
.nav:not(.is-scrolled) .nav__links a { color: var(--paper); }
.nav:not(.is-scrolled) .nav__links a::after { background: var(--gold-2); }
.nav:not(.is-scrolled) .nav__cta { color: var(--gold-2) !important; }
.nav:not(.is-scrolled) .nav__toggle span { background: var(--paper); }
.nav:not(.is-scrolled) .nav__signet { color: var(--paper); }
.nav:not(.is-scrolled) .signet__amp,
.nav:not(.is-scrolled) .signet__accent { fill: var(--gold-2); }
.nav:not(.is-scrolled) .signet__ring2 { stroke: var(--gold-2); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 26px; position: relative; }
.nav__toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--brown); transition: .3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 12px; }
.nav__toggle span:nth-child(3) { top: 22px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #14261b url("../assets/img/embrace.jpg") center 30%/cover no-repeat;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; border: 0; background: #14261b;
  filter: saturate(1.07) contrast(1.03) blur(0.8px);
  transform: scale(1.03);   /* hide the blur's soft edge bleed */
}
/* Hero masking — soften the candid footage into an intentional, filmic look.
   Each layer's opacity is a dial; grain (::before) sits under scrim/vignette/tint (::after). */
.hero::before {   /* film grain */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 130px 130px;
  opacity: .17; mix-blend-mode: soft-light;
}
.hero::after {   /* vignette + top/bottom scrim + faint brand tint */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(125% 105% at 50% 42%, transparent 52%, rgba(18,26,19,.42) 100%),
    linear-gradient(180deg, rgba(18,26,19,.46) 0%, rgba(18,26,19,0) 22%, rgba(18,26,19,0) 60%, rgba(18,26,19,.50) 100%),
    linear-gradient(0deg, rgba(38,67,46,.10), rgba(38,67,46,.10));
}
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.65); border-radius: 14px; z-index: 3; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.9); transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0; transform: translate(-50%,-4px);} 40%{opacity:1;} 80%{opacity:0; transform: translate(-50%,10px);} 100%{opacity:0;} }

/* =====================================================================
   COUNTDOWN
   ===================================================================== */
.count { background: var(--paper); color: var(--ink); text-align: center; padding: clamp(32px, 4.5vw, 58px) 0; }
.count__inner { max-width: 820px; margin-inline: auto; padding-inline: clamp(20px,5vw,48px); }
.count__eyebrow { font-family: var(--script); color: var(--gold); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1; margin: 0 0 clamp(.8rem, 2.2vw, 1.35rem); min-height: 1em; }
.count__marry { display: inline-grid; justify-items: center; }
.count__marry-layer { grid-area: 1 / 1; white-space: nowrap; transition: opacity 1.1s ease-in-out; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.count__names { font-family: var(--script); color: var(--brown); font-weight: 400; font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1.02; margin: 0; }
.count__names span { color: var(--gold); }
.count__meta { font-family: var(--serif); text-transform: uppercase; letter-spacing: .28em; font-size: clamp(.72rem, 1.6vw, .95rem); color: var(--brown-2); margin: 1.1rem 0 0; }
.count__grid { display: flex; justify-content: center; align-items: stretch; gap: 0; flex-wrap: nowrap; margin-top: clamp(2.8rem, 5vw, 3.8rem); }
.count__cell { flex: 1 1 0; min-width: 0; padding: .2rem clamp(.35rem, 2.4vw, 1.6rem); position: relative; }
.count__cell + .count__cell::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: rgba(190,154,62,.5); }
.count__num { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 8vw, 4.2rem); color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.count__lbl { display: block; font-family: var(--serif); text-transform: uppercase; letter-spacing: .18em; font-size: clamp(.58rem,1.3vw,.72rem); margin-top: .7rem; color: var(--brown-2); }
.count__cta { display: inline-block; margin-top: clamp(2.6rem, 5vw, 3.4rem); }

/* =====================================================================
   OUR STORY
   ===================================================================== */
.story { background: var(--cream); }
.proposal-story { background: var(--paper); }
.story__lead { max-width: 640px; margin: 0 auto clamp(40px,5vw,60px); text-align: center; }
.story__lead p { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--brown); font-style: italic; }

.timeline { max-width: 640px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before { content:""; position:absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), rgba(190,154,62,.2)); }
.timeline__item { position: relative; padding-bottom: 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--cream); }
.timeline__dot::after { content:""; position:absolute; inset: 3px; border-radius:50%; background: var(--terracotta); }
.timeline__body h3 { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: clamp(1.35rem,3vw,1.7rem); letter-spacing: .02em; margin-bottom: .2rem; }
.timeline__body p { color: var(--brown-2); margin: 0; }
.timeline__body em { color: var(--terracotta-2); font-style: italic; }

/* Story two-column with a scrollable photo collage (fun travel side-gallery) */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; max-width: 1040px; margin: 0 auto; }
.story__grid .timeline { margin: 0; max-width: none; }

.story__collage {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-auto-rows: clamp(112px, 15vw, 150px);
  gap: clamp(.5rem, 1.2vw, .9rem);
  max-height: clamp(460px, 66vh, 620px);
  overflow-y: auto;
  padding: 2px .5rem 2px 2px;
  scrollbar-width: thin; scrollbar-color: rgba(190,154,62,.55) transparent;
}
.story__collage::-webkit-scrollbar { width: 7px; height: 7px; }
.story__collage::-webkit-scrollbar-track { background: transparent; }
.story__collage::-webkit-scrollbar-thumb { background: rgba(190,154,62,.5); border-radius: 4px; }
.story__fig {
  margin: 0; padding: 0; border: 0; cursor: pointer; min-width: 0;
  border-radius: 5px; overflow: hidden; background: var(--paper);
  box-shadow: 0 14px 34px -26px rgba(42,27,16,.7);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.story__fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.story__fig:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -24px rgba(42,27,16,.7); }
.story__fig:hover img { transform: scale(1.05); }
.story__fig:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.story__fig--tall { grid-row: span 2; }

/* "She Said Yes" — proposal note beside the reused collage gallery */
.proposal-note { align-self: center; text-align: center; }
.proposal-note__date { font-family: var(--serif); text-transform: uppercase; letter-spacing: .28em; font-size: clamp(.78rem, 1.6vw, .95rem); color: var(--gold); margin: 0 0 1.1rem; }
.proposal-note__text { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.7vw, 1.7rem); line-height: 1.5; color: var(--brown); margin: 0; }

/* =====================================================================
   DETAILS
   ===================================================================== */
.details { background: var(--cream); }
.details__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; max-width: 1040px; margin: 0 auto; }
.detailpanel { background: var(--paper); border: 1px solid rgba(190,154,62,.4); border-radius: 6px; padding: clamp(1.5rem,3vw,2.4rem) clamp(1.4rem,3vw,2rem); box-shadow: 0 20px 40px -30px rgba(42,27,16,.5); }
.detailrow { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: clamp(1.1rem,2.6vw,1.6rem) 0; border-bottom: 1px dashed rgba(122,82,48,.3); }
.detailrow:first-child { padding-top: 0; }
.detailrow:last-child { padding-bottom: 0; border-bottom: 0; }
.detailrow__icon { font-size: 1.5rem; color: var(--gold); line-height: 1; }
.detailrow__body h3 { font-family: var(--serif); text-transform: uppercase; letter-spacing: .22em; font-size: .9rem; color: var(--brown-2); margin: .15rem 0 .5rem; }
.detailrow__body p { margin: 0; color: var(--brown-2); line-height: 1.5; }
.detailrow__body .detailrow__note { margin-top: .6rem; font-size: .82rem; font-style: italic; line-height: 1.45; }
.detailrow__body .detail-card__big { margin: 0 0 .35rem; }
.detail-card__big { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: clamp(1.3rem,3vw,1.7rem); line-height: 1.2; }
.detail-card__link { display: inline-block; margin-top: 1rem; font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: var(--terracotta-2); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .3s; }
.detail-card__link:hover { color: var(--gold); }

.schedule { max-width: 640px; margin: 0 auto; text-align: center; }
.schedule__title { font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--brown); font-size: clamp(1.3rem,3vw,1.7rem); }
.schedule__hint { color: var(--brown-2); font-style: italic; margin: .3rem 0 1.8rem; font-size: .95rem; }
.schedule__list { text-align: left; }
.schedule__list li { display: grid; grid-template-columns: 62px 24px 1fr; align-items: center; padding: .85rem 0; border-bottom: 1px dashed rgba(122,82,48,.35); }
.schedule__list li:last-child { border-bottom: 0; }
.schedule__time { font-family: var(--serif); font-weight: 600; color: var(--green); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.schedule__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); justify-self: center; }
.schedule__what { color: var(--ink); }
.details__cols .schedule { max-width: none; margin: 0; text-align: left; }
.details__cols .schedule__title { margin-top: 0; }

/* =====================================================================
   PALETTE / DRESS
   ===================================================================== */
.palette { background: var(--brown); color: var(--paper); text-align: center; }
.palette__inner { max-width: 760px; }
.swatches { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(.8rem, 2.4vw, 1.6rem); margin: 2rem 0 1.5rem; }
.swatch { display: flex; align-items: flex-end; justify-content: center; width: clamp(90px, 18vw, 130px); height: clamp(90px, 18vw, 130px); border-radius: 4px; background: var(--c); box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15); padding-bottom: .7rem; }
.swatch b { font-family: var(--serif); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.swatch b.swatch--dark { color: var(--ink); text-shadow: none; }
.palette__note { color: var(--gold-soft); max-width: 620px; margin: 0 auto; font-style: italic; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(16,12,8,.94); padding: clamp(12px, 4vw, 48px); opacity: 0; transition: opacity .3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 0; color: var(--gold-soft); cursor: pointer;
  font-family: var(--serif); line-height: 1; transition: color .3s var(--ease), transform .2s var(--ease);
}
.lightbox__close { top: clamp(10px,3vw,24px); right: clamp(14px,3vw,30px); font-size: 2.6rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: clamp(2.5rem, 6vw, 4rem); padding: .3em; }
.lightbox__nav--prev { left: clamp(4px,2vw,20px); }
.lightbox__nav--next { right: clamp(4px,2vw,20px); }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--paper); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.15); }

/* =====================================================================
   RSVP
   ===================================================================== */
.rsvp { background: var(--green-2); color: var(--paper); }
.rsvp__inner { max-width: 760px; }
.rsvp__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; margin-top: .5rem; }
/* Honeypot — off-screen and out of the grid flow (absolute children aren't grid items) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Activities checklist */
.checks { border: 1px solid rgba(216,188,110,.4); border-radius: 3px; margin: 0; padding: .3rem 1.1rem 1rem; }
.checks legend { font-family: var(--serif); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--gold-soft); padding: 0 .5rem; }
.checks__list { display: flex; flex-wrap: wrap; gap: .2rem 1.8rem; }
.check { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; color: var(--paper); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold); flex: none; cursor: pointer; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--serif); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--gold-soft); margin-bottom: .45rem; }
.field label span { text-transform: none; letter-spacing: 0; opacity: .7; font-style: italic; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--paper);
  background: rgba(255,255,255,.06); border: 1px solid rgba(216,188,110,.4);
  border-radius: 3px; padding: .75em .9em; transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); background: rgba(255,255,255,.1); }
.field select option { color: #222; }

.btn {
  font-family: var(--serif); text-transform: uppercase; letter-spacing: .22em; font-size: .92rem;
  color: var(--green-deep); background: var(--gold-2); border: 1px solid var(--gold-2);
  padding: .95em 2.4em; border-radius: 3px; cursor: pointer; transition: background .3s var(--ease), color .3s, transform .2s;
}
.btn:hover { background: transparent; color: var(--gold-2); }
.btn:active { transform: translateY(1px); }
.rsvp__submit { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: .4rem; }
.rsvp__status { min-height: 1.4em; margin: 0; font-style: italic; color: var(--gold-2); text-align: center; }
.rsvp__status.is-error { color: #F0B7A0; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { background: var(--paper); }
.faq__inner { max-width: 760px; }
.accordion { display: flex; flex-direction: column; gap: .8rem; }
.acc { border: 1px solid rgba(190,154,62,.45); border-radius: 4px; background: var(--paper); overflow: hidden; }
.acc summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.05rem,2.4vw,1.25rem); color: var(--green);
  padding-right: 3rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; transition: transform .3s var(--ease); }
.acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc p { margin: 0; padding: 0 1.4rem 1.2rem; color: var(--brown-2); }
.acc p em { color: var(--terracotta-2); font-style: italic; }

/* good-to-know list (Nairobi tips — the answer inside its FAQ item) */
.acc .know__list { margin: 0; padding: .1rem 1.4rem 1.2rem 2.6rem; list-style: disc; }
.know__list li { color: var(--brown-2); line-height: 1.6; padding-left: .35rem; }
.know__list li + li { margin-top: .7rem; }
.know__list li::marker { color: var(--gold); }
.know__list strong { color: var(--ink); font-weight: 600; }
.know__list .know__topic { color: var(--green); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--green-deep); color: var(--gold-soft); text-align: center; padding: clamp(48px,6vw,72px) 0; }
.footer__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.motif--hearts { color: var(--gold-2); width: 96px; height: 48px; margin: 0 auto .4rem; }
.footer__names { font-family: var(--script); font-size: clamp(2.4rem,6vw,3.6rem); color: var(--paper); margin: 0; }
.footer__names span { color: var(--gold-2); }
.footer__tag { font-family: var(--serif); text-transform: uppercase; letter-spacing: .22em; font-size: .82rem; margin: .6rem 0 .3rem; }
.footer__date { font-family: var(--serif); letter-spacing: .34em; color: var(--gold-2); font-size: .9rem; margin: 0; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .details__cols { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .story__grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 2.6rem); max-width: 520px; }
  /* Mobile: scroll the gallery horizontally so vertical page scrolling is never captured */
  .story__collage {
    width: 100%; max-width: 100%; margin-inline: 0;
    grid-template-columns: none;
    grid-template-rows: repeat(2, clamp(128px, 33vw, 160px));
    grid-auto-flow: column;
    grid-auto-columns: clamp(140px, 40vw, 185px);
    max-height: none;
    overflow-x: auto; overflow-y: hidden;
    padding: 2px 2px .7rem 2px;
  }
  /* Gallery follows the text on mobile. In "She Said Yes" the collage is first in
     the DOM (for the desktop zigzag), so pull the note ahead of it here. */
  .proposal-story .proposal-note { order: -1; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: var(--nav-h);
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(24,42,29,.98); padding: .5rem 0 1.2rem;
    transform: translateY(-120%); transition: transform .4s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,.3);
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a,
  .nav.is-scrolled .nav__links a { color: var(--paper); padding: .95rem clamp(20px,5vw,48px); font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__cta { border: 0; margin: .4rem clamp(20px,5vw,48px) 0; text-align: center; background: var(--gold-2); color: var(--green-deep) !important; }
  .nav__toggle { display: block; }
  .nav:not(.is-scrolled).is-open { background: rgba(24,42,29,.98); }
  .rsvp__form { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__date-mid { padding-inline: 1rem; }
  .hero__known-list li { padding-inline: 1rem; }
}

/* =====================================================================
   TRAVEL / GUEST GUIDE
   ===================================================================== */
.travel { background: var(--paper); }
.travel__block { margin-top: clamp(52px, 8vw, 96px); }
.travel__block--first { margin-top: 0; }
.travel__subhead { text-align: center; max-width: 680px; margin: 0 auto clamp(28px, 4vw, 44px); }
.travel__eyebrow { font-family: var(--script); color: var(--gold); font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1; }
.travel__title { font-family: var(--serif); font-weight: 600; color: var(--brown); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .1rem 0 0; line-height: 1.1; }
.travel__lead { color: var(--brown-2); margin: .8rem auto 0; max-width: 620px; }
.travel__lead em { color: var(--terracotta-2); font-style: italic; }

/* link cards (stays & attractions) */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(.8rem, 1.8vw, 1.2rem); }
.linkgrid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.linkcard { display: flex; flex-direction: column; gap: .28rem; background: var(--paper); border: 1px solid rgba(190,154,62,.4); border-radius: 6px; padding: 1rem 1.15rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.linkcard:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 34px -22px rgba(90,58,34,.5); }
.linkcard__name { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.08rem; line-height: 1.25; }
.linkcard__note { color: var(--brown-2); font-size: .88rem; line-height: 1.45; }

/* ---- Stay / Play switch (top-level guide toggle) ---- */
/* Travel head has only a greeting (no title), so centre the divider evenly
   between "Karibu Kenya…" and the Stay / Play tabs. */
.travel .section__head { margin-bottom: 0; }
.travel .section__head .rule { margin-block: clamp(1.5rem, 3.4vw, 2.3rem); }
.guide { margin: 0; }
.guidetabs {
  display: flex; width: fit-content; margin: 0 auto clamp(30px, 4.5vw, 48px);
  gap: .3rem; padding: .34rem; border: 1px solid rgba(190, 154, 62, .45);
  border-radius: 999px; background: rgba(190, 154, 62, .08);
}
.guidetab {
  appearance: none; border: 0; cursor: pointer; background: none;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  letter-spacing: .05em; color: var(--brown-2);
  padding: .52rem clamp(1.5rem, 5vw, 2.3rem); border-radius: 999px; line-height: 1;
  transition: color .3s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.guidetab:hover { color: var(--brown); }
.guidetab.is-active { color: var(--cream); background: var(--green); box-shadow: 0 12px 24px -12px rgba(38, 67, 46, .85); }
.guidetab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.guidepanel { display: none; }
.guidepanel.is-active { display: block; animation: guidefade .5s var(--ease); }
@keyframes guidefade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Where to stay · map + tabbed finder ---- */
.stayfinder, .explorefinder { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; max-width: 1060px; margin: 0 auto; }

/* tabbed list (left on desktop) */
.staytabs { display: flex; flex-wrap: wrap; gap: .1rem 1.15rem; border-bottom: 1px solid rgba(190, 154, 62, .3); margin-bottom: 1.1rem; }
.staytab { appearance: none; border: 0; background: none; cursor: pointer; font-family: var(--serif); font-size: 1.05rem; color: var(--brown-2); padding: .45rem .1rem; position: relative; letter-spacing: .01em; transition: color .2s var(--ease); }
.staytab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.staytab:hover { color: var(--brown); }
.staytab.is-active { color: var(--gold); }
.staytab.is-active::after { transform: scaleX(1); }
.staytab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.staypanels { max-height: clamp(280px, 40vh, 380px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; }
.staypanels::-webkit-scrollbar { width: 6px; }
.staypanels::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 6px; }
.staypanel { display: none; }
.staypanel.is-active { display: block; animation: stayfade .32s var(--ease); }
@keyframes stayfade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.stayitem { display: flex; align-items: baseline; gap: 1rem; padding: .62rem .15rem; border-bottom: 1px solid rgba(190, 154, 62, .2); text-decoration: none; transition: padding-left .2s var(--ease); }
.stayitem:last-child { border-bottom: 0; }
.stayitem:hover { padding-left: .35rem; }
.stayitem__name { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.08rem; line-height: 1.25; transition: color .2s var(--ease); }
.stayitem__name span { color: var(--gold); font-size: .76em; opacity: 0; transition: opacity .2s var(--ease); }
.stayitem:hover .stayitem__name, .stayitem:focus-visible .stayitem__name { color: var(--gold); }
.stayitem:hover .stayitem__name span, .stayitem:focus-visible .stayitem__name span { opacity: 1; }
.stayitem__note { color: var(--brown-2); font-size: .84rem; font-style: italic; margin-left: auto; padding-left: 1rem; white-space: nowrap; text-align: right; }
/* stacked variant (Things to do): name over a wrapping description */
.stayitem--desc { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center; }
.stayitem--desc .stayitem__name { grid-column: 1; grid-row: 1; }
.stayitem--desc .stayitem__desc { grid-column: 1; grid-row: 2; }
.stayitem__desc { color: var(--brown-2); font-size: .85rem; font-style: italic; line-height: 1.4; }
.stayitem__modes { grid-column: 2; grid-row: 1 / 3; display: flex; gap: .34rem; align-items: center; color: var(--brown-2); }
.stayitem:hover .stayitem__modes, .stayitem:focus-visible .stayitem__modes { color: var(--gold); }
.tmi { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.staypanel__note { color: var(--brown-2); font-size: .82rem; font-style: italic; line-height: 1.55; margin: .85rem .15rem 0; padding-top: .8rem; border-top: 1px solid rgba(190, 154, 62, .2); }
.staypanel__note a { color: var(--brown); border-bottom: 1px solid var(--gold-soft); transition: color .2s var(--ease), border-color .2s var(--ease); }
.staypanel__note a:hover { color: var(--gold); border-color: var(--gold); }

/* map (right on desktop) */
.staymap { margin: 0; width: 100%; }
.staymap__frame { position: relative; width: 100%; }
.staymap__svg { display: block; width: 100%; height: auto; pointer-events: none; }
.staymap__svg text { font-family: var(--serif); }

.staymap__pin { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.staymap__dot { position: relative; display: block; width: 46px; height: 46px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.staymap__pin--venue .staymap__dot { width: 60px; height: 60px; }
.staymap__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); transform: translate(-50%, -50%) scale(.5); opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.staymap__pin--venue .staymap__dot::before { width: 46px; height: 46px; }
.staymap__pin:hover .staymap__dot::before,
.staymap__dot:focus-visible::before { opacity: .7; transform: translate(-50%, -50%) scale(1); }
.staymap__pin.is-selected .staymap__dot::before { opacity: 1; border-width: 2px; transform: translate(-50%, -50%) scale(1); }

.staymap__cap { text-align: center; color: var(--brown-2); font-style: italic; font-size: .88rem; margin: .9rem auto 0; max-width: 460px; }

/* things to do · maps (right on desktop) — a country map and a Nairobi map that swap by category */
.exploremap { margin: 0; width: 100%; }
.exploremap__stack { position: relative; width: 100%; aspect-ratio: 680 / 430; }
.exploremap__view { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.exploremap__view.is-active { opacity: 1; visibility: visible; }
.kmap text, .nmap text { font-family: var(--serif); }

/* Nairobi attractions map */
.nmap__pin { cursor: pointer; }
.nmap__hit { fill: transparent; }
.nmap__dot { fill: var(--gold); stroke: var(--brown); stroke-width: .6; }
.nmap__ring { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0; transition: opacity .2s var(--ease); }
.nmap__pin:hover .nmap__ring { opacity: .6; }

/* hover route + tooltip (both maps) */
.maproute { stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 4 5; stroke-linecap: round; opacity: 0; transition: opacity .25s var(--ease); }
.maproute.is-on { opacity: .85; }
.maptip { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 12px)); background: var(--paper); border: 1px solid var(--gold); border-radius: 9px; padding: .42rem .7rem; box-shadow: 0 12px 26px -14px rgba(90, 58, 34, .55); pointer-events: none; white-space: nowrap; text-align: left; }
.maptip[hidden] { display: none; }
.maptip--below { transform: translate(-50%, 14px); }
.maptip__name { display: block; font-family: var(--serif); font-weight: 600; color: var(--brown); font-size: .92rem; line-height: 1.15; }
.maptip__legs { display: flex; flex-direction: column; gap: .18rem; margin-top: .26rem; }
.maptip__leg { display: flex; align-items: center; gap: .45rem; color: var(--brown-2); }
.maptip__leg .tmi { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.maptip__leg span { font-size: .82rem; font-style: italic; }

.kmap text { font-family: var(--serif); }
.kmap__cat { cursor: pointer; }
.kmap__dot { fill: var(--gold); stroke: var(--brown); stroke-width: .6; transition: opacity .3s var(--ease); }
.kmap__ring { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0; transition: opacity .3s var(--ease); }
.kmap__label { fill: var(--brown); font-size: 11.5px; opacity: 0; transition: opacity .3s var(--ease); }
.kmap__cat:not(.is-active) .kmap__dot { opacity: .3; }
.kmap__cat.is-active .kmap__ring { opacity: .55; }
.kmap__cat.is-active .kmap__label { opacity: 1; }
.kmap__label--on { opacity: 1; }
.kmap__pin { cursor: pointer; }
.kmap__hit { fill: transparent; }
/* interactive maps: don't select label text or flash a grey box on tap */
.staymap__frame, .exploremap__stack { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* transport legend (adventure / relaxation maps) */
.maplegend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .95rem; max-width: 470px; margin: .85rem auto 0; }
.maplegend[hidden] { display: none; }
.maplegend__lead { font-family: var(--serif); font-style: italic; color: var(--brown-2); font-size: .86rem; }
.maplegend__key { display: inline-flex; align-items: center; gap: .32rem; color: var(--brown); font-size: .82rem; }

/* locator inset (top-right of a map) */
.kinset { pointer-events: none; }
.kinset__hi { opacity: 0; transition: opacity .35s var(--ease); }
.kinset__hi.is-active { opacity: .85; }

@media (max-width: 860px) {
  .stayfinder, .explorefinder { grid-template-columns: 1fr; gap: 1.6rem; max-width: 560px; }
  .staymap { order: -1; }
  .staypanels { max-height: none; overflow: visible; }
}

/* notes & inline links */
.travel__note { font-size: .88rem; color: var(--brown-2); font-style: italic; margin: 1.2rem 0 0; line-height: 1.6; }
.travel__note strong { color: var(--green); font-weight: 600; font-style: normal; }
.travel__text a, .travel__lead a, .travel__note a { color: var(--terracotta-2); border-bottom: 1px solid rgba(162,74,44,.4); transition: color .2s var(--ease), border-color .2s var(--ease); }
.travel__text a:hover, .travel__lead a:hover, .travel__note a:hover { color: var(--gold); border-color: var(--gold); }


.travel__tabletitle { font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .95rem; color: var(--brown); margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 1rem; }
.travel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.travel__cols .travel__tabletitle { margin-top: 0; }
.travel__text { color: var(--brown-2); margin: 0; line-height: 1.65; }
.travel__text strong { color: var(--green); font-weight: 600; }
.travel__text .rate { color: var(--gold); font-style: italic; }

@media (max-width: 860px) {
  .travel__cols { grid-template-columns: 1fr; gap: 1.4rem; }
}
