/* ==========================================================================
   ROYAL WEDDING SITE - PARALLAX & SMOOTH SCROLL DESIGN SYSTEM
   ========================================================================== */

/* Custom Typography */
@font-face {
    font-family: 'Calista';
    src: url('assets/fonts/calista.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mount';
    src: url('assets/fonts/Mount.ttf') format('truetype'),
         url('assets/fonts/Mount.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-teal: #145E5C;
    --dark-teal: #0E4443;
    --light-teal: #1B7875;
    --gold-main: #E5C365;
    --gold-light: #FFF0B3;
    --gold-dark: #B88E33;
    --gold-glow: rgba(229, 195, 101, 0.4);
    --ivory-white: #FCFAEE;
    --text-gold: #FBEBA7;
    --sky-blue: #2D5B80;

    --font-royal-decor: 'Calista', 'Cinzel Decorative', serif;
    --font-royal: 'Calista', 'Cinzel', serif;
    --font-serif: 'Mount', 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
    --font-clean: 'Montserrat', sans-serif;

    --max-width: 1280px;
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: #0b1d28;
    color: var(--ivory-white);
    font-family: var(--font-serif);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Hide scrollbar for Firefox & IE/Edge */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Lenis Smooth Scroll Overrides */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 20%, #17384e 0%, #08151f 100%);
    overflow-x: hidden;
    position: relative;
}

/* Single Page Container */
.wedding-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* ==========================================================================
   TOP RIGHT ACTION BAR & MUSIC CONTROLS
   ========================================================================== */
.top-action-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.buy-now-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1.5px solid #000;
    border-radius: 30px;
    padding: 4px 6px 4px 16px;
    font-family: var(--font-clean);
    font-size: 14px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.price-badge {
    background: #000;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.orange-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff5500;
    border: 2px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 85, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.orange-play-btn:hover {
    transform: scale(1.1);
    background: #ff661a;
}

/* Floating Bottom Right Round Audio Toggle */
.audio-control-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.audio-btn-round {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(14, 68, 67, 0.92);
    border: 1.5px solid var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-main);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
    transition: transform 0.3s ease, background 0.3s ease;
}

.audio-btn-round:hover {
    transform: scale(1.08);
    background: rgba(20, 94, 92, 0.98);
}

.audio-icon-container {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-waves {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.wave {
    width: 3px;
    background-color: var(--gold-main);
    border-radius: 3px;
    animation: waveBounce 1.2s infinite ease-in-out alternate;
}

.wave1 { height: 60%; animation-delay: 0.1s; }
.wave2 { height: 100%; animation-delay: 0.3s; }
.wave3 { height: 75%; animation-delay: 0.2s; }

@keyframes waveBounce {
    0% { height: 25%; }
    100% { height: 100%; }
}

.audio-btn-round.playing .audio-waves {
    display: flex;
}

.audio-btn-round.playing .icon-mute {
    display: none;
}

/* ==========================================================================
   SECTION 1: HERO PALACE LANDING
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    will-change: transform;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

/* Hero Header Sky Title */
.hero-header {
    position: relative;
    z-index: 10;
    margin-top: 6vh;
    text-align: center;
    padding: 0 20px;
    will-change: transform, opacity;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: var(--font-royal-decor);
    color: var(--text-gold);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 25px rgba(229, 195, 101, 0.4);
}

.groom-name, .bride-name {
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    letter-spacing: 0.15em;
    font-weight: 700;
}

.weds-tag {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.35em;
    color: var(--gold-light);
    margin: 2px 0;
}

/* Intersection Car Container (Straddles boundary between Hero and Green Section) */
.intersection-car-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 50;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-frame {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -78%);
    width: 100%;
    max-width: 1650px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform-origin: center center;
    will-change: transform;
}

.hero-car-img {
    width: 98%;
    max-width: 1550px;
    max-height: 68vh;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}

/* ==========================================================================
   SECTION 2: GREEN INVITATION & EVENTS SECTION
   ========================================================================== */
.green-section {
    position: relative;
    z-index: 20;
    width: 100%;
    margin-top: 0;
    background-color: var(--primary-teal);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.6);
}

.green-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/green-pc.avif');
    background-repeat: repeat;
    background-position: center top;
    background-size: cover;
    opacity: 0.95;
    z-index: 1;
}

.green-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 80px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Blessing Header */
.blessing-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 70px;
}

.ganesh-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.ganesh-img {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(229, 195, 101, 0.5));
}

.glow-pulse {
    animation: ganeshGlow 3s ease-in-out infinite alternate;
}

@keyframes ganeshGlow {
    0% { filter: drop-shadow(0 0 8px rgba(229, 195, 101, 0.4)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 240, 179, 0.8)); }
}

.ganesh-mantra {
    font-family: var(--font-royal);
    font-size: 1.2rem;
    color: var(--gold-main);
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.blessing-text-box {
    margin: 20px 0 35px;
}

.blessing-sub {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--ivory-white);
    font-style: italic;
    margin-bottom: 8px;
}

.grandparents-names, .parents-names {
    font-family: var(--font-royal);
    font-size: 1.6rem;
    color: var(--text-gold);
    letter-spacing: 0.08em;
    font-weight: 600;
}

.royal-gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 18px 0;
}

.gold-line {
    height: 1px;
    width: 90px;
    background: linear-gradient(to right, transparent, var(--gold-main), transparent);
}

.gold-diamond {
    color: var(--gold-main);
    font-size: 10px;
}

.invite-header-badge {
    margin: 40px 0 25px;
}

.invite-title {
    font-family: var(--font-royal-decor);
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--text-gold);
    letter-spacing: 0.25em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.invite-subtitle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--ivory-white);
    font-style: italic;
    margin-top: 8px;
}

.couple-names-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0 20px;
    will-change: transform;
}

.groom-full-name, .bride-full-name {
    font-family: var(--font-royal-decor);
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    color: var(--text-gold);
    letter-spacing: 0.05em;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.gold-ampersand {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--gold-main);
    margin: 0 8px;
}

.bride-parents-box {
    margin-bottom: 90px;
}

.bride-parents-text {
    font-family: var(--font-royal);
    font-size: 1.35rem;
    color: var(--gold-light);
    font-weight: 500;
}

.events-heading-tag {
    margin-top: 30px;
    margin-bottom: 35px;
}

.events-intro-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--ivory-white);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   EVENTS GRID SECTION & WINDOW FRAMES (Spacious 2-Event Viewport Layout)
   ========================================================================== */
.events-section {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 100px;
    padding: 0 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 75px 55px;
    justify-items: center;
}

.event-card {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.events-window-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5.15;
    overflow: visible;
    transition: transform 0.35s ease;
}

.events-window-wrapper:hover {
    transform: translateY(-6px) scale(1.015);
}

.events-window-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

/* Floral Ornaments positioned directly over top-right and bottom-left frame edges */
.flower-corner {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.flower-up {
    top: 2.5%;
    right: 2.5%;
    width: 33%;
    max-width: 150px;
}

.flower-down {
    bottom: 2.5%;
    left: 2.5%;
    width: 33%;
    max-width: 150px;
}

/* Event Content Container positioned inside the parchment window */
.event-card-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 27% 10% 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: transparent;
    backdrop-filter: none;
    box-sizing: border-box;
}

.event-title {
    font-family: var(--font-royal-decor);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    letter-spacing: 0.08em;
    color: #267569;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
    line-height: 1.15;
    max-width: 86%;
}

.event-details-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: auto;
    margin-bottom: 15px;
}

.event-date {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 1.9vw, 1.12rem);
    color: #388579;
    font-style: italic;
    letter-spacing: 0.01em;
}

.event-venue {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #388579;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.event-time {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 1.9vw, 1.12rem);
    color: #388579;
    letter-spacing: 0.01em;
}

.see-route-link {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 1.9vw, 1.1rem);
    color: #267569;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.see-route-link:hover {
    color: #1b5b51;
    opacity: 0.85;
}

.green-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/green-pc.avif');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: cover;
    opacity: 0.95;
    z-index: 1;
}

/* ==========================================================================
   ROUTE SECTION (Text travels down behind bottom car at end of green image)
   ========================================================================== */
.route-section {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 950px;
    margin: 120px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

.route-header-box {
    position: relative;
    z-index: 30; /* Pinned text sequence layer (behind car layer z:50, above background z:1-20) */
    text-align: center;
    cursor: pointer;
    width: 100%;
    max-width: 850px;
    padding: 30px 20px;
    margin-top: 60px;
    margin-bottom: 60px;
    will-change: transform;
}

.route-main-title {
    font-family: var(--font-royal);
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    letter-spacing: 0.22em;
    color: var(--text-gold);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.route-subtitle {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--ivory-white);
    font-style: italic;
    margin-top: 10px;
}

.route-ring-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
}

.outer-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: ringPulse 2s infinite ease-in-out;
}

.inner-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gold-main);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.route-header-box:hover .outer-ring {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
}

/* Bottom Car resting at the very bottom of the green section */
.route-car-wrapper {
    position: relative;
    z-index: 50; /* Car foreground layer: passes OVER pinned text as text slides down */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 160px;
    margin-bottom: -120px;
    cursor: pointer;
}

.route-car-img {
    width: 95%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
}

@keyframes ringPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   SECTION 3: PURPLE BRIDE & GROOM / RSVP SECTION
   ========================================================================== */
.purple-section {
    position: relative;
    z-index: 25;
    width: 100%;
    margin-top: -15px;
    background-color: #934c7a;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
}

.purple-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/purple.avif');
    background-repeat: repeat;
    background-position: center top;
    background-size: 100% auto;
    opacity: 1;
    z-index: 1;
}

.purple-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 100px 24px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Meet The Couple Header */
.meet-couple-header {
    text-align: center;
    max-width: 820px;
    margin-top: 40px;
    margin-bottom: 70px;
    padding: 0 20px;
}

.meet-the-subtitle {
    font-family: var(--font-royal);
    font-size: clamp(1.2rem, 2.8vw, 1.8rem);
    letter-spacing: 0.25em;
    color: var(--text-gold);
    margin-bottom: 8px;
    font-weight: 500;
}

.meet-couple-title {
    font-family: var(--font-royal-decor);
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    letter-spacing: 0.12em;
    color: var(--ivory-white);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
}

.purple-gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0 32px;
}

.couple-story-text {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--ivory-white);
    line-height: 1.75;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Ornate Couple Frame Container */
.couple-frame-container {
    width: 100%;
    max-width: 650px;
    margin: 30px auto 90px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.couple-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 16px;
    background: linear-gradient(145deg, #fff3d1 0%, #e5c365 35%, #b88e33 75%, #fceecb 100%);
    border-radius: 250px 250px 24px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(229, 195, 101, 0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.couple-frame-wrapper:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.7), 0 0 45px rgba(229, 195, 101, 0.55);
}

.couple-arch-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.2;
    border-radius: 230px 230px 16px 16px;
    overflow: hidden;
    border: 4px solid #fff8e7;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.5);
    background-color: #1a0b18;
}

.couple-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.couple-photo.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Gold Indicator Dots */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 6;
    background: rgba(14, 5, 20, 0.45);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(229, 195, 101, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--gold-main);
    transition: all 0.35s ease;
    cursor: pointer;
}

.slider-dots .dot.active {
    background-color: var(--gold-main);
    width: 22px;
    border-radius: 12px;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Slider Manual Navigation Arrows */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(14, 5, 20, 0.55);
    border: 1px solid rgba(229, 195, 101, 0.4);
    color: var(--gold-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 0.85;
}

.slider-btn:hover {
    background: rgba(229, 195, 101, 0.9);
    color: #1a0b18;
    border-color: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 16px var(--gold-glow);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

/* Corner Floral Ornaments */
.couple-flower {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.flower-top-right {
    top: 12px;
    right: 12px;
    width: 130px;
    height: auto;
}

.flower-bottom-left {
    bottom: -24px;
    left: -28px;
    width: 145px;
    height: auto;
}

/* RSVP Section (Text travels down behind car-3) */
.rsvp-section {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 850px;
    margin: 60px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

.rsvp-header-box {
    position: relative;
    z-index: 30; /* Pinned text sequence layer (behind car layer z:50) */
    text-align: center;
    cursor: pointer;
    width: 100%;
    max-width: 850px;
    padding: 30px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    will-change: transform;
}

.rsvp-main-title {
    font-family: var(--font-royal);
    font-size: clamp(2.8rem, 7vw, 5rem);
    letter-spacing: 0.22em;
    color: var(--text-gold);
    line-height: 1.2;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.rsvp-subtitle {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--ivory-white);
    font-style: italic;
    margin-top: 14px;
}

.rsvp-ring-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
}

.rsvp-header-box:hover .outer-ring {
    box-shadow: 0 0 22px rgba(229, 195, 101, 0.8);
}

/* Car-3 resting at the bottom of the purple section */
.rsvp-car-wrapper {
    position: relative;
    z-index: 50; /* Car-3 foreground layer: passes OVER pinned text as text slides down */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 140px;
    margin-bottom: -280px;
    cursor: pointer;
}

.rsvp-car-img {
    width: 95%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.85));
}

/* ==========================================================================
   SECTION 4: YELLOW THINGS TO KNOW / FOLLOW THE ACTION SECTION
   ========================================================================== */
.yellow-section {
    position: relative;
    z-index: 28;
    width: 100%;
    margin-top: -15px;
    background-color: #cfc57a;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
}

.yellow-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/yellow.avif');
    background-repeat: repeat;
    background-position: center top;
    background-size: 100% auto;
    opacity: 1;
    z-index: 1;
}

.yellow-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 100px 24px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Things To Know Header */
.things-know-header {
    text-align: center;
    max-width: 820px;
    margin-top: 20px;
    margin-bottom: 70px;
    padding: 0 20px;
}

.things-know-title {
    font-family: var(--font-royal);
    font-size: clamp(2.6rem, 6.5vw, 4.8rem);
    letter-spacing: 0.18em;
    color: #4a441e;
    line-height: 1.15;
    margin-bottom: 24px;
}

.things-know-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: #4a441e;
    line-height: 1.75;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.01em;
    max-width: 780px;
    margin: 0 auto;
}

/* Info Cards Grid */
.things-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 90px;
    padding: 0 20px;
}

.things-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(74, 68, 30, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.things-info-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 25px rgba(74, 68, 30, 0.15);
}

.things-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(74, 68, 30, 0.08);
    border: 1px solid rgba(74, 68, 30, 0.2);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.things-info-card:hover .things-icon-wrapper {
    transform: scale(1.08);
    background: rgba(74, 68, 30, 0.14);
}

.things-card-title {
    font-family: var(--font-royal);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    letter-spacing: 0.16em;
    color: #4a441e;
    margin-bottom: 10px;
    font-weight: 600;
}

.things-card-desc {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: #4a441e;
    line-height: 1.6;
    font-style: italic;
}

/* Follow The Action Section (Text travels down behind car-2 at end of yellow section) */
.follow-action-section {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 850px;
    margin: 60px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
}

.follow-action-header-box {
    position: relative;
    z-index: 30; /* Pinned text sequence layer (behind car layer z:50) */
    text-align: center;
    cursor: pointer;
    width: 100%;
    max-width: 850px;
    padding: 30px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    will-change: transform;
}

.follow-action-main-title {
    font-family: var(--font-royal);
    font-size: clamp(2.8rem, 7vw, 5rem);
    letter-spacing: 0.22em;
    color: #4a441e;
    line-height: 1.2;
}

.follow-action-subtitle {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #4a441e;
    font-style: italic;
    margin-top: 14px;
}

.follow-action-ring-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
}

.follow-action-ring-button .outer-ring {
    border-color: #4a441e;
    box-shadow: 0 0 12px rgba(74, 68, 30, 0.3);
}

.follow-action-ring-button .inner-circle {
    background-color: #4a441e;
    box-shadow: 0 0 8px rgba(74, 68, 30, 0.6);
}

.follow-action-header-box:hover .outer-ring {
    box-shadow: 0 0 22px rgba(74, 68, 30, 0.8);
}

/* Car-2 resting at the bottom of the yellow section */
.follow-action-car-wrapper {
    position: relative;
    z-index: 50; /* Car-2 foreground layer: passes OVER pinned text as text slides down */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: -50px;
    cursor: pointer;
}

.follow-action-car-img {
    width: 95%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.85));
}

/* ==========================================================================
   SECTION 5: FOOTER & COUNTDOWN SECTION
   ========================================================================== */
.footer-section {
    position: relative;
    z-index: 35; /* Higher z-index than follow-action-header-box so header slides UNDER this footer */
    width: 100%;
    min-height: 100vh;
    margin-top: -15px;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.footer-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/footer.jpeg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
    opacity: 1;
    z-index: 1;
}

.footer-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 80px 24px 0;
}

.footer-countdown-box {
    text-align: center;
    margin-top: 30px;
}

.footer-countdown-title {
    font-family: var(--font-royal-decor);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    letter-spacing: 0.05em;
    color: var(--ivory-white);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
    margin-bottom: 16px;
}

.footer-countdown-timer {
    font-family: var(--font-clean), 'Courier New', monospace;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 700;
    color: var(--ivory-white);
    letter-spacing: 0.12em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

/* Footer Car Wrapper */
.footer-car-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: -18px;
    will-change: transform;
    transform-origin: center bottom;
}

.footer-car-img {
    width: 100%;
    max-width: 980px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.9));
}

/* ==========================================================================
   MODAL OVERLAY FOR VENUE MAPS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    position: relative;
    background: var(--dark-teal);
    border: 1.5px solid var(--gold-main);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gold-main);
    font-size: 2rem;
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.modal-pin-icon {
    font-size: 1.5rem;
}

#modal-venue-title {
    font-family: var(--font-royal);
    font-size: 1.4rem;
    color: var(--gold-light);
}

#modal-venue-address {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ivory-white);
    margin-bottom: 20px;
}

.map-iframe-wrapper {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.direct-map-link {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--gold-main);
    color: #000;
    padding: 12px;
    border-radius: 10px;
    font-family: var(--font-clean);
    font-weight: 700;
    text-decoration: none;
}

/* Hardware acceleration layer declarations for smooth iOS/mobile scrolling */
.route-header-box,
.rsvp-header-box,
.follow-action-header-box,
.route-car-wrapper,
.rsvp-car-wrapper,
.follow-action-car-wrapper,
.footer-car-wrapper,
.hero-car-frame,
.hero-bg,
.sky-title {
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .green-bg-pattern {
        background-image: url('assets/images/green-mobile.png');
    }

    .green-section {
        margin-top: 0;
    }

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

    .couple-names-group {
        flex-direction: column;
        gap: 0;
    }

    .gold-ampersand {
        font-size: 2.5rem;
        margin: -10px 0;
    }

    .things-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 20px;
        margin-bottom: 60px;
    }

    /* Hide desktop line breaks and force Follow The Action on single line on mobile */
    .desktop-only-br {
        display: none;
    }

    .follow-action-main-title {
        font-size: clamp(1.25rem, 5.2vw, 2.2rem);
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    .follow-action-header-box {
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 20px 15px;
    }

    /* Clear spacing and proper min-height for pinned sections on mobile */
    .follow-action-section {
        margin-top: 90px;
        padding-top: 20px;
        min-height: 640px;
    }

    /* Keep RSVP car within section bounds on mobile */
    .rsvp-car-wrapper {
        margin-bottom: -120px;
        margin-top: 80px;
    }

    .follow-action-car-wrapper {
        margin-bottom: -30px;
        margin-top: 60px;
    }

    .rsvp-section {
        min-height: 600px;
    }
}

@media (max-width: 540px) {
    .things-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 70px;
    }

    .follow-action-section {
        margin-top: 100px;
        min-height: 620px;
    }

    .follow-action-subtitle {
        font-size: 1.15rem;
    }
}
