/* =====================================================================
   WEDDING SITE STYLES  —  palette lives in :root (edit colors here)
   ===================================================================== */
:root {
  /* Old-money vintage Christmas: hunter green · burgundy · antique gold · ivory */
  --sage:         #234c37;  /* hunter/evergreen (secondary) */
  --sage-dark:    #163625;  /* darkest pine */
  --burgundy:     #6b2532;  /* deep wine burgundy (primary red) */
  --burgundy-dark:#4d1a24;  /* oxblood */
  --cream:        #f5efe1;  /* aged ivory / cream */
  --cream-2:      #ece2ce;  /* deeper parchment */
  --ink:          #2b2723;
  --muted:        #6d6656;
  --gold:         #b0863c;  /* antique brass gold */
  --white:        #fffdf7;
  --shadow:       0 12px 40px rgba(45, 24, 28, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(246, 242, 234, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 138, 111, 0.15);
  transition: box-shadow .3s;
}
.nav--scrolled { box-shadow: 0 4px 20px rgba(60,66,50,.08); }
.nav__brand {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--sage-dark); text-decoration: none; letter-spacing: 1px;
}
.nav__links {
  list-style: none; display: flex; gap: 26px; align-items: center;
}
.nav__links a {
  text-decoration: none; color: var(--ink); font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1.5px; transition: color .2s;
}
.nav__links a:hover { color: var(--sage); }
.nav__cta {
  background: var(--burgundy); color: var(--white) !important;
  padding: 8px 18px; border-radius: 30px;
}
.nav__cta:hover { background: var(--burgundy-dark); }
.nav__toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  color: var(--sage-dark); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 100px 24px 60px;
  background:
    linear-gradient(rgba(245,239,225,.68), rgba(236,226,206,.80)),
    radial-gradient(circle at 22% 14%, rgba(35,76,55,.20), transparent 52%),
    radial-gradient(circle at 82% 26%, rgba(107,37,50,.20), transparent 50%),
    radial-gradient(circle at 78% 82%, rgba(107,37,50,.16), transparent 55%),
    radial-gradient(circle at 40% 70%, rgba(176,134,60,.12), transparent 58%),
    var(--cream);
  position: relative;
}
.hero__inner { max-width: 760px; animation: rise 1.1s ease both; }
.hero__tagline {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 4px; font-size: .8rem; color: var(--sage-dark);
  margin-bottom: 22px;
}
.hero__names {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.2rem, 12vw, 7rem); line-height: 1.02;
  color: var(--ink); letter-spacing: 1px;
}
.hero__amp { display: block; color: var(--gold); font-style: italic; font-size: .55em; margin: 4px 0; }
.hero__date {
  font-family: var(--serif); font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--muted); margin-top: 20px; font-style: italic;
}

/* ---------- Countdown ---------- */
.countdown { display: flex; justify-content: center; gap: 18px; margin: 38px 0 34px; flex-wrap: wrap; }
.countdown__unit {
  background: var(--white); border-radius: 14px; padding: 16px 10px;
  min-width: 78px; box-shadow: var(--shadow);
  border: 1px solid rgba(124,138,111,.12);
}
.countdown__unit span {
  display: block; font-family: var(--serif); font-size: 2.1rem;
  font-weight: 600; color: var(--sage-dark); line-height: 1;
}
.countdown__unit small {
  text-transform: uppercase; letter-spacing: 2px; font-size: .62rem; color: var(--muted);
}
.hero__scroll {
  position: absolute; bottom: 24px; font-size: 1.4rem; color: var(--sage);
  animation: bob 2s infinite;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: .82rem; text-transform: uppercase;
  letter-spacing: 2px; padding: 15px 40px; border-radius: 40px;
  border: none; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn--hero, .btn--full {
  background: var(--burgundy); color: var(--white); box-shadow: var(--shadow);
}
.btn--hero:hover, .btn--full:hover { background: var(--burgundy-dark); transform: translateY(-2px); }
.btn--full { width: 100%; font-size: .9rem; padding: 17px; }
.btn--ghost {
  background: transparent; color: var(--burgundy);
  border: 1.5px solid var(--burgundy); margin-top: 20px;
}
.btn--ghost:hover { background: var(--burgundy); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 90px 24px; }
.section--alt { background: var(--cream-2); }
.section__wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.section__wrap--narrow { max-width: 560px; }
.script {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--burgundy);
  margin-bottom: 30px; position: relative; display: inline-block;
}
.script::after {
  content: ""; display: block; width: 60px; height: 2px;
  background: var(--gold); margin: 16px auto 0;
}
.section__lead { font-family: var(--serif); font-size: 1.35rem; color: var(--muted); font-style: italic; margin-bottom: 34px; }
.section__note { margin-top: 30px; color: var(--muted); font-size: .95rem; }
.story__text { font-family: var(--serif); font-size: 1.5rem; line-height: 1.7; color: var(--ink); max-width: 680px; margin: 0 auto 34px; }

/* framed couple portrait */
.portrait {
  max-width: 360px; margin: 0 auto 36px; padding: 10px;
  background: var(--white); border: 1px solid rgba(176, 134, 60, .55);
  border-radius: 6px; box-shadow: var(--shadow);
}
.portrait img {
  display: block; width: 100%; height: auto;
  border-radius: 3px; border: 1px solid rgba(176, 134, 60, .25);
}

/* ---------- Detail cards ---------- */
.cards { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.card {
  background: var(--white); border-radius: 18px; padding: 36px 30px;
  box-shadow: var(--shadow); flex: 1 1 300px; max-width: 380px;
  border: 1px solid rgba(124,138,111,.1);
}
.card h3 {
  font-family: var(--serif); font-size: 1.7rem; color: var(--sage-dark);
  font-weight: 600; margin-bottom: 14px;
}
.card__name { font-size: 1.05rem; font-weight: 400; color: var(--ink); }
.card__addr { color: var(--muted); font-size: .92rem; margin: 8px 0 16px; }
.card__map { color: var(--sage); text-decoration: none; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.card__map:hover { color: var(--gold); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; max-width: 560px; margin: 0 auto; text-align: left; }
.timeline li {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 22px 0; border-bottom: 1px dashed rgba(124,138,111,.3);
}
.timeline li:last-child { border-bottom: none; }
.timeline .t-time { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); font-weight: 600; }
.timeline .t-title { font-size: 1.05rem; color: var(--ink); }
.timeline .t-note { color: var(--muted); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 620px; margin: 0 auto; text-align: left; }
.faq details {
  background: var(--white); border-radius: 12px; padding: 4px 22px;
  margin-bottom: 14px; box-shadow: 0 4px 16px rgba(60,66,50,.06);
  border: 1px solid rgba(124,138,111,.1);
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-family: var(--serif);
  font-size: 1.2rem; color: var(--sage-dark); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; color: var(--muted); }

/* ---------- RSVP ---------- */
.section--rsvp { background: linear-gradient(var(--cream-2), var(--cream)); }
.rsvp { text-align: left; margin-top: 10px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sage-dark); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(124,138,111,.35);
  border-radius: 10px; background: var(--white); font-family: var(--sans);
  font-size: 1rem; color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(124,138,111,.15);
}
.field textarea { resize: vertical; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio {
  flex: 1 1 200px; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1px solid rgba(124,138,111,.35);
  border-radius: 10px; background: var(--white); cursor: pointer;
  text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink);
  margin-bottom: 0;
}
.radio:hover { border-color: var(--sage); }
.radio input { width: auto; accent-color: var(--sage); }

/* checkbox rows (plus-one / kids) */
.check {
  display: flex; align-items: center; gap: 10px;
  text-transform: none; letter-spacing: 0; font-size: .98rem;
  color: var(--ink); margin-bottom: 0; cursor: pointer; font-family: var(--serif);
}
.check input { width: auto; accent-color: var(--burgundy); transform: scale(1.15); }
.subfield { margin-top: 14px; }
.subfield label.mt { margin-top: 14px; }
.kid-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px dashed rgba(107,37,50,.18);
}
.kid-row:last-child { border-bottom: none; padding-bottom: 0; }
.kid-input { flex: 2 1 150px; }
.kid-meal { flex: 3 1 180px; }
.kid-remove {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(107,37,50,.35); background: var(--white);
  color: var(--burgundy); font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.kid-remove:hover { background: var(--burgundy); color: var(--white); }
.btn-add {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  color: var(--burgundy); font-family: var(--sans); font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500;
}
.btn-add:hover { color: var(--burgundy-dark); text-decoration: underline; }
.rsvp__status { margin-top: 18px; text-align: center; font-size: .95rem; min-height: 1.4em; }
.rsvp__status.ok { color: var(--sage-dark); font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.rsvp__status.err { color: #b4553f; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.footer {
  background: var(--burgundy-dark); color: var(--cream);
  text-align: center; padding: 56px 24px;
  border-top: 3px solid var(--gold);
}
.footer__names { font-family: var(--serif); font-size: 2rem; }
.footer__date { color: rgba(246,242,234,.75); font-style: italic; font-family: var(--serif); margin-top: 6px; }
.footer__made { margin-top: 20px; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(246,242,234,.6); }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px;
  }
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    padding: 10px 0; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.open { max-height: 400px; }
  .nav__links li { width: 100%; text-align: center; }
  .nav__links li a { display: block; padding: 14px; }
  .nav__cta { border-radius: 0; }
  .timeline li { grid-template-columns: 88px 1fr; gap: 12px; }

  /* countdown: keep all four boxes on one row on phones */
  .countdown { gap: 10px; }
  .countdown__unit { min-width: 0; flex: 1 1 0; padding: 14px 6px; }
  .countdown__unit span { font-size: 1.7rem; }

  /* RSVP child rows: name + remove share the top line, entrée full-width below */
  .kid-input { flex: 1 1 0; min-width: 120px; order: 1; }
  .kid-remove { order: 2; }
  .kid-meal { flex: 1 1 100%; order: 3; }
}
