/* ==========================================================================
   Divya & Kabir — Multi-Event Indian Wedding Website
   Marigold & magenta jewel-tone palette on a warm ivory base.
   ========================================================================== */

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

:root {
  --ivory: #fdf6ea;
  --ivory-deep: #f8ecd4;
  --cream: #fffaf0;
  --marigold: #f0961e;
  --marigold-deep: #d97706;
  --magenta: #c81763;
  --magenta-deep: #8f0f47;
  --gold: #c98a2c;
  --gold-light: #e6b94d;
  --ink: #3a1a24;
  --ink-soft: #5c3040;
  --muted: #7a5a63;
  --white: #fff;
  --serif: "Yeseva One", Georgia, "Times New Roman", serif;
  --sans: "Mukta", "Helvetica Neue", Arial, sans-serif;
  --header-height: 84px;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  color: var(--magenta-deep);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.container-narrow {
  max-width: 780px;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--marigold), var(--magenta));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(200, 23, 99, 0.28);
}

.btn-gold:hover, .btn-gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(200, 23, 99, 0.38);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.ornament-divider-img {
  display: block;
  margin: 0 auto 2.5rem;
  height: 24px;
  width: auto;
  opacity: 0.9;
}

.ornament-divider-footer {
  margin: 1.5rem auto 1rem;
}

/* ----- Envelope-Open Intro ----- */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #7a0f49 0%, #4a0a2e 60%, #2b0619 100%);
  overflow: hidden;
}

/* When JS hasn't (or can't) run, this stays a plain in-flow block sitting
   above the header/hero in normal document flow, so the page is still
   fully scrollable and usable with no JS at all. JS immediately promotes
   it to a fixed full-screen overlay via .js-active on <html>. */
html:not(.js-active) .envelope-overlay {
  position: relative;
  min-height: 100vh;
}

.envelope-overlay.is-dismissed {
  display: none;
}

.envelope-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240, 150, 30, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

.envelope-scene {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.envelope-kicker {
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
}

.envelope {
  position: relative;
  width: min(320px, 84vw);
  height: 210px;
  perspective: 900px;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--magenta) 0%, var(--magenta-deep) 100%);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.envelope-card {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8px;
  top: 18px;
  background: var(--cream);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transform-origin: center bottom;
  z-index: 1;
}

.envelope-card-monogram {
  margin-bottom: 0.35rem;
}

.envelope-card-names {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--magenta-deep);
  margin: 0;
}

.envelope-card-names .amp {
  color: var(--marigold-deep);
}

.envelope-card-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 600;
}

.envelope-card-venue {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-left: 160px solid transparent;
  border-right: 160px solid transparent;
  border-top: 105px solid var(--magenta-deep);
  transform-origin: top center;
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.envelope-seal {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 64px;
  height: 64px;
  z-index: 4;
  pointer-events: none;
}

.envelope-seal img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.envelope-tap {
  background: transparent;
  border: 1.5px solid var(--gold-light);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  animation: envelopePulse 2.2s ease-in-out infinite;
}

.envelope-tap:hover, .envelope-tap:focus-visible {
  background: rgba(230, 185, 77, 0.12);
}

@keyframes envelopePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 185, 77, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(230, 185, 77, 0); }
}

.envelope-skip {
  color: rgba(255, 250, 240, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.envelope-skip:hover, .envelope-skip:focus-visible {
  color: var(--gold-light);
}

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(201, 138, 44, 0.35);
}

/* The translucent blur lives on a pseudo-element rather than on
   .site-header directly. backdrop-filter/filter/transform on an element
   creates a new containing block for position:fixed descendants — since
   #primaryNav becomes position:fixed on mobile, putting the filter on
   .site-header itself would trap the nav's fixed positioning inside the
   (short) header box instead of the viewport, collapsing it to a sliver
   and letting hero content bleed through underneath. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(253, 246, 234, 0.92);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.brand-mono {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--marigold), var(--magenta));
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-names {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--magenta-deep);
}

.brand-names em {
  font-style: normal;
  color: var(--marigold-deep);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.primary-nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
}

.primary-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover, .primary-nav a:focus-visible {
  color: var(--magenta);
  border-color: var(--marigold);
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1.5px solid rgba(201, 138, 44, 0.5);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--magenta);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--ink);
  overflow: hidden;
  padding: 6rem 1.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 10, 32, 0.55) 0%, rgba(58, 10, 32, 0.35) 40%, rgba(58, 10, 32, 0.78) 100%);
}

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

.eyebrow {
  color: var(--gold-light);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-names {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  color: var(--white);
  line-height: 1.15;
}

.hero-names .amp {
  color: var(--marigold);
}

.hero-garland {
  display: block;
  margin: 1.5rem auto;
  width: 220px;
  height: auto;
}

.hero-date {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.hero-venue {
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  color: rgba(255, 250, 240, 0.85);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 1.3rem;
  z-index: 2;
  animation: floatDown 2.4s ease-in-out infinite;
}

@keyframes floatDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ----- Sections (general) ----- */
.section {
  padding: 5.5rem 0;
  background: var(--ivory);
}

.section-tinted {
  background: var(--ivory-deep);
}

.section-kicker {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--marigold-deep);
  margin-bottom: 0.65rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--magenta-deep);
  margin-bottom: 1.5rem;
}

.events-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.25rem;
  color: var(--muted);
}

/* ----- Our Story ----- */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.story-photo {
  position: relative;
  margin: 0;
}

.story-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--white);
  box-shadow: 0 16px 36px rgba(200, 23, 99, 0.18);
}

.paisley-corner {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 60px;
  opacity: 0.9;
}

.story-beat {
  padding: 1.1rem 0 1.1rem 1.5rem;
  border-left: 3px solid var(--gold);
  margin-bottom: 1.25rem;
  position: relative;
}

.story-beat:last-child {
  margin-bottom: 0;
}

.story-year {
  display: inline-block;
  font-family: var(--serif);
  color: var(--marigold-deep);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.story-beat h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.story-beat p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ----- Guest View Switcher ----- */
.guest-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.5rem;
  background: var(--cream);
  border: 1.5px solid rgba(201, 138, 44, 0.4);
  border-radius: 999px;
  max-width: 620px;
  text-align: center;
}

.guest-switcher-rsvp {
  margin-bottom: 2rem;
}

.guest-switcher label {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--magenta-deep);
}

.guest-switcher select {
  width: auto;
  min-width: 160px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.guest-switcher-note {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* ----- Events Swiper ----- */
.events-swiper {
  padding: 0.5rem 0.25rem 3rem;
}

.event-slide {
  height: auto;
}

.event-slide[data-hidden-guest="true"] {
  display: none;
}

.event-card {
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(143, 15, 71, 0.14);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-body {
  padding: 1.5rem 1.6rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--marigold-deep);
  margin-bottom: 0.4rem;
}

.event-card-body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.event-when, .event-where {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.event-dress {
  font-size: 0.9rem;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.event-dress span {
  font-weight: 700;
  color: var(--magenta-deep);
}

.event-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0;
}

.events-swiper .swiper-pagination-bullet {
  background: var(--magenta);
  opacity: 0.35;
}

.events-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--marigold-deep);
}

.events-swiper .swiper-button-prev,
.events-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  color: var(--magenta-deep);
  background: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(143, 15, 71, 0.18);
  /* Event cards vary in height (photo + variable-length copy), so
     vertically centering the nav arrows on the whole swiper container
     (Swiper's default) can land them over the card's title/text instead
     of the photo. Anchor them to the bottom, level with the pagination
     dots, so they never overlap card copy at any card height/breakpoint. */
  top: auto;
  bottom: 4px;
  transform: none;
}

.events-swiper .swiper-button-prev::after,
.events-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
  font-size: 1.05rem;
}

/* ----- Gallery Swiper ----- */
.gallery-swiper {
  padding: 0.5rem 0.25rem 3rem;
}

.gallery-slide {
  border-radius: 12px;
  overflow: hidden;
}

.gallery-slide a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-slide a:hover img,
.gallery-slide a:focus-visible img {
  transform: scale(1.06);
}

.gallery-swiper .swiper-pagination-bullet {
  background: var(--magenta);
  opacity: 0.35;
}

.gallery-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--marigold-deep);
}

/* ----- Travel ----- */
.travel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.travel-copy h3 {
  font-size: 1.3rem;
  color: var(--magenta-deep);
  margin-bottom: 0.75rem;
}

.travel-copy h3:not(:first-child) {
  margin-top: 1.75rem;
}

.travel-copy p {
  color: var(--ink-soft);
}

.travel-list {
  list-style: none;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.travel-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.travel-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--marigold-deep);
  font-size: 0.85rem;
}

.travel-figure {
  margin: 0;
}

.travel-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--white);
  box-shadow: 0 16px 36px rgba(200, 23, 99, 0.16);
}

.travel-figure figcaption {
  margin-top: 1rem;
  font-family: var(--serif);
  color: var(--magenta-deep);
  font-size: 1.05rem;
  text-align: center;
}

/* ----- RSVP ----- */
.rsvp-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: var(--cream);
  padding: 2.25rem;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(143, 15, 71, 0.12);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--magenta-deep);
}

.form-row label span {
  color: var(--marigold-deep);
  margin-left: 0.15rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid rgba(201, 138, 44, 0.45);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--magenta);
  outline-offset: 1px;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-fieldset legend {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--magenta-deep);
  padding: 0;
  margin-bottom: 0.6rem;
}

.event-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.event-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: var(--white);
  border: 1.5px solid rgba(201, 138, 44, 0.3);
  border-radius: 8px;
  font-size: 0.94rem;
  cursor: pointer;
}

.event-toggle input {
  width: auto;
  min-width: 0;
  flex-shrink: 0;
  accent-color: var(--magenta);
}

.event-toggle[data-hidden-guest="true"] {
  display: none;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.rsvp-submit {
  align-self: center;
  margin-top: 0.5rem;
}

.rsvp-thankyou {
  text-align: center;
  color: var(--magenta-deep);
  font-weight: 700;
  background: rgba(240, 150, 30, 0.12);
  border: 1.5px solid rgba(201, 138, 44, 0.4);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem 0 0;
}

/* ----- FAQs ----- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--cream);
  border: 1.5px solid rgba(201, 138, 44, 0.3);
  border-radius: 10px;
  padding: 1rem 1.35rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--magenta-deep);
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  color: var(--marigold-deep);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 250, 240, 0.85);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-mono {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--marigold), var(--magenta));
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-names {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-date {
  font-size: 0.95rem;
  color: rgba(255, 250, 240, 0.7);
  margin-bottom: 0;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 250, 240, 0.55);
  margin: 0;
}

/* ----- GSAP scroll-reveal base state ----- */
.reveal-up {
  opacity: 1;
}

html.js-active .reveal-up {
  opacity: 0;
  transform: translateY(28px);
}

/* ----- GLightbox tweak to fit warm palette ----- */
.gscrollbar-fixer {
  overflow: hidden !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-photo {
    max-width: 340px;
    margin: 0 auto;
  }

  .travel-grid {
    grid-template-columns: 1fr;
  }

  .travel-figure {
    order: -1;
  }
}

@media (max-width: 860px) {
  .primary-nav {
    /* Mobile nav menu: fixed full-screen overlay below the header.
       Anchored with top = header height so it starts right under the
       sticky header and always fully covers the remaining viewport —
       no hero text can bleed through beneath it. */
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 190;
    background: var(--ivory);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: 3rem 1.5rem 3rem;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }

  .primary-nav ul a {
    font-size: 1.05rem;
  }

  .nav-cta {
    padding: 0.85rem 2.25rem;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    padding: 0 1.1rem;
  }

  .brand-names {
    font-size: 0.95rem;
  }

  /* Reduce vertical section padding on narrow viewports so pages don't
     feel excessively tall on phones. */
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: 88vh;
    padding: 4rem 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .rsvp-form {
    padding: 1.5rem 1.25rem;
  }

  .guest-switcher {
    padding: 0.85rem 1.15rem;
  }

  .event-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .hero-date {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .envelope {
    height: 190px;
  }

  .envelope-flap {
    border-left-width: 140px;
    border-right-width: 140px;
    border-top-width: 92px;
  }

  .envelope-seal {
    top: 64px;
    width: 54px;
    height: 54px;
  }
}
