/* =====================================================================
   GOLDEN JUBILEE — 50th Anniversary Website Template
   Style: Luxury Art Deco (champagne + emerald + gold)
   ---------------------------------------------------------------------
   01 Tokens · 02 Reset · 03 Type helpers · 04 Layout & buttons
   05 Deco motifs · 06 Nav · 07 Hero + countdown · 08 About/Stats
   09 Story · 10 Journey/Timeline · 11 Venue/Map · 12 Gallery
   13 Detail cards · 14 RSVP · 15 Contact · 16 Footer
   17 WhatsApp · 18 Reveal · 19 Responsive · 20 Accessibility
   ===================================================================== */

/* ============================ 01. TOKENS ============================ */
:root {
  --paper:    #f6f1e5;   /* champagne ivory (body) */
  --paper-2:  #efe7d5;   /* slightly deeper panel */
  --emerald:  #0e3d2d;   /* deep emerald (hero/footer) */
  --emerald-2:#0a2f22;
  --ink:      #253128;   /* text on paper */
  --ink-soft: #5c6157;
  --gold:     #b78d3c;
  --gold-2:   #cba85f;
  --gold-mid: #cba85f;
  --gold-lt:  #e6cf94;
  --line:     rgba(183, 141, 60, .32);
  --line-lt:  rgba(230, 207, 148, .35);

  --font-display: "Cinzel", Georgia, serif;
  --font-accent:  "Cormorant Garamond", Georgia, serif;
  --font-body:    "Jost", system-ui, sans-serif;

  --radius: 4px;                     /* Deco favours crisp geometry */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================= 02. RESET & BASE ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* faint paper texture */
  background-image: radial-gradient(rgba(183,141,60,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #fff; }

.skip-link { position: fixed; top: -60px; left: 1rem; z-index: 200; background: var(--gold); color: #1c150a; padding: .6rem 1rem; border-radius: 0 0 6px 6px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ====================== 03. TYPOGRAPHY HELPERS ===================== */
.eyebrow {
  font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .42em; font-size: .72rem; font-weight: 500; color: var(--gold);
  display: inline-flex; align-items: center; gap: .8rem;
}
.eyebrow::before { content: "◆"; font-size: .55em; color: var(--gold); }

.section__title {
  font-family: var(--font-display); font-weight: 600; line-height: 1.14;
  letter-spacing: .01em; font-size: clamp(1.8rem, 4.4vw, 3rem); color: var(--emerald);
  margin-top: .9rem;
}
.section__sub { color: var(--ink-soft); max-width: 48ch; margin-top: 1rem; font-size: 1.02rem; }
.lead { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--ink); max-width: 40ch; line-height: 1.5; }

/* ===================== 04. LAYOUT & BUTTONS ====================== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section__head { max-width: 620px; margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .section__sub { margin-inline: auto; }

/* Buttons — Deco outlined + solid gold */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 2.2rem; font-family: var(--font-body); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; font-size: .78rem;
  border: 1px solid var(--gold); position: relative; transition: all .35s var(--ease);
}
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 10px 30px -14px rgba(183,141,60,.9); }
.btn--gold:hover { background: var(--emerald); border-color: var(--emerald); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--emerald); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

/* ======================= 05. DECO MOTIFS ========================= */
/* Ornamental centered rule: line — diamond — line */
.hero__rule { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.5rem auto; }
.hero__rule span { width: clamp(40px, 12vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lt)); }
.hero__rule span:last-child { background: linear-gradient(90deg, var(--gold-lt), transparent); }
.hero__rule i { width: 9px; height: 9px; background: var(--gold-lt); transform: rotate(45deg); }

/* Section-level gold hairline frame used on cards */
.deco-frame { position: relative; }

/* ========================= 06. NAVIGATION ========================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .35s, box-shadow .35s; }
.nav.is-scrolled { background: rgba(14, 61, 45, .96); box-shadow: 0 1px 0 var(--line-lt); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold-lt); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .16em; color: #fff; }
.nav.is-scrolled .brand { color: var(--gold-lt); }

/* On the emerald hero the nav text is light; keep it light until scrolled */
.nav__menu { display: flex; align-items: center; gap: 2.1rem; }
.nav__menu a { color: rgba(255,255,255,.82); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; position: relative; transition: color .25s; }
.nav__menu a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--gold-lt); transition: width .3s var(--ease); }
.nav__menu a:hover { color: #fff; }
.nav__menu a:hover:not(.nav__cta)::after { width: 100%; }
.nav__cta { border: 1px solid var(--gold); color: var(--gold-lt); padding: .5rem 1.2rem; letter-spacing: .16em; transition: all .3s; }
.nav__cta:hover { background: var(--gold); color: #fff; }

.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav__toggle span { width: 26px; height: 1.5px; background: #fff; transition: transform .3s, opacity .3s; }
.nav.is-scrolled .nav__toggle span { background: var(--gold-lt); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== 07. HERO / COUNTDOWN ======================= */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; color: #f4ead0; padding: 120px 0 90px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #12513a, var(--emerald) 55%, var(--emerald-2));
}
.hero__rays { position: absolute; inset: 0; z-index: 0; background: url("images/hero-sunburst.svg") center top/cover no-repeat; opacity: .9; }
.hero__rays::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 42%, transparent, rgba(10,47,34,.55) 100%); }
.hero__inner { position: relative; z-index: 1; }

/* Gold hairline frame around hero content */
.hero .deco-frame { border: 1px solid var(--line-lt); padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem); position: relative; }
.hero .deco-frame::before, .hero .deco-frame::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold-lt);
}
.hero .deco-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.hero .deco-frame::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.hero__pre { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .34em; font-size: .74rem; color: var(--gold-lt); margin-bottom: 1.5rem; }

.hero__monogram { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--gold-lt); font-family: var(--font-display); line-height: 1; }
.hero__initial { font-size: clamp(2.4rem, 8vw, 4.5rem); font-weight: 600; }
.hero__amp { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.6rem, 5vw, 2.8rem); opacity: .85; }

.hero__names { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: clamp(1.5rem, 4.4vw, 2.6rem); letter-spacing: .04em; margin-top: 1rem; }
.hero__title { font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 5vw, 2.6rem); color: var(--gold-lt); margin-top: .3rem; }
.hero__hosted { color: rgba(244,234,208,.78); font-size: .98rem; letter-spacing: .04em; }

/* Countdown as Deco plates */
.countdown { display: flex; align-items: flex-start; justify-content: center; gap: clamp(.5rem, 2.5vw, 1.4rem); margin: 2.2rem auto 1.4rem; }
.countdown__cell { display: flex; flex-direction: column; align-items: center; min-width: clamp(56px, 15vw, 82px); }
.countdown__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 6vw, 3rem); color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__label { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .2em; font-size: .6rem; color: var(--gold-lt); margin-top: .55rem; }
.countdown__sep { color: var(--line-lt); font-size: 1.6rem; line-height: 1; margin-top: .3rem; }

.hero__when { font-family: var(--font-body); letter-spacing: .08em; color: #f4ead0; margin: 1rem 0 2rem; font-size: .95rem; }

.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 1px; height: 46px; background: linear-gradient(var(--gold-lt), transparent); z-index: 2; }
.hero__scroll span { position: absolute; top: 0; left: 50%; width: 6px; height: 6px; margin-left: -3px; background: var(--gold-lt); transform: rotate(45deg); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { top: 0; opacity: 1; } 70% { top: 40px; opacity: 0; } 100% { opacity: 0; } }

/* ========================= 08. ABOUT ============================== */
.about__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.about .lead { margin: 1.5rem auto 0; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.stat { padding: 1.5rem 1rem; border: 1px solid var(--line); position: relative; }
.stat + .stat { } /* individual borders keep the Deco grid feel */
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); color: var(--gold); }
.stat__label { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--ink-soft); margin-top: .4rem; }

/* ========================== 09. STORY ============================= */
.story { background: var(--paper-2); }
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.story__frame { position: relative; padding: 12px; border: 1px solid var(--line); }
.story__frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line-lt); pointer-events: none; }
.story__frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story__text { color: var(--ink-soft); margin-top: 1.1rem; font-size: 1.05rem; }
.pullquote { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--emerald); margin-top: 1.8rem; padding-left: 1.4rem; border-left: 2px solid var(--gold); line-height: 1.45; }

/* ==================== 10. JOURNEY / TIMELINE ====================== */
.timeline { position: relative; max-width: 820px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: var(--line); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 2.6rem 2.4rem; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-item__marker { position: absolute; top: 4px; width: 13px; height: 13px; background: var(--paper); border: 1px solid var(--gold); transform: rotate(45deg); transition: background .3s, box-shadow .3s; }
.tl-item:nth-child(odd) .tl-item__marker { right: -6.5px; }
.tl-item:nth-child(even) .tl-item__marker { left: -6.5px; }
.tl-item:hover .tl-item__marker { background: var(--gold); box-shadow: 0 0 0 5px rgba(183,141,60,.16); }
.tl-item__year { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.3rem; letter-spacing: .04em; }
.tl-item__title { font-family: var(--font-display); font-weight: 600; color: var(--emerald); font-size: 1.1rem; margin: .3rem 0 .4rem; }
.tl-item__desc { color: var(--ink-soft); font-size: .96rem; }

/* ======================== 11. VENUE / MAP ========================= */
.venue__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
.venue__tagline { font-family: var(--font-accent); font-style: italic; font-size: 1.3rem; color: var(--ink); margin-top: 1rem; }
.venue__address { font-style: normal; color: var(--ink-soft); margin-top: 1rem; line-height: 1.7; }
.order { margin: 1.8rem 0; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.order__label { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--gold); margin-bottom: .8rem; }
.order li { display: flex; gap: 1rem; padding: .35rem 0; color: var(--ink); font-size: .97rem; }
.order li b { font-family: var(--font-display); color: var(--emerald); min-width: 84px; font-weight: 600; font-size: .92rem; }
.map-frame { position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); padding: 10px; background: var(--paper-2); }
.map-frame::before { content: ""; position: absolute; inset: 3px; border: 1px solid var(--line-lt); pointer-events: none; z-index: 2; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: sepia(.12) saturate(.9); }
.map-frame__placeholder { position: absolute; inset: 10px; display: grid; place-content: center; text-align: center; gap: .3rem; color: var(--ink-soft); background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(183,141,60,.05) 14px 15px); }
.map-frame__placeholder p { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; }
.map-frame__placeholder small { font-family: var(--font-display); color: var(--emerald); }
.map-frame__diamond { width: 20px; height: 20px; background: var(--gold); transform: rotate(45deg); margin: 0 auto .5rem; }

/* ========================= 12. GALLERY ============================ */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border: 1px solid var(--line); }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(230,207,148,.5); opacity: 0; transition: opacity .4s; z-index: 2; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,47,34,.72)); opacity: 0; transition: opacity .4s; }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; text-align: center; font-family: var(--font-display); letter-spacing: .12em; color: #f4ead0; font-size: .8rem; text-transform: uppercase; transform: translateY(8px); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::before, .gallery__item:hover::after { opacity: 1; }
.gallery__item:hover .gallery__cap { transform: translateY(0); opacity: 1; }

/* ==================== 13. DETAIL CARDS ============================ */
.details { background: var(--paper-2); }
.details__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.75rem, 3.5vw, 2.4rem); position: relative; text-align: center; transition: transform .35s var(--ease), box-shadow .35s; }
.card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line-lt); pointer-events: none; }
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -28px rgba(14,61,45,.5); }
.card__icon { color: var(--gold); font-size: .7rem; display: block; margin-bottom: 1rem; }
.card .eyebrow { justify-content: center; }
.card__title { font-family: var(--font-display); font-weight: 600; color: var(--emerald); font-size: 1.25rem; margin: .6rem 0 .8rem; }
.card__text { color: var(--ink-soft); font-size: .97rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.1rem; }
.chip-row .chip { font-family: var(--font-body); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: .4rem .85rem; border: 1px solid var(--line); color: var(--gold); }
.card .btn { margin-top: 1.3rem; }

/* ========================== 14. RSVP ============================== */
.rsvp__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.rsvp__aside { margin-top: 1.4rem; color: var(--ink-soft); }
.rsvp__aside a { color: var(--gold); border-bottom: 1px solid var(--line); }
.rsvp__form { border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--paper); position: relative; }
.rsvp__form::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line-lt); pointer-events: none; }
.field { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--ink-soft); }
.field__opt { text-transform: none; letter-spacing: normal; color: var(--gold); }
.field input, .field select, .field textarea { background: var(--paper-2); border: 1px solid var(--line); padding: .85rem 1rem; border-radius: var(--radius); transition: border-color .25s, box-shadow .25s; width: 100%; }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #a29a86; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183,141,60,.14); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23b78d3c'%3E%3Cpath d='M7 10L2 4h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field.is-invalid input, .field.is-invalid select { border-color: #b0483a; box-shadow: 0 0 0 3px rgba(176,72,58,.14); }
.field__error { font-size: .76rem; color: #b0483a; min-height: 1em; }
.rsvp__status { margin-top: 1rem; text-align: center; font-family: var(--font-accent); font-style: italic; font-size: 1.15rem; min-height: 1.2em; }
.rsvp__status.is-success { color: var(--emerald); }
.rsvp__status.is-error { color: #b0483a; font-style: normal; font-family: var(--font-body); font-size: .95rem; }

/* ========================= 15. CONTACT ============================ */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
.contact__list { display: grid; gap: 1.2rem; }
.contact__list li { display: grid; gap: .2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.contact__label { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; color: var(--gold); }
.contact__list a { font-family: var(--font-display); color: var(--emerald); transition: color .2s; }
.contact__list a:hover { color: var(--gold); }

/* ========================== 16. FOOTER ============================ */
.footer { position: relative; background: var(--emerald); color: #f4ead0; padding-top: clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.footer__rays { opacity: .5; }
.footer__inner, .footer__bottom { position: relative; z-index: 1; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__mono { font-family: var(--font-display); font-weight: 600; letter-spacing: .18em; font-size: 1.4rem; color: var(--gold-lt); }
.footer__names { font-family: var(--font-display); margin-top: .5rem; color: #fff; }
.footer__tag { font-family: var(--font-accent); font-style: italic; color: rgba(244,234,208,.8); margin-top: .3rem; }
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a { color: rgba(244,234,208,.75); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; transition: color .2s; }
.footer__nav a:hover { color: var(--gold-lt); }
.socials { display: flex; gap: .7rem; flex-wrap: wrap; align-content: start; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-lt); color: var(--gold-lt); transition: all .3s; }
.socials a:hover { background: var(--gold); color: var(--emerald); border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-block: 1.5rem; border-top: 1px solid var(--line-lt); font-size: .82rem; color: rgba(244,234,208,.7); letter-spacing: .04em; }
.footer__credit strong { color: var(--gold-lt); }

/* ==================== 17. FLOATING WHATSAPP ======================= */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 120; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #128c4b; box-shadow: 0 12px 28px -8px rgba(18,140,75,.6); transition: transform .25s var(--ease), box-shadow .25s; }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(18,140,75,.45); animation: waPulse 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }

/* ==================== 18. REVEAL ANIMATIONS ======================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.tl-item, .gallery__item, .details__grid .card, .stat { transition-delay: var(--d, 0s); }

/* ==================== 19. RESPONSIVE ============================== */
@media (max-width: 940px) {
  .story__grid, .venue__grid, .rsvp__grid, .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(6) { grid-column: span 2; }
  /* Timeline collapses to a single left rail */
  .timeline::before { left: 7px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 2.2rem 2.6rem; }
  .tl-item:nth-child(odd) { text-align: left; }
  .tl-item:nth-child(odd) .tl-item__marker, .tl-item:nth-child(even) .tl-item__marker { left: 1px; right: auto; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,47,34,.98); padding: 1rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--line-lt);
    transform: translateY(-120%); transition: transform .4s var(--ease);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { padding: .9rem 0; font-size: .9rem; border-bottom: 1px solid rgba(230,207,148,.14); }
  .nav__menu a:last-child { border-bottom: none; }
  .nav__cta { text-align: center; margin-top: .8rem; padding: .85rem; }
  .stats { grid-template-columns: 1fr; }
  .details__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .countdown__sep { display: none; }
  .countdown { gap: .8rem; flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item:nth-child(1) { grid-column: span 1; }
}

/* ================= 20. ACCESSIBILITY / REDUCED MOTION ============= */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
