/* ==========================================================================
   Ramya & Suraj Wedding Website
   Soft, warm, modern with subtle Indian wedding motifs.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --cream: #fff9f4;
  --cream-deep: #fdf0e8;
  --blush: #f9ddd2;
  --blush-soft: #fbeae2;
  --sage: #b9cbb2;
  --sage-soft: #e8efe4;
  --rose: #96395a;
  --rose-deep: #6e2542;
  --rose-ink: #52182f;
  --marigold: #e09e45;
  --marigold-deep: #a9660f;
  --marigold-soft: #f8e3c4;
  --ink: #43302e;
  --ink-soft: #7d635d;
  --card: #ffffff;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  /* Shape & depth */
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px 22px 22px;
  --radius-arch-inner: 999px 999px 16px 16px;
  --shadow-soft: 0 8px 28px rgba(110, 37, 66, 0.08);
  --shadow-lift: 0 16px 40px rgba(110, 37, 66, 0.14);

  /* Layout */
  --content-max: 1080px;
  --nav-height: 68px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--rose-ink);
}

p {
  margin: 0;
}

a {
  color: var(--rose);
}

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

::selection {
  background: var(--marigold-soft);
  color: var(--rose-ink);
}

:focus-visible {
  outline: 3px solid var(--marigold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--rose-deep);
  color: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  top: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 249, 244, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(150, 57, 90, 0.1);
}

.site-nav {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-monogram {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--rose-ink);
}

.nav-amp {
  font-style: italic;
  color: var(--marigold-deep);
  padding: 0 0.12em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(150, 57, 90, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose-ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bar {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.2s;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out);
}

.nav-toggle-bar::before {
  top: -5px;
}

.nav-toggle-bar::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.nav-menu.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(var(--nav-height) + 8px);
  left: 16px;
  right: 16px;
  padding: 10px;
  background: rgba(255, 252, 249, 0.97);
  border: 1px solid rgba(150, 57, 90, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: var(--rose);
  background: var(--blush-soft);
}

.nav-link[aria-current="true"] {
  color: var(--rose);
  background: var(--blush-soft);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu,
  .nav-menu.is-open {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    gap: 4px;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-link {
    min-height: 44px;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 20px 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(224, 158, 69, 0.13), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(150, 57, 90, 0.1), transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

/* Rangoli-inspired concentric rings, one in each far corner */
.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-rangoli {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1.5px dashed rgba(150, 57, 90, 0.18);
  background:
    radial-gradient(circle,
      transparent 0 118px,
      rgba(224, 158, 69, 0.16) 118px 120px,
      transparent 120px 168px,
      rgba(150, 57, 90, 0.12) 168px 170px,
      transparent 170px 216px,
      rgba(224, 158, 69, 0.12) 216px 218px,
      transparent 218px);
}

.hero-rangoli--left {
  left: -260px;
  top: -220px;
  animation: rangoliSpin 90s linear infinite;
}

.hero-rangoli--right {
  right: -280px;
  bottom: -240px;
  animation: rangoliSpin 110s linear infinite reverse;
}

@keyframes rangoliSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Floating petals / hearts / sparkles (spans injected by JS) */
.hero-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.drift {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  opacity: 0;
  animation: driftFall var(--dur, 14s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

.drift--petal {
  width: var(--size, 14px);
  height: calc(var(--size, 14px) * 1.25);
  background: linear-gradient(160deg, #f7c9b8, #efa38f);
  border-radius: 68% 32% 60% 40% / 55% 60% 40% 45%;
}

.drift--marigold {
  width: var(--size, 12px);
  height: var(--size, 12px);
  background: radial-gradient(circle at 35% 35%, #f5c877, var(--marigold));
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
}

.drift--heart {
  width: var(--size, 11px);
  height: var(--size, 11px);
  background: #dd8ca7;
  transform: rotate(45deg);
  clip-path: none;
}

.drift--heart::before,
.drift--heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.drift--heart::before {
  left: -50%;
}

.drift--heart::after {
  top: -50%;
}

.drift--sparkle {
  width: var(--size, 10px);
  height: var(--size, 10px);
  background: var(--marigold);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

@keyframes driftFall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: var(--peak, 0.85);
  }
  50% {
    transform: translate3d(2.4rem, 48vh, 0) rotate(160deg);
  }
  85% {
    opacity: var(--peak, 0.85);
  }
  100% {
    transform: translate3d(-1.6rem, 106vh, 0) rotate(320deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--marigold-deep);
}

.eyebrow-flower {
  font-size: 0.85em;
  color: var(--rose);
}

.hero-names {
  margin: 22px 0 18px;
  font-size: clamp(3rem, 11vw, 5.8rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
}

.hero-amp {
  font-style: italic;
  font-size: 0.42em;
  color: var(--marigold-deep);
}

@media (min-width: 640px) {
  .hero-names {
    flex-direction: row;
    justify-content: center;
    gap: 0.28em;
  }
}

.hero-dates {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  color: var(--rose);
}

.hero-tagline {
  margin-top: 18px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

/* Arch-framed couple portrait */
.hero-photo {
  margin: 30px auto 0;
  width: clamp(160px, 24vw, 220px);
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(150, 57, 90, 0.08);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-arch-inner);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--rose);
  border: 1.5px solid rgba(150, 57, 90, 0.35);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.scroll-indicator:hover {
  background: #fff;
  border-color: var(--rose);
}

.scroll-indicator-icon {
  width: 20px;
  height: 20px;
  animation: nudge 2.2s var(--ease-out) infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(-2px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section {
  padding: 88px 20px;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 720px;
  text-align: center;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--marigold-deep);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 5.4vw, 2.7rem);
}

.floral-divider {
  width: 130px;
  margin: 20px auto 0;
  color: var(--rose);
  opacity: 0.75;
}

.section-lead {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 auto;
}

.section--celebration {
  background: var(--cream);
}

/* Our Story photo row */
.story-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 26px);
  align-items: end;
  max-width: 560px;
  margin: 48px auto 0;
}

.story-frame {
  margin: 0;
  padding: 7px;
  background: #fff;
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(150, 57, 90, 0.08);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.story-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-arch-inner);
}

.story-cell:nth-child(1) .story-frame {
  transform: rotate(-3deg);
}

.story-cell:nth-child(2) .story-frame {
  transform: translateY(-12px);
}

.story-cell:nth-child(3) .story-frame {
  transform: rotate(3deg);
}

.story-cell .story-frame:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(150, 57, 90, 0.08);
}

/* ==========================================================================
   Events timeline
   ========================================================================== */
.section--events {
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 203, 178, 0.16), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(224, 158, 69, 0.1), transparent 36%),
    var(--cream-deep);
}

.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0 8px;
}

.timeline-line {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 21px;
  width: 3px;
  border-radius: 3px;
  background: rgba(150, 57, 90, 0.14);
  overflow: hidden;
}

.timeline-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--marigold), var(--rose));
  transform-origin: top;
  transform: scaleY(0);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  position: relative;
  padding-left: 62px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 30px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--marigold);
  box-shadow: 0 0 0 4px rgba(224, 158, 69, 0.18);
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--rose);
}

/* Event card */
.event-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(150, 57, 90, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.event-photo {
  margin: -22px -24px 18px;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  overflow: hidden;
}

.event-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.event-card:hover .event-photo img {
  transform: scale(1.04);
}

.event-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.event-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--rose);
  background: linear-gradient(150deg, var(--blush-soft), var(--marigold-soft));
  transition: transform 0.3s var(--ease-out);
}

.event-card:hover .event-icon {
  transform: rotate(-6deg) scale(1.06);
}

.event-icon svg {
  width: 24px;
  height: 24px;
}

.event-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.event-date {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold-deep);
}

.event-time {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  border: 1px solid rgba(122, 148, 113, 0.35);
  color: #3f5738;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.event-title {
  font-size: 1.45rem;
}

.event-desc {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Desktop: alternate cards around a centered line */
@media (min-width: 820px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-list {
    gap: 40px;
  }

  .timeline-item {
    width: calc(50% - 52px);
    padding-left: 0;
  }

  .timeline-item:nth-child(odd) {
    margin-right: auto;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: -63px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -63px;
  }
}

/* ==========================================================================
   Countdown
   ========================================================================== */
.section--countdown {
  background:
    radial-gradient(circle at 14% 18%, rgba(224, 158, 69, 0.12), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(150, 57, 90, 0.1), transparent 36%),
    var(--cream);
}

.countdown-subtitle {
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rose);
}

.countdown-wrap {
  margin-top: 8px;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.countdown[hidden] {
  display: none;
}

.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  max-width: 120px;
  min-width: 0;
  padding: 16px 4px 14px;
  background: var(--card);
  border: 1px solid rgba(150, 57, 90, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.count-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--rose-ink);
  font-variant-numeric: tabular-nums;
}

.count-num.tick {
  animation: numTick 0.5s var(--ease-out);
}

@keyframes numTick {
  0% {
    transform: translateY(-0.35em);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.count-label {
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (min-width: 480px) {
  .count-label {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
  }
}

.count-sep {
  display: none;
  color: var(--marigold);
  font-size: 1.6rem;
  font-weight: 700;
}

@media (min-width: 480px) {
  .count-sep {
    display: block;
  }
}

.countdown-done {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--rose);
  text-align: center;
}

.countdown-done.pop {
  animation: donePop 0.8s var(--ease-out);
}

@keyframes donePop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .countdown {
    gap: 10px 18px;
  }

  .count-unit {
    flex: 0 1 auto;
    max-width: none;
    min-width: 104px;
    padding: 22px 16px 18px;
  }
}

/* ==========================================================================
   RSVP
   ========================================================================== */
.section--rsvp {
  background:
    radial-gradient(circle at 90% 10%, rgba(224, 158, 69, 0.12), transparent 34%),
    radial-gradient(circle at 6% 90%, rgba(185, 203, 178, 0.16), transparent 36%),
    var(--cream-deep);
}

.rsvp-preview-note {
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--marigold-soft);
  border: 1px solid rgba(169, 102, 15, 0.35);
  color: var(--marigold-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.rsvp-card {
  margin-top: 8px;
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid rgba(150, 57, 90, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

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

.name-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 480px) {
  .name-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}

.form-label {
  display: block;
  padding: 0;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--rose-ink);
}

.form-input {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(150, 57, 90, 0.25);
  border-radius: var(--radius-md);
}

.form-input:focus-visible {
  outline: 3px solid var(--marigold-deep);
  outline-offset: 2px;
  border-color: var(--rose);
}

.form-error {
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #a4283d;
}

/* Accept / decline cards */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  border: 1.5px solid rgba(150, 57, 90, 0.25);
  border-radius: var(--radius-md);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.choice-card input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--rose);
  cursor: pointer;
}

.choice-card:hover {
  border-color: var(--rose);
}

.choice-card:has(input:checked) {
  border-color: var(--rose);
  background: var(--blush-soft);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--marigold-deep);
  outline-offset: 2px;
}

.choice-icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--rose);
}

.choice-text {
  font-weight: 700;
  color: var(--ink);
}

/* Guest count stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 52px;
  height: 52px;
  flex: none;
  border: 1.5px solid rgba(150, 57, 90, 0.25);
  border-radius: 50%;
  background: var(--cream);
  color: var(--rose-ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.stepper-btn:hover {
  background: var(--blush-soft);
  border-color: var(--rose);
}

.stepper-input {
  width: 84px;
  min-height: 52px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rose-ink);
  background: var(--cream);
  border: 1.5px solid rgba(150, 57, 90, 0.25);
  border-radius: var(--radius-md);
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Celebration chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid rgba(150, 57, 90, 0.25);
  border-radius: var(--radius-pill);
  background: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.chip input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--rose);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--rose);
}

.chip:has(input:checked) {
  border-color: var(--rose);
  background: var(--blush-soft);
}

.chip:has(input:focus-visible) {
  outline: 3px solid var(--marigold-deep);
  outline-offset: 2px;
}

/* Honeypot: visually removed, still present for bots */
.rsvp-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rsvp-submit {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--rose), var(--rose-deep));
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.2s;
}

.rsvp-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.rsvp-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-status {
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
  color: #a4283d;
  min-height: 1.4em;
}

/* Thank-you state */
.rsvp-done {
  text-align: center;
  padding: 24px 8px;
}

.rsvp-done-icon {
  width: 44px;
  margin: 0 auto 14px;
  color: var(--rose);
}

.rsvp-done-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  color: var(--rose-ink);
}

.rsvp-done-text {
  margin-top: 8px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .rsvp-card {
    padding: 36px 40px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--rose-deep), var(--rose-ink));
  color: #ffe9dc;
  text-align: center;
  padding: 64px 20px 56px;
}

.footer-heart {
  width: 34px;
  margin: 0 auto 16px;
  color: #f3b2c6;
  animation: heartPulse 2.6s ease-in-out infinite;
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.14);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.1);
  }
  48% {
    transform: scale(1);
  }
}

.footer-love {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: #f3b2c6;
}

.footer-names {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  color: #fff;
}

.footer-amp {
  font-style: italic;
  color: var(--marigold);
  padding: 0 0.15em;
}

.footer-dates {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eaa9c0;
}

/* ==========================================================================
   Scroll reveals (only when JS is running and motion is allowed)
   ========================================================================== */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--stagger, 0s);
}

html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero elements cascade in on load */
html.js-anim .hero-eyebrow.reveal {
  --stagger: 0.05s;
}

html.js-anim .hero-names.reveal {
  --stagger: 0.18s;
}

html.js-anim .hero-dates.reveal {
  --stagger: 0.32s;
}

html.js-anim .hero-tagline.reveal {
  --stagger: 0.45s;
}

html.js-anim .hero-photo.reveal {
  --stagger: 0.58s;
}

/* Timeline cards slide in from their own side */
@media (min-width: 820px) {
  html.js-anim .timeline-item.reveal:nth-child(odd) {
    transform: translateX(-34px);
  }

  html.js-anim .timeline-item.reveal:nth-child(even) {
    transform: translateX(34px);
  }

  html.js-anim .timeline-item.reveal.is-visible {
    transform: translateX(0);
  }
}

/* Timeline dots bloom in with their card */
html.js-anim .timeline-item.reveal .timeline-dot {
  transform: scale(0);
  transition: transform 0.5s var(--ease-out) 0.25s;
}

html.js-anim .timeline-item.reveal.is-visible .timeline-dot {
  transform: scale(1);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-petals {
    display: none;
  }

  .hero-rangoli--left,
  .hero-rangoli--right {
    animation: none;
  }

  .scroll-indicator-icon,
  .footer-heart {
    animation: none;
  }

  .timeline-line-fill {
    transform: scaleY(1);
  }
}
