/* ============================================================
   Bianca & Ajay — Wedding Website
   Palette sampled directly from the couple's monogram artwork
   and save-the-date illustration: sage green, dusty rose,
   parchment cream, and a sky-blue wash for the hero.
   ============================================================ */

:root {
  --cream: #FBF7ED;
  --cream-deep: #F3ECD8;
  --card: #FEFCF6;
  --sky: #C9DCE4;
  --sky-soft: #E4EEF1;
  --sage: #6E8A67;
  --sage-deep: #4B5F45;
  --sage-light: #A9BE9F;
  --rose: #D98CA5;
  --rose-light: #EAC0CE;
  --terracotta: #BE7350;
  --ink: #333A2C;
  --ink-soft: #5B5E4E;
  --line: rgba(78, 94, 66, 0.2);

  --font-script: 'Mrs Saint Delafield', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-utility: 'Jost', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise 0.9s ease both; }
  .hero__content > *:nth-child(1) { animation-delay: 0s; }
  .hero__content > *:nth-child(2) { animation-delay: 0.1s; }
  .hero__content > *:nth-child(3) { animation-delay: 0.2s; }
  .hero__content > *:nth-child(4) { animation-delay: 0.3s; }
  .hero__content > *:nth-child(5) { animation-delay: 0.35s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(251, 247, 237, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-script);
  font-size: 30px;
  color: var(--sage-deep);
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--rose); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--sage-deep);
  display: block;
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0 26px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 280px;
  text-align: center;
}
.hero__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 45%, var(--cream) 100%);
  z-index: -1;
}

.hero__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 260px;
  opacity: 0.9;
  z-index: -1;
}
@media (max-width: 640px) {
  .hero__skyline { height: 200px; }
  .hero { padding-bottom: 210px; }
}

.sprig {
  position: absolute;
  width: 130px;
  height: 130px;
  opacity: 0.5;
  pointer-events: none;
}
.sprig--tl { top: 90px; left: -20px; transform: scaleX(-1) rotate(8deg); }
.sprig--br { bottom: 20px; right: -20px; transform: rotate(4deg); }
@media (max-width: 480px) {
  .sprig { width: 84px; height: 84px; opacity: 0.35; }
}

.hero__content {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 12px 0 8px;
}

.hero__logo {
  width: min(70vw, 300px);
  margin: 0 auto 6px;
}

.hero__names {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 6vw, 38px);
  margin: 4px 0 2px;
}
.hero__and { font-size: 0.6em; color: var(--sage-light); padding: 0 6px; }

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(30px, 7vw, 42px);
  color: var(--sage-deep);
  margin: 6px 0 2px;
}

.hero__date {
  font-family: var(--font-utility);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 10px 0 0;
}
.hero__place {
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.divider { width: 300px; max-width: 80%; margin: 22px auto 18px; }
.divider svg { width: 100%; height: 24px; display: block; }
.divider--center { margin: 8px auto 34px; }

.hero__note {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto 26px;
}

.btn {
  display: inline-block;
  padding: 13px 34px;
  font-family: var(--font-utility);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--sage);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--sage-deep); }
.btn:active { transform: scale(0.98); }
.btn--booking { margin-top: 8px; }
.btn[aria-disabled="true"] {
  background: var(--sage-light);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- generic sections ---------- */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 24px;
  text-align: center;
}
.section--tinted { background: var(--cream-deep); max-width: none; }
.section--tinted > * { max-width: 640px; margin-left: auto; margin-right: auto; }

.section__eyebrow {
  font-family: var(--font-utility);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 8px;
}
.section__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 5vw, 34px);
  color: var(--sage-deep);
  margin: 0;
}
.section__body {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.section__body--narrow {
  max-width: 440px;
  margin: 0 auto 8px;
}
.section__body strong { color: var(--terracotta); font-weight: 600; }
.section__footnote {
  font-family: var(--font-utility);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 36px;
}

/* ---------- schedule ---------- */
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: left;
}
.event {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px 4px 14px 14px;
  padding: 26px 22px;
}
.event__day {
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}
.event__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--sage-deep);
  margin: 6px 0 8px;
}
.event__desc {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0;
}
.event__dress {
  font-size: 14px;
  color: var(--terracotta);
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.event__dress strong { color: var(--sage-deep); }

/* ---------- RSVP card (unchanged from the RSVP-only build) ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px 4px 18px 18px;
  padding: 56px 32px 40px;
  max-width: 560px;
  margin: 40px auto 0;
  box-shadow: 0 30px 70px -36px rgba(58, 71, 50, 0.4);
  text-align: left;
}
.card__sprig {
  width: 92px;
  height: 92px;
  opacity: 0.6;
  top: -18px;
}
.card__sprig--l { left: -34px; transform: scaleX(-1) rotate(6deg); }
.card__sprig--r { right: -34px; transform: rotate(-2deg); }
@media (max-width: 560px) {
  .card__sprig { display: none; }
}
.card__arch {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  height: auto;
  color: var(--line);
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

label, legend {
  display: block;
  font-family: var(--font-utility);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 8px;
}
.req { color: var(--rose); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  outline: none;
  transition: border-color 0.2s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-bottom-color: var(--rose); }
input:focus-visible, textarea:focus-visible, .submit-btn:focus-visible, .btn:focus-visible, .nav__links a:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

fieldset { border: none; padding: 0; margin: 0 0 22px; }
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.radio, .checkbox {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-size: 16px; color: var(--ink);
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.radio input, .checkbox input { accent-color: var(--sage); width: 16px; height: 16px; }
#party-size-field #partySize { max-width: 100px; }

.submit-btn {
  display: block; width: 100%; margin-top: 14px; padding: 16px 20px;
  font-family: var(--font-utility); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cream); background: var(--sage);
  border: none; border-radius: 2px; cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px -10px rgba(75, 95, 69, 0.55);
}
.submit-btn:hover { background: var(--sage-deep); box-shadow: 0 14px 28px -10px rgba(75, 95, 69, 0.6); }
.submit-btn:active { transform: scale(0.99); }
.submit-btn:disabled { background: var(--sage-light); cursor: progress; box-shadow: none; }

.form-status {
  text-align: center; font-family: var(--font-utility); font-size: 13.5px;
  letter-spacing: 0.02em; margin: 18px 0 0; min-height: 18px;
  padding: 0 8px;
}
.form-status[data-state="success"] {
  color: var(--sage-deep);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.form-status[data-state="error"] { color: #A24336; }

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 50px 24px 60px;
  color: var(--sage-light);
}
.footer__logo { width: 90px; margin: 0 auto 12px; opacity: 0.85; }
.footer p {
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--sage-deep);
  margin: 0;
}
