/* ═══════════════════════════════════════════════════════════════
   EVENTO STORIES — WEDDING WEBSITE STYLESHEET
   ───────────────────────────────────────────────────────────────
   HOW THIS FILE IS ORGANISED (in order):

    1.  DESIGN TOKENS       — all colours, fonts, spacing in one place
    2.  RESET & BASE        — browser default fixes
    3.  UTILITY CLASSES     — reusable helpers used across sections
    4.  SCROLL ANIMATIONS   — fade-in effect when elements come into view
    5.  PAGE LOADER         — the "Evento Stories" screen before the site appears
    6.  NAVIGATION          — top menu bar
    7.  HERO                — the big full-screen opening section
    8.  COUNTDOWN TIMER     — days/hours/minutes/seconds ticker
    9.  EVENT DETAILS       — date, venue, dress code cards
   10.  OUR STORY / TIMELINE — alternating photo + text story section
   11.  GALLERY             — photo grid + lightbox popup
   12.  LOCATION / MAP      — venue info + embedded Google Map
   13.  RSVP FORM           — the response form
   14.  FOOTER              — closing message and credits
   15.  RESPONSIVE          — adjustments for tablet and mobile screens

   TIP: Use Ctrl+F (or Cmd+F on Mac) and search for the section
   name (e.g. "HERO" or "FOOTER") to jump straight to it.
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────
   These are the master settings for the whole site.
   Change a value here and it updates EVERYWHERE automatically.
   You should only need to edit THIS section to restyle the site.
═══════════════════════════════════════════════════════════════ */
:root {

  /* ── BACKGROUND COLOURS ──────────────────────────────────────
     Three shades of warm white used as page backgrounds.
     bg   = main page background (lightest)
     bg-2 = slightly darker, used for alternating sections
     bg-3 = darkest white, used for placeholder cards/gallery    */
  --clr-bg:          #0a0a0a;
  --clr-bg-2:        #111111;
  --clr-bg-3:        #1a1a1a;

  /* ── SURFACE / CARD COLOURS ──────────────────────────────────
     Semi-transparent warm tint used on card and form backgrounds.
     surface   = very subtle tint (for cards)
     surface-2 = slightly stronger tint (for hovered/focused cards) */
  --clr-surface:     rgba(201,169,110,0.06);
  --clr-surface-2:   rgba(201,169,110,0.12);

  /* ── GOLD ACCENT COLOURS ─────────────────────────────────────
     The main accent colour family — used on labels, icons,
     buttons, borders, and decorative elements.
     gold       = main gold (buttons, labels, icons)
     gold-light = slightly brighter gold (hover states)
     gold-pale  = dark warm brown (used for headings, couple name) */
  --clr-gold:        #c9a96e;
  --clr-gold-light:  #e0c080;
  --clr-gold-pale:   #f0ddb0;

  /* ── TEXT COLOURS ────────────────────────────────────────────
     ivory      = darkest text — used for big headings and titles
     text       = standard body text (slightly lighter than ivory)
     text-muted = for captions, labels, descriptions            */
  --clr-ivory:       #f5efe0;
  --clr-text:        #d4c8b0;
  --clr-text-muted:  #8a7d6a;

  /* ── BORDER COLOURS ──────────────────────────────────────────
     Subtle gold-tinted lines used to outline cards and sections.
     border   = more visible border (cards, buttons)
     border-2 = very faint border (section dividers, nav line)  */
  --clr-border:      rgba(201,169,110,0.25);
  --clr-border-2:    rgba(201,169,110,0.1);


  /* ── FONTS ───────────────────────────────────────────────────
     Three fonts are loaded from Google Fonts (see index.html).
     display = elegant serif — used for section titles, dates
     script  = flowing handwriting — used for couple names only
     body    = clean modern font — used for all regular text    */
  --font-display:    'Cormorant Garamond', Georgia, serif;
  --font-script:     'Great Vibes', cursive;
  --font-body:       'Jost', system-ui, sans-serif;


  /* ── SPACING ─────────────────────────────────────────────────
     Consistent spacing steps used for padding and gaps.
     xs = tiny gap (0.5rem = 8px)
     sm = small  (1rem  = 16px)
     md = medium (2rem  = 32px)
     lg = large  (4rem  = 64px)
     xl = extra large (6rem = 96px)
     2xl= huge, used for hero top padding (10rem = 160px)       */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;


  /* ── BORDER RADIUS ───────────────────────────────────────────
     How rounded the corners of cards/buttons are.
     sm = very subtle rounding (buttons, input fields)
     md = moderate rounding (cards)
     lg = large rounding (location panel)                       */
  --radius-sm:       4px;
  --radius-md:       12px;
  --radius-lg:       24px;

  /* ── LAYOUT ──────────────────────────────────────────────────
     The maximum width content can stretch to on wide screens.
     Increase this number to make the content area wider.       */
  --max-width:       1200px;


  /* ── NAV HEIGHT ──────────────────────────────────────────────
     Height of the fixed navigation bar.
     The hero right panel uses this as padding-top so the photo
     starts exactly below the nav instead of sliding behind it.  */
  --nav-height: 68px;

  /* ── ANIMATION SPEEDS ────────────────────────────────────────
     Controls how fast transitions and hover effects feel.
     ease-luxury  = the custom easing curve (smooth deceleration)
     ease-bounce  = slight overshoot, used for pop-in effects
     transition-fast = 0.2s — used for quick hovers
     transition-med  = 0.5s — used for menus and cards
     transition-slow = 0.8s — used for page-level reveals       */
  --ease-luxury:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-luxury);
  --transition-med:  0.5s var(--ease-luxury);
  --transition-slow: 0.8s var(--ease-luxury);
}


/* ═══════════════════════════════════════════════════════════════
   2. RESET & BASE
   ───────────────────────────────────────────────────────────────
   Removes browser inconsistencies (default margins, paddings)
   and sets the global defaults for the page.
   You rarely need to edit this section.
═══════════════════════════════════════════════════════════════ */

/* Remove default margin/padding from every element */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;      /* Smooth scrolling when clicking nav links */
  font-size: 16px;              /* Base font size — rem units scale from this */
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 300;             /* Light weight for elegance */
  line-height: 1.7;             /* Comfortable reading line spacing */
  overflow-x: hidden;           /* Prevents horizontal scrollbar from animations */
}

/* Prevents the page from scrolling while the loader is showing */
body.loading {
  overflow: hidden;
}

/* Make images responsive by default */
img { display: block; max-width: 100%; height: auto; }

/* Remove underlines from all links */
a { color: inherit; text-decoration: none; }

/* Remove bullet points from all lists */
ul { list-style: none; }

/* Reset button appearance so we can style from scratch */
button { cursor: pointer; background: none; border: none; font: inherit; }


/* ═══════════════════════════════════════════════════════════════
   3. UTILITY CLASSES
   ───────────────────────────────────────────────────────────────
   Small reusable classes used across many sections.
═══════════════════════════════════════════════════════════════ */

/* Centres content and limits it to max-width with side padding */
.container {
  width: min(var(--max-width), 100% - 2 * var(--space-md));
  margin-inline: auto;
}

/* The small gold uppercase label above section titles
   e.g. "Save the Date", "Captured Moments"
   To change the gold colour, update --clr-gold in tokens above */
.section__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;       /* Wide letter-spacing for elegance */
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--space-sm);
}

/* The large heading used at the top of each section
   e.g. "Our Story", "The Gallery", "Event Details"
   clamp(min, preferred, max) makes the font size scale with screen width */
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--clr-ivory);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════════════
   4. SCROLL ANIMATIONS
   ───────────────────────────────────────────────────────────────
   Elements with class "reveal" start invisible and slide up into
   view as the user scrolls down. JavaScript adds "visible" when
   the element enters the screen.
   To make it faster/slower: change the 0.9s values below.
   To remove the slide effect: change translateY(40px) to translateY(0).
═══════════════════════════════════════════════════════════════ */

/* Starting state: invisible and shifted 40px down */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-luxury), transform 0.9s var(--ease-luxury);
  transition-delay: var(--delay, 0s); /* Individual elements can set --delay to stagger */
}

/* End state: fully visible and in position */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   5. PAGE LOADER
   ───────────────────────────────────────────────────────────────
   The full-screen overlay that shows "Evento Stories" while
   the page and content.json are loading.
   It fades out automatically after ~1.4 seconds.
   To change the loader text: edit "brand" in content.json.
   To change how long it shows: edit the setTimeout in main.js.
═══════════════════════════════════════════════════════════════ */

/* Full-screen white overlay sitting on top of everything */
.loader {
  position: fixed;
  inset: 0;                              /* Covers the full viewport */
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;                         /* Must be highest z-index on the page */
  transition: opacity 0.8s var(--ease-luxury), visibility 0.8s;
}

/* Once JavaScript adds "hidden", the loader fades out */
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Centres the logo, ornament, and line */
.loader__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* The pulsing star symbol above the brand name */
.loader__ornament {
  font-size: 1.5rem;
  color: var(--clr-gold);
  animation: ornamentPulse 1.5s ease-in-out infinite;
}

/* The brand name text shown in the loader */
.loader__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--clr-gold-pale);
}

/* The animated gold line that sweeps left to right */
.loader__line {
  width: 60px;
  height: 1px;
  background: var(--clr-gold);
  transform-origin: left;
  animation: loaderLine 1.8s var(--ease-luxury) infinite;
}

/* Ornament: fades and scales up then back down */
@keyframes ornamentPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

/* Line: grows from left then shrinks */
@keyframes loaderLine {
  0%   { transform: scaleX(0); opacity: 0; }
  50%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; transform-origin: right; }
}


/* ═══════════════════════════════════════════════════════════════
   6. NAVIGATION
   ───────────────────────────────────────────────────────────────
   The top menu bar with logo on the left and links on the right.
   Starts transparent, gains a frosted-glass background after
   the user scrolls past 60px.
   To change the logo text: edit "brand" in content.json.
   To change nav link colours: update --clr-text-muted and --clr-gold.
═══════════════════════════════════════════════════════════════ */

/* The nav bar — fixed to the top of the screen at all times */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space-md);
  /* Transparent black — readable over the dark hero overlay */
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition-med), backdrop-filter var(--transition-med), padding var(--transition-med), box-shadow var(--transition-med);
}

/* After scrolling down: switches to frosted white as page content is white */
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.9rem var(--space-md);
  border-bottom: 1px solid var(--clr-border-2);
  box-shadow: 0 4px 24px rgba(100,70,30,0.1);
}

/* The row of navigation links on the right (desktop layout) */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Logo: white on dark hero, switches to gold when scrolled */
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(240,221,176,0.95);         /* Warm gold-white over dark hero */
  transition: color var(--transition-med);
}

.nav.scrolled .nav__logo {
  color: var(--clr-gold-light);          /* Gold once page scrolled */
}

/* Nav links: white on dark hero */
.nav__link {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212,200,176,0.8);          /* Soft warm on dark hero */
  transition: color var(--transition-fast);
  position: relative;
}

/* Underline stays gold */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-gold-light);
  transition: width var(--transition-med);
}

/* Link turns bright white on hover over hero */
.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
}

.nav__link:hover::after { width: 100%; }

/* Once scrolled, links go back to standard muted brown */
.nav.scrolled .nav__link {
  color: var(--clr-text-muted);
}

.nav.scrolled .nav__link:hover {
  color: var(--clr-gold-light);
}

/* RSVP button: white border on dark hero */
.nav__link--cta {
  color: rgba(240,221,176,0.95);
  border: 1px solid rgba(201,169,110,0.4);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.nav__link--cta:hover {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: #fff;
}

/* RSVP button once scrolled: gold border on white nav */
.nav.scrolled .nav__link--cta {
  color: var(--clr-gold);
  border-color: var(--clr-border);
}

.nav.scrolled .nav__link--cta:hover {
  background: var(--clr-gold);
  color: var(--clr-bg);
}

.nav__link--cta::after { display: none; }

/* Hamburger icon: white lines on dark hero */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(240,221,176,0.9);     /* Warm gold-white lines */
  transition: var(--transition-med);
}

.nav.scrolled .nav__toggle span {
  background: var(--clr-gold-light);     /* Gold lines once scrolled */
}

/* When the mobile menu is open: top line rotates to form an X */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
/* Middle line disappears */
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
/* Bottom line rotates to complete the X */
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════════════
   7. HERO SECTION
   ───────────────────────────────────────────────────────────────
   Split two-column layout:
     LEFT  half (50%) — all text content on a warm white background
     RIGHT half (50%) — the couple photo with a dark overlay

   On mobile the columns stack: photo on top, text below.

   To change the photo: update assets/images/hero-bg.jpg
   or edit "hero.bg_image" in content.json.
   To adjust where the photo is cropped: change object-position in
   .hero__bg-img (e.g. "center top", "center center").
   To darken/lighten the photo overlay: adjust opacity in .hero__overlay.
═══════════════════════════════════════════════════════════════ */

/* The hero section — full screen height, side-by-side columns */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;        /* Equal left and right halves */
  min-height: 100svh;
  overflow: hidden;
}


/* ── LEFT HALF — text content ─────────────────────────────── */

/* The left column — warm white background, centres text vertically */
.hero__left {
  position: relative;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 3rem) var(--space-lg) var(--space-xl); /* top = nav + breathing room */
  align-items: center;              /* Centre children horizontally */
  z-index: 1;
  border-right: 1px solid rgba(201,169,110,0.12); /* Subtle gold separator line */
}

/* All text is centred within the left column */
.hero__content {
  text-align: center;
  width: 100%;
  max-width: 480px;                      /* Keeps lines comfortably narrow */
}

/* "The Wedding of" small gold label */
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--clr-gold);                /* Gold on white — readable */
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeSlideDown 1s 0.8s var(--ease-luxury) forwards;
}

/* Couple names in Cormorant Garamond serif — elegant and legible.
   First letters are capitalised by JavaScript automatically. */
.hero__names {
  font-family: 'Cormorant Garamond', serif; /* Elegant serif, not the script font */
  font-size: clamp(3.2rem, 6vw, 7rem);   /* Scales with viewport width */
  font-weight: 300;                      /* Light weight for refinement */
  font-style: italic;                    /* Italic adds elegance */
  color: var(--clr-gold-pale);           /* Dark warm brown on white bg */
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;               /* Centre the name row */
  gap: 0.12em;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 1.2s 1s var(--ease-luxury) forwards;
  text-shadow: 0 2px 20px rgba(168,121,58,0.1);
}

.hero__name1, .hero__name2 { display: inline-block; }

/* The "&" between names */
.hero__ampersand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.42em;
  color: var(--clr-gold);
  margin: 0 0.08em;
  align-self: flex-end;
  padding-bottom: 0.2em;
}

/* "Two souls, one forever" tagline */
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--clr-text-muted);
  margin-top: var(--space-xs);
  opacity: 0;
  animation: fadeSlideUp 1s 1.3s var(--ease-luxury) forwards;
}

/* Date and venue block */
.hero__date-wrap {
  margin-top: var(--space-md);
  opacity: 0;
  animation: fadeSlideUp 1s 1.5s var(--ease-luxury) forwards;
}

/* The ——✦—— decorative divider, centred */
.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;               /* Centred to match text alignment */
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.hero__divider span:not(.ornament) {
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-gold));
}
.hero__divider span:last-child {
  background: linear-gradient(90deg, var(--clr-gold), transparent);
}

.ornament { color: var(--clr-gold); font-size: 0.7rem; }

/* "12 December 2026" date text */
.hero__date {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--clr-ivory);
}

/* "Kochi, Kerala" venue */
.hero__venue {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-top: 0.3rem;
}

/* "Our Story ↓" CTA button — dark bordered on white background */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
  padding: 0.85rem 2rem;
  border: 1px solid var(--clr-border);
  color: var(--clr-gold);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition-med), color var(--transition-med), border-color var(--transition-med);
  opacity: 0;
  animation: fadeSlideUp 1s 1.8s var(--ease-luxury) forwards;
  align-self: center;                    /* Centre the button inside the flex column */
}

.hero__cta:hover {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: #fff;
}

.hero__cta svg { transition: transform var(--transition-fast); }
.hero__cta:hover svg { transform: translateY(3px); }

/* Scroll hint line at the bottom of the left column */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;                             /* Centres under the left column */
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--clr-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%       { transform: scaleY(1); transform-origin: top; opacity: 1; }
}


/* ── RIGHT HALF — photo panel ─────────────────────────────── */

/* The right column — photo fills 100% of this half */
.hero__right {
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);        /* Photo starts below the nav bar */
}

/* The couple photo — fills the entire right half */
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;           /* Focus on upper portion for portrait photos */
  opacity: 0;
  transition: opacity 1.2s var(--ease-luxury);
}

.hero__bg-img.loaded {
  opacity: 1;
}

/* Dark overlay on top of the photo
   To make it lighter: reduce the rgba opacity values.
   To make it darker: increase them. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.15) 50%,
      rgba(0,0,0,0.45) 100%),
    linear-gradient(270deg,
      rgba(0,0,0,0.1) 0%,
      rgba(0,0,0,0.35) 100%);            /* Stronger on the left edge near the text */
}

/* Floating gold particles on the photo */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__particle {
  position: absolute;
  width: 1.5px;
  height: 1.5px;
  background: var(--clr-gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: 0.6; transform: translateY(-20px) scale(1); }
  80%  { opacity: 0.25; transform: translateY(var(--travel, -120px)) scale(0.8); }
  100% { opacity: 0; transform: translateY(var(--travel, -140px)) scale(0); }
}


/* ── HERO ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   8. COUNTDOWN TIMER
   ───────────────────────────────────────────────────────────────
   The live Days : Hours : Minutes : Seconds ticker.
   Numbers update every second via JavaScript.
   To set the target date: edit "event.date" in content.json.
   To change the number size: adjust font-size in .countdown__num.
═══════════════════════════════════════════════════════════════ */

/* Countdown section — slightly tinted background to stand out */
.countdown {
  padding: var(--space-xl) 0;
  text-align: center;
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border-2);
  border-bottom: 1px solid var(--clr-border-2);
}

/* "Arjun & Meera" heading above the numbers */
.countdown__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--clr-ivory);
  margin-bottom: var(--space-lg);
}

/* The horizontal row of four number blocks */
.countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

/* Each unit block e.g. the "42" over "Days" pair */
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

/* The large changing number (42, 06, 59...)
   To make numbers bigger: increase the last clamp value (currently 6rem) */
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--clr-gold-light);
  line-height: 1;
  transition: transform 0.3s var(--ease-bounce);
}

/* Brief pop animation when the number changes each second */
.countdown__num.flip {
  animation: numFlip 0.4s var(--ease-luxury);
}

@keyframes numFlip {
  0%   { transform: translateY(-8px) scale(0.9); opacity: 0.5; }
  100% { transform: translateY(0) scale(1);      opacity: 1; }
}

/* The "Days", "Hours", "Minutes", "Seconds" label under each number */
.countdown__label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-top: 0.3rem;
}

/* The ":" colon separators between numbers */
.countdown__sep {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--clr-gold);
  opacity: 0.4;
  line-height: 1;
  align-self: flex-start;
  padding-top: 0.2rem;
}


/* ═══════════════════════════════════════════════════════════════
   9. EVENT DETAILS
   ───────────────────────────────────────────────────────────────
   Three info cards showing Date & Time, Venue, and Dress Code.
   Card content comes from content.json (under "event").
   To add or remove cards: edit the HTML cards in index.html.
   To change the card hover lift amount: edit translateY(-6px) below.
═══════════════════════════════════════════════════════════════ */

/* Details section — white background */
.details {
  padding: var(--space-xl) 0;
  text-align: center;
}

/* Responsive grid: 3 columns on wide screens, fewer on narrow screens.
   minmax(260px, 1fr) means each card is at least 260px wide. */
.details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Individual card */
.details__card {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-med), background var(--transition-med), transform var(--transition-med);
  position: relative;
  overflow: hidden;
}

/* The thin gold line that appears at the very top of the card on hover */
.details__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-med);
}

/* Card lifts up and border becomes more visible on hover */
.details__card:hover {
  border-color: var(--clr-border);
  background: var(--clr-surface-2);
  transform: translateY(-6px);           /* Lifts 6px — increase for more dramatic lift */
}

.details__card:hover::before { opacity: 1; }

/* The SVG icon at the top of each card (calendar, pin, star) */
.details__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-md);
  color: var(--clr-gold);
}

.details__icon svg { width: 100%; height: 100%; }

/* Card title: "Date & Time", "Venue", "Dress Code" */
.details__card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--clr-ivory);
  margin-bottom: var(--space-sm);
}

/* The actual content text inside the card */
.details__card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}


/* ═══════════════════════════════════════════════════════════════
   10. OUR STORY / TIMELINE
   ───────────────────────────────────────────────────────────────
   A vertical timeline with alternating photo and text blocks.
   Odd items  (1st, 3rd...): text on LEFT,  photo on RIGHT
   Even items (2nd, 4th...): photo on LEFT, text on RIGHT
   On screens narrower than 900px, everything stacks vertically.

   To add or edit story points: update content.json "story.timeline".
   Each story point can have a "photo" image path.
   If no photo is set, a decorative symbol placeholder shows instead.
═══════════════════════════════════════════════════════════════ */

/* Story section — slightly tinted background */
.story {
  padding: var(--space-xl) 0;
  background: var(--clr-bg-2);
  position: relative;
  overflow: hidden;
}

/* Large faint watermark word "Story" behind everything — purely decorative.
   To hide it: set color opacity to 0, or remove this rule entirely. */
.story__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(8rem, 22vw, 22rem);
  color: rgba(168,121,58,0.04);          /* Very faint, almost invisible */
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* The opening intro paragraph above the timeline */
.story__intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--clr-text-muted);
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  line-height: 1.9;
}

/* The whole timeline — centred on the page with max width */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* The thin vertical gold line running down the centre of the timeline */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--clr-gold), transparent);
  transform: translateX(-50%);
  opacity: 0.4;
}

/* Each story row — a 3-column grid: [content/photo] [dot] [photo/content]
   The 24px middle column is for the dot on the centre line. */
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-xl);
  opacity: 0;                            /* Starts invisible for scroll animation */
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

/* When scrolled into view, JS adds "visible" and item fades/slides in */
.timeline__item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ODD items: text in column 1 (left), dot in column 2, photo in column 3 (right) */
.timeline__item:nth-child(odd) .timeline__content  { grid-column: 1; grid-row: 1; text-align: right; }
.timeline__item:nth-child(odd) .timeline__dot       { grid-column: 2; grid-row: 1; }
.timeline__item:nth-child(odd) .timeline__photo     { grid-column: 3; grid-row: 1; }

/* EVEN items: photo in column 1 (left), dot in column 2, text in column 3 (right) */
.timeline__item:nth-child(even) .timeline__photo    { grid-column: 1; grid-row: 1; }
.timeline__item:nth-child(even) .timeline__dot      { grid-column: 2; grid-row: 1; }
.timeline__item:nth-child(even) .timeline__content  { grid-column: 3; grid-row: 1; text-align: left; }

/* The small gold circle sitting on the centre line */
.timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-gold);
  border: 2px solid var(--clr-bg);       /* White ring between dot and glow */
  box-shadow: 0 0 0 3px rgba(168,121,58,0.2); /* Soft outer glow */
  justify-self: center;
  flex-shrink: 0;
}

/* The photo card beside each story point */
.timeline__photo {
  aspect-ratio: 4/3;                     /* Landscape proportions */
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-3);
  box-shadow: 0 8px 32px rgba(100,70,30,0.1);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

/* Photo card lifts and shadow deepens on hover */
.timeline__photo:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 16px 48px rgba(100,70,30,0.15);
}

/* The actual photo image inside the card */
.timeline__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-luxury);
}

/* Image zooms in slightly when card is hovered */
.timeline__photo:hover img { transform: scale(1.05); }

/* Placeholder shown when no photo provided, or image fails to load */
.timeline__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-bg-2), var(--clr-bg-3));
}

/* Decorative symbol (✦ ◈ ❋ etc.) shown in the placeholder */
.timeline__photo--placeholder span {
  font-size: 2rem;
  color: var(--clr-gold);
  opacity: 0.4;
}

/* Hides the broken img tag inside the placeholder */
.timeline__photo--placeholder img { display: none; }

/* The small year label: "2021", "2022"... above the title */
.timeline__year {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.4rem;
}

/* Story point title: "The First Hello", "The Proposal"... */
.timeline__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--clr-ivory);
  margin-bottom: 0.5rem;
}

/* The story description paragraph */
.timeline__desc {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

/* Kept for legacy compatibility */
.timeline__spacer { }


/* ═══════════════════════════════════════════════════════════════
   11. GALLERY
   ───────────────────────────────────────────────────────────────
   A masonry-style 3-column photo grid. Clicking a photo opens it
   in a full-screen lightbox. Hovering reveals a caption.
   To add photos: edit "gallery" array in content.json.
   The first photo is taller (spans 2 rows) — best with a portrait photo.
   To change number of columns: edit grid-template-columns below.
═══════════════════════════════════════════════════════════════ */

/* Gallery section */
.gallery {
  padding: var(--space-xl) 0;
  text-align: center;
}

/* Space below the heading before the photo grid */
.gallery .container { margin-bottom: var(--space-lg); }

/* The photo grid — 3 equal columns, 3px gaps between photos.
   To change to 4 columns: change repeat(3, 1fr) to repeat(4, 1fr) */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

/* Each photo cell in the grid */
.gallery__item {
  position: relative;
  aspect-ratio: 4/5;                     /* Portrait proportions */
  overflow: hidden;
  cursor: pointer;
  background: var(--clr-bg-3);           /* Fallback colour while image loads */
}

/* First photo spans 2 rows making it a tall feature image.
   Best used with a portrait photo of the couple. */
.gallery__item:first-child { grid-row: span 2; aspect-ratio: unset; }

/* The photo itself */
.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}

/* Placeholder tile shown when no photo is provided */
.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-bg-3), var(--clr-bg-2));
  color: var(--clr-text-muted);
  gap: var(--space-xs);
  transition: transform 0.8s var(--ease-luxury);
}

/* Decorative symbol shown in the placeholder */
.gallery__placeholder-icon {
  font-size: 1.5rem;
  opacity: 0.4;
}

/* "Your Photo" label inside the placeholder */
.gallery__placeholder-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* Dark gradient overlay that fades in on hover, revealing caption text */
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,12,9,0.8));
  opacity: 0;                            /* Hidden until hover */
  transition: opacity var(--transition-med);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

/* The caption text shown at the bottom of a photo on hover */
.gallery__caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--clr-gold-light);
  transform: translateY(10px);           /* Slides up from below on hover */
  transition: transform var(--transition-med);
}

/* Hover: photo zooms, overlay appears, caption slides up */
.gallery__item:hover .gallery__img,
.gallery__item:hover .gallery__placeholder {
  transform: scale(1.06);
}
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__item:hover .gallery__caption { transform: translateY(0); }

/* ── LIGHTBOX ─────────────────────────────────────────────────
   Full-screen photo viewer. Press Escape to close,
   arrow keys or buttons to navigate between photos.            */

/* Dark semi-transparent backdrop covering the entire screen */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(30,20,10,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

/* Lightbox is hidden until a photo is clicked */
.lightbox[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* The image and caption container */
.lightbox__img-wrap {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* The large photo shown inside the lightbox */
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  animation: lbZoomIn 0.4s var(--ease-luxury);
}

@keyframes lbZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Caption shown below the lightbox photo */
.lightbox__caption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

/* The ✕ close button in the top-right corner */
.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--clr-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}
.lightbox__close:hover { color: var(--clr-gold); }

/* The previous/next navigation arrow buttons */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-muted);
  font-size: 3rem;
  line-height: 1;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
}
.lightbox__nav--prev { left: var(--space-sm); }
.lightbox__nav--next { right: var(--space-sm); }
.lightbox__nav:hover { color: var(--clr-gold); }


/* ═══════════════════════════════════════════════════════════════
   12. LOCATION / MAP
   ───────────────────────────────────────────────────────────────
   Two-column card: venue info on the left, Google Map on the right.
   Venue name and address come from content.json.
   To update the map: get a new embed URL from Google Maps
   (Share → Embed a map → copy the src="..." value) and paste it
   into content.json under "event.map_embed_url".
   To make the map taller: increase the height in .location__map.
═══════════════════════════════════════════════════════════════ */

/* Location section — tinted background */
.location {
  padding: var(--space-xl) 0;
  background: var(--clr-bg-2);
}

/* The combined card holding info and map side by side.
   grid-template-columns: 1fr 1.5fr means map is 1.5x wider than info. */
.location__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-lg);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;                      /* Clips the map corners to match border-radius */
  background: var(--clr-surface);
}

/* Left column with venue text */
.location__info {
  padding: var(--space-lg);
}

/* Venue name heading */
.location__info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--clr-ivory);
  margin-bottom: var(--space-sm);
}

/* Venue address and city */
.location__info p {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  line-height: 1.9;
}

/* The "Get Directions →" button below the address */
.location__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  transition: background var(--transition-fast), color var(--transition-fast);
}

/* Button fills gold on hover */
.location__directions:hover {
  background: var(--clr-gold);
  color: var(--clr-bg);
}

/* Arrow nudges right on hover */
.location__directions svg { transition: transform var(--transition-fast); }
.location__directions:hover svg { transform: translateX(4px); }

/* Right column containing the Google Maps iframe.
   To make the map taller: increase the height value (currently 400px). */
.location__map {
  height: 400px;
  overflow: hidden;
}

/* The Google Maps iframe with a warm sepia tint to match the site colours.
   To show the map in full colour: remove the filter line. */
.location__map iframe {
  filter: sepia(0.15) saturate(0.8);
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ═══════════════════════════════════════════════════════════════
   13. RSVP FORM
   ───────────────────────────────────────────────────────────────
   The guest response form with Name, Email, Guest count,
   Accept/Decline radio buttons, and a personal message textarea.
   Form title and subtitle come from content.json.
   After submission: form hides and a success message appears.
   To connect to a real backend: edit initRSVP() in main.js.
═══════════════════════════════════════════════════════════════ */

/* RSVP section */
.rsvp {
  padding: var(--space-xl) 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Subtle warm gold glow at the top of the section — decorative only */
.rsvp__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,169,110,0.08) 0%, transparent 60%);
  pointer-events: none;                  /* Doesn't interfere with clicks */
}

/* The italic deadline text below the main heading */
.rsvp__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  margin: -1rem 0 var(--space-lg);
}

/* The form itself — left-aligned text inside a centred container */
.rsvp__form {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

/* Each row in the form — two fields side by side */
.rsvp__row {
  display: grid;
  grid-template-columns: 1fr 1fr;        /* Two equal columns */
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

/* A single label + input pair */
.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* The full-width message textarea field */
.rsvp__field--full { margin-bottom: var(--space-md); }

/* Field labels: "Full Name", "Email Address" etc. */
.rsvp__field label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* The * required asterisk marker */
.rsvp__field label span { color: var(--clr-gold); }

/* Shared styling for all input fields, the select dropdown, and textarea */
.rsvp__field input,
.rsvp__field select,
.rsvp__field textarea {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;                         /* Remove default focus ring; we add our own */
  width: 100%;
  resize: vertical;                      /* Allow vertical resizing of textarea only */
}

/* Light grey placeholder text inside inputs */
.rsvp__field input::placeholder,
.rsvp__field textarea::placeholder { color: var(--clr-text-muted); opacity: 0.5; }

/* When a field is focused: border turns gold, background slightly tinted */
.rsvp__field input:focus,
.rsvp__field select:focus,
.rsvp__field textarea:focus {
  border-color: var(--clr-gold);
  background: var(--clr-surface-2);
}

/* Dropdown option background (supported in some browsers) */
.rsvp__field select option { background: var(--clr-bg-2); }

/* The "Joyfully Accept / Regretfully Decline" toggle buttons */
.rsvp__radio-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Each styled radio option — looks like a button */
.rsvp__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  flex: 1;
  justify-content: center;
}

/* When an option is selected: highlighted with gold border and tinted bg */
.rsvp__radio:has(input:checked) {
  border-color: var(--clr-gold);
  color: var(--clr-gold-pale);
  background: rgba(168,121,58,0.08);
}

/* Hide the actual radio input element — the styled label is used instead */
.rsvp__radio input { display: none; }

/* The "Send My RSVP →" submit button — full width, solid gold */
.rsvp__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--clr-gold);           /* Main gold background */
  color: var(--clr-bg);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  width: 100%;
  justify-content: center;
  margin-top: var(--space-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

/* Button lightens and lifts slightly on hover */
.rsvp__submit:hover {
  background: var(--clr-gold-light);
  transform: translateY(-2px);
}

/* Arrow icon moves to the right on hover */
.rsvp__submit svg { transition: transform var(--transition-fast); }
.rsvp__submit:hover svg { transform: translateX(4px); }

/* "Thank you! We can't wait to celebrate with you." success message */
.rsvp__success {
  text-align: center;
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--clr-gold-light);
  animation: fadeSlideUp 0.5s var(--ease-luxury);
}


/* ═══════════════════════════════════════════════════════════════
   14. FOOTER
   ───────────────────────────────────────────────────────────────
   The closing section with the couple names in script font,
   a farewell message, the wedding hashtag, and credits.
   All text comes from content.json under "footer".
═══════════════════════════════════════════════════════════════ */

/* Footer container */
.footer {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border-2);
}

/* The slowly pulsing decorative star symbol at the top of the footer */
.footer__ornament {
  font-size: 1.2rem;
  color: var(--clr-gold);
  display: block;
  margin-bottom: var(--space-md);
  animation: ornamentPulse 3s ease-in-out infinite;
}

/* "Arjun & Meera" — same Cormorant Garamond italic as the hero names */
.footer__names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--clr-gold-pale);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

/* The farewell message paragraph */
.footer__message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--clr-text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-md);
  line-height: 1.8;
}

/* The wedding hashtag "#ArjunWedsMeera" */
.footer__hashtag {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--clr-gold);
  margin-bottom: var(--space-lg);
}

/* A short horizontal divider line between hashtag and credits */
.footer__divider {
  width: 60px;
  height: 1px;
  background: var(--clr-border);
  margin: 0 auto var(--space-md);
}

/* "Website crafted with love by Evento Stories" — very faint */
.footer__credits {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--clr-text-muted);
  opacity: 0.5;                          /* Nearly invisible — subtle credit */
}


/* ═══════════════════════════════════════════════════════════════
   15. RESPONSIVE — TABLET & MOBILE
   ───────────────────────────────────────────────────────────────
   Breakpoints:
     1024px  tablet landscape
      900px  tablet portrait
      768px  mobile / hero stack
      400px  small phones
═══════════════════════════════════════════════════════════════ */

/* ── TABLET LANDSCAPE: up to 1024px ─────────────────────────── */
@media (max-width: 1024px) {
  /* Hero names scale down a little */
  .hero__names { font-size: clamp(2.8rem, 5vw, 5.5rem); }
}

/* ── TABLET PORTRAIT: up to 900px ───────────────────────────── */
@media (max-width: 900px) {

  /* Timeline: collapse to left-side single column */
  .timeline::before {
    left: 11px;
  }
  .timeline__item {
    grid-template-columns: 24px 1fr !important;
    grid-template-rows: auto auto !important;
    gap: var(--space-sm) !important;
    align-items: start !important;
    margin-bottom: var(--space-lg);
  }
  .timeline__item:nth-child(odd) .timeline__content,
  .timeline__item:nth-child(even) .timeline__content {
    grid-column: 2 !important;
    grid-row: 2 !important;
    text-align: left !important;
  }
  .timeline__item:nth-child(odd) .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin-top: 0.4rem;
    justify-self: center;
  }
  .timeline__item:nth-child(odd) .timeline__photo,
  .timeline__item:nth-child(even) .timeline__photo {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  /* Location: stack info above map */
  .location__inner {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }
  .location__info { padding: var(--space-md); }
  .location__map  { height: 260px; }

  /* Gallery: 2 columns */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:first-child { grid-row: span 1; aspect-ratio: 4/5; }

  /* Details: 2 columns */
  .details__grid { grid-template-columns: repeat(2, 1fr); }

  /* Countdown: tighter gaps */
  .countdown__grid { gap: 1rem; }
}

/* ── MOBILE: up to 768px ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Global spacing: tighter on mobile ── */
  :root {
    --space-xs:  0.35rem;
    --space-sm:  0.75rem;
    --space-md:  1.25rem;
    --space-lg:  2rem;
    --space-xl:  2.8rem;
    --space-2xl: 3.5rem;
  }

  /* Remove excess top/bottom padding from all major sections */
  .countdown, .details, .story, .gallery,
  .location, .rsvp, .footer {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* Section headings: tighter bottom margin */
  .section__title { margin-bottom: 1.25rem; font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .section__label { margin-bottom: 0.4rem; }

  /* ── NAV ── */
  .nav__toggle { display: flex; z-index: 100; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: 72%;
    max-width: 260px;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform var(--transition-med);
    border-left: 1px solid var(--clr-border-2);
    z-index: 99;
    padding: var(--space-xl) var(--space-md);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link { font-size: 0.95rem; color: var(--clr-text); }
  .nav__link--cta { margin-top: 0.5rem; }

  /* ── HERO: stack photo top, text below ── */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 56vw auto;
    min-height: unset;
    margin-top: var(--nav-height);         /* Push entire hero below the fixed nav */
  }
  .hero__left {
    order: 2;
    padding: 2rem 1.25rem 2.5rem;
    border-right: none;
    border-top: 1px solid var(--clr-border-2);
  }
  .hero__right {
    order: 1;
    height: 56vw;
    padding-top: 0;                        /* Photo starts at top of its row, nav is above */
  }
  .hero__content { max-width: 100%; }
  .hero__names   { font-size: clamp(2.4rem, 10vw, 4.5rem); }
  .hero__tagline { font-size: 0.95rem; }
  .hero__date    { font-size: 0.95rem; }
  .hero__cta     { padding: 0.7rem 1.5rem; font-size: 0.7rem; margin-top: 1.25rem; }
  .hero__scroll-hint { display: none; }
  .hero__date-wrap { margin-top: 1rem; }

  /* ── COUNTDOWN ── */
  .countdown__grid  { gap: 0.3rem; flex-wrap: nowrap; }
  .countdown__num   { font-size: clamp(1.8rem, 8vw, 3rem); }
  .countdown__sep   { font-size: 1.4rem; padding-top: 0.15rem; }
  .countdown__label { font-size: 0.52rem; letter-spacing: 0.15em; }
  .countdown__unit  { min-width: unset; }
  .countdown__title { margin-bottom: 1.25rem; }

  /* ── DETAILS ── */
  .details__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .details__card { padding: 1.5rem 1rem; }
  .details__icon { width: 36px; height: 36px; margin-bottom: 1rem; }

  /* ── STORY / TIMELINE ── */
  .story__intro  { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .story__bg-text { display: none; }
  .timeline { padding: 0; }
  .timeline::before { left: 10px; }
  .timeline__item {
    grid-template-columns: 20px 1fr !important;
    gap: 0.6rem !important;
    margin-bottom: 1.5rem;
  }
  .timeline__photo  { aspect-ratio: 16/9; }
  .timeline__title  { font-size: 1.05rem; }
  .timeline__desc   { font-size: 0.82rem; }
  .timeline__year   { font-size: 0.6rem; }

  /* ── GALLERY ── */
  .gallery .container { margin-bottom: 1rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .gallery__item:first-child { grid-row: span 1; aspect-ratio: 4/5; }

  /* ── LOCATION ── */
  .location__inner {
    border-radius: var(--radius-sm);
    border-left: none;
    border-right: none;
    margin-top: 1rem;
  }
  .location__info  { padding: 1.25rem 1rem; }
  .location__map   { height: 220px; }
  .location__info h3 { font-size: 1.3rem; }

  /* ── RSVP ── */
  .rsvp__row        { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
  .rsvp__form       { padding: 0; }
  .rsvp__field--full { margin-bottom: 0.75rem; }
  .rsvp__radio-group { flex-direction: column; }
  .rsvp__radio      { flex: unset; }
  .rsvp__subtitle   { margin-bottom: 1.25rem; font-size: 0.95rem; }

  /* ── FOOTER ── */
  .footer { padding: 2.5rem 1rem; }
  .footer__names   { font-size: clamp(2rem, 9vw, 3.2rem); }
  .footer__message { font-size: 0.88rem; }
  .footer__hashtag { margin-bottom: 1.25rem; }

  /* ── LIGHTBOX ── */
  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }
  .lightbox__nav       { font-size: 2rem; padding: 0.5rem; }
  .lightbox__close     { top: 0.75rem; right: 0.75rem; }
}

/* ── SMALL PHONES: up to 400px ──────────────────────────────── */
@media (max-width: 400px) {
  .hero { grid-template-rows: 60vw auto; margin-top: var(--nav-height); }
  .hero__right { height: 60vw; padding-top: 0; }
  .hero__names { font-size: clamp(2rem, 10vw, 3.2rem); }
  .hero__left  { padding: 1.5rem 1rem 2rem; }

  .countdown__grid { gap: 0.15rem; }
  .countdown__num  { font-size: clamp(1.4rem, 7vw, 2rem); }
  .countdown__sep  { font-size: 1.1rem; }

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


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