/*
Theme Name: Angelica's Sweet 16
Theme URI: http://angelicas-sweet-16.local/
Author: Family
Description: A glamorous one-page Sweet Sixteen invitation & RSVP theme in black, red and gold. Includes a private RSVP dashboard page template.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: angelicas-sweet-16
*/

/* ============================================================
   Angelica's Sweet 16  ·  black · red · gold
   ============================================================ */

:root {
  --black:      #0b0808;
  --black-soft: #140f0f;
  --panel:      #1a1212;
  --red:        #c0102b;
  --red-bright: #e11d36;
  --red-deep:   #7a0a1c;
  --gold:       #d4af37;
  --gold-light: #f3d27a;
  --gold-soft:  #b9942f;
  --cream:      #f7efe6;
  --ink:        #efe6dc;
  --muted:      #b9a89a;

  --grad-gold: linear-gradient(135deg, #f3d27a 0%, #d4af37 45%, #b9942f 100%);
  --grad-red:  linear-gradient(135deg, #e11d36 0%, #c0102b 55%, #7a0a1c 100%);

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Montserrat", system-ui, sans-serif;

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* subtle radial glow texture over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 50% at 50% -5%, rgba(192,16,43,0.22), transparent 70%),
    radial-gradient(50% 40% at 90% 110%, rgba(212,175,55,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#sparkles {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

section { position: relative; z-index: 2; }

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

/* ---------- shared type ---------- */
.section__kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.9rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 2.6rem;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); font-weight: 300; }

/* ---------- buttons ---------- */
.btn {
  --b: 0.95rem 2.3rem;
  display: inline-block;
  padding: var(--b);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, color .4s;
  will-change: transform;
}
.btn--gold {
  background: var(--grad-gold);
  color: #2a1d05;
  box-shadow: 0 8px 30px rgba(212,175,55,0.35);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(212,175,55,0.55); }
.btn--outline {
  background: transparent;
  color: var(--gold-light);
  border-color: rgba(212,175,55,0.55);
}
.btn--outline:hover { background: rgba(212,175,55,0.12); transform: translateY(-3px); border-color: var(--gold); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s;
}
.nav.is-scrolled {
  background: rgba(11,8,8,0.82);
  backdrop-filter: blur(14px);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  box-shadow: 0 1px 0 rgba(212,175,55,0.18);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__brand span { font-size: 1rem; vertical-align: super; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  transition: color .3s;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--gold-light); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--gold); color: #2a1d05; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--gold-light); transition: transform .35s var(--ease), opacity .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,8,8,0.55) 0%, rgba(11,8,8,0.20) 35%, rgba(11,8,8,0.55) 70%, rgba(11,8,8,0.95) 100%),
    radial-gradient(70% 60% at 50% 45%, transparent 30%, rgba(11,8,8,0.55) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 6rem 1.5rem 0; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.4em;
  font-size: 0.72rem; color: var(--gold-light); margin-bottom: 1.4rem;
}
.hero__name {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4rem, 13vw, 9rem);
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,0.6);
}
.hero__sweet {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: clamp(1.1rem, 3.4vw, 2rem);
  margin: 0.4rem 0 0 0.5em;
  color: var(--ink);
}
.hero__sweet span {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 600;
}
.hero__rule { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold); margin: 1.6rem 0; }
.hero__rule span { display: block; width: clamp(40px, 12vw, 120px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero__rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero__date {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2.4rem;
}
.hero__btn { animation: floatPulse 3.5s ease-in-out infinite; }
@keyframes floatPulse { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-5px);} }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1px solid rgba(212,175,55,0.6); border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold-light); border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0);} 40% { opacity: 1;} 80% { opacity: 0; transform: translateY(16px);} 100% { opacity: 0; } }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown { padding: clamp(4rem, 9vw, 7rem) 1.5rem; text-align: center; }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2.2vw, 1.8rem);
  max-width: 760px; margin: 0 auto;
}
.cd {
  min-width: 0;
  padding: 1.6rem 0.8rem;
  background: linear-gradient(180deg, var(--panel), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.cd::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(212,175,55,0.10), transparent 60%);
}
.cd__num {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cd__label {
  display: block; margin-top: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.66rem; color: var(--muted);
}
.countdown__msg {
  margin-top: 2rem; font-family: var(--serif); font-size: 1.4rem; color: var(--gold-light);
}

/* ============================================================
   CELEBRATION
   ============================================================ */
.celebration {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 3rem);
}
.celebration__img { position: relative; }
.celebration__img img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.celebration__frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(212,175,55,0.6);
  border-radius: 4px; pointer-events: none;
  transform: translate(18px, 18px);
}
.celebration__text .section__kicker,
.celebration__text .section__title { text-align: left; }
.celebration__text .section__title { margin-bottom: 1.6rem; }
.celebration__text p { color: var(--ink); margin-bottom: 1.1rem; max-width: 46ch; }
.celebration__sign { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-light); }
.celebration__text .btn { margin-top: 0.8rem; }

/* ============================================================
   DETAILS
   ============================================================ */
.details { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 3rem); }
.details__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.card {
  background: linear-gradient(180deg, var(--panel), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 18px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,0.5); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.card__icon {
  font-size: 1.7rem; width: 64px; height: 64px; line-height: 64px; margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(212,175,55,0.25), rgba(192,16,43,0.18));
  border: 1px solid rgba(212,175,55,0.4);
}
.card h3 {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.74rem; font-weight: 600; color: var(--gold); margin-bottom: 0.9rem;
}
.card__lead { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 0.4rem; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card__link {
  display: inline-block; margin-top: 1rem;
  color: var(--gold-light); text-decoration: none; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.card__link:hover { border-color: var(--gold-light); }

.swatches { display: flex; gap: 0.7rem; justify-content: center; margin-top: 0.9rem; }
.swatch { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); }
.swatch--black { background: #0b0808; }
.swatch--red { background: var(--grad-red); }
.swatch--gold { background: var(--grad-gold); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 3rem); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.2);
  aspect-ratio: 3/4;
}
.gallery__item--tall { grid-row: span 2; aspect-ratio: 3/5; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter 1s var(--ease);
  filter: saturate(0.96);
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(192,16,43,0.25));
  opacity: 0; transition: opacity .6s;
}
.gallery__item:hover img { transform: scale(1.07); filter: saturate(1.1); }
.gallery__item:hover::after { opacity: 1; }

/* ============================================================
   BANNER BAND (full-bleed parallax)
   ============================================================ */
.band {
  position: relative;
  height: clamp(320px, 60vh, 560px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.band__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 78%; /* feature the sparkling skirt, not a half-face crop */
  background-attachment: fixed;
  transform: scale(1.05);
}
.band__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,8,8,0.85), rgba(11,8,8,0.35) 40%, rgba(11,8,8,0.85)),
    radial-gradient(60% 80% at 50% 50%, transparent, rgba(11,8,8,0.5));
}
.band__quote {
  position: relative; z-index: 2;
  font-family: var(--script);
  font-size: clamp(2.4rem, 7vw, 5rem);
  color: var(--gold-light);
  text-shadow: 0 6px 40px rgba(0,0,0,0.7);
  text-align: center;
}
@media (max-width: 760px) { .band__img { background-attachment: scroll; } }

/* ============================================================
   GIFTS
   ============================================================ */
.gifts {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(192,16,43,0.16), transparent 70%);
}
.gifts__inner {
  max-width: 640px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 22px;
  padding: clamp(2.4rem, 6vw, 3.6rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.gifts__icon { font-size: 2.6rem; margin-bottom: 0.6rem; }
.gifts .section__title { margin-bottom: 1.4rem; }
.gifts__lead { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); margin-bottom: 1rem; }
.gifts__lead em { font-style: italic; color: #fff; }
.gifts p { color: var(--ink); }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  max-width: 720px; margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}
.rsvp__sub { color: var(--muted); margin-top: -1.6rem; margin-bottom: 2.6rem; }
.rsvp__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  text-align: left;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
/* ensure the HTML hidden attribute wins over .field's display:flex */
[hidden] { display: none !important; }
.field__hint { font-size: 0.74rem; color: var(--muted); font-weight: 300;
  letter-spacing: 0; text-transform: none; margin: -0.15rem 0 0.6rem; }
.field label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold-light); margin-bottom: 0.5rem; font-weight: 500;
}
.field label span { color: var(--red-bright); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f635a; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
  background: rgba(255,255,255,0.06);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d4af37' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field select option { background: var(--panel); color: var(--ink); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(225,29,54,0.18); }
.rsvp__actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.rsvp__submit { flex: 1; }
.rsvp__submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.rsvp__clear {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.6rem 0.4rem; transition: color .3s;
}
.rsvp__clear:hover { color: var(--gold-light); }

/* honeypot — hidden from humans, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp__status { grid-column: 1/-1; min-height: 1.4rem; font-size: 0.95rem; text-align: center; }
.rsvp__status.is-error { color: #ff8a9a; }
.rsvp__status.is-success { color: var(--gold-light); font-family: var(--serif); font-size: 1.25rem; }

/* dynamic guest-name inputs */
.guest-names { display: grid; gap: 0.7rem; }
.guest-names .guest-row { position: relative; }
.guest-names input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 10px;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  color: var(--ink);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.guest-names input::placeholder { color: #6f635a; }
.guest-names input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18); background: rgba(255,255,255,0.06);
}
.guest-row__num {
  position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
  width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center;
  font-size: 0.72rem; color: var(--gold-light);
  border: 1px solid rgba(212,175,55,0.4); border-radius: 50%;
}

.rsvp__contact {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin: 1.4rem 0 1rem;
}
.rsvp__contact .btn { --b: 0.8rem 1.6rem; font-size: 0.76rem; }

.rsvp__alt { margin-top: 3.2rem; }
.rsvp__altline { display:block; width: 60px; height:1px; background: rgba(212,175,55,0.5); margin: 0 auto 1.6rem; }
.rsvp__alt p { color: var(--muted); }
.rsvp__alt strong { color: var(--ink); }
.rsvp__phone {
  display: inline-block; margin: 0.4rem 0;
  font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.06em; text-decoration: none;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 3rem;
  border-top: 1px solid rgba(212,175,55,0.15);
  background: var(--black-soft);
}
.footer__name { font-family: var(--script); font-size: 2.6rem; color: var(--gold-light); }
.footer__date { color: var(--muted); letter-spacing: 0.1em; font-size: 0.84rem; margin-top: 0.4rem; }
.footer__rule { display: flex; align-items: center; justify-content: center; gap: 0.8rem; color: var(--gold); margin: 1.4rem 0; }
.footer__rule span { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.footer__rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.footer__love { font-family: var(--serif); font-style: italic; color: var(--muted); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .details__grid { grid-template-columns: repeat(2, 1fr); }
  .celebration { grid-template-columns: 1fr; }
  .celebration__img { max-width: 460px; margin: 0 auto; }
  .celebration__text .section__kicker,
  .celebration__text .section__title { text-align: center; }
  .celebration__text p { margin-left: auto; margin-right: auto; }
  .celebration__text { text-align: center; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; z-index: 60; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    background: rgba(11,8,8,0.97);
    backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.6);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall { grid-row: span 1; aspect-ratio: 3/4; }
}

@media (max-width: 540px) {
  .details__grid { grid-template-columns: 1fr; }
  .rsvp__form { grid-template-columns: 1fr; }
  .countdown { padding-left: 1rem; padding-right: 1rem; }
  .countdown__grid { gap: 0.5rem; }
  .cd { padding: 1rem 0.3rem; border-radius: 12px; }
  .cd__num { font-size: clamp(1.6rem, 9vw, 2.4rem); }
  .cd__label { letter-spacing: 0.12em; font-size: 0.58rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__img { animation: none; transform: none; }
}
