/* ===========================
   CLARENCE & LAINE WEDDING SITE

   Color Palette:
   - Sage Green:     #9caf88
   - Lavender Gray:  #b8a9b8
   - Mauve:          #c49db0
   - Ivory/Off-white:#f5f2ec
   - Dark text:      #4b4b4b

   Structure:
   1. Variables & Reset
   2. Typography
   3. Navigation
   4. Hero
   5. Sections (general)
   6. Our Story
   7. Venues & Map
   8. Timeline
   9. Entourage
   10. Attire Guide
   11. Gallery
   12. Spotify Playlist
   13. RSVP Form
   14. FAQ Page
   15. Footer
   16. Back to Top
   17. Responsive
   =========================== */

/* ===========================
   1. VARIABLES & RESET
   =========================== */

@font-face {
    font-family: 'Belinda Avenue';
    src: url('../fonts/BelindaAvenue-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Watermint Script';
    src: url('../fonts/WatermintScript.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Floraison des Amours';
    src: url('../fonts/Floraison des Amours.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Le Jardin Secret';
    src: url('../fonts/Le Jardin Secret.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Folklore Italic';
    src: url('../fonts/Folklore Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lover';
    src: url('../fonts/Satisfy-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Primary */
    --dusty-pink: #facdd7;
    --mauve: #C49DB0;
    --sage: #9caf88;

    /* Secondary */
    --lavender-gray: #9d8ca1;
    --lime-yellow: #d4dc8b;
    --mellow-orange: #e87830;

    /* Tertiary */
    --pastel-blue: #A8BDD9;

    /* Extended (UI usage) */
    --dusty-pink-light: #fde6eb;
    --dusty-pink-dark: #C49DB0;
    --sage-light: #b0bea2;
    --sage-dark: #839570;
    --ivory: #f9f8f6;
    --ivory-warm: #f7f4effa;
    --lavender-gray-light: #dcd3de;
    --dark: #4b4b4b;
    --white: #ffffff;

    /* Shared font stacks */
    --font-script: 'Belinda Avenue', 'Dancing Script', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Josefin Sans', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--dark);
    background-color: #FFFEFC;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
}

/* ===========================
   2. TYPOGRAPHY
   =========================== */

h1, h2, h3 {
    font-family: var(--font-serif);
}

.section-title {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
    letter-spacing: 1px;
}

/* Shared script heading (used for "The" above venues/story/entourage) */
.script-heading {
    font-family: var(--font-script);
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1;
}

/* ===========================
   3. NAVIGATION
   =========================== */

.navbar {
    background: rgba(255, 254, 252, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.3rem 0;
    transition: all 0.3s ease, transform 0.3s ease;
    border-bottom: 1px solid rgba(196, 157, 176, 0.08);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--dark) !important;
    font-weight: normal;
    letter-spacing: 1px;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-heart {
    width: 22px;
    height: auto;
    vertical-align: middle;
    margin: 0 2px;
}

.nav-brand-img {
    height: 70px;
    width: auto;
    display: block;
    margin: -25px 0;
    image-rendering: auto;
}

.nav-link {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--dark) !important;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--mauve) !important;
}

/* Custom burger icon — three lines, progressively shorter */
.navbar-toggler {
    border: none;
    padding: 0;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    width: 30px;
    height: 30px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    z-index: 1051;
    margin-right: 0.5rem;
    box-sizing: content-box;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: flex;
    }
    .navbar-collapse {
        display: none !important;
    }
    .navbar-collapse.show {
        display: flex !important;
    }
}

.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: none;
    outline: none;
    background: transparent;
}

.navbar-toggler-icon {
    display: none;
}

.navbar-toggler .burger-line {
    display: block;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.navbar-toggler .burger-line:nth-child(1) {
    width: 26px;
}

.navbar-toggler .burger-line:nth-child(2) {
    width: 20px;
}

.navbar-toggler .burger-line:nth-child(3) {
    width: 15px;
}

/* Animate to X when open — both arms same width, cross at center.
   gap is 6px, line height 2px, so center-to-center = 2/2 + 6 + 2/2 = 8px */
.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(1) {
    width: 26px;
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(3) {
    width: 26px;
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile slide-in panel */
@media (max-width: 991.98px) {
    .navbar {
        background: rgba(255, 254, 252, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 65%;
        max-width: 260px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        padding: 2rem;
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.06);
        border-radius: 24px 0 0 24px;
        transition: right 0.3s ease;
        z-index: 1050;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .navbar-collapse.show {
        right: 0;
        display: flex !important;
    }

    /* Lock the page behind the open menu so scrolling doesn't move things */
    body.nav-open {
        overflow: hidden;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
        width: 100%;
    }

    .nav-link {
        margin-left: 0;
        padding: 1rem 0;
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        border-bottom: 1px solid rgba(196, 157, 176, 0.08);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-item {
        position: relative;
    }

    /* Hide overlay — close handled by JS document click */
    .nav-overlay {
        display: none;
    }
}

/* ===========================
   4. HERO
   =========================== */

.hero-section {
    min-height: 100vh;
    min-height: 100dvh; /* fills the screen accounting for mobile browser bars */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: #FFFEFC;
    background-size: 400px;
    background-repeat: repeat;
}

/* Background image slideshow behind the hero content */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    opacity: 0;
}

.hero-slide.active {
    opacity: 1;
}

/* Engagement-day caption, bottom-right of the hero */
.hero-photo-caption {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    z-index: 3;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: rgba(248, 244, 239, 0.8);
    font-style: italic;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* No veil — photos show at full clarity. */
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-overlay.revealed {
    opacity: 1;
}

/* Hero intro reveal — elements are hidden until their class is set, then
   appear immediately (no fade, no motion). */
.hero-reveal {
    visibility: hidden;
}

.hero-reveal.revealed {
    visibility: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem 2rem;
}

.hero-names {
    font-size: 8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #F8F4EF;
}

/* Generous line-height so the script glyphs (tall ascenders + deep
   descenders) are never cropped by the background-clip:text box. */
.name-clarence,
.name-laine {
    font-family: var(--font-script);
    font-weight: normal;
    font-style: normal;
    text-align: center;
    line-height: 1.15;
    /* padding keeps the script glyphs from clipping */
    padding: 0.25em 0.1em 0.35em;
    /* Moving pink/lavender shimmer with warm-ivory highlights woven in */
    background: linear-gradient(135deg, #d79ab8 0%, #F8F4EF 17%, #c3a3cf 33%, #F8F4EF 50%, #F8F4EF 67%, #d79ab8 83%, #c3a3cf 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: loveStoryShift 20s linear infinite;
}

.name-clarence {
    display: block;
}

@keyframes loveStoryShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 250% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .story-heading {
        animation: none;
    }
}

/* Second row: heart + "laine" together. Negative top margin pulls it up
   closer to "clarence" (the per-name padding otherwise leaves a big gap). */
.name-laine-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    line-height: 1;
    margin-top: -0.6em;
}

.name-laine-row .name-laine {
    display: inline-block;
}

.heart-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* lift onto the x-height midline of "laine" */
    transform: translateY(-0.42em);
}

.heart-img {
    width: 90px;
    height: auto;
    display: block;
    /* Tint the heart PNG toward blush pink #F2BDCD */
    filter: brightness(0) saturate(100%) invert(84%) sepia(14%) saturate(1100%) hue-rotate(291deg) brightness(98%) contrast(94%);
}

.hero-date {
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 600;
    color: rgba(248, 244, 239, 0.8);
    letter-spacing: 6px;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: var(--font-sans);
    font-size: 5.5rem;
    font-weight: 600;
    /* Moving multi-colour shimmer: sage, orange, lime, blue, lavender, pink */
    background: linear-gradient(90deg,
        #8ba36b 0%,    /* sage green */
        #e6a55c 14%,   /* mellow orange */
        #c9d16b 28%,   /* lime yellow */
        #7fa8c9 42%,   /* soft blue */
        #a99fc0 56%,   /* lavender */
        #d79ab8 70%,   /* dress-code pink */
        #8ba36b 84%,   /* sage green */
        #d79ab8 100%   /* pink */
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: loveStoryShift 20s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .countdown-number {
        animation: none;
    }
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lavender-gray);
}

/* CTA Button */
.btn-rsvp {
    display: inline-block;
    padding: 0.9rem 3rem;
    background: var(--mauve);
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1.5px solid var(--mauve);
}

.btn-rsvp:hover {
    background: transparent;
    color: var(--mauve);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(135, 153, 107, 0.3);
}

/* Hollow / outline variant */
.btn-rsvp-hollow {
    background: transparent !important;
    color: var(--mauve);
}

.btn-rsvp-hollow:hover {
    background: var(--mauve) !important;
    color: var(--white);
}

.btn-directions {
    font-size: 0.8rem;
    padding: 0.7rem 2rem;
}

/* ===========================
   5. SECTIONS (general)
   =========================== */

.section {
    padding: 6rem 0;
}

.hidden {
    display: none;
}

/* ===========================
   6. OUR STORY
   =========================== */

.story-section {
    background: linear-gradient(135deg, #ffffff 0%, #fce4ec 25%, #f8d7e8 45%, #e8dce8 65%, #dfd8e8 100%);
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
}

.story-section .container {
    position: relative;
    z-index: 1;
}

.story-section-2 {
    background: transparent;
    position: relative;
    padding-top: 0;
    margin-top: 0;
}

.story-section-2::before {
    display: none;
}

.story-section-2 .container {
    position: relative;
    z-index: 1;
}

.story-heading {
    font-family: 'Watermint Script', 'Dancing Script', cursive;
    font-size: 9.5rem;
    font-weight: thin;
    letter-spacing: 2px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.05;
    /* placed diagonally on the page */
    display: inline-block;
    transform: rotate(-8deg);
    /* padding gives the glyphs room so background-clip:text doesn't crop them */
    padding: 0.15em 0.1em 0.25em;
    /* Dark charcoal woven with the dress-code pink/lavender tones */
    background: linear-gradient(90deg, #4b4b4b 0%, #a99fc0 20%, #d79ab8 35%, #6d5f66 50%, #c3a3cf 65%, #4b4b4b 82%, #d79ab8 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* moving gradient shimmer */
    animation: loveStoryShift 10s linear infinite;
}

.story-chapter {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: thick;
    letter-spacing: 1px;
    color: var(--dark);
    margin: 2rem 0 2rem;
}

.story-closing {
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 1.5rem;
}

.story-text {
    padding: 1rem;
}

/* 2-column layout for first story paragraph */
.story-columns {
    column-count: 2;
    column-gap: 3rem;
    overflow: hidden;
}

.story-columns p {
    transform: none;
    break-inside: avoid;
}

@media (max-width: 768px) {
    .story-columns {
        column-count: 1;
    }
}

.story-text p {
    font-family: 'Folklore Italic', 'Le Jardin Secret', var(--font-serif);
    font-size: 0.85rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1rem;
    transform: rotate(-1deg);
    font-weight: 100;
    -webkit-text-stroke: 0.05px rgba(85, 85, 85, 0.7);
}

/* Vary slant for handwritten feel (part 2 — part 1 columns override with transform:none) */
.story-text p:nth-child(odd) {
    transform: rotate(-1.2deg);
}

.story-text p:nth-child(even) {
    transform: rotate(-0.4deg);
}

.story-text p:nth-child(3n) {
    transform: rotate(-1.6deg);
}

.story-text p em {
    color: var(--lavender-gray);
    font-style: italic;
}

.story-text p b,
.story-text p strong {
    color: var(--dark);
    font-weight: normal;
    background: linear-gradient(to top, rgba(212, 220, 139, 0.4) 50%, transparent 20%);
    padding: 0 3px;
    border-radius: 2px;
}

/* Part 2 paragraphs slanted */
.story-text .story-chapter,
.story-chapter-slanted {
    transform: none;
}

/* Part 1: title and paragraphs not slanted */
h3.story-chapter.text-center {
    transform: none;
}

.story-columns p {
    transform: none;
}

/* Swipeable Photo Cards */
.photo-cards {
    position: relative;
    width: 100%;
    height: 450px;
    perspective: 1000px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    overflow: visible;
    margin-bottom: 0.5rem;
    z-index: 3;
}

.photo-cards:active {
    cursor: grabbing;
}

.photo-card {
    position: absolute;
    left: 25%;
    top: 1%;
    width: 50%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, opacity 0.4s ease;
    background: #fff;
    z-index: 2;
}

.photo-card .placeholder-box {
    padding: 2rem;
    text-align: center;
    color: var(--lavender-gray);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.photo-card.scattered {
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Collect photos link */
.btn-collect-photos {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    background: none;
    border: none;
    padding: 0.4rem 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--lavender-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Part 1: collect button lower */
.col-lg-8 > .btn-collect-photos,
.col-md-10 > .btn-collect-photos {
    margin-top: 3rem;
}

/* Part 2: collect button tighter */
.col-lg-6 > .btn-collect-photos {
    margin-top: 0.5rem;
}

.btn-collect-photos:hover {
    color: var(--mauve);
}

.btn-collect-photos.hidden {
    display: none;
}

/* Flip through label */
.photo-flip-label {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--lavender-gray);
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Part 1: flip label lower */
.col-lg-6 > .photo-flip-label,
.col-md-10 > .photo-flip-label {
    margin-top: 0.5rem;
}

/* Part 2: flip label tighter */
.col-lg-6 > .photo-flip-label {
    margin-top: 0.5rem;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.photo-card.active {
    z-index: 10;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.photo-card.swiping-left {
    transform: translateX(-120%) rotate(-8deg);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.photo-card.swiping-right {
    transform: translateX(120%) rotate(8deg);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

/* Photo card states */

/* ===========================
   7. VENUES & MAP
   =========================== */

.venues-section {
    background: #FFFEFC;
    padding: 5rem 0;
}

.venues-script {
    font-family: var(--font-script);
    font-size: 3.5rem;
    font-weight: normal;
    color: var(--dark);
    margin-bottom: 0;
    line-height: 1;
}

.venues-heading {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 10px;
    color: var(--dark);
    margin-bottom: 0;
}

.venues-intro {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: #555;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}

.venues-sub {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #888;
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.7;
}

.faq-teaser {
    text-align: center;
    margin: 4rem 0 0;
    padding: 3rem 2rem;
}

.faq-teaser-section {
    background: #FFFEFC;
}

.faq-teaser-desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.faq-teaser-title {
    position: relative;
    display: inline-block;
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    z-index: 1;
}

.faq-teaser-title::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -5px;
    bottom: 0.32em;
    height: 38%;
    background: rgba(212, 220, 139, 0.42);
    border-radius: 3px 6px 4px 5px;
    transform: rotate(-0.8deg);
    z-index: -1;
}

.faq-teaser p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.venue-card {
    margin-bottom: 2rem;
    overflow: hidden;
    padding-bottom: 1rem;
}

.venue-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 1rem;
}

.venue-header:hover .venue-heading {
    color: var(--mauve);
}

.venue-toggle-arrow {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--mauve);
    margin-top: 0.6rem;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    animation: bounce-chevrons 2s infinite;
}

@keyframes bounce-chevrons {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(4px); }
}

.venue-card.open .venue-toggle-arrow {
    transform: rotate(270deg);
    animation: none;
}

.venue-details {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: max-height 1.2s ease, padding 1.2s ease;
    text-align: center;
}

.venue-card.open .venue-details {
    max-height: 800px;
    padding: 1rem 2rem 2rem;
}

.venue-heading {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--dark);
    margin: 0;
    text-align: center;
    transition: font-size 0.6s ease, letter-spacing 0.6s ease;
}

.venue-card.open .venue-heading {
    font-size: 2rem;
    letter-spacing: 4px;
}

.venue-name {
    font-family: var(--font-script);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.venue-addr {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.venue-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-top: 0.8rem;
}

.venue-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--lavender-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.venue-link:hover {
    color: var(--mauve);
}

.venue-img {
    width: 40%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 0.8rem;
    display: block;
}

/* Map */
.map-section {
    background: linear-gradient(135deg, rgba(168, 189, 217, 0.15) 0%, rgba(168, 189, 217, 0.08) 50%, #FFFEFC 100%);
    padding: 5rem 0;
}

.map-section .container {
    position: relative;
    z-index: 1;
}

.map-subtitle {
    text-align: center;
    color: #777;
    font-size: 1rem;
    margin-bottom: 3rem;
}

.map-embed {
    border-radius: 12px;
    overflow: hidden;
}

.map-directions-link {
    text-align: center;
    margin-top: 1.5rem;
}

/* ===========================
   8. TIMELINE (sage green horizontal)
   =========================== */

.timeline-sage-section {
    background: var(--sage);
    color: #fff;
    padding: 5rem 0 4rem;
}

.sage-title {
    font-family: var(--font-script);
    font-size: 3.2rem;
    font-weight: normal;
    color: #fff;
    margin-bottom: 1rem;
}

.sage-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
}

.sage-day {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.5rem;
}

.sage-timeline-h {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 3rem 0;
}

.sage-timeline-h::before {
    content: '';
    position: absolute;
    top: calc(3rem + 7px);
    left: 25%;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.sage-th-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.sage-th-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.sage-th-time {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 0.6rem;
}

.sage-th-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.927);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.sage-th-loc {
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* ===========================
   9. ENTOURAGE (sage green)
   =========================== */

.entourage-section {
    background: var(--sage);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.entourage-script {
    font-family: var(--font-script);
    font-size: 3.5rem;
    font-weight: normal;
    color: #fff;
    margin-bottom: 0;
    line-height: 1;
}

.entourage-title-wrap {
    margin-bottom: 3.5rem;
}

.entourage-heading {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: #fff;
    margin-bottom: 3rem;
}

.entourage-group {
    margin-bottom: 4rem;
}

.entourage-group-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.entourage-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.entourage-columns {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.entourage-col {
    min-width: 150px;
}

.entourage-col p,
.entourage-center-group p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 0.6rem;
}

.entourage-role {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.entourage-center-group {
    margin-top: 2rem;
}

/* ===========================
   10. ATTIRE GUIDE
   =========================== */

.attire-section {
    background: var(--white);
}

.attire-card {
    text-align: center;
    padding: 3rem;
}

.color-swatches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.swatch {
    padding: 2.5rem 2rem;
    border-radius: 4px;
}

.swatch span {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.swatch-lavender { background: var(--lavender-gray); }
.swatch-mauve    { background: var(--mauve); }
.swatch-ivory    { background: #e8e4dc; }

.swatch-ivory span {
    color: var(--dark);
    text-shadow: none;
}

.attire-note {
    font-size: 1rem;
    color: #777;
    font-style: italic;
    margin-top: 1.5rem;
}

.attire-details {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-top: 1.5rem;
    text-align: center;
}

/* ===========================
   11. GALLERY
   =========================== */

.gallery-section {
    background: #fdfcfa;
    padding: 5rem 0;
}

.gallery-quote {
    font-family: 'Watermint Script', 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.4;
    /* padding so the script glyphs aren't clipped by background-clip:text */
    padding: 0.1em 0.1em 0.2em;
    /* same moving gradient as the Love Story heading */
    background: linear-gradient(90deg, #4b4b4b 0%, #a99fc0 20%, #d79ab8 35%, #6d5f66 50%, #c3a3cf 65%, #4b4b4b 82%, #d79ab8 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: loveStoryShift 10s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-quote {
        animation: none;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* ===========================
   12. SPOTIFY PLAYLIST
   =========================== */

.playlist-section {
    background: #f8e8ea;
    overflow: hidden;
}

.vinyl-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Break out of the Bootstrap .container so the vinyl can use full width */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* Pull the vinyl up toward the text and let the section clip its bottom.
       Smaller negative bottom = more of the vinyl's lower half stays visible. */
    margin-top: -2rem;
    margin-bottom: -42%;
}

.vinyl-spinning {
    width: min(96vw, 980px);
    height: min(96vw, 980px);
    max-width: none;
    border-radius: 50%;
    border: none;
    outline: none;
    animation: spin 8s linear infinite;
    cursor: grab;
}

/* Curved text arcing above the vinyl */
.playlist-curved {
    max-width: 1000px;
    margin: 0 auto;
}

.playlist-curved-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.playlist-curved-svg .curved-heading {
    font-family: var(--font-script);
    font-size: 54px;
    fill: var(--dark);
}

.playlist-curved-svg .curved-line {
    font-family: var(--font-sans);
    font-size: 15px;
    fill: #555;
    letter-spacing: 0.2px;
}

/* Fallback (hidden when SVG is supported, shown if not) */
.playlist-curved-fallback {
    display: none;
}

.vinyl-spinning:active {
    cursor: grabbing;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spotify-embed {
    border-radius: 12px;
    overflow: hidden;
}

.playlist-text {
    padding: 1rem 0;
}

.playlist-lead {
    font-family: var(--font-script);
    font-size: 2.6rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.playlist-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1rem;
}

/* ===========================
   13. RSVP FORM
   =========================== */

.rsvp-section {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--white) 100%);
}

.rsvp-subtitle {
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 300;
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.rsvp-countdown {
    margin-bottom: 2rem;
}

/* Calendar Reminder Buttons */
.calendar-reminders {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}

/* Calendar reminder links — no button box; text uses the moving gradient
   (same treatment as the FAQ dress-code question). */
.cal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: transparent;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.cal-btn span {
    color: var(--dark);
}

.cal-icon {
    width: 14px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    transform: translateY(-2px);
    /* keep the logos dark */
    filter: brightness(0.3);
}

/* Form */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--lavender-gray);
    margin-bottom: 0.5rem;
}

.form-control {
    border: none;
    border-bottom: 1.5px solid var(--lavender-gray);
    border-radius: 0;
    padding: 0.8rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--mauve);
    background: transparent;
}

select.form-control {
    appearance: none;
    cursor: pointer;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--lavender-gray);
    border-radius: 8px;
    background: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235e7048' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

textarea.form-control {
    border: 1.5px solid var(--lavender-gray);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    resize: vertical;
}

/* Custom Radio Buttons */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--lavender-gray);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--mauve-light);
    background: rgba(135, 153, 107, 0.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked ~ .radio-text {
    color: var(--white);
    font-weight: 400;
}

.radio-option:has(input[type="radio"]:checked) {
    background: var(--mauve);
    border-color: var(--mauve);
}

.radio-text {
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.5px;
}

/* Gate & Welcome */
.gate-instruction {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: #777;
    margin-bottom: 2rem;
}

.gate-welcome {
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--mauve);
    margin-bottom: 0.5rem;
}

.invited-text {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--dark);
    margin-top: 0.5rem;
}

.field-note {
    font-size: 0.8rem;
    color: var(--mauve);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: center;
}

/* Submit Button */
.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--mauve);
    color: var(--white);
    border: 2px solid var(--mauve);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: transparent;
    color: var(--mauve);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(135, 153, 107, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.form-message {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.form-message .message-icon {
    font-size: 3rem;
    color: var(--mauve);
    margin-bottom: 1rem;
}

.form-message p {
    font-size: 1.1rem;
    color: var(--lavender-gray);
    line-height: 1.7;
}

.form-error p {
    color: #c0392b;
}

/* ===========================
   14. FAQ PAGE
   =========================== */

.faq-hero {
    padding-top: 10rem;
    padding-bottom: 2rem;
    text-align: center;
    background: #fff;
}

.faq-page-title {
    position: relative;
    display: inline-block;
    font-family: var(--font-script);
    font-size: 3.5rem;
    font-weight: normal;
    color: var(--dark);
    margin-bottom: 1rem;
    z-index: 1;
}

.faq-page-title::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -5px;
    bottom: 0.32em;
    height: 45%;
    background: rgba(212, 220, 139, 0.42);
    border-radius: 3px 6px 4px 5px;
    transform: rotate(-0.8deg);
    z-index: -1;
}

.faq-intro {
    text-align: center;
    color: #777;
    font-size: 1.05rem;
    margin-top: -1.5rem;
}

.faq-section {
    background: #fff;
}

.faq-accordion .faq-item {
    border-bottom: 1px solid rgba(196, 157, 176, 0.2);
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--dark);
    text-align: left;
}

.faq-toggle:hover {
    color: var(--mauve);
}

/* Animated pink/lavender-gray gradient on the dress-code question (matches Love Story bg) */
.faq-toggle-gradient .faq-q-text {
    background: linear-gradient(90deg, #d79ab8 0%, #c3a3cf 20%, #a99fc0 40%, #d79ab8 60%, #c3a3cf 80%, #a99fc0 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    animation: faqGradientShift 7s linear infinite;
}

.faq-toggle-gradient:hover .faq-q-text {
    -webkit-text-fill-color: transparent;
}

@keyframes faqGradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 250% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-toggle-gradient .faq-q-text {
        animation: none;
    }
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--lavender-gray);
    min-width: 24px;
    text-align: center;
}

.faq-accordion .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    padding: 0;
}

.faq-accordion .faq-item.open .faq-answer {
    max-height: 1500px;
    padding: 0 0 1.5rem;
}

.faq-answer a {
    color: var(--mauve);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-answer a:hover {
    color: var(--lavender-gray);
}

.faq-answer strong {
    color: var(--dark);
}

.color-swatches {
    display: flex;
    flex-direction: row;
    gap: 2.25rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.color-swatch {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.color-swatch-label {
    font-family: 'Folklore Italic', serif;
    font-size: 0.75rem;
    color: var(--lavender-gray);
    text-align: center;
}

.btn-expand-all {
    background: none;
    border: 1.5px solid var(--mauve);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-expand-all:hover {
    background: var(--mauve);
    color: #fff;
    border-color: var(--mauve);
}

/* ===========================
   15. FOOTER
   =========================== */

.site-footer {
    text-align: center;
    padding: 2rem;
    background: var(--ivory);
    border-top: 1px solid rgba(196, 157, 176, 0.1);
}

.footer-names {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.footer-heart {
    width: 36px;
    height: auto;
    vertical-align: middle;
    margin: 0 6px;
}

/* Inline heart PNG used in place of heart emojis in body text */
.inline-heart {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    display: inline-block;
    margin: 0 0.1em;
}

/* Sparkle PNG (what-to-expect locked card) */
.sparkle-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-credits {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
}

/* ===========================
   16. BACK TO TOP
   =========================== */

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--lavender-gray);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===========================
   17. RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .hero-content {
        padding: 0rem 1.5rem 2rem;
    }

    .hero-names {
        font-size: 5rem;
    }

    /* Tighter venue cards on mobile (less gap between Ceremony/Celebration) */
    .venue-card {
        margin-bottom: 0.75rem;
        padding-bottom: 0;
    }

    .venue-header {
        padding: 1rem 1rem 0.75rem;
    }

    .heart-img {
        width: 70px;
    }

    .hero-date {
        font-size: 2.2rem;
        letter-spacing: 3px;
        white-space: nowrap;
    }

    .story-heading {
        font-size: 5rem;
        transform: none;        /* no slant on mobile */
    }

    /* keep "the love story" on one line on mobile (space before br remains) */
    .story-heading .story-br {
        display: none;
    }

    .story-text p {
        line-height: 2;
        font-size: 0.8rem;
    }

    .story-closing {
        margin-top: 2rem;
    }

    .venues-section {
        padding-top: 3rem;
    }

    .sage-title {
        font-size: 2.5rem;
    }

    .sage-date {
        color: rgba(255, 255, 255, 0.9);
    }

    .sage-day {
        color: rgba(255, 255, 255, 0.7);
    }

    .sage-th-prelude .sage-th-desc small {
        color: rgba(255, 255, 255, 0.6);
    }

    .section {
        padding: 4rem 0;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .spotify-embed {
        box-shadow: none;
        border-radius: 8px;
    }

    .photo-cards {
        overflow: visible;
        height: 380px;
    }

    .photo-card {
        width: 65%;
        left: 17%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .photo-card-sm {
        width: 50% !important;
        left: 25% !important;
    }

    .venue-img {
        width: 60%;
    }

    .back-to-top.visible {
        opacity: 0.7;
    }

    .entourage-heading {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .entourage-script {
        font-size: 2.6rem;
    }

    .entourage-group-title {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .entourage-subtitle {
        font-size: 0.9rem;
    }

    .entourage-col p,
    .entourage-center-group p {
        font-size: 1.1rem;
    }

    .entourage-role {
        font-size: 0.95rem;
    }

    .entourage-group {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 600px) {
    .sage-timeline-h {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 3rem;
        margin: 0 auto;
        max-width: 300px;
        position: relative;
    }

    .sage-timeline-h::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 1.5rem;
        width: 1px;
        height: 100%;
        background: rgba(255, 255, 255, 0.25);
    }

    .sage-th-item {
        text-align: left;
        padding: 1.2rem 0;
        position: relative;
    }

    /* Both dot types centered on the vertical line.
       Line = container left:1.5rem; items have padding-left:3rem → line is
       at -1.5rem from item content edge. translateX(-50%) centers the dot
       box on that point; the round dot's box-shadow halo is symmetric. */
    .sage-th-dot {
        position: absolute;
        left: -23.5px;
        transform: translateX(-50%);
        top: 1.5rem;
        margin: 0;
    }

    .sage-th-prelude .sage-th-dot-small {
        position: absolute;
        left: -23.5px;
        transform: translateX(-50%);
        top: 1.5rem;
        margin: 0;
        width: 16px;
        height: 16px;
    }

    .sage-th-prelude::after,
    .sage-th-prelude::before {
        display: none;
    }

    /* Spotify — bigger and centered */
    .spotify-embed iframe {
        height: 400px;
    }

    .playlist-section .col-lg-6 {
        text-align: center;
    }

    .playlist-text {
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Keep the curved arc text on mobile too. The SVG scales down to the
       phone width, so bump the arc font sizes up to stay readable. */
    .playlist-curved-svg .curved-heading {
        font-size: 64px;
    }

    .playlist-curved-svg .curved-line {
        font-size: 20px;
    }

    /* Remove the section's bottom padding so the clipped vinyl sits flush
       against the next section (no pink gap below it). */
    .playlist-section {
        padding-bottom: 0;
    }

    /* On mobile: vinyl spans the FULL screen width (edge to edge, no pink
       on the sides) and the bottom quarter is clipped by a fixed-height
       window. Break out of the .container padding to reach the screen edges. */
    .vinyl-container {
        justify-content: center;
        align-items: flex-start;
        /* Full-viewport-width breakout, ignoring the container's padding */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        margin-top: 0.5rem;
        overflow: hidden;
        /* Bigger vinyl (150vw); window height shows more of the centre,
           clipping only a small slice of the bottom. */
        height: 128vw;
    }

    .vinyl-spinning {
        width: 150vw;
        height: 150vw;
        max-width: none;
        max-height: none;
        flex: 0 0 auto;
        border: none;
        outline: none;
    }

    .venue-heading {
        font-size: 1.4rem;
    }

    .map-embed iframe {
        height: 250px;
    }

    .spotify-embed iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-names {
        font-size: 4.5rem;
    }

    .heart-img {
        width: 60px;
    }

    .hero-date {
        font-size: 1.9rem;
        letter-spacing: 2px;
        white-space: nowrap;
    }

    .story-heading {
        font-size: 4rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-quote {
        font-size: 1.8rem;
    }
}


/* ===========================
   TIMELINE ENHANCEMENTS
   =========================== */

/* Prelude node — faded text, but the heart stays fully opaque.
   (Fade only the text, not the whole block, so the heart isn't dimmed.) */
.sage-th-prelude .sage-th-time {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.7;
}

.sage-th-prelude .sage-th-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

.sage-th-prelude .sage-th-desc small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.648);
    font-style: italic;
}

/* Dashed line from prep to first guest event */
.sage-th-prelude::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 100%;
    height: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Dashed line before the heart (left side) */
.sage-th-prelude::before {
    content: '';
    position: absolute;
    top: 7px;
    right: 50%;
    width: 50%;
    height: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.sage-th-dot-small {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.sage-th-dot-small img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Explore the Celebration */
.sage-explore-label {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.sparkle-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 0.3rem;
    display: inline-block;
}

.sparkle-dark {
    width: 28px;
    height: 28px;
}

.sage-explore-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.btn-celebration-guide {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.btn-celebration-guide:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* ===========================
   WHAT TO EXPECT PAGE
   =========================== */

/* Locked state */
.wte-locked {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.wte-locked-card {
    max-width: 550px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 16px;
}

.wte-locked-emoji {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.wte-locked-msg {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.wte-locked-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #777;
    line-height: 1.8;
}

/* Content state */
.wte-hero {
    padding-top: 10rem;
    padding-bottom: 2rem;
    background: #fff;
}

.wte-intro {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: -1.5rem auto 0;
    line-height: 1.8;
}

.wte-section {
    padding: 4rem 0;
    background: #fff;
}

.wte-section-alt {
    background: #fff;
}

.wte-section-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.wte-section-time {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--lavender-gray);
    margin-bottom: 1.5rem;
}

.wte-section-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.wte-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(196, 157, 176, 0.1);
}

.wte-item:last-child {
    border-bottom: none;
}

.wte-item-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
    padding-top: 0.2rem;
}

.wte-item-title {
    font-family: var(--font-script);
    font-size: 1.3rem;
    font-weight: normal;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.wte-item p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

.wte-item-note {
    font-style: italic;
    color: #888 !important;
    font-size: 0.85rem !important;
}

.wte-item-time {
    font-size: 0.75rem !important;
    letter-spacing: 1.5px;
    color: var(--lavender-gray) !important;
    text-transform: uppercase;
}

/* Closing */
.wte-closing {
    padding: 4rem 0 5rem;
}

.wte-closing-title {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.wte-closing-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #777;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.wte-closing-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--lavender-gray);
    margin-bottom: 1rem;
}

.wte-closing-sign {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--dark);
    margin-top: 2rem;
}

/* ===========================
   11b. GUEST GALLERY (uploads)
   =========================== */

.guest-gallery {
    margin-top: 1rem;
    text-align: center;
}

.gg-heading {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: normal;
    color: var(--dark);
    text-transform: lowercase;
    line-height: 1.2;
    margin-bottom: .25rem;
}

.gg-sub {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 1.75rem;
}

/* ---- Kahoot-style collage: flex reflow, tiles sized by photo count ---- */
.gg-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem auto 0;
    max-width: 920px;
    transition: gap .4s ease;
    /* default tile size (used if data-count is unset) */
    --tile: 200px;
}

/* fewer photos = bigger; more = smaller (max 8) */
.gg-grid[data-count="1"],
.gg-grid[data-count="2"] { --tile: 300px; }
.gg-grid[data-count="3"] { --tile: 260px; }
.gg-grid[data-count="4"] { --tile: 230px; }
.gg-grid[data-count="5"] { --tile: 200px; }
.gg-grid[data-count="6"] { --tile: 185px; }
.gg-grid[data-count="7"] { --tile: 170px; }
.gg-grid[data-count="8"] { --tile: 160px; }

/* the dedicated all-photos page can hold more, so keep tiles compact */
.gg-grid-page {
    max-width: 960px;
    --tile: 200px;
}

.gg-tile {
    position: relative;
    width: var(--tile);
    height: var(--tile);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 5px solid #fff;
    box-shadow: 0 6px 18px rgba(75, 75, 75, .15);
    cursor: pointer;
    transition: width .4s ease, height .4s ease, transform .25s ease;
}

/* Only genuinely-new tiles pop in — not on page load or the 15s poll. */
.gg-tile.gg-new {
    animation: ggPop .4s ease;
}

.gg-tile:hover {
    transform: scale(1.04);
}

.gg-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes ggPop {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}

.gg-tile .gg-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(75, 75, 75, .82), rgba(75, 75, 75, 0));
    color: #fff;
    font-family: var(--font-serif);
    font-size: .9rem;
    line-height: 1.3;
    padding: 1.4rem .6rem .5rem;
    text-align: left;
}

.gg-tile .gg-cap .gg-by {
    display: block;
    font-family: var(--font-sans);
    font-size: .62rem;
    letter-spacing: .5px;
    opacity: .85;
    margin-top: 2px;
    text-transform: uppercase;
}

.gg-pending {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(196, 157, 176, .95);
    color: #fff;
    font-family: var(--font-sans);
    font-size: .6rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
}

.gg-empty {
    color: var(--lavender-gray);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-top: 2rem;
}

/* "Add your photo" / "View all" pill buttons */
.btn-viewall {
    display: inline-block;
    background: none;
    border: 1.5px solid var(--dusty-pink-dark);
    color: var(--dusty-pink-dark);
    border-radius: 30px;
    padding: .7rem 1.8rem;
    font-family: var(--font-sans);
    font-size: .8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, color .25s;
}

.btn-viewall:hover {
    background: var(--dusty-pink-dark);
    color: #fff;
}

.gg-viewall-row {
    margin-top: 2rem;
}

/* ---- Upload modal ---- */
.gg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(75, 75, 75, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
}

.gg-overlay.open {
    display: flex;
}

.gg-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    padding: 2rem 1.75rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    max-height: 92vh;
    overflow-y: auto;
    text-align: center;
}

.gg-modal h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: .25rem;
}

.gg-modal-sub {
    font-size: .85rem;
    color: var(--lavender-gray);
    margin-bottom: 1.5rem;
}

.gg-close-x {
    position: absolute;
    top: .6rem;
    right: 1rem;
    font-size: 1.6rem;
    color: var(--lavender-gray);
    background: none;
    border: none;
    line-height: 1;
    cursor: pointer;
}

.gg-drop {
    border: 2px dashed var(--dusty-pink-dark);
    border-radius: 8px;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: background .2s;
}

.gg-drop:hover,
.gg-drop.drag {
    background: var(--dusty-pink-light);
}

.gg-drop-icon {
    font-size: 2rem;
    color: var(--dusty-pink-dark);
}

.gg-drop p {
    font-size: .85rem;
    margin: .4rem 0 0;
    color: var(--dark);
}

.gg-drop small {
    color: var(--lavender-gray);
}

.gg-previews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-top: 1rem;
}

.gg-pv {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 72px;
}

.gg-pv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gg-pv button {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .75rem;
    line-height: 1;
    cursor: pointer;
}

.gg-field {
    margin-top: 1rem;
    text-align: left;
}

.gg-field label {
    display: block;
    font-size: .8rem;
    letter-spacing: .5px;
    margin-bottom: .35rem;
    color: var(--dark);
}

.gg-field input {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid #e0d8e2;
    border-radius: 6px;
    font-family: inherit;
    font-size: .9rem;
}

.gg-send {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: .8rem;
    border: none;
    border-radius: 30px;
    background: var(--dusty-pink-dark);
    color: #fff;
    font-family: var(--font-sans);
    font-size: .9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s;
}

.gg-send:hover {
    background: var(--lavender-gray);
}

.gg-send:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.gg-modnote {
    background: var(--dusty-pink-light);
    border-radius: 6px;
    padding: .7rem .9rem;
    font-size: .75rem;
    color: #7a5a68;
    margin-top: 1rem;
}

/* ---- Toast ---- */
.gg-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--dark);
    color: #fff;
    padding: .8rem 1.4rem;
    border-radius: 30px;
    font-size: .85rem;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
}

.gg-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ---- Lightbox (tap to open full, uncropped photo) ---- */
.gg-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(30, 28, 32, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 3000;
}

.gg-lightbox.open {
    display: flex;
}

.gg-lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.gg-lb-cap {
    position: absolute;
    bottom: 1.2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    padding: 0 1rem;
}

.gg-lb-cap .gg-by {
    display: block;
    font-family: var(--font-sans);
    font-size: .7rem;
    letter-spacing: .5px;
    opacity: .8;
    margin-top: 4px;
    text-transform: uppercase;
}

.gg-lb-close {
    position: absolute;
    top: 1rem;
    right: 1.4rem;
    font-size: 2.2rem;
    line-height: 1;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: .85;
}

.gg-lb-close:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    /* collage tiles scale to the viewport so they never overflow */
    .gg-grid[data-count="1"],
    .gg-grid[data-count="2"] { --tile: 78vw; }
    .gg-grid[data-count="3"],
    .gg-grid[data-count="4"] { --tile: 44vw; }
    .gg-grid[data-count="5"],
    .gg-grid[data-count="6"],
    .gg-grid[data-count="7"],
    .gg-grid[data-count="8"] { --tile: 29vw; }
    .gg-grid { gap: .5rem; }
    .gg-grid-page { --tile: 44vw; }
    .gg-heading {
        font-size: 2.4rem;
    }
}

/* Dedicated gallery page uses the same plain white bg as the FAQ page */
.gallery-page-section {
    background: #fff;
}

/* RSVP success message — heart + FAQ link (message bg is light/transparent) */
#form-success-text {
    font-family: var(--font-script);
    font-size: 1.6rem;
    line-height: 1.35;
    color: var(--dark);
}

.msg-heart {
    color: var(--mauve);
}

.form-success-faq {
    margin-top: 1.25rem;
}

.form-success-faq a {
    color: var(--mauve);
    text-decoration: underline;
    font-family: var(--font-sans);
    letter-spacing: .5px;
}

.form-success-faq a:hover {
    color: var(--lavender-gray);
}

.form-success-faq .faq-note {
    display: inline-block;
    margin-top: .3rem;
    font-size: .8rem;
    color: var(--lavender-gray);
}

/* FAQ teaser quick links (deep-link to a specific question) */
.faq-teaser-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 3rem 0 1.25rem;
}

.faq-quick-link {
    display: inline-block;
    color: var(--lavender-gray);
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.25s;
}

.faq-quick-link:hover {
    color: var(--mauve);
}

/* RSVP gate + "not ready yet" headings */
.gate-heading {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 0.4rem;
}

/* "Not ready to RSVP yet?" block sits below the form, gently separated */
.rsvp-remind {
    margin-top: 3rem;
    padding-top: 2.5rem;
    text-align: center;
}

/* Hero-specific: darken the RSVP button so it's visible over the photo bg */
.hero-content .btn-rsvp-hollow {
    color: var(--dark);
    border-color: var(--dark);
    background: rgba(255, 255, 255, 0.45) !important;
    margin-top: 1.5rem;
}

.hero-content .btn-rsvp-hollow:hover {
    background: var(--dark) !important;
    color: #fff;
    border-color: var(--dark);
}

/* Pull the "the love story" heading + Part 1 photos toward the centre and
   closer to each other (desktop only). */
@media (min-width: 992px) {
    .story-hero-heading {
        text-align: right;
        padding-right: 2rem;
    }
    .story-hero-photos {
        margin-left: -6rem;
    }
}
