/* =============================================================================
   Mason & Kayla — Tulum Beach / Jungle Wedding
   Visual System: Sand · Terracotta · Deep Teal · Cenote Turquoise · Gold
   ============================================================================= */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colour Palette — Deep Jungle Nightlife */
  --sand:          #0c1c17;       /* deep jungle night (page bg)   */
  --cream:         #14281f;       /* slightly lighter dark (section bg) */
  --coral:         #d4705a;       /* CTA, buttons                  */
  --coral-dark:    #a34f3a;       /* CTA hover                     */
  --teal:          #1a3d33;       /* Nav, headings, footer          */
  --teal-light:    #2e6b5e;       /* Hover / lighter teal           */
  --turquoise:     #3dd4e0;       /* Bioluminescent cyan accent     */
  --turquoise-glow:rgba(71,184,196,.3);
  --gold-glow:     rgba(212, 160, 48, 0.38); /* shimmer shadows */
  --confetti-z:    9999;
  --gold:          #e0aa30;       /* Borders, dividers              */
  --gold-light:    #e8ba50;       /* Hover text, hero date          */
  --text-dark:     #edf6f1;       /* light near-white on dark bg   */
  --text-mid:      #bdd9cd;       /* mid-light (raised for contrast) */
  --text-light:    #98c1b2;       /* muted light (raised for contrast) */
  --white:         #ffffff;

  /* Typography */
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --nav-height:    70px;
  --section-pad:   100px;
  --container-max: 1100px;
  --radius:        4px;
  --transition:    0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

html {
  font-size:       16px;
  scroll-behavior: smooth;
}

body {
  font-family:   var(--font-sans);
  background:    var(--sand);
  color:         var(--text-dark);
  line-height:   1.75;
  overflow-x:    hidden;
}

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

a {
  color:      var(--turquoise);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Typography Scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color:       var(--gold-light);   /* dark-mode default: light gold reads on the dark sections */
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem;                  }

.lead {
  font-family: var(--font-serif);
  font-size:   1.2rem;
  font-style:  italic;
  color:       var(--text-mid);
  line-height: 1.85;
}

/* ---- Intro block (below hero) ---- */
.intro-block {
  max-width: 720px;
  margin:    0 auto;
  text-align: center;
}
.intro-block .lead + .lead {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin:    0 auto;
  padding:   0 24px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display:         inline-block;
  padding:         13px 34px;
  border:          2px solid transparent;
  border-radius:   var(--radius);
  font-family:     var(--font-sans);
  font-size:       0.875rem;
  font-weight:     700;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  cursor:          pointer;
  transition:
    background-color var(--transition),
    border-color     var(--transition),
    color            var(--transition),
    box-shadow       var(--transition),
    transform        var(--transition);
}

.btn-primary {
  background: var(--coral);
  color:      var(--white);
  border-color: var(--coral);
}
.btn-primary:hover {
  background:   var(--coral-dark);
  border-color: var(--gold);
  color:        var(--white);
  transform:    translateY(-2px);
  box-shadow:   0 8px 28px rgba(212, 112, 90, 0.48);
}
.btn-primary:active { transform: translateY(0); }

.btn-large {
  padding:   17px 48px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#main-nav {
  position:   fixed;
  inset-inline: 0;
  top:        0;
  z-index:    1000;
  height:     var(--nav-height);
  transition:
    background-color var(--transition),
    box-shadow       var(--transition);
}

.nav-inner {
  max-width:       var(--container-max);
  margin:          0 auto;
  padding:         0 24px;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.nav-logo {
  font-family:    var(--font-serif);
  font-size:      1.9rem;
  font-weight:    600;
  color:          var(--white);
  letter-spacing: 0.06em;
  transition:     color var(--transition);
}

.nav-links {
  list-style: none;
  display:    flex;
  gap:        32px;
  align-items: center;
}

.nav-links a {
  color:          var(--white);
  font-size:      0.82rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:     color var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }

/* CTA pill in nav */
.nav-cta {
  background:   var(--coral) !important;
  border:       2px solid var(--coral);
  border-radius: var(--radius);
  padding:      7px 20px;
  color:        var(--white) !important;
  transition:
    background-color var(--transition) !important,
    border-color     var(--transition) !important;
}
.nav-cta:hover {
  background:   var(--coral-dark) !important;
  border-color: var(--gold)       !important;
  color:        var(--white)      !important;
}

/* Scrolled state — applied by JS when window.scrollY > 80 */
#main-nav.scrolled {
  background: var(--teal);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}
#main-nav.scrolled .nav-logo       { color: var(--gold-light); }
#main-nav.scrolled .nav-links a    { color: var(--white);      }
#main-nav.scrolled .nav-links a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Mobile Nav Hamburger
   -------------------------------------------------------------------------- */
.nav-hamburger {
  display:         none;        /* hidden on desktop; display:flex set in ≤768px */
  min-width:       44px;        /* 44×44 minimum touch target */
  min-height:      44px;
  background:      transparent;
  border:          none;
  cursor:          pointer;
  padding:         10px;
  flex-direction:  column;
  justify-content: center;
  gap:             5px;
  border-radius:   var(--radius);
}

.nav-hamburger .bar {
  display:       block;
  width:         22px;
  height:        2px;
  background:    var(--white);
  border-radius: 2px;
  transition:    transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.is-open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open .bar:nth-child(2) {
  opacity:   0;
  transform: scaleX(0);
}
.nav-hamburger.is-open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
#hero {
  position:             relative;
  min-height:           100vh;
  display:              flex;
  align-items:          center;
  justify-content:      center;
  text-align:           center;
  background-image:     url('../images/hero-bg.jpg');
  background-size:      cover;
  background-position:  center top;
  background-attachment: fixed;
  padding:              var(--nav-height) 24px 80px;
  overflow:             hidden;
}

.hero-overlay {
  position: absolute;
  inset:    0;
  background:
    radial-gradient(120% 80% at 50% 42%, rgba(8, 30, 22, 0.55) 0%, rgba(8, 30, 22, 0) 60%),
    linear-gradient(
      170deg,
      rgba(8, 30, 22, 0.78) 0%,
      rgba(8, 30, 22, 0.50) 45%,
      rgba(8, 30, 22, 0.86) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index:  2;
  max-width: 760px;
}

.hero-eyebrow {
  font-family:    var(--font-sans);
  font-size:      0.82rem;
  font-weight:    400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color:          var(--gold-light);
  margin-bottom:  18px;
  text-shadow:    0 1px 14px rgba(0, 0, 0, 0.55);
}

.hero-names {
  font-family:    var(--font-serif);
  font-style:     italic;
  font-weight:    300;
  color:          var(--white);
  font-size:      clamp(2.8rem, 8vw, 6.2rem);
  line-height:    1.08;
  text-shadow:    0 2px 30px rgba(0, 0, 0, 0.45);
  margin-bottom:  22px;
}

.hero-date {
  font-family:    var(--font-serif);
  color:          var(--gold-light);
  font-size:      1.45rem;
  letter-spacing: 0.1em;
  margin-bottom:  8px;
  text-shadow:    0 1px 16px rgba(0, 0, 0, 0.6);
}

.hero-location {
  color:          rgba(255, 255, 255, 0.92);
  font-size:      0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom:  42px;
  text-shadow:    0 1px 16px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Hero Countdown Timer
   -------------------------------------------------------------------------- */
.hero-countdown {
  display:         grid;
  grid-template-columns: repeat(4, 1fr);
  gap:             14px;
  max-width:       460px;
  margin:          40px auto 0;
}

.countdown-unit {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         16px 8px 12px;
  background:      rgba(12, 28, 23, 0.42);
  border:          1px solid rgba(224, 170, 48, 0.30);
  border-radius:   8px;
  backdrop-filter: blur(4px);
}

.countdown-number {
  font-family:     var(--font-serif);
  font-size:       clamp(2rem, 6vw, 3.1rem);
  font-weight:     300;
  color:           var(--gold-light);
  line-height:     1;
  display:         block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.countdown-label {
  font-family:    var(--font-sans);
  font-size:      0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.66);
  margin-top:     8px;
  display:        block;
}

.hero-scroll-hint {
  position:    absolute;
  bottom:      32px;
  left:        50%;
  transform:   translateX(-50%);
  z-index:     2;
  color:       rgba(255, 255, 255, 0.6);
  font-size:   1.5rem;
  animation:   bounceDown 2s ease-in-out infinite;
  line-height: 1;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: .6; }
  50%       { transform: translateX(-50%) translateY(8px);  opacity: 1;  }
}

/* --------------------------------------------------------------------------
   Section Shared
   -------------------------------------------------------------------------- */
.section { padding: var(--section-pad) 0; }

/* Crisp gold hairline seam between adjacent sections (and into the footer),
   so neighbouring tones — especially teal→teal — stay visually distinct. */
.section + .section,
#footer { border-top: 1px solid rgba(224, 170, 48, 0.16); }

.section-light { background: #18352a; }   /* lifted a step above --cream for clearer alternation */
.section-sand  { background: var(--sand);  }

.section-teal {
  background: var(--teal);
  color:      var(--white);
}
.section-teal h2,
.section-teal h3           { color: var(--gold-light);               }
.section-teal .section-eyebrow { color: var(--turquoise);           }
.section-teal .section-divider { background: var(--gold);            }
.section-teal p            { color: rgba(253, 248, 240, 0.93);       }

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.section-header {
  text-align:    center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display:        block;
  font-family:    var(--font-sans);
  font-size:      0.78rem;
  font-weight:    700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color:          var(--coral);
  margin-bottom:  12px;
}

.section-divider {
  width:         56px;
  height:        2px;
  background:    var(--gold);
  margin:        20px auto 0;
  border-radius: 1px;
  animation:     goldShimmer 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Details Grid (4-up cards on teal background)
   -------------------------------------------------------------------------- */
.details-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   24px;
}

/* #dates has 3 cards — override the default 4-column grid */
#dates .details-grid {
  grid-template-columns: repeat(3, 1fr);
}

.detail-card {
  background:  rgba(255, 255, 255, 0.07);
  border:      1px solid rgba(200, 149, 42, 0.28);
  border-radius: var(--radius);
  padding:     38px 24px 34px;
  text-align:  center;
  transition:
    background-color var(--transition),
    border-color     var(--transition),
    transform        var(--transition);
}
.detail-card:hover {
  background:    rgba(255, 255, 255, 0.14);
  border-color:  var(--gold);
  transform:     translateY(-5px);
}

.detail-icon {
  font-size:     2.2rem;
  line-height:   1;
  margin-bottom: 18px;
  animation:     iconFloat 3s ease-in-out infinite;
}

.detail-card h3 {
  color:         var(--gold-light);
  font-size:     1.15rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.detail-card p {
  color:       rgba(253, 248, 240, 0.92);
  font-size:   0.88rem;
  margin-bottom: 3px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   RSVP Section
   -------------------------------------------------------------------------- */
.rsvp-deadline {
  color:       var(--text-mid);
  font-size:   1rem;
  margin-top:  6px;
  text-align:  center;
}

.rsvp-form {
  max-width:    560px;
  margin:       0 auto;
  background:   #142a20;        /* muted dark card — blends into the section */
  padding:      48px 48px 44px;
  border-radius: 10px;
  border:       1px solid rgba(224, 170, 48, 0.28);
  box-shadow:   0 18px 50px rgba(0, 0, 0, 0.32);
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display:        block;
  font-size:      0.76rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--text-mid);
  margin-bottom:  8px;
}

.form-group input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.form-group select,
.form-group textarea {
  width:        100%;
  padding:      13px 16px;
  border:       1.5px solid rgba(224, 170, 48, 0.28);
  border-radius: var(--radius);
  font-family:  var(--font-sans);
  font-size:    1rem;
  color:        var(--text-dark);
  background:   #0e2018;
  transition:   border-color var(--transition), box-shadow var(--transition);
}

/* Placeholder text — legible muted on the dark fields */
.form-group input::placeholder,
.form-group textarea::placeholder { color: #6f9183; }

/* Chrome/Safari autofill forces a light background and dark text — override it
   so autofilled fields keep the dark inset look instead of flashing white. */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active,
.form-group textarea:-webkit-autofill,
.form-group select:-webkit-autofill,
.child-row input:-webkit-autofill {
  -webkit-text-fill-color: var(--text-dark);
  -webkit-box-shadow: 0 0 0 1000px #0e2018 inset;
          box-shadow: 0 0 0 1000px #0e2018 inset;
  caret-color: var(--text-dark);
  transition: background-color 9999s ease-in-out 0s;
}

.form-group textarea {
  resize:      vertical;
  min-height:  84px;
  line-height: 1.6;
}

/* Child-row inputs — injected by JS outside .form-group */
.child-row input {
  width:        100%;
  padding:      10px 14px;
  border:       1.5px solid rgba(224, 170, 48, 0.28);
  border-radius: var(--radius);
  background:   #0e2018;
  color:        var(--text-dark);
  font-family:  var(--font-sans);
  font-size:    0.92rem;
  transition:   border-color var(--transition), box-shadow var(--transition);
}
.child-row input::placeholder { color: #6f9183; }
.child-row input:focus {
  outline:      none;
  border-color: var(--turquoise);
  box-shadow:   0 0 0 3px var(--turquoise-glow);
}

.label-optional {
  font-weight:    400;
  text-transform: none;
  letter-spacing: 0;
  color:          #9ab5ab;       /* muted tag, legible on the dark form card */
  font-size:      0.7rem;
}

.field-help {
  font-size:   0.8rem;
  color:       var(--text-light);   /* light muted — reads on the dark form card and teal sections */
  margin-top:  8px;
  margin-bottom: 0;
  line-height: 1.55;
}

/* On dark teal sections (e.g. the travel hint) help text needs to be light. */
.section-teal .field-help { color: rgba(253, 248, 240, 0.86); }

/* Custom select chevron */
.form-group select {
  appearance:          none;
  -webkit-appearance:  none;
  background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23bdd9cd' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right 16px center;
  padding-right:       42px;
  cursor:              pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline:     none;
  border-color: var(--turquoise);
  box-shadow:  0 0 0 3px var(--turquoise-glow);
}

/* Inline validation error state (set by JS) */
.form-group input:not([type="radio"]):not([type="checkbox"]).input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border-color: #e53e3e;
  box-shadow:   0 0 0 3px rgba(229, 62, 62, 0.15);
}

.field-error {
  color:       #f08a8a;
  font-size:   0.82rem;
  margin-top:  6px;
  margin-bottom: 0;
  font-weight: 600;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

/* Submit button full-width on small screens */
#rsvp-submit-btn { min-width: 220px; }

/* --------------------------------------------------------------------------
   RSVP Intro Block
   -------------------------------------------------------------------------- */
.rsvp-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.rsvp-intro .lead {
  margin-bottom: 1.25rem;
}

.rsvp-intro__sign {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-mid);
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Banners (PRG success / error)
   -------------------------------------------------------------------------- */
.banner {
  display:       flex;
  align-items:   center;
  gap:           12px;
  max-width:     560px;
  margin:        0 auto 32px;
  padding:       16px 22px;
  border-radius: var(--radius);
  font-size:     0.95rem;
  font-weight:   600;
  line-height:   1.5;
}

.banner-success {
  background: rgba(104, 211, 145, 0.15);
  border:     1px solid rgba(104, 211, 145, 0.45);
  color:      #68d391;
}

.banner-error {
  background: rgba(252, 129, 129, 0.15);
  border:     1px solid rgba(252, 129, 129, 0.45);
  color:      #fc8181;
}

/* --------------------------------------------------------------------------
   Confetti Canvas
   -------------------------------------------------------------------------- */
#confetti-canvas {
  position:       fixed;
  inset:          0;
  z-index:        var(--confetti-z);
  pointer-events: none;
  display:        none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
#footer {
  background: var(--teal);
  color:      var(--white);
  text-align: center;
  padding:    64px 24px 56px;
}

.footer-names {
  font-family:   var(--font-serif);
  font-style:    italic;
  font-size:     2.3rem;
  color:         var(--gold-light);
  margin-bottom: 10px;
  line-height:   1.1;
}

.footer-date {
  font-size:      0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--turquoise);
  margin-bottom:  18px;
}

.footer-note {
  font-family:   var(--font-serif);
  font-style:    italic;
  font-size:     1.05rem;
  color:         rgba(253, 248, 240, 0.86);
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.78rem;
  color:     rgba(253, 248, 240, 0.55);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Fade-in Reveal (IntersectionObserver — driven by JS)
   -------------------------------------------------------------------------- */
.fade-in {
  opacity:    0;
  transform:  translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.fade-in.is-visible {
  opacity:   1;
  transform: translateY(0);
}

/* Hero content: CSS keyframe animation (not IntersectionObserver) */
#hero .fade-in {
  animation:       heroAppear 1.3s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: 0.35s;
  opacity:         0;
  transform:       none; /* override — handled by keyframe */
}

@keyframes heroAppear {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes goldShimmer {
  0%, 100% { box-shadow: none; }
  50%      { box-shadow: 0 0 14px 4px var(--gold-glow); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Cascade stagger for details cards */
.detail-card:nth-child(1) { transition-delay: 0s;    }
.detail-card:nth-child(2) { transition-delay: 0.1s;  }
.detail-card:nth-child(3) { transition-delay: 0.2s;  }
.detail-card:nth-child(4) { transition-delay: 0.3s;  }

/* --------------------------------------------------------------------------
   Section Intro (sub-paragraph under a section header)
   -------------------------------------------------------------------------- */
.section-intro {
  max-width:   680px;
  margin:      22px auto 0;
  font-size:   1.02rem;
  line-height: 1.8;
  color:       var(--text-mid);
}
.section-teal .section-intro { color: rgba(253, 248, 240, 0.93); }

/* --------------------------------------------------------------------------
   Timeline — Weekend at a Glance
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  max-width:  760px;
  margin:     0 auto;
  display:    grid;
  gap:        18px;
}

.timeline-item {
  display:       grid;
  grid-template-columns: 76px 1fr;
  gap:           24px;
  align-items:   stretch;
  background:    var(--cream);
  border:        1px solid rgba(224, 170, 48, 0.18);
  border-left:   3px solid var(--teal-light);
  border-radius: var(--radius);
  padding:       22px 26px;
  transition:    transform var(--transition), border-color var(--transition);
}
.timeline-item:hover {
  transform:    translateX(4px);
  border-left-color: var(--gold);
}

.timeline-item--feature {
  border-left-color: var(--coral);
  background: linear-gradient(110deg, var(--cream) 0%, rgba(212, 112, 90, 0.10) 100%);
}

.timeline-day {
  font-family:    var(--font-serif);
  font-size:      1.5rem;
  font-style:     italic;
  color:          var(--gold-light);
  align-self:     center;
  text-align:     center;
  border-right:   1px solid rgba(224, 170, 48, 0.22);
  padding-right:  20px;
}

.timeline-body h3 {
  font-size:      0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--turquoise);
  font-family:    var(--font-sans);
  font-weight:    700;
  margin-bottom:  4px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size:   1.4rem;
  color:       var(--text-dark);
  margin-bottom: 6px;
}
.timeline-title em { font-style: italic; color: var(--coral); font-size: 0.95rem; }

.timeline-body p:last-child { color: var(--text-mid); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   Callout (transport / info banner inside a section)
   -------------------------------------------------------------------------- */
.callout {
  display:       flex;
  align-items:   center;
  gap:           18px;
  max-width:     820px;
  margin:        44px auto 0;
  padding:       22px 28px;
  background:    rgba(255, 255, 255, 0.06);
  border:        1px solid rgba(224, 170, 48, 0.30);
  border-radius: var(--radius);
}
.callout-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.callout p { font-size: 0.96rem; line-height: 1.7; margin: 0; }

/* --------------------------------------------------------------------------
   Prose block (centred intro paragraphs)
   -------------------------------------------------------------------------- */
.prose {
  max-width:  720px;
  margin:     0 auto 48px;
  text-align: center;
}
.prose p { color: var(--text-mid); font-size: 1.04rem; line-height: 1.85; }
.prose p + p { margin-top: 1rem; }
.section-light .prose strong { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Info Cards (childcare)
   -------------------------------------------------------------------------- */
.info-cards {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}

.info-card {
  background:    rgba(255, 255, 255, 0.04);
  border:        1px solid rgba(224, 170, 48, 0.20);
  border-radius: var(--radius);
  padding:       34px 28px;
  transition:    transform var(--transition), border-color var(--transition);
}
.info-card:hover { transform: translateY(-5px); border-color: var(--gold); }

.info-card-icon {
  font-size:     2rem;
  line-height:   1;
  display:       block;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size:     1.2rem;
  color:         var(--gold-light);
  margin-bottom: 12px;
}
.info-card p { color: var(--text-mid); font-size: 0.92rem; line-height: 1.7; }
.info-card strong { color: var(--text-dark); }

/* --------------------------------------------------------------------------
   Responsive — Tablet (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .info-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
  }

  /* Disable parallax on mobile (iOS fix) */
  #hero {
    background-attachment: scroll;
  }

  /* Nav — hide text links, keep CTA */
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }

  /* Mobile nav hamburger — show on mobile */
  .nav-hamburger { display: flex; }

  /* Mobile nav open state */
  .nav-links.is-open {
    position:       absolute;
    top:            var(--nav-height);
    left:           0;
    right:          0;
    background:     var(--teal);
    flex-direction: column;
    padding:        12px 24px 20px;
    gap:            0;
    border-top:     1px solid rgba(200, 149, 42, 0.25);
  }

  .nav-links.is-open li {
    display:       block;
    padding:       12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.is-open li:last-child {
    border-bottom: none;
  }

  .nav-links.is-open a {
    font-size: 0.9rem;
  }

  /* RSVP form */
  .rsvp-form { padding: 32px 24px; }

  /* Details: 2-col stays fine */
  .detail-card { padding: 28px 18px; }

  /* Timeline: tighter columns + stacked feel */
  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 18px 20px;
  }
  .timeline-day { padding-right: 14px; font-size: 1.25rem; }
  .timeline-title { font-size: 1.2rem; }

  /* Callout stacks */
  .callout { flex-direction: column; text-align: center; gap: 12px; padding: 24px; }
}

/* --------------------------------------------------------------------------
   Responsive — Small Mobile (≤ 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
    --section-pad: 56px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .hero-names { font-size: 2.7rem; }

  .hero-countdown { gap: 8px; }
  .countdown-unit { padding: 12px 4px 9px; }
  .countdown-number { font-size: 1.7rem; }
  .countdown-label { font-size: 0.55rem; letter-spacing: 0.1em; }

  .rsvp-form { padding: 24px 16px; }

  .btn-large,
  #rsvp-submit-btn {
    width:      100%;
    text-align: center;
  }

  .banner { font-size: 0.88rem; }
}

/* --------------------------------------------------------------------------
   Accessibility — Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { transition: none; opacity: 1; transform: none; }
  #hero .fade-in { animation: none; opacity: 1; }
  .hero-scroll-hint { animation: none; }
  .section-divider { animation: none; }
  .detail-icon { animation: none; }
  .detail-card { transition: none; }
  .btn { transition: none; }
  .nav-hamburger .bar { transition: none; }
}

/* === TEMPLATE INTEGRATION ADDITIONS === */

/* ------------------------------------------------------------------
   1. Two-column and address form rows
   ------------------------------------------------------------------ */
.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row--addr {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;   /* separate the city/state/zip row from the street input above */
}

@media (max-width: 560px) {
  .form-row--two,
  .form-row--addr {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   2. Choice-card radio grid
   ------------------------------------------------------------------ */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.choice-grid--two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

.choice-card {
  position: relative;
  display: block;
  border: 1.5px solid rgba(224, 170, 48, 0.28);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
  background: #0e2018;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.choice-card:hover {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px var(--turquoise-glow);
}

.choice-card.is-selected {
  border-color: var(--coral);
  background: rgba(212, 112, 90, 0.18);
  color: #f3bdac;
}
.choice-card.is-selected small { color: #e3a895; }

.choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.choice-card small {
  display: block;
  font-weight: 400;
  color: var(--text-mid);
  font-size: 0.8rem;
  margin-top: 3px;
}

/* ------------------------------------------------------------------
   3. Child row layout (structured child entries in RSVP form)
   ------------------------------------------------------------------ */
.child-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

@media (min-width: 560px) {
  .child-row {
    grid-template-columns: 1.4fr 0.6fr 2fr auto;
  }
}

.child-remove-btn {
  background: transparent;
  border: 1px solid rgba(224, 170, 48, 0.35);
  color: var(--text-mid);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.child-remove-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ------------------------------------------------------------------
   4. Callout card (adults-only notice, key info highlights)
   ------------------------------------------------------------------ */
.callout-card {
  background: var(--cream);
  border: 1px solid rgba(224, 170, 48, 0.2);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 20px;
}

.callout-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.callout-card p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------
   5. Travel / planner contact card
   ------------------------------------------------------------------ */
.travel-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--cream);
  border: 1px solid rgba(224, 170, 48, 0.2);
  border-radius: 12px;
  padding: 32px 34px;
  margin-top: 10px;
}

/* Right-hand contact panel, visually separated from the narrative column */
.travel-card__aside {
  border-left: 1px solid rgba(224, 170, 48, 0.22);
  padding-left: 36px;
}

@media (max-width: 760px) {
  .travel-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 24px;
  }
  .travel-card__aside {
    border-left: 0;
    border-top: 1px solid rgba(224, 170, 48, 0.22);
    padding-left: 0;
    padding-top: 24px;
  }
}

.travel-card__role {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise);
  font-weight: 600;
  margin-bottom: 6px;
}

.travel-card h3 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin-bottom: 8px;
}

.travel-card__sub {
  color: var(--text-mid);
  margin: 10px 0 18px;
}

.travel-card__contact {
  display: grid;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 1rem;
}

.travel-card__contact a {
  color: var(--turquoise);
  font-weight: 600;
  text-decoration: none;
}

.travel-card__contact a:hover {
  color: var(--gold);
}

.travel-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   6. Booking facts grid
   ------------------------------------------------------------------ */
.booking-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 560px) {
  .booking-facts {
    grid-template-columns: 1fr;
  }
}

.booking-fact {
  background: var(--sand);
  border: 1px solid rgba(224, 170, 48, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
}

/* ------------------------------------------------------------------
   7. Conditional block (JS show/hide toggle target)
   ------------------------------------------------------------------ */
.conditional-block {
  display: none;
  margin-top: 10px;
}

.conditional-block.is-visible {
  display: block;
}

/* ------------------------------------------------------------------
   8. Ghost button
   ------------------------------------------------------------------ */
.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid rgba(224, 170, 48, 0.4);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: transparent;
}

/* ------------------------------------------------------------------
   9. Lookup / update section controls
   ------------------------------------------------------------------ */
.lookup-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.lookup-row input {
  flex: 1;
  min-width: 200px;
}

.lookup-row .btn {
  width: auto;
  flex-shrink: 0;
}

.update-note {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 12px;
  font-style: italic;
}
