/* =========================================================
   Munashe & Amahle — Wedding Site
   Palette: warm beige / olive green
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cream: #f8f4ec;
  --cream-2: #f2ebdd;
  --sand: #e8dfcd;
  --paper: #fffdf8;
  --olive: #6e7b4f;
  --olive-dark: #4b5735;
  --olive-soft: #9aa681;
  --olive-wash: #eef0e4;
  --ink: #2d3227;
  --muted: #7b7d6f;
  --line: rgba(110, 123, 79, 0.24);
  --line-strong: rgba(110, 123, 79, 0.45);
  --shadow: 0 24px 60px -28px rgba(61, 68, 43, 0.35);
  --shadow-soft: 0 14px 40px -22px rgba(61, 68, 43, 0.3);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.02rem);
  line-height: 1.75;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
figure, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }

::selection { background: var(--olive); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--olive-dark);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: rgba(255, 253, 248, 0.85); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section-title em {
  font-weight: 300;
  font-style: italic;
  color: var(--olive);
}

.lead {
  font-size: clamp(1.02rem, 1vw + 0.8rem, 1.2rem);
  line-height: 1.85;
  color: #4d5346;
}

.section { padding-block: var(--section-y); position: relative; }

.section-heading { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-heading__sub { margin-top: 1rem; color: var(--muted); }

.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--olive-soft);
  margin: 1.6rem 0;
}
.ornament span { width: 44px; height: 1px; background: currentColor; opacity: 0.6; }
.ornament svg { width: 18px; height: 18px; fill: currentColor; }
.ornament--center { justify-content: center; }
.ornament--light { color: rgba(255, 253, 248, 0.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn span[aria-hidden] { font-size: 1rem; transition: transform 0.3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

.btn--light { background: var(--paper); color: var(--olive-dark); }
.btn--light:hover { background: var(--olive); color: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5); }
.btn--outline-light { border-color: rgba(255, 253, 248, 0.65); color: var(--paper); }
.btn--outline-light:hover { background: rgba(255, 253, 248, 0.14); border-color: var(--paper); }
.btn--solid { background: var(--olive); color: #fff; box-shadow: var(--shadow-soft); }
.btn--solid:hover { background: var(--olive-dark); box-shadow: var(--shadow); }
.btn--outline { border-color: var(--line-strong); color: var(--olive-dark); background: transparent; }
.btn--outline:hover { background: var(--olive); color: #fff; border-color: var(--olive); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  padding-block: 0.65rem;
  background: rgba(248, 244, 236, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(45, 50, 39, 0.5);
}
.nav__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: color 0.4s var(--ease);
}
.nav.is-scrolled .nav__brand { color: var(--olive-dark); }

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 8px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav__toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--paper);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.nav.is-scrolled .nav__toggle { border-color: var(--line-strong); }
.nav.is-scrolled .nav__toggle span { background: var(--olive-dark); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: var(--gutter);
  right: var(--gutter);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nav__menu.is-open { display: flex; }
.nav__menu a {
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav__menu a:hover { background: var(--olive-wash); color: var(--olive-dark); }
.nav__menu .nav__cta {
  margin-top: 0.35rem;
  background: var(--olive);
  color: #fff;
  text-align: center;
}
.nav__menu .nav__cta:hover { background: var(--olive-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: heroDrift 24s ease-in-out infinite alternate;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(35, 42, 27, 0.55) 0%, rgba(35, 42, 27, 0.28) 35%, rgba(35, 42, 27, 0.72) 100%),
    radial-gradient(ellipse at center, transparent 25%, rgba(30, 36, 23, 0.45) 100%);
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero__content {
  padding: 8rem var(--gutter) 6rem;
  max-width: 900px;
  animation: heroIn 1.3s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.hero__name:first-child { font-style: italic; font-weight: 300; }
.hero__name:last-child { font-weight: 400; }
.hero__amp {
  font-size: 0.42em;
  font-style: italic;
  color: #d8c9a6;
  margin: 0.15em 0 0.05em;
}
.hero .ornament { justify-content: center; color: rgba(255, 253, 248, 0.65); margin: 0 auto 1.5rem; }
.hero__date {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: 0.12em;
  font-weight: 400;
}
.hero__place {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.82);
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: rgba(255, 253, 248, 0.75);
}
.scroll-cue__line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(255, 253, 248, 0.85));
  animation: cuePulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cuePulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Countdown ---------- */
.countdown {
  background: var(--olive-dark);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.countdown__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.countdown__intro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
}
.countdown__intro h2 em { color: #d8c9a6; font-weight: 300; }
.countdown__sub { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; margin-top: 0.7rem; color: rgba(255, 253, 248, 0.7); }
.countdown__clock { display: flex; gap: clamp(0.6rem, 3vw, 2rem); }
.count {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(62px, 13vw, 96px);
  padding: 0.9rem 0.4rem;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.04);
}
.count__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count__label {
  margin-top: 0.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.65);
}

/* ---------- Story ---------- */
.story { background: var(--cream); }
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.story__media { position: relative; padding: 0 2.5rem 2.5rem 0; }
.story__photo { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.story__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story__photo:hover img { transform: scale(1.05); }
.story__photo--main { aspect-ratio: 4 / 4.6; }
.story__photo--inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 7px solid var(--cream);
  z-index: 2;
}
.story__seal {
  position: absolute;
  left: -1rem;
  bottom: -1.2rem;
  z-index: 3;
  width: 118px;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--olive);
  color: var(--paper);
  text-align: center;
  box-shadow: var(--shadow);
}
.story__seal span { font-size: 0.55rem; letter-spacing: 0.22em; }
.story__seal strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1.1; }

.story__copy .lead { margin: 1.6rem 0 1.1rem; }
.story__copy > p:not(.lead):not(.eyebrow) { color: var(--muted); }
.timeline { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline__dot {
  width: 9px;
  height: 9px;
  margin-top: 0.55rem;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: var(--cream);
  position: relative;
}
.timeline__dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--olive);
}
.timeline__item h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.timeline__item p { font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- Details ---------- */
.details { background: var(--cream-2); }
.schedule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule__item {
  background: var(--paper);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
  transition: background 0.35s ease;
}
.schedule__item:hover { background: var(--olive-wash); }
.schedule__time {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--olive);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.schedule__item h3 { margin-top: 0.8rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.schedule__item p { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }

.venue {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.venue__image { min-height: 260px; overflow: hidden; }
.venue__image img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; transition: transform 1.2s var(--ease); }
.venue:hover .venue__image img { transform: scale(1.05); }
.venue__body { padding: clamp(2rem, 4vw, 3.5rem); }
.venue__body h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.1; }
.venue__address { color: var(--olive); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.5rem; }
.venue__note { margin-top: 1.4rem; color: var(--muted); max-width: 48ch; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--olive);
  color: var(--olive-dark);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: gap 0.3s var(--ease), color 0.3s ease;
}
.link-arrow:hover { gap: 0.9rem; color: var(--olive); }

.dress-note {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
}
.dress-note svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--olive); stroke-width: 1.3; }
.dress-note strong { color: var(--ink); font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
.gallery__tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--sand);
}
.gallery__tile--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.5s ease;
}
.gallery__tile:hover img { transform: scale(1.06); filter: brightness(0.82); }
.gallery__zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--paper);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__tile:hover .gallery__zoom,
.gallery__tile:focus-visible .gallery__zoom { opacity: 1; transform: scale(1); }

/* ---------- RSVP ---------- */
.rsvp { background: var(--cream-2); }
.rsvp__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.rsvp__aside { position: sticky; top: 110px; }
.rsvp__aside .lead { margin: 1.6rem 0 1rem; max-width: 40ch; }
.rsvp__deadline { font-size: 0.92rem; color: var(--muted); }
.rsvp__deadline strong { color: var(--olive-dark); font-weight: 500; }
.rsvp__notes { margin-top: 2rem; border-top: 1px solid var(--line); }
.rsvp__notes li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.rsvp__notes li::before { content: "✦"; position: absolute; left: 0; color: var(--olive); font-size: 0.7rem; top: 1rem; }
.rsvp__notes a { color: var(--olive-dark); border-bottom: 1px solid var(--line-strong); }

.rsvp__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.form__row { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.form__row[hidden] { display: none; }
.field { margin-bottom: 1.3rem; }
.field label,
.field legend {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--olive-dark);
}
.field label span[aria-hidden] { color: var(--olive); }
.field .optional { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 300; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #a6a89b; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(110, 123, 79, 0.12);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #a2473b; }

.field--radio { border: 0; padding: 0; margin: 0 0 1.4rem; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.choice { position: relative; margin: 0; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 0.6rem;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: all 0.28s var(--ease);
}
.choice input:checked + span {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.choice input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 3px; }
.choice:hover span { border-color: var(--olive); }

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

.form__error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #fbf0ed;
  border-left: 3px solid #a2473b;
  color: #8a3b31;
  font-size: 0.85rem;
}

.btn--submit { width: 100%; position: relative; }
.btn__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn--submit.is-loading .btn__spinner { display: block; }
.btn--submit.is-loading .btn__label { opacity: 0.75; }
.btn--submit:disabled { cursor: not-allowed; opacity: 0.8; transform: none; }

.form__fineprint { margin-top: 0.9rem; text-align: center; font-size: 0.75rem; color: var(--muted); }

.success { text-align: center; padding: clamp(1rem, 4vw, 3rem) 0; }
.success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--olive-wash);
  border: 1px solid var(--line-strong);
}
.success__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--olive); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { font-family: var(--serif); font-size: 2.8rem; font-weight: 400; color: var(--olive-dark); }
.success p { margin: 0.8rem auto 2rem; max-width: 38ch; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.faq__intro p:last-child { margin-top: 1.4rem; color: var(--muted); }
.faq__intro a { color: var(--olive-dark); border-bottom: 1px solid var(--line-strong); }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  position: relative;
  padding: 1.4rem 2.5rem 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--olive); }
.faq__list summary span {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
}
.faq__list summary span::before,
.faq__list summary span::after {
  content: "";
  position: absolute;
  background: var(--olive);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.faq__list summary span::before { top: 6px; left: 0; width: 14px; height: 1px; }
.faq__list summary span::after { left: 6px; top: 0; width: 1px; height: 14px; }
.faq__list details[open] summary span::after { transform: rotate(90deg); opacity: 0; }
.faq__list details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--olive-dark);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.footer__names { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; }
.footer__names span { font-style: italic; color: #d8c9a6; }
.footer__date { margin-top: 1rem; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255, 253, 248, 0.75); }
.footer .ornament { margin: 1.8rem auto; }
.footer__love { font-size: 0.8rem; color: rgba(255, 253, 248, 0.6); }
.footer__top {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8c9a6;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.footer__top:hover { border-color: #d8c9a6; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 5rem);
  border: 0;
  background: rgba(28, 33, 22, 0.96);
  color: var(--paper);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(28, 33, 22, 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(100%, 1100px); text-align: center; }
.lightbox img {
  max-height: 72dvh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.lightbox figcaption { margin-top: 1.2rem; font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: #e3d8bd; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: 50%;
  color: var(--paper);
  font-size: 1.8rem;
  line-height: 1;
  transition: background 0.25s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 253, 248, 0.2); }
.lightbox__close { top: 1.2rem; right: 1.2rem; font-size: 2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 2rem); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .count { min-width: 90px; }
}

@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav__menu a { padding: 0.5rem 0; color: var(--paper); white-space: nowrap; }
  .nav.is-scrolled .nav__menu a { color: var(--ink); }
  .nav__menu a:hover { background: transparent; color: #d8c9a6; }
  .nav.is-scrolled .nav__menu a:hover { color: var(--olive); }
  .nav__menu .nav__cta {
    margin: 0;
    padding: 0.7rem 1.4rem;
    background: transparent;
    border: 1px solid rgba(255, 253, 248, 0.6);
    text-align: center;
  }
  .nav.is-scrolled .nav__menu .nav__cta { background: var(--olive); border-color: var(--olive); color: #fff; }
  .nav__menu .nav__cta:hover { background: var(--paper); color: var(--olive-dark); border-color: var(--paper); }
  .nav.is-scrolled .nav__menu .nav__cta:hover { background: var(--olive-dark); color: #fff; }

  .story__grid { grid-template-columns: 1fr 1fr; }
  .story__media { padding-right: 3rem; padding-bottom: 3rem; }
  .schedule { grid-template-columns: repeat(3, 1fr); }
  .venue { grid-template-columns: 1fr 1fr; }
  .venue__image, .venue__image img { min-height: 400px; }
  .rsvp__grid { grid-template-columns: 0.85fr 1.15fr; }
  .faq__grid { grid-template-columns: 0.85fr 1.15fr; }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__tile { grid-column: span 2; aspect-ratio: 4 / 3; }
  .gallery__tile--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}

@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(6, 1fr); }
  .gallery__tile { grid-column: span 2; aspect-ratio: 3 / 4; }
  .gallery__tile--wide { grid-column: span 3; aspect-ratio: 3 / 2; }
  .countdown__clock { gap: 1rem; }
}

@media (max-width: 400px) {
  .count { min-width: 56px; padding-inline: 0.25rem; }
  .choice-group { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
