/* ============================================================
   Kimberly & Stephen — Design Tokens
   Palette pulled directly from the couple's real invitation suite:
   Garnet, Teal, Blue Topaz, Gray, on a warm parchment ground.
   ============================================================ */
:root {
  --garnet: #6d1f34;
  --garnet-deep: #4f1524;
  --teal: #1f4b49;
  --teal-deep: #163634;
  --blue-topaz: #a9c7de;
  --stone-gray: #9aa1a3;
  --cream: #f7f1e6;
  --cream-soft: #efe6d4;
  --ink: #2c2620;
  --ink-soft: #5a5248;

  --font-script: 'Meow Script', cursive;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --divider-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M0 20 C40 5, 60 35, 100 20 C140 5, 160 35, 200 20' stroke='%231f4b49' stroke-width='1.5' fill='none' opacity='0.55'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--teal-deep); }

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

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

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--garnet);
  font-weight: 500;
}

/* ---------- Botanical divider — the site's signature element ---------- */
.sprig {
  width: 140px;
  height: 28px;
  margin: 1.75rem auto;
  background: var(--divider-leaf) center / contain no-repeat;
}
.sprig--light {
  filter: brightness(0) invert(1) opacity(0.85);
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(44, 38, 32, 0.08);
}
.site-nav .initials {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--garnet);
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a { border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color 0.2s; }
.site-nav a:hover, .site-nav a.active { border-color: var(--garnet); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-nav ul { position: fixed; inset: 64px 0 0 0; background: var(--cream); flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem; font-size: 1.1rem; transform: translateY(-110%); transition: transform 0.3s ease; }
  .site-nav ul.open { transform: translateY(0); }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.6rem; color: var(--teal-deep); cursor: pointer; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(22,54,52,0.15) 0%, rgba(22,54,52,0.55) 78%, rgba(22,54,52,0.75) 100%), var(--hero-image) center 30% / cover no-repeat;
  color: var(--cream);
  text-align: center;
  padding: 2.5rem 1.5rem 4rem;
}
.hero-content { max-width: 640px; }
.hero .eyebrow { color: var(--blue-topaz); }
.hero h1 {
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  color: #fff;
  line-height: 1;
  margin: 0.4rem 0 0.6rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero .date-line {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.04em;
}
.hero .place-line { font-size: 0.95rem; opacity: 0.85; margin-top: 0.35rem; }
.hero .cta-row { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--garnet); color: #fff; box-shadow: 0 8px 24px rgba(109,31,52,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(109,31,52,0.45); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { border: 1px solid var(--garnet); color: var(--garnet); }
.btn-outline:hover { background: var(--garnet); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 5.5rem 6vw; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0.4rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.8rem; }

.band-teal { background: var(--teal-deep); color: var(--cream); }
.band-teal h2, .band-teal .eyebrow { color: var(--cream); }
.band-teal .eyebrow { color: var(--blue-topaz); }

/* ---------- Our Story ---------- */
.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.story img { border-radius: 6px; box-shadow: 0 20px 50px rgba(44,38,32,0.18); }
.story p { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Details cards ---------- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  max-width: 1000px;
  margin: 0 auto;
}
.detail-card {
  background: rgba(247,241,230,0.06);
  border: 1px solid rgba(169,199,222,0.35);
  border-radius: 10px;
  padding: 2.2rem 1.9rem;
  text-align: center;
}
.detail-card .icon { width: 34px; height: 34px; margin: 0 auto 1rem; opacity: 0.85; }
.detail-card h3 { color: var(--cream); font-size: 1.4rem; }
.detail-card p { color: var(--blue-topaz); margin: 0.35rem 0 0; font-size: 0.95rem; }
.detail-card .sub { color: rgba(247,241,230,0.65); font-size: 0.85rem; margin-top: 0.6rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 3 260px;
  column-gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-grid img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(44,38,32,0.15);
  transition: transform 0.35s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-credit { text-align: center; margin-top: 1.5rem; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ---------- Registry ---------- */
.registry-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.registry-card {
  flex: 1 1 200px;
  max-width: 240px;
  border: 1px solid rgba(109,31,52,0.2);
  border-radius: 10px;
  padding: 2rem 1.4rem;
  text-align: center;
  background: #fff;
}
.registry-card h3 { font-size: 1.25rem; }
.registry-card p { color: var(--ink-soft); font-size: 0.88rem; margin: 0.5rem 0 1.2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(44,38,32,0.12); padding: 1.5rem 0; }
.faq-item h3 { font-size: 1.2rem; color: var(--garnet); font-weight: 500; }
.faq-item p { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  background: var(--cream-soft);
}
footer .initials { font-family: var(--font-script); font-size: 2.2rem; color: var(--garnet); }
footer p { color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.6rem; }

/* ============================================================
   RSVP page
   ============================================================ */
.rsvp-hero {
  padding: 7rem 6vw 3rem;
  text-align: center;
  background: var(--cream-soft);
}
.rsvp-hero h1 { font-family: var(--font-script); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--garnet); }
.rsvp-hero p { color: var(--ink-soft); max-width: 520px; margin: 1rem auto 0; }

.rsvp-wrap { max-width: 640px; margin: 0 auto; padding: 3rem 6vw 6rem; }

.form-card {
  background: #fff;
  border-radius: 14px;
  padding: 2.8rem;
  box-shadow: 0 24px 60px rgba(44,38,32,0.1);
  border: 1px solid rgba(169,199,222,0.4);
}

.field { margin-bottom: 1.6rem; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 0.5rem; font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(44,38,32,0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }

.radio-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.radio-pill {
  position: relative;
}
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--teal-deep);
  transition: all 0.15s ease;
}
.radio-pill input:checked + span { background: var(--teal); color: #fff; }

.guest-block { border: 1px dashed rgba(109,31,52,0.3); border-radius: 10px; padding: 1.4rem; margin-bottom: 1.4rem; }
.guest-block h4 { font-family: var(--font-display); color: var(--garnet); font-size: 1.15rem; margin-bottom: 1rem; }

.submit-row { text-align: center; margin-top: 1.5rem; }
.submit-row button {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.rsvp-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 1.2rem; }

/* ---------- Success page ---------- */
.success-wrap {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.success-wrap h1 { font-family: var(--font-script); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--garnet); }
