/* ============================================================
   AT STUDIO — PREMIUM WEDDING TEMPLATE
   Main Stylesheet — style.css
   © 2025 AT Studio. All Rights Reserved.

   TABLE OF CONTENTS:
   01 — CSS Variables (color theme — set by script.js)
   02 — Reset & Base
   03 — Typography Scale
   04 — Reusable Utilities
   05 — Page Loader
   06 — Navigation
   07 — Hero Section
   08 — Countdown Section
   09 — Save The Date Section
   10 — Couple Note Section
   11 — Our Story / Timeline Section
   12 — Gallery Section
   13 — Lightbox
   14 — Wedding Party Section
   15 — Event Schedule Section
   16 — Dress Code Section
   17 — Registry Section
   18 — FAQs Section
   19 — RSVP Section
   20 — Footer
   21 — Scroll Reveal Animations
   22 — Responsive — Tablet (768px)
   23 — Responsive — Desktop (1024px)
   24 — Responsive — Large Desktop (1440px)
   25 — Responsive — TV / Ultra Wide (1920px+)
   26 — Responsive — Landscape Mobile
   ============================================================ */


/* ============================================================
   01 — CSS VARIABLES (COLOR THEME)
   These are set dynamically by script.js from config.js.
   The values here are fallback defaults only.
   DO NOT edit colors here — use config.js instead.
   ============================================================ */
:root {
    --primary:      #C9A96E;                /* champagne gold */
    --secondary:    #FAF7F2;                /* warm cream background */
    --dark:         #2C2C2C;                /* charcoal text */
    --muted:        #8C7B6B;                /* warm muted brown */
    --white:        #FFFFFF;                /* card backgrounds */
    --border:       #E8DDD0;                /* delicate warm border */
    --overlay:      rgba(44, 44, 44, 0.45); /* hero photo overlay */

    /* Typography scale — fluid sizing for all screen sizes
       Format: clamp(minimum, preferred, maximum)
       Scales smoothly without needing media queries */
    --text-hero:        clamp(3rem, 10vw, 8rem);    /* couple names in hero */
    --text-h2:          clamp(1.8rem, 4vw, 3rem);   /* section titles */
    --text-h3:          clamp(1.2rem, 2.5vw, 1.8rem);
    --text-body:        clamp(0.9rem, 1.8vw, 1.05rem);
    --text-label:       clamp(0.6rem, 1.2vw, 0.72rem);
    --text-countdown:   clamp(2.5rem, 7vw, 5.5rem); /* countdown numbers */

    /* Spacing scale */
    --section-padding:  clamp(60px, 10vw, 120px);
    --container-max:    1200px;
    --container-pad:    clamp(20px, 5vw, 60px);

    /* Animation timing */
    --transition-fast:  0.25s ease;
    --transition-med:   0.4s ease;
    --transition-slow:  0.7s ease;
}


/* ============================================================
   02 — RESET & BASE STYLES
   Removes default browser styles for consistent rendering.
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;    /* smooth scrolling when nav links clicked */
    font-size: 16px;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--dark);
    background-color: var(--secondary);
    line-height: 1.7;
    overflow-x: hidden;         /* prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;    /* smoother text on Mac/iOS */
}

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

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

button {
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* Disable right-click context menu (basic code protection) */
/* More protection applied in script.js */

/* ── CSS-level content protection ───────────────────────────
   Prevents text highlighting, image long-press save on mobile,
   and makes casual content copying much harder for guests.
   Input/textarea elements are explicitly re-enabled below.    */
body {
    -webkit-user-select: none;   /* Safari / Chrome iOS */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* IE / Edge legacy */
    user-select: none;
}

/* Re-enable text selection only inside form fields */
input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent iOS long-press "Save Image" / "Copy" context menu on all images */
img {
    -webkit-touch-callout: none;   /* iOS Safari */
    -webkit-user-drag: none;       /* Chrome/Safari drag prevention */
    user-drag: none;
    pointer-events: none;          /* disables right-click and drag on images */
}

/* Re-enable pointer events on gallery items and lightbox images
   (need clicks to open the lightbox) */
.gallery-item {
    pointer-events: auto;
}
.lightbox-img {
    pointer-events: none;   /* image itself still not draggable/right-clickable */
}


/* ============================================================
   03 — TYPOGRAPHY SCALE
   Global heading and text styles.
   ============================================================ */

/* All headings use Cormorant Garamond */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.1;
}

/* Section label — small spaced caps above every title */
.section-label {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: clamp(8px, 1.5vw, 14px);
    display: block;
}

/* Section main title */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-h2);
    font-weight: 300;
    font-style: italic;
    color: var(--dark);
    margin-bottom: clamp(10px, 2vw, 16px);
}

/* Section subtitle — below the title */
.section-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--muted);
    margin-bottom: clamp(40px, 6vw, 70px);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   04 — REUSABLE UTILITIES
   ============================================================ */

/* Centered container for all section content */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    text-align: center;
}

/* Gold divider line with diamond center — used in multiple sections */
.gold-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: clamp(20px, 3vw, 32px) auto;
    max-width: 300px;
}

.gold-divider::before,
.gold-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}

.gold-divider-diamond {
    color: var(--primary);
    font-size: 0.45rem;
}


/* ============================================================
   05 — PAGE LOADER
   Full-screen loader shown while page assets load.
   Fades out and is removed by script.js once ready.
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--secondary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Hidden class — added by script.js to hide the loader */
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Couple names shown in the loader */
.loader-couple {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    animation: fadeInUp 0.8s ease forwards;
}

/* Animated loading bar */
.loader-bar {
    width: clamp(80px, 20vw, 140px);
    height: 1px;
    background: var(--border);
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    animation: loaderFill 1.5s ease forwards;
}

/* Loading dots */
.loader-dots {
    display: flex;
    gap: 6px;
}

.loader-dots span {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.loader-dots span:nth-child(1) { animation-delay: 0s;   }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }


/* ============================================================
   06 — NAVIGATION
   Fixed top bar with couple brand on left, links on right.
   Transparent until scrolled, then white with shadow.
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(14px, 2vw, 22px) var(--container-pad);
    background: transparent;
    transition: background var(--transition-med),
                box-shadow var(--transition-med),
                padding var(--transition-med);
}

/* Scrolled state — white background with shadow */
.nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Couple brand / initials in top left */
.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    font-weight: 400;
    color: var(--white);                    /* white on hero (transparent nav) */
    letter-spacing: 0.08em;
    transition: color var(--transition-fast);
    cursor: default;
}

/* Nav brand becomes dark once nav has white background */
.nav.scrolled .nav-brand {
    color: var(--dark);
}

/* Navigation links list */
.nav-links {
    display: flex;
    gap: clamp(16px, 3vw, 40px);
    align-items: center;
}

/* Individual nav link */
.nav-link {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 3px;
}

/* Underline hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition-med);
}

.nav-link:hover::after {
    width: 100%;
}

/* Nav links become dark once nav has white background */
.nav.scrolled .nav-link {
    color: var(--muted);
}

.nav.scrolled .nav-link:hover {
    color: var(--primary);
}

/* Hamburger button — only visible on mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    cursor: pointer;
    position: relative;
    z-index: 1500;   /* above nav-links overlay (1400) so X is always tappable */
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.nav.scrolled .nav-hamburger span {
    background: var(--dark);
}

/* Hamburger open state — X icon */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* ============================================================
   07 — HERO SECTION
   Full screen. Background photo. Couple names. Parallax.
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background photo container */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);     /* slight scale for parallax effect */
    transition: transform 0.1s linear;
}

/* Dark overlay for readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
}

/* Botanical corner decorations */
.hero-botanical {
    position: absolute;
    z-index: 2;
    color: var(--primary);
    opacity: 0.30;
    pointer-events: none;
}

.hero-botanical--tl {
    top: 0;
    left: 0;
    width: clamp(100px, 18vw, 200px);
}

.hero-botanical--br {
    bottom: 0;
    right: 0;
    width: clamp(100px, 18vw, 200px);
    transform: rotate(180deg);
}

/* Hero content — centered text block */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 var(--container-pad);

    /* Staggered fade-in animation */
    animation: fadeInUp 1.2s ease forwards;
}

/* "Together with their families" label */
.hero-label {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: clamp(16px, 3vw, 28px);
}

/* Groom's name */
.hero-groom,
.hero-bride {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-hero);
    font-weight: 300;
    line-height: 0.9;
    color: var(--white);
    letter-spacing: -0.01em;
}

/* Ampersand between names */
.hero-ampersand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 28px);
    margin: clamp(6px, 1.5vw, 14px) 0;
}

.hero-line {
    width: clamp(30px, 8vw, 80px);
    height: 1px;
    background: rgba(201, 169, 110, 0.5);   /* semi-transparent gold */
}

.hero-ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3.5vw, 2.5rem);
    font-style: italic;
    color: var(--primary);
    font-weight: 300;
}

/* Wedding date below names */
.hero-date {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: clamp(16px, 3vw, 28px);
    margin-bottom: clamp(8px, 1.5vw, 14px);
}

/* Romantic tagline */
.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: clamp(10px, 2vw, 16px);
}

/* Personalized guest greeting — subtle, below tagline */
/* Only visible when guest name is known from gate session */
.hero-greeting {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: clamp(20px, 3vw, 32px);
}

/* RSVP call-to-action button in hero */
.hero-cta {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    padding: clamp(10px, 1.5vw, 14px) clamp(24px, 4vw, 40px);
    transition: all var(--transition-med);
}

.hero-cta:hover {
    background: var(--primary);
    color: var(--white);
}

/* Scroll indicator at bottom of hero */
.hero-scroll {
    position: absolute;
    bottom: clamp(20px, 4vw, 40px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Animated line that drops down */
.hero-scroll-line {
    width: 1px;
    height: clamp(30px, 5vw, 50px);
    background: linear-gradient(to bottom, transparent, var(--primary));
    animation: scrollLine 2s ease-in-out infinite;
}

.hero-scroll-text {
    font-family: 'Jost', sans-serif;
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}


/* ============================================================
   08 — COUNTDOWN SECTION
   Live timer to the wedding date.
   ============================================================ */
.countdown {
    padding: var(--section-padding) 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

/* Timer grid — 4 units side by side */
.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 24px);
    margin-top: clamp(20px, 4vw, 40px);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    /* ADD these three lines: */
    border: 1px solid var(--border);
    padding: clamp(16px, 2.5vw, 28px) clamp(20px, 3vw, 36px);
    min-width: clamp(70px, 12vw, 110px);
}

/* The number itself */
.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-countdown);
    font-weight: 300;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -0.02em;
    display: block;
    min-width: 1ch;             /* prevents layout shift as number changes */
}

/* "Days", "Hours", etc. labels */
.countdown-label {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Colon separator between units */
.countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;        /* offset to align with numbers, not labels */
}

/* Stagger animation delays for countdown units */
.countdown-unit:nth-child(1) { animation-delay: 0s;    }
.countdown-unit:nth-child(2) { animation-delay: 0.12s; }
.countdown-unit:nth-child(3) { animation-delay: 0.24s; }
.countdown-unit:nth-child(4) { animation-delay: 0.36s; }

/* "Today is the day!" message shown when countdown reaches zero */
.countdown-wedding-day {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    color: var(--primary);
    margin-top: 20px;
}


/* ============================================================
   09 — SAVE THE DATE SECTION
   YouTube video embed.
   ============================================================ */
.save-the-date {
    padding: var(--section-padding) 0;
    background: var(--secondary);
    text-align: center;
}

/* Botanical SVG above the save the date section */
.std-botanical {
    color: var(--primary);
    opacity: 0.35;
    margin: 0 auto clamp(20px, 3vw, 32px);
    width: clamp(80px, 15vw, 140px);
}

/* "Save the Date Film" label above the video */
.std-film-label {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: clamp(16px, 2.5vw, 24px);
    display: block;
    opacity: 0.7;
}

/* 16:9 video wrapper — maintains aspect ratio on all screens */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Gold-tinted frame around the video */
.video-frame-outer {
    padding: 6px;
    border: 1px solid rgba(201, 169, 110, 0.35);
    background: transparent;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;    /* 16:9 aspect ratio formula */
    height: 0;
    overflow: hidden;
    border: none;
}

/* YouTube iframe fills the container */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ============================================================
   10 — COUPLE NOTE SECTION
   Pull quote style personal message.
   ============================================================ */
.couple-note {
    padding: var(--section-padding) 0;
    background: var(--white);
    text-align: center;
}

/* Botanical SVG above the quote — gold tinted */
.couple-note-botanical {
    color: var(--primary);
    opacity: 0.35;
    margin: 0 auto clamp(20px, 3vw, 32px);
    width: clamp(80px, 15vw, 140px);
}

/* Large decorative opening quote mark */
.couple-note-quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--primary);
    opacity: 0.2;
    line-height: 0.5;
    margin-bottom: clamp(10px, 2vw, 20px);
    font-style: italic;
}

/* The message text */
.couple-note-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.9;
}

/* Divider between message and signature */
.couple-note-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: clamp(24px, 4vw, 40px) auto;
    max-width: 240px;
}

.couple-note-divider span:first-child,
.couple-note-divider span:last-child {
    flex: 1;
    height: 1px;
    background: var(--primary);
    opacity: 0.4;
    display: block;
}

.couple-note-diamond {
    color: var(--primary);
    font-size: 0.4rem;
}

/* Signature below the message */
.couple-note-signature {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-style: italic;
    color: var(--muted);
    font-weight: 300;
}


/* ============================================================
   11 — OUR STORY / TIMELINE SECTION
   Vertical timeline with alternating layout on desktop.
   ============================================================ */
.our-story {
    padding: var(--section-padding) 0;
    background: var(--secondary);
}

/* Timeline wrapper — vertical line runs through center on desktop */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* The vertical gold line (visible on desktop only) */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.4;
}

/* Individual milestone item */
.timeline-item {
    display: flex;
    gap: clamp(20px, 4vw, 50px);
    margin-bottom: clamp(40px, 7vw, 80px);
    align-items: center;
    position: relative;
}

/* Alternating layout: even items flip to right on desktop */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Photo side */
.timeline-photo {
    flex: 1;
    max-width: 300px;
}

.timeline-photo img {
    width: 100%;
    aspect-ratio: 4/5;           /* portrait crop */
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--border);
    transition: transform var(--transition-slow);
}

.timeline-photo img:hover {
    transform: scale(1.02);
}

/* Center dot on the timeline line */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--secondary);
    z-index: 1;
    flex-shrink: 0;
}

/* Text side */
.timeline-text {
    flex: 1;
    text-align: left;
    padding: clamp(16px, 2vw, 24px) 0;
}

/* Even items: text aligns right */
.timeline-item:nth-child(even) .timeline-text {
    text-align: right;
}

/* Date label above the title */
.timeline-date {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Milestone title */
.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Description text */
.timeline-description {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
}


/* ============================================================
   12 — GALLERY SECTION
   Masonry-style photo grid.
   ============================================================ */
.gallery {
    padding: var(--section-padding) 0;
    background: var(--white);
}

/* CSS columns masonry grid */
.gallery-grid {
    column-count: 2;            /* 2 columns by default (mobile) */
    column-gap: clamp(8px, 1.5vw, 16px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Individual gallery item */
.gallery-item {
    break-inside: avoid;        /* prevents photo from breaking across columns */
    margin-bottom: clamp(8px, 1.5vw, 16px);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

/* Photo itself — no border, editorial feel */
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
    border: none;
}

/* Hover: zoom in */
.gallery-item:hover img {
    transform: scale(1.04);
}

/* Hover overlay with gold tint */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(201, 169, 110, 0.15);
    opacity: 0;
    transition: opacity var(--transition-med);
}

.gallery-item:hover::after {
    opacity: 1;
}


/* ============================================================
   13 — LIGHTBOX
   Full-screen photo viewer. Opens when gallery photo is clicked.
   NOTE: The lightbox div is a direct child of <body> — NOT inside
   the gallery section — to avoid CSS transform stacking context
   issues that would prevent position:fixed from covering the viewport.
   ============================================================ */
.lightbox {
    display: none;              /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 18, 16, 0.96);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

/* Active state — shown when photo is clicked */
.lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease forwards;
}

/* The photo container — centered within the lightbox overlay */
.lightbox-content {
    position: absolute;
    top: 56px;      /* below close button */
    left: 0;
    right: 0;
    bottom: 72px;   /* above counter + some space */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 56px; /* horizontal room for prev/next arrows */
}

/* When music player is active, shrink bottom so image stays
   centered in the visible area above the music bar */
body.has-music-player .lightbox-content {
    bottom: 132px;  /* 72px base + ~60px music player */
}

/* The photo itself */
.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border: 1px solid rgba(201, 169, 110, 0.2);
    display: block;
}

/* Close button top right — large tap target */
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 12px 16px;
    line-height: 1;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 4px;
    z-index: 2010;  /* above lightbox content */
}

.lightbox-close:hover {
    color: var(--primary);
    background: rgba(0,0,0,0.5);
}

/* Previous / Next buttons — vertically centered in the full lightbox */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: clamp(12px, 2vw, 20px);
    transition: color var(--transition-fast);
    background: rgba(0,0,0,0.2);
    border: none;
    line-height: 1;
    border-radius: 4px;
    z-index: 2010;
}

.lightbox-prev { left: 8px;  }
.lightbox-next { right: 8px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary);
    background: rgba(0,0,0,0.4);
}

/* "3 / 8" counter — sits just above the music bar */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2010;
}

/* When music player is active, push counter up above it */
body.has-music-player .lightbox-counter {
    bottom: 76px;  /* 60px music bar + 16px gap */
}

/* Hide nav while lightbox is active so controls are never blocked */
body.lightbox-open .nav {
    display: none !important;
}


/* ============================================================
   14 — WEDDING PARTY SECTION
   On mobile: horizontal swipe tabs (categories) + vertical
   scrollable name list within each panel.
   On desktop: elegant 2-column program grid (full list visible).
   ============================================================ */
.wedding-party {
    padding: var(--section-padding) 0;
    background: var(--secondary);
}

/* ── DESKTOP LAYOUT: program-style 2-column grid ─────────── */
/* Groups container — 2-column grid on desktop */
.party-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 52px);
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

@media (min-width: 640px) {
    .party-groups {
        grid-template-columns: 1fr 1fr;
    }
}

/* Individual group block */
.party-group {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: clamp(20px, 3vw, 28px);
}

/* Group heading */
.party-group-title {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: clamp(12px, 2vw, 18px);
    font-style: normal;
    line-height: 1.4;
}

/* Individual name */
.party-group-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 2px;
}

/* ── MOBILE CAROUSEL LAYOUT ──────────────────────────────── */
/* Hidden on desktop, shown on mobile by JS */
.party-carousel {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Tab row — horizontally scrollable category pills */
.party-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    padding-bottom: 0;
}

.party-tabs::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

.party-tab {
    flex-shrink: 0;
    font-family: 'Jost', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 14px 9px;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;            /* sit on top of container border */
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.party-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Panel wrapper — clips to fixed height, one panel visible at a time */
.party-panels {
    position: relative;
    border: 1px solid var(--border);
    border-top: none;
    background: var(--white);
}

/* Individual panel */
.party-panel {
    display: none;
    flex-direction: column;
    max-height: 280px;              /* ~8-9 names visible; rest scrolls */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.party-panel::-webkit-scrollbar {
    width: 3px;
}

.party-panel::-webkit-scrollbar-track {
    background: transparent;
}

.party-panel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.party-panel.active {
    display: flex;
}

/* Name entry inside carousel panel */
.party-panel-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    line-height: 1.9;
    text-align: center;
    padding: 2px 0;
    border-bottom: 1px solid rgba(232, 221, 208, 0.4);
}

.party-panel-name:last-child {
    border-bottom: none;
}

/* Scroll hint — fades out when panel is scrolled fully */
.party-panel-hint {
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
    padding: 8px 0 4px;
    pointer-events: none;
}

/* Show carousel on mobile, hide desktop grid */
@media (max-width: 639px) {
    .party-groups   { display: none; }
    .party-carousel { display: flex; }
}

/* ── Legacy fallback styles (kept for backward compat) ────── */
.party-principals {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 50px);
    margin-bottom: clamp(30px, 5vw, 60px);
    flex-wrap: wrap;
}

.party-rows {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 6vw, 80px);
    flex-wrap: wrap;
    margin-bottom: clamp(20px, 4vw, 40px);
}

.party-column {
    text-align: center;
    min-width: 160px;
}

.party-column-title {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: clamp(16px, 3vw, 24px);
    display: block;
}

.party-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(16px, 2.5vw, 24px);
}

.party-member-photo {
    width: clamp(60px, 10vw, 90px);
    height: clamp(60px, 10vw, 90px);
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.party-member-initials {
    width: clamp(60px, 10vw, 90px);
    height: clamp(60px, 10vw, 90px);
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--primary);
    font-weight: 300;
}

.party-member-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
}

.party-member-role {
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.party-extras {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 50px);
    flex-wrap: wrap;
}


/* ============================================================
   15 — EVENT SCHEDULE SECTION
   Two cards: Ceremony and Reception.
   Each has expandable Order of Events.
   ============================================================ */
.schedule {
    padding: var(--section-padding) 0;
    background: var(--white);
}

/* Cards container — side by side on tablet+ */
.schedule-cards {
    display: flex;
    flex-direction: column;     /* stacked on mobile */
    gap: clamp(20px, 4vw, 40px);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Individual event card */
.schedule-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: clamp(28px, 4vw, 48px);
    text-align: center;
    flex: 1;
}

/* Card top row: label + icon */
.schedule-card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: clamp(14px, 2vw, 20px);
}

/* "Ceremony" / "Reception" label */
.schedule-card-label {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
}

.schedule-card-icon {
    color: var(--primary);
    font-size: 0.6rem;
    opacity: 0.6;
}

/* Venue name */
.schedule-card-venue {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 8px;
}

/* Address */
.schedule-card-address {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--muted);
    margin-bottom: clamp(14px, 2vw, 20px);
}

/* Time */
.schedule-card-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--dark);
    display: block;
    margin-bottom: clamp(16px, 2.5vw, 24px);
}

/* Google Maps button */
.schedule-map-btn {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 10px 24px;
    margin-bottom: clamp(20px, 3vw, 32px);
    transition: all var(--transition-med);
}

.schedule-map-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* "Add to Calendar" ICS download button */
.schedule-ics-btn {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 10px 24px;
    margin-bottom: clamp(20px, 3vw, 32px);
    margin-left: 10px;
    cursor: pointer;
    background: none;
    transition: all var(--transition-med);
}

.schedule-ics-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* "Order of Events" toggle button */
.schedule-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: clamp(14px, 2vw, 20px);
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color var(--transition-fast);
}

.schedule-toggle:hover {
    color: var(--primary);
}

/* +/- icon on the toggle */
.schedule-toggle-icon {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

/* Rotated when open */
.schedule-toggle-icon.open {
    transform: rotate(45deg);
}

/* Expandable order of events list */
.order-of-events {
    text-align: left;
    padding-top: clamp(14px, 2vw, 20px);
    border-top: 1px solid var(--border);
    margin-top: clamp(14px, 2vw, 20px);
}

/* Individual timeline entry */
.order-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: clamp(8px, 1.5vw, 12px) 0;
    border-bottom: 1px solid rgba(232, 221, 208, 0.5);
}

.order-item:last-child {
    border-bottom: none;
}

/* Time on the left */
.order-item-time {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--primary);
    min-width: 60px;
    padding-top: 2px;
}

/* Event name on the right */
.order-item-event {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-style: italic;
    color: var(--dark);
    font-weight: 300;
}


/* ============================================================
   16 — DRESS CODE SECTION
   Visual color swatches + description text.
   ============================================================ */
.dresscode {
    padding: var(--section-padding) 0;
    background: var(--secondary);
    text-align: center;
}

/* "Garden Formal" theme label */
.dresscode-theme {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: italic;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: clamp(12px, 2vw, 20px);
}

/* Description text */
.dresscode-description {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto clamp(30px, 5vw, 50px);
    line-height: 1.8;
}

/* Color swatches row */
.dresscode-swatches {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 3vw, 32px);
    flex-wrap: wrap;
}

/* Individual swatch */
.swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* The colored circle */
.swatch-circle {
    width: clamp(50px, 8vw, 72px);
    height: clamp(50px, 8vw, 72px);
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.08);
    transition: transform var(--transition-fast);
}

.swatch:hover .swatch-circle {
    transform: scale(1.08);
}

/* Color name label below circle */
.swatch-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}


/* ============================================================
   17 — REGISTRY SECTION
   Bank + GCash + Maya cards — minimal, clean.
   ============================================================ */
.registry {
    padding: var(--section-padding) 0;
    background: var(--white);
    text-align: center;
}

/* Message above the cards */
.registry-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto clamp(30px, 5vw, 50px);
    line-height: 1.8;
}

/* Cards row — stacked on mobile, side by side on tablet+ */
.registry-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 24px);
    align-items: center;
    justify-content: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* When 2+ cards are visible — row layout on tablet+ */
@media (min-width: 640px) {
    .registry-cards {
        flex-direction: row;
        align-items: stretch;   /* equal height cards */
        flex-wrap: nowrap;      /* always single row on tablet+ */
    }

    /* Each card takes equal width — no max-width cap so 3 fit cleanly */
    .registry-card {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
    }
}

/* Individual registry card — bank, GCash, or Maya */
.registry-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: clamp(24px, 4vw, 40px);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

/* Card type label — "Bank Transfer", "GCash", "Maya" */
/* Tiny spaced caps — very subtle, minimal */
.registry-card-type {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: clamp(12px, 2vw, 18px);
    opacity: 0.8;
}

/* Bank / platform name */
.registry-bank {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

/* Account holder name */
.registry-account-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    margin-bottom: clamp(14px, 2vw, 20px);
}

/* Account/mobile number row with copy button */
.registry-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: clamp(10px, 1.5vw, 14px) clamp(10px, 1.5vw, 16px);
    overflow: hidden;
}

/* The number itself */
.registry-account-number {
    font-family: 'Jost', sans-serif;
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--dark);
    white-space: nowrap;
}

/* Copy button */
.registry-copy-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 5px 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    flex-shrink: 0;
}

.registry-copy-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Confirmation text after copy */
.registry-copy-confirm {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-top: 10px;
}

/* Optional online registry link button */
.registry-link-btn {
    display: inline-block;
    margin-top: clamp(20px, 3vw, 30px);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 12px 28px;
    transition: all var(--transition-med);
}

.registry-link-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* ============================================================
   18 — FAQs SECTION
   Expandable accordion items.
   ============================================================ */
.faqs {
    padding: var(--section-padding) 0;
    background: var(--secondary);
}

/* FAQ list container */
.faqs-list {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Individual FAQ item */
.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

/* Question row — clickable */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(16px, 2.5vw, 22px) 0;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    transition: color var(--transition-fast);
    text-align: left;
    gap: 16px;
}

.faq-question:hover {
    color: var(--primary);
}

/* +/- icon */
.faq-icon {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.faq-icon.open {
    transform: rotate(45deg);
}

/* Answer text — hidden by default */
.faq-answer {
    display: none;
    padding: 0 0 clamp(16px, 2.5vw, 22px) 0;
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
    text-align: left;
}

.faq-answer.open {
    display: block;
}


/* ============================================================
   19 — RSVP SECTION
   Full form. Submits to Google Sheets via Apps Script.
   ============================================================ */
.rsvp {
    padding: var(--section-padding) 0;
    background: var(--white);
    position: relative;
}

/* Botanical decoration at top of RSVP section */
.rsvp-botanical {
    color: var(--primary);
    opacity: 0.2;
    text-align: center;
    margin-bottom: clamp(-10px, -2vw, -20px);
    pointer-events: none;
}

.rsvp-botanical svg {
    width: clamp(200px, 50vw, 400px);
    margin: 0 auto;
}

/* RSVP deadline notice */
.rsvp-deadline {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--muted);
    margin-bottom: clamp(30px, 5vw, 50px);
}

.rsvp-deadline strong {
    color: var(--primary);
    font-weight: 400;
}

/* ── RSVP Button Choice UI ──────────────────────────────── */

/* Outer wrapper replacing the old form */
.rsvp-choice {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
    text-align: center;
}

/* Step 1 — the two main choice buttons */
.rsvp-buttons {
    animation: fadeInUp 0.6s ease forwards;
}

/* Prompt text above the buttons */
.rsvp-choice-prompt {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: clamp(28px, 5vw, 44px);
    letter-spacing: 0.03em;
}

/* Row that holds both buttons side-by-side */
.rsvp-btn-row {
    display: flex;
    gap: clamp(14px, 3vw, 24px);
    justify-content: center;
    flex-wrap: wrap;
}

/* Base card button */
.rsvp-choice-btn {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    padding: clamp(28px, 5vw, 44px) clamp(16px, 3vw, 28px);
    background: var(--secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.rsvp-choice-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: center;
}

.rsvp-choice-btn:hover::after,
.rsvp-choice-btn:focus::after {
    transform: scaleX(1);
}

.rsvp-choice-btn:hover,
.rsvp-choice-btn:focus {
    border-color: var(--primary);
    background: var(--white);
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

/* Visible focus ring for keyboard-only navigation */
.rsvp-choice-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Icon inside each button */
.rsvp-choice-btn-icon {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--primary);
    line-height: 1;
    transition: transform 0.35s ease;
}

.rsvp-choice-btn:hover .rsvp-choice-btn-icon {
    transform: scale(1.15);
}

/* Label inside each button */
.rsvp-choice-btn-label {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--dark);
    transition: color 0.35s ease;
}

.rsvp-choice-btn:hover .rsvp-choice-btn-label {
    color: var(--primary);
}

/* Decline button — slightly muted by default */
.rsvp-choice-btn--decline .rsvp-choice-btn-icon {
    color: var(--muted);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.rsvp-choice-btn--decline .rsvp-choice-btn-label {
    color: var(--muted);
}

.rsvp-choice-btn--decline:hover .rsvp-choice-btn-label,
.rsvp-choice-btn--decline:hover .rsvp-choice-btn-icon {
    color: var(--dark);
}

.rsvp-choice-btn--decline::after {
    background: var(--muted);
}


/* ── Step 2 — Meal Selection ────────────────────────────── */

.rsvp-step-2 {
    animation: fadeInUp 0.5s ease forwards;
}

.rsvp-step-2-sub {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--muted);
    margin-bottom: clamp(24px, 4vw, 40px);
    letter-spacing: 0.05em;
}

/* Meal option pill buttons */
.rsvp-meal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    margin: 0 auto clamp(24px, 4vw, 36px);
}

.rsvp-meal-btn {
    width: 100%;
    padding: clamp(14px, 2vw, 18px) clamp(20px, 3vw, 28px);
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--dark);
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.rsvp-meal-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.rsvp-meal-btn:hover,
.rsvp-meal-btn:focus {
    border-color: var(--primary);
    background: var(--white);
    color: var(--primary);
    outline: none;
    padding-left: clamp(26px, 4vw, 38px);
}

.rsvp-meal-btn:hover::before,
.rsvp-meal-btn:focus::before {
    transform: scaleY(1);
}

/* Back link */
.rsvp-back-btn {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.25s ease;
    text-transform: uppercase;
    margin-top: 8px;
}

.rsvp-back-btn:hover {
    color: var(--dark);
}

/* Success state — shown after form submission */
.rsvp-success {
    text-align: center;
    padding: clamp(40px, 7vw, 80px) var(--container-pad);
    animation: fadeInUp 0.8s ease forwards;
}

.rsvp-success-icon {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary);
    margin-bottom: clamp(16px, 2.5vw, 24px);
}

.rsvp-success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-style: italic;
    font-weight: 300;
    color: var(--dark);
    margin-bottom: 12px;
}

.rsvp-success-message {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
}


/* ============================================================
   20 — FOOTER
   Thank you message, couple names, watermark, admin link.
   ============================================================ */
.footer {
    padding: var(--section-padding) 0 clamp(40px, 6vw, 70px);
    background: var(--dark);
    text-align: center;
}

/* Botanical decoration at top of footer */
.footer-botanical {
    color: rgba(201, 169, 110, 0.25);
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 32px);
    pointer-events: none;
}

.footer-botanical svg {
    width: clamp(200px, 50vw, 360px);
    margin: 0 auto;
}

.footer-content {
    padding: 0 var(--container-pad);
}

/* Couple names in footer */
.footer-couple {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 8px;
}

/* Date in footer */
.footer-date {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-label);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: clamp(20px, 3vw, 32px);
}

/* Gold divider in footer */
.footer-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 auto clamp(24px, 4vw, 40px);
    max-width: 200px;
}

.footer-divider span:first-child,
.footer-divider span:last-child {
    flex: 1;
    height: 1px;
    background: rgba(201, 169, 110, 0.3);
    display: block;
}

.footer-diamond {
    color: var(--primary);
    font-size: 0.4rem;
    opacity: 0.6;
}

/* Thank you message */
.footer-thanks {
    font-family: 'Jost', sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.9;
    margin-bottom: clamp(20px, 3vw, 32px);
}

/* Bible verse / quote */
.footer-verse {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.9;
    max-width: 480px;
    margin: 0 auto clamp(30px, 5vw, 50px);
}

.footer-verse-ref {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-style: normal;
    letter-spacing: 0.2em;
    margin-top: 10px;
    opacity: 0.6;
}

/* AT Studio watermark */
.footer-watermark {
    margin-bottom: 14px;
}

.footer-watermark a {
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-watermark a:hover {
    color: var(--primary);
}

/* Logo watermark variant */
.footer-watermark-logo {
    display: block;
    height: 28px;             /* subtle — credit, not advertisement */
    width: auto;
    opacity: 0.30;            /* ghosted to match the delicate text watermark above */
    filter: brightness(0) invert(1) grayscale(1); /* renders white on dark footer, theme-neutral */
    transition: opacity 0.3s ease;
}

.footer-watermark a:hover .footer-watermark-logo {
    opacity: 0.70;            /* lifts gently on hover */
}

/* Copyright line */
.footer-copyright {
    font-family: 'Jost', sans-serif;
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.12);
}

/* Hidden admin link — discreet dot */
.footer-admin-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-admin-link:hover {
    color: var(--primary);
}


/* ============================================================
   20b — MUSIC PLAYER
   Fixed bottom bar. Shows only when musicUrl is configured.
   Slides up from the bottom on page load after a short delay.
   ============================================================ */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(44, 44, 44, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201, 169, 110, 0.25);
    padding: clamp(10px, 1.5vw, 14px) clamp(16px, 3vw, 32px);
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);

    /* Starts hidden below the screen */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s ease;
}

/* Visible state — added by script.js after delay */
.music-player.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Play/pause button */
.music-play-btn {
    width: clamp(36px, 5vw, 44px);
    height: clamp(36px, 5vw, 44px);
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.5);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.music-play-btn:hover {
    background: rgba(201, 169, 110, 0.15);
    border-color: var(--primary);
}

.music-play-icon {
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    color: var(--primary);
    display: block;
    line-height: 1;
    padding-left: 2px;  /* optical center for play triangle */
}

/* Song info */
.music-info {
    flex: 1;
    min-width: 0;    /* allows truncation */
}

.music-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.music-artist {
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animated sound wave bars */
.music-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    flex-shrink: 0;
}

.music-wave span {
    display: block;
    width: 3px;
    height: 4px;
    background: rgba(201, 169, 110, 0.35);
    border-radius: 2px;
    transition: background var(--transition-fast);
}

/* Wave animation — only plays when music is playing */
.music-wave.playing span {
    background: var(--primary);
    animation: musicWave 1.2s ease-in-out infinite;
}

.music-wave.playing span:nth-child(1) { animation-delay: 0s;    animation-duration: 1.1s; }
.music-wave.playing span:nth-child(2) { animation-delay: 0.15s; animation-duration: 0.9s; }
.music-wave.playing span:nth-child(3) { animation-delay: 0.3s;  animation-duration: 1.3s; }
.music-wave.playing span:nth-child(4) { animation-delay: 0.1s;  animation-duration: 1.0s; }
.music-wave.playing span:nth-child(5) { animation-delay: 0.2s;  animation-duration: 1.2s; }

/* Pad the footer a bit when music player is visible */
.music-player.visible ~ footer,
body.has-music-player .footer {
    padding-bottom: calc(var(--section-padding) + 60px);
}

@keyframes musicWave {
    0%, 100% { height: 4px;  }
    50%       { height: 18px; }
}


/* ============================================================
   21 — SCROLL REVEAL ANIMATIONS
   Elements with class "reveal" fade in as they enter the viewport.
   Triggered by the Intersection Observer in script.js.
   ============================================================ */

/* Initial hidden state — elements start invisible and shifted down */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Visible state — added by script.js when element enters view */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger effect — each sequential reveal item waits a bit longer */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }


/* ============================================================
   22 — RESPONSIVE — TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {

    /* Navigation — show links, hide hamburger */
    .nav-hamburger { display: none; }
    .nav-links {
        display: flex !important;   /* override mobile hidden state */
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
    }

    /* Schedule cards — side by side */
    .schedule-cards {
        flex-direction: row;
    }

    /* Gallery — 3 columns */
    .gallery-grid {
        column-count: 3;
    }

    /* Timeline — alternating layout activates */
    .timeline::before {
        display: block;
    }

    /* Party members — larger circles */
    .party-member-initials,
    .party-member-photo {
        width: 80px;
        height: 80px;
    }
}


/* ============================================================
   23 — RESPONSIVE — DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {

    /* Gallery — 3 columns, wider gaps */
    .gallery-grid {
        column-count: 3;
        column-gap: 20px;
    }

    /* Timeline — full alternating layout with center line */
    .timeline-item {
        flex-direction: row;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    /* Party — larger circles */
    .party-member-initials,
    .party-member-photo {
        width: 90px;
        height: 90px;
    }
}


/* ============================================================
   24 — RESPONSIVE — LARGE DESKTOP (1440px+)
   ============================================================ */
@media (min-width: 1440px) {

    /* Gallery — 4 columns */
    .gallery-grid {
        column-count: 4;
    }
}


/* ============================================================
   25 — RESPONSIVE — TV / ULTRA WIDE (1920px+)
   ============================================================ */
@media (min-width: 1920px) {

    /* Container max width grows slightly */
    :root {
        --container-max: 1400px;
    }

    /* Gallery — 4 columns with larger gaps */
    .gallery-grid {
        column-count: 4;
        column-gap: 24px;
    }
}


/* ============================================================
   26 — RESPONSIVE — MOBILE ONLY (max 767px)
   Hamburger menu + mobile-specific layout adjustments.
   ============================================================ */
@media (max-width: 767px) {
    /* Global dark backdrop for open mobile menu */
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(44, 44, 44, 0.97);
        z-index: 1290;
        pointer-events: none;
    }

    /* Ensure the mobile nav overlay sits above music player and all page layers */
    body.menu-open .nav {
        z-index: 1300;
    }


    /* Show hamburger button */
    .nav-hamburger {
        display: flex;
    }

    /* Nav links — fullscreen overlay when open */
    .nav-links {
        display: none;              /* hidden by default */
        position: fixed;
        inset: 0;
        background: rgba(44, 44, 44, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 1100;
    }

    /* Show nav links when menu is open */
    .nav-links.open {
        display: flex;
        animation: fadeIn 0.3s ease forwards;
        background: rgba(44, 44, 44, 0.97);
    }

    body.menu-open #nav-links {
        display: flex !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(44, 44, 44, 0.97) !important;
    }

    /* CRITICAL: When menu is open, remove backdrop-filter from nav.
       backdrop-filter creates a stacking context that traps position:fixed
       children on iOS/Android, preventing the overlay from covering the screen */
    body.menu-open .nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Keep brand and hamburger visible above the overlay */
    body.menu-open .nav .nav-brand {
        color: var(--white) !important;
        position: relative;
        z-index: 1500;
    }

    body.menu-open .nav .nav-hamburger span {
        background: var(--white) !important;
    }

    /* iOS Safari fix — prevents page jump when menu locks scroll */
    body.menu-open {
        overflow: hidden;
        /* No position:fixed — we handle scroll lock purely in JS */
    }

    /* Nav links are white on the dark overlay */
    .nav-links .nav-link {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.75rem;
        letter-spacing: 0.4em;
    }

    .nav-links .nav-link:hover {
        color: var(--primary);
    }

    /* Timeline — single column on mobile */
    .timeline::before { display: none; }
    .timeline-dot     { display: none; }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .timeline-photo {
        max-width: 100%;
    }

    .timeline-text,
    .timeline-item:nth-child(even) .timeline-text {
        text-align: center;
    }

    /* Party — reduce gap */
    .party-rows {
        gap: 30px;
    }

    /* Gallery — 2 columns */
    .gallery-grid {
        column-count: 2;
    }

    /* Schedule buttons — stack on mobile */
    .schedule-map-btn,
    .schedule-ics-btn {
        display: block;
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }

    /* Music player — tighter on small screens */
    .music-player {
        padding: 10px 14px;
    }

    .music-artist {
        display: none;    /* hide artist name on very small screens */
    }

    /* Keep lightbox controls visible and image centered on small screens */
    .lightbox-content {
        top: 52px;
        bottom: 60px;
        padding: 0 40px;
    }

    body.has-music-player .lightbox-content {
        bottom: 120px;
    }

    body.has-music-player .lightbox-counter {
        bottom: 72px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
}


/* ============================================================
   LANDSCAPE MOBILE (max height 500px)
   Special handling for phones held sideways.
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {

    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero-groom,
    .hero-bride {
        font-size: clamp(2rem, 8vh, 4rem);
    }
}


/* ============================================================
   GLOBAL KEYFRAME ANIMATIONS
   Used throughout all sections.
   ============================================================ */

/* Fade up from below */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simple fade in */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Bouncing dots */
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1.0); opacity: 1;   }
}

/* Scroll line pulse */
@keyframes scrollLine {
    0%   { height: 0;                     opacity: 0; }
    50%  { height: clamp(30px, 5vw, 50px); opacity: 1; }
    100% { height: clamp(30px, 5vw, 50px); opacity: 0; }
}

/* Loader bar fill */
@keyframes loaderFill {
    from { width: 0%;   }
    to   { width: 100%; }
}

/* ============================================================
   AT STUDIO — PREMIUM WEDDING TEMPLATE
   style.css — Main Stylesheet
   © 2025 AT Studio. All Rights Reserved.
   Unauthorized copying or redistribution is prohibited.
   ============================================================ */