/* ===================================
   Wedding Website - Old Hollywood Glamour
   1940s-1950s Golden Age Style
   =================================== */

/* Reuben webfont (place licensed font files in /fonts/) */
@font-face {
    font-family: 'Reuben';
    src: local('Reuben Regular'), local('Reuben-Regular'),
         url('fonts/Reuben-Regular.woff2') format('woff2'),
         url('fonts/Reuben-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Temporary shared-password gate */
html.site-locked,
html.site-locked body { overflow: hidden; }

html.site-locked body > *:not(.password-gate) { visibility: hidden; }

.password-gate {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    color: var(--cream);
    background: linear-gradient(rgba(1, 6, 9, 0.8), rgba(1, 6, 9, 0.9)), url('backgrounds/bluevelvet.png') center / cover;
}

.password-gate-card {
    width: min(100%, 540px);
    padding: clamp(2rem, 7vw, 4rem);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.65);
    outline: 1px solid rgba(212, 175, 55, 0.25);
    outline-offset: -10px;
    background: rgba(3, 15, 22, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.password-gate-kicker {
    margin: 0 0 1rem;
    color: var(--gold);
    font-family: var(--font-script);
    font-size: clamp(2.3rem, 8vw, 3.5rem);
}

.password-gate h1 {
    margin-bottom: 1rem;
    color: var(--cream);
    font-size: clamp(1.65rem, 5vw, 2.35rem);
}

.password-gate p { line-height: 1.6; }

.password-gate-form {
    margin-top: 2rem;
    text-align: left;
}

.password-gate-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.password-gate-entry {
    display: flex;
    gap: 0.65rem;
}

.password-gate-entry input {
    min-width: 0;
    flex: 1;
    padding: 0.9rem 1rem;
    color: var(--cream);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
}

.password-gate-entry input:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.password-gate-entry button {
    padding: 0.9rem 1.35rem;
    color: var(--sapphire-dark);
    border: 1px solid var(--gold);
    background: var(--gold);
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.password-gate-error {
    min-height: 1.6em;
    margin: 0.65rem 0 0;
    color: #f1a8ad;
    font-size: 0.9rem;
}

@media (max-width: 520px) {
    .password-gate-entry { flex-direction: column; }
}
@font-face {
    font-family: 'Reuben';
    src: local('Reuben Bold'), local('Reuben-Bold'),
         url('fonts/Reuben-Bold.woff2') format('woff2'),
         url('fonts/Reuben-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* CSS Variables - Rustic Romance with Sapphire & Floral Accents */
:root {
    /* Sapphire Blues - Primary Color */
    --sapphire: #071123;
    --sapphire-dark: #010609;
    --sapphire-deep: #010609;
    --sapphire-light: #0d2043;
    
    /* Rich Burgundy & Deep Red - Floral Accents */
    --burgundy: #8B1538;
    --deep-red: #9E1B34;
    --bordeaux: #722F37;
    --wine: #5C1A1B;
    
    /* Gold & Brass - Warm Metallics */
    --gold: #D4AF37;
    --gold-light: #E8C959;
    --brass: #C9A227;
    --antique-gold: #B8860B;

    /* Rustic Warm Neutrals - Stone, Wood, Burlap */
    --ivory: #F5F0E6;
    --cream: #FAF6F0;
    --champagne: #F7E7CE;
    --linen: #E8DFD0;
    --burlap: #C4B69C;
    --stone: #A69F95;
    --warm-brown: #6B5344;
    --oak: #8B7355;
    
    /* Accent Colors - from florals */
    --thistle: #4A4063;
    --eucalyptus: #5D6B5D;
    --blush: #E8C4C4;
    
    /* Text Colors */
    --text-dark: #2D2926;
    --text-light: #F5F0E6;
    
    --font-display: 'Cinzel Decorative', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Reuben', 'Josefin Sans', 'Helvetica Neue', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--cream);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation - Art Deco Style */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

/* Pages that should always display a dark solid nav background */
.dark-nav .main-nav {
    background-color: #0c263e;
    backdrop-filter: none;
}

/* Page behavior: show only the active "page" to simulate tabbed navigation */
.page {
    display: none;
}
.page.active {
    display: block;
}

.main-nav.scrolled {
    background-color: rgba(8, 37, 62, 0.97);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(10, 58, 94, 0.3);
}

.nav-star {
    color: var(--gold);
    font-size: 1rem;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
}

.main-nav a {
    color: var(--ivory);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.main-nav a::before,
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition);
}

.main-nav a::before {
    left: 50%;
}

.main-nav a::after {
    right: 50%;
}

.main-nav a:hover::before,
.main-nav a:hover::after {
    width: 50%;
}

.main-nav a:hover {
    color: var(--gold);
}

/* Hero Section - Rustic Romance */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('backgrounds/stringlightbackground.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Decorative Floral Corners */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='8' fill='%239E1B34' opacity='0.15'/%3E%3Ccircle cx='15' cy='28' r='6' fill='%238B1538' opacity='0.12'/%3E%3Ccircle cx='28' cy='15' r='5' fill='%23722F37' opacity='0.1'/%3E%3Ccircle cx='10' cy='18' r='4' fill='%239E1B34' opacity='0.08'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='80' cy='80' r='8' fill='%239E1B34' opacity='0.15'/%3E%3Ccircle cx='85' cy='72' r='6' fill='%238B1538' opacity='0.12'/%3E%3Ccircle cx='72' cy='85' r='5' fill='%23722F37' opacity='0.1'/%3E%3Ccircle cx='90' cy='82' r='4' fill='%239E1B34' opacity='0.08'/%3E%3C/svg%3E");
    background-position: top left, bottom right;
    background-size: 300px 300px;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.8;
}

/* Art Deco Border Pattern */

/* Art-deco border lives inside the hero and should scroll away with it */
.art-deco-border {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    height: calc(100vh - 30px);
    border: 1px solid var(--gold);
    pointer-events: none;
    z-index: 900; /* sits below the nav (nav is z-index:1000) */
}

/* enforce containment inside the hero and hide when the hero is not active */
.hero .art-deco-border { position: absolute !important; }
.page:not(.active) .art-deco-border { display: none !important; }


.art-deco-border::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Spotlight Effect - Warm candlelight glow */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center top, rgba(247, 231, 206, 0.08) 0%, rgba(212, 175, 55, 0.05) 30%, transparent 60%);
    pointer-events: none;
}

/* Subtle floral accents in corners */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Dark-blue overlay to deepen background and cool hue */
    background-image:
        linear-gradient(rgba(8, 43, 71, 0.80), rgba(8, 43, 71, 0.60)),
        radial-gradient(ellipse at top left, rgba(158, 27, 52, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(158, 27, 52, 0.04) 0%, transparent 40%);
    background-blend-mode: normal, screen, screen;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--ivory);
    z-index: 1;
    padding: 2rem;
    /* nudge content slightly upward so venue text doesn't sit on the art-deco border */
    transform: translateY(-4vh);
}

.hero-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(760px, 92vw);
    height: min(420px, 56vw);
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at center,
            rgba(242, 216, 225, 0.07) 0%,
            rgba(237, 190, 162, 0.055) 28%,
            rgba(217, 161, 95, 0.04) 48%,
            transparent 76%);
    filter: blur(42px);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: heroGoldenHourGlow 1.6s ease-out 0.15s forwards;
}

.hollywood-stars {
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 1rem;
    /* increase space above the stars on the homepage */
    margin-top: clamp(1.8rem, 8vw, 4rem);
    margin-bottom: 2rem;
    animation: twinkle 2s ease-in-out infinite alternate;
}

.save-the-date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--silver);
}

.subtitle-glamour {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.couple-names {
    font-family: var(--font-display), 'Reuben', 'Josefin Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.02;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 48px rgba(212, 175, 55, 0.28);
}

.couple-names .name-line {
    display: block;
}

.couple-names .ampersand {
    display: block;
    margin: 0.6rem 0;
    font-size: 0.95em;
    color: var(--gold);
}

.ampersand {
    font-family: var(--font-script);
    font-size: 1em;
    color: var(--gold);
    display: inline-block;
    margin: 0 0.5em;
}

/* Footer names styling (ensure consistent spacing around ampersand) */
.footer-names {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--sapphire);
}
.footer-names .ampersand {
    font-family: var(--font-script);
    font-size: 1.05em;
    color: var(--gold);
    margin: 0 0.6rem;
    display: inline-block;
}

/* Art Deco Divider */
.art-deco-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.deco-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.deco-diamond {
    color: var(--gold);
    font-size: 0.8rem;
}

.wedding-date {
    margin-bottom: 0.5rem; /* tighten date-to-venue spacing */
}

@media (max-width: 820px) {
    .hero-content {
        transform: translateY(-2vh);
        padding: 1.25rem;
    }
    .wedding-date {
        margin-bottom: 0.6rem;
    }
}

.date-text {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-style: italic;
    letter-spacing: 2px;
}

.date-long-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
    margin-top: 0.25rem;
}

.year-text {
    font-size: 1rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.5rem;
}

.venue-teaser {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.time-teaser {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--silver);
}

/* Scroll indicator removed */

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

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

/* Section Headers with Stars */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.star-accent {
    color: var(--gold);
    font-size: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: var(--sapphire);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-title.light {
    color: var(--ivory);
}

/* Rustic Divider Strips */
.film-strip-top,
.film-strip-bottom {
    height: 30px;
    background-color: var(--sapphire-deep);
    position: relative;
}

.film-strip-top::before,
.film-strip-bottom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 20px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--sapphire-deep) 0px,
        var(--sapphire-deep) 20px,
        var(--gold) 20px,
        var(--gold) 25px,
        var(--sapphire-deep) 25px,
        var(--sapphire-deep) 35px
    );
    opacity: 0.4;
}

/* Our Story Section */
.story-section {
    background-color: var(--cream);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Mini welcome section under the hero */
.mini-welcome {
    padding: 2.5rem 0;
    background: transparent;
}

.mini-welcome-grid {
    display: grid;
    /* Give the portrait more room and make the text column narrower */
    grid-template-columns: 420px 1fr;
    gap: 3rem;
    align-items: center;
}

/* Constrain and center the mini-welcome block within the page */
.mini-welcome-grid {
    max-width: 980px;
    margin: 0 auto;
}

.mini-image-frame {
    width: 420px;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--sapphire) 0%, var(--sapphire-dark) 100%);
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 40px rgba(10,58,94,0.35);
}

.mini-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-image-frame::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(212,175,55,0.95);
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(212,175,55,0.06);
}

.mini-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    filter: blur(6px);
    opacity: 0.9;
    animation: shimmer 4.5s ease-in-out infinite;
    pointer-events: none;
}

.mini-blurb {
    max-width: 52ch;
}

.mini-blurb p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(45,41,38,0.92);
    margin: 0;
}

@media (max-width: 820px) {
    .mini-welcome-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mini-image-frame {
        width: 60%;
        margin: 0 auto 1.25rem;
    }

    .mini-blurb {
        max-width: 70ch;
        margin: 0 auto;
    }
}

.story-section .container {
    padding: 6rem 2rem;
}

/* When the story section is used on a dark/venue page, avoid doubling container padding
   (some pages use both .venue-section and .story-section). Match other pages' spacing. */
.venue-section.story-section .container {
    padding: 0 2rem;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

/* Landscape variant for story pages using a wide photo */
.story-content.landscape {
    grid-template-columns: 1.6fr 1fr;
    gap: 3.5rem;
}

.story-image {
    position: relative;
}

.image-frame {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--sapphire) 0%, var(--sapphire-dark) 100%);
    position: relative;
    box-shadow: 0 20px 60px rgba(10, 58, 94, 0.4);
}

.image-frame {
    overflow: hidden;
}

.story-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--gold);
    border-style: solid;
    z-index: 4;
}

/* Inner gold frame and subtle animated shimmer */
.image-frame::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(212,175,55,0.95);
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(212,175,55,0.07);
    z-index: 1;
}

.image-frame::before {
    /* animated highlight sweep */
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    filter: blur(6px);
    opacity: 0.9;
    animation: shimmer 4.5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -120%; opacity: 0; }
    10% { opacity: 0.6; }
    50% { left: 120%; opacity: 0.25; }
    100% { left: 120%; opacity: 0; }
}

.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--gold);
    border-style: solid;
}

.frame-corner.tl { top: -10px; left: -10px; border-width: 2px 0 0 2px; }
.frame-corner.tr { top: -10px; right: -10px; border-width: 2px 2px 0 0; }
.frame-corner.bl { bottom: -10px; left: -10px; border-width: 0 0 2px 2px; }
.frame-corner.br { bottom: -10px; right: -10px; border-width: 0 2px 2px 0; }

.story-text {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Tidbits block under Our Story */
.tidbits {
    max-width: 980px;
    margin: 2.25rem auto 3rem;
    padding: 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 12px;
    color: var(--ivory);
    box-shadow: 0 14px 40px rgba(10,58,94,0.35);
}
.tidbits .section-title.small {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--ivory);
}
.tidbits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
    padding: 0;
    margin: 0;
}
.tidbits-list li {
    line-height: 1.6;
}
.tidbits-list li strong {
    display: block;
    color: rgba(245, 240, 230, 0.72);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 1.6px;
    line-height: 1.35;
    margin-bottom: 0.28rem;
    text-transform: uppercase;
}
.tidbits-list li span {
    display: block;
    color: var(--ivory);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 820px) {
    .tidbits-list { grid-template-columns: 1fr; }
    .tidbits { padding: 1rem; }
}

/* Make story text white on the dedicated Our Story page for contrast against dark background */
.story-page .story-text,
.story-page .story-text p {
    color: #ffffff;
}

/* Landscape image frame adjustments */
.image-frame.landscape {
    aspect-ratio: 16/9;
    width: 100%;
}

.story-image-top {
    max-width: 780px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 820px) {
    /* On small screens, stack the story landscape image above the text */
    .story-content.landscape {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .image-frame.landscape {
        aspect-ratio: 16/9;
        width: 100%;
    }

    .image-frame.landscape {
        max-width: 780px;
        margin: 0 auto;
    }
}

.story-intro {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--deep-red);
    margin-bottom: 2rem;
}

.story-text p {
    margin-bottom: 1.25rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    letter-spacing: 0.002em;
    color: rgba(45,41,38,0.95);
}

.story-closing {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--sapphire);
}

/* Details Section - Programme Cards */
.details-section {
    padding: 6rem 0;
    background-color: var(--sapphire);
    position: relative;
}

/* Subtle floral accents */
.details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at top right, rgba(158, 27, 52, 0.06) 0%, transparent 30%),
        radial-gradient(ellipse at bottom left, rgba(158, 27, 52, 0.06) 0%, transparent 30%);
    pointer-events: none;
}

.details-section .section-title {
    color: var(--ivory);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: linear-gradient(180deg, var(--sapphire-dark) 0%, var(--sapphire-deep) 100%);
    border: 1px solid var(--gold);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.detail-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.card-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--ivory);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.detail-time {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.card-divider {
    width: 60px;
    height: 1px;
    background-color: var(--gold);
    margin: 1rem auto;
    opacity: 0.5;
}

.detail-card p:last-child {
    color: var(--linen);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Venue Section */
.venue-section {
    position: relative;
    padding: 6rem 0;
    /* Match Attire and RSVP with the same dark sapphire gradient for consistency */
    background: linear-gradient(180deg, var(--sapphire) 0%, var(--sapphire-deep) 100%);
    overflow: hidden;
}

.venue-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(158, 27, 52, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(158, 27, 52, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
}

.venue-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.venue-page-content {
    width: 90%;
    max-width: 840px;
    margin: 0 auto;
    display: block;
}

.venue-page-content .venue-info {
    width: 100%;
}

.venue-location-block {
    margin-bottom: 2rem;
}

.reception-location {
    margin-bottom: 1.5rem;
}

.venue-label {
    color: var(--ivory);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.venue-info h3 {
    font-size: 2.2rem;
    color: var(--ivory);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.venue-info h3 a {
    color: inherit;
    text-decoration: none;
}

.venue-address {
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.venue-description {
    color: var(--linen);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.venue-page-content .venue-description {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.venue-photo {
    position: relative;
    margin: 0 0 2rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 60px rgba(1, 6, 9, 0.38);
}

.venue-page-content .venue-photo {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.venue-photo::before {
    content: '';
    position: absolute;
    inset: 10px;
    z-index: 1;
    border: 1px solid rgba(212, 175, 55, 0.28);
    pointer-events: none;
}

.venue-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
}

.venue-arrival {
    margin-bottom: 1.75rem;
}

.venue-page-content .venue-arrival {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.venue-arrival h4 {
    color: var(--ivory);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.venue-arrival p {
    color: var(--linen);
    font-size: 0.95rem;
    line-height: 1.8;
}

.venue-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.venue-page-content .venue-actions {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.venue-actions .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.venue-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    /* Match RSVP card styling: subtle translucent tile with gold border and soft shadow */
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(10, 58, 94, 0.45);
    position: relative;
    backdrop-filter: blur(6px);
}

.feature::before {
    content: '★';
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: var(--sapphire-deep);
    padding: 0 10px;
    color: var(--gold);
    font-size: 0.8rem;
}

/* Use diamond for specific venue features */
.feature.accommodations::before,
.feature.room-blocks::before,
.feature.other-stays::before,
.feature.transportation::before,
.feature.parking::before,
.feature.airport::before {
    content: '✦';
    /* make the glyph sit on a black circular badge like the RSVP deco */
    width: 36px;
    height: 36px;
    background: #000;
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    top: -18px;
    left: 20px;
    box-shadow: 0 6px 18px rgba(10, 58, 94, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.12);
}

.feature h4 {
    color: var(--ivory);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.feature p {
    color: var(--ivory);
    font-size: 0.95rem;
}

.accommodation-options {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.accommodation-option {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 1rem;
}

.option-label {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Compact horizontal links inside feature cards */
.feature .feature-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.feature .feature-links .btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.travel-intro {
    max-width: 680px;
    margin: -1rem auto 3rem;
    color: var(--linen);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.travel-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.travel-card.feature {
    width: 100%;
    padding: 2.25rem;
}

.travel-card > p {
    margin-bottom: 1rem;
}

.travel-card .feature-links {
    justify-content: center;
}

/* Explore Durham */
.durham-section {
    padding-top: 8.5rem;
}

.durham-section .section-header {
    align-items: center;
}

.durham-section .section-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    text-align: center;
}

.durham-intro {
    max-width: 760px;
    margin: -1rem auto 3.5rem;
    color: var(--linen);
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: center;
}

.durham-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.durham-card {
    position: relative;
    display: flex;
    min-height: 330px;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(145deg, rgba(13, 32, 67, 0.9), rgba(1, 6, 9, 0.78));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.durham-card-photo {
    position: relative;
    width: calc(100% + 5rem);
    height: 190px;
    margin: -2.5rem -2.5rem 2rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    background: var(--sapphire-dark);
}

.durham-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(1, 6, 9, 0.42));
    pointer-events: none;
}

.durham-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.04);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.durham-card:hover .durham-card-photo img {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.04);
}

.durham-card::after {
    content: '';
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transform: rotate(45deg);
}

.durham-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.durham-card-number {
    position: absolute;
    top: 1.6rem;
    right: 1.8rem;
    padding: 0.15rem 0.55rem;
    color: var(--gold-light);
    background: rgba(1, 6, 9, 0.72);
    font-family: var(--font-display);
    font-size: 2rem;
}

.durham-card-kicker {
    margin-bottom: 0.65rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.durham-card h2 {
    max-width: 85%;
    margin-bottom: 1.1rem;
    color: var(--ivory);
    font-size: 1.45rem;
    line-height: 1.35;
}

.durham-card > p:not(.durham-card-kicker) {
    margin-bottom: 1.5rem;
    color: var(--linen);
    font-size: 0.95rem;
    line-height: 1.75;
}

.durham-link {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

.durham-link span {
    display: inline-block;
    margin-left: 0.35rem;
    transition: transform 0.25s ease;
}

.durham-link:hover span {
    transform: translateX(4px);
}

.durham-more {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 2rem 2.25rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(114, 47, 55, 0.14);
}

.durham-more-star {
    color: var(--gold);
    font-size: 1.6rem;
}

.durham-more h2 {
    margin-bottom: 0.25rem;
    color: var(--ivory);
    font-size: 1.2rem;
}

.durham-more p {
    color: var(--linen);
    font-size: 0.9rem;
    line-height: 1.6;
}

.durham-more .btn {
    white-space: nowrap;
}

@media (max-width: 520px) {
    .feature .feature-links { justify-content: center; }

    .travel-content {
        width: 100%;
        gap: 1.25rem;
    }

    .travel-card.feature {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 760px) {
    .durham-grid {
        grid-template-columns: 1fr;
    }

    .durham-card {
        min-height: 0;
        padding: 2rem 1.5rem;
    }

    .durham-card-photo {
        width: calc(100% + 3rem);
        height: 175px;
        margin: -2rem -1.5rem 1.75rem;
    }

    .durham-more {
        grid-template-columns: auto 1fr;
    }

    .durham-more .btn {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--black);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--black);
}

/* Dress Code Section */
.dresscode-section {
    padding: 6rem 0;
    background-color: var(--cream);
    text-align: center;
}
.dresscode-section {
    padding: 6rem 0;
    /* Match the dark sapphire gradient used by Venue and RSVP for consistent pages */
    background: linear-gradient(180deg, var(--sapphire) 0%, var(--sapphire-deep) 100%);
    position: relative;
    text-align: center;
}

.dresscode-content {
    max-width: 800px;
    margin: 0 auto;
}

.glamour-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--sapphire);
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}
.glamour-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--ivory);
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}

.dresscode-subtitle {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--deep-red);
    margin-bottom: 2rem;
}
.dresscode-subtitle {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.attire-overview {
    max-width: 760px;
    margin: 0 auto 2rem;
    color: var(--ivory);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.75;
}

.attire-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2.5rem 0 0;
}

.attire-details .rsvp-card {
    height: 100%;
    margin: 0;
}

/* Make attire cards readable on the dark background to match Venue/RSVP style */
.attire-card {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(10, 58, 94, 0.45);
    backdrop-filter: blur(6px);
}

.attire-card h4 {
    font-size: 1.2rem;
    color: var(--ivory);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.attire-card p {
    font-size: 0.95rem;
    color: var(--ivory);
}

/* Subtle corner floral accents for dresscode to match other dark sections */
.dresscode-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at top left, rgba(158, 27, 52, 0.05) 0%, transparent 30%),
        radial-gradient(ellipse at bottom right, rgba(158, 27, 52, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.dresscode-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold), transparent);
}

.attire-card {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(10, 58, 94, 0.45);
    backdrop-filter: blur(6px);
}

/* Layout for cards that include an illustrative image */
.with-media {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
}
.with-media .attire-copy {
    flex: 1 1 auto;
}
.with-media .attire-media {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.with-media .attire-media img {
    width: 140px;
    max-width: 30%;
    height: auto;
    background: #ffffff;
    padding: 0.35rem;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(10, 58, 94, 0.12);
    border: 1px solid rgba(0,0,0,0.04);
}

@media (max-width: 820px) {
    .with-media {
        flex-direction: column;
        text-align: center;
    }
    .with-media .attire-media img {
        max-width: 60%;
        width: auto;
    }

    .attire-photo-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .attire-inspiration-header {
        gap: 0.85rem;
    }

    .photo-lightbox {
        padding: 4.5rem 0.75rem 1.5rem;
    }

    .photo-lightbox-frame img {
        max-height: 72vh;
    }

    .photo-lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 2.4rem;
    }

    .photo-lightbox-prev {
        left: 0.5rem;
    }

    .photo-lightbox-next {
        right: 0.5rem;
    }
}

.attire-card h4 {
    font-size: 1.2rem;
    color: var(--ivory);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.attire-card p {
    font-size: 0.95rem;
    color: var(--ivory);
    font-style: italic;
}

.attire-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ivory);
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    line-height: 1.7;
}

.attire-list li {
    margin-bottom: 0.85rem;
}

.attire-list li:last-child {
    margin-bottom: 0;
}

.attire-list strong {
    color: var(--gold);
    font-weight: 600;
}

.attire-inspiration {
    margin: 0 auto;
    max-width: 980px;
}

.attire-inspiration + .attire-inspiration {
    margin-top: 2.5rem;
}

.attire-inspiration-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.attire-inspiration-header .deco-line {
    width: min(120px, 22vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.attire-inspiration-header h3 {
    margin: 0;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.attire-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.attire-photo-card {
    margin: 0;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.attire-photo-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.attire-photo-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 7px;
}

.attire-photo-button img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 5px;
    transition: transform 240ms ease, filter 240ms ease;
}

.attire-photo-button:hover img {
    transform: scale(1.015);
    filter: brightness(1.06);
}

.attire-photo-card figcaption {
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    color: var(--champagne);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    line-height: 1.4;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

body.lightbox-open {
    overflow: hidden;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.25rem 2rem;
    background: rgba(4, 19, 34, 0.9);
    backdrop-filter: blur(8px);
}

.photo-lightbox[aria-hidden="false"] {
    display: flex;
}

.photo-lightbox-frame {
    margin: 0;
    max-width: min(92vw, 980px);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.photo-lightbox-frame img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.34);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

.photo-lightbox-frame figcaption {
    color: var(--champagne);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.photo-lightbox-close {
    position: fixed;
    top: 1.35rem;
    right: 1.35rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: var(--ivory);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible {
    background: var(--gold);
    color: var(--black);
    outline: none;
    transform: scale(1.05);
}

.photo-lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: var(--ivory);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.85;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.photo-lightbox-prev {
    left: 1.35rem;
}

.photo-lightbox-next {
    right: 1.35rem;
}

.photo-lightbox-arrow:hover,
.photo-lightbox-arrow:focus-visible {
    background: var(--gold);
    color: var(--black);
    outline: none;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 2px solid var(--ivory);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.palette-note {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.6;
}

/* Menu Section - Supper Club */
.menu-section {
    padding: 6rem 0;
    background-color: var(--sapphire-deep);
    position: relative;
}

.menu-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(158, 27, 52, 0.06) 0%, transparent 35%),
        radial-gradient(ellipse at bottom right, rgba(158, 27, 52, 0.06) 0%, transparent 35%),
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
}

.menu-section .section-title {
    color: var(--ivory);
}

.menu-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.menu-card {
    background: linear-gradient(180deg, var(--sapphire) 0%, var(--sapphire-dark) 100%);
    border: 2px solid var(--gold);
    padding: 4rem 3rem;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(10, 58, 94, 0.5);
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.menu-star {
    color: var(--gold);
    font-size: 1rem;
}

.menu-card h3 {
    font-size: 2.5rem;
    color: var(--ivory);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.menu-ornament {
    color: var(--gold);
    font-size: 1.5rem;
    margin: 1.5rem 0;
}

.menu-course {
    margin-bottom: 2rem;
}

.menu-course h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.menu-course p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--ivory);
    font-style: italic;
    line-height: 1.6;
}

.menu-or {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--linen);
    font-style: normal;
    letter-spacing: 2px;
}

.menu-note {
    font-size: 0.8rem;
    color: var(--champagne);
    opacity: 0.7;
    margin-top: 1rem;
}

/* Registry Section */
.registry-section {
    padding: 6rem 0;
    background-color: var(--cream);
    text-align: center;
}

.registry-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    font-style: italic;
}

.registry-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.registry-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 100px;
    background-color: var(--ivory);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.registry-card::before {
    content: '★';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cream);
    padding: 0 8px;
    color: var(--gold);
    font-size: 0.7rem;
}

.registry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.registry-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--sapphire);
    letter-spacing: 1px;
}

/* RSVP Section */
.rsvp-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--sapphire) 0%, var(--sapphire-deep) 100%);
    position: relative;
}

/* Subtle floral corner accents */
.rsvp-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at top left, rgba(158, 27, 52, 0.05) 0%, transparent 30%),
        radial-gradient(ellipse at bottom right, rgba(158, 27, 52, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold), transparent);
}

.rsvp-intro {
    text-align: center;
    color: var(--ivory);
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    margin: 0 auto 1rem;
    max-width: 760px;
    line-height: 1.7;
    letter-spacing: 0.002em;
}

/* RSVP card styling */
.rsvp-card {
    max-width: 860px;
    margin: 2rem auto 0;
    padding: 2.25rem 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(10, 58, 94, 0.45);
    position: relative;
    backdrop-filter: blur(6px);
}
.rsvp-card-deco {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #000;
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(10, 58, 94, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.12);
}
.rsvp-cta {
    margin-top: 1.25rem;
    text-align: center;
}
.rsvp-cta .btn {
    padding: 0.8rem 2rem;
    border-radius: 999px;
}

@media (max-width: 820px) {
    .rsvp-card {
        padding: 1.25rem 1rem;
        margin: 1rem auto 0;
    }
    .rsvp-card-deco {
        top: -12px;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--ivory);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--champagne);
    font-size: 0.85rem;
    letter-spacing: 1px;
    pointer-events: none;
    transition: var(--transition);
}

.form-group textarea ~ label {
    top: 1.5rem;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: 0.5rem;
    font-size: 0.7rem;
    transform: translateY(0);
    color: var(--gold);
}

.form-group select option {
    background-color: var(--sapphire);
    color: var(--ivory);
}

.rsvp-form .btn {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1rem;
}

/* Footer - Rustic Elegance */
.footer {
    padding: 4rem 0;
    background-color: var(--sapphire-deep);
    text-align: center;
    color: var(--ivory);
    position: relative;
}

.footer-film-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-color: var(--sapphire);
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 25px,
        var(--gold) 25px,
        var(--gold) 30px
    );
    opacity: 0.3;
}

.footer-stars {
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 1rem;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 6px;
    margin-bottom: 0.5rem;
    color: var(--ivory);
}

.footer-date {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 1.5rem;
}

.footer-hashtag {
    font-size: 1rem;
    font-style: italic;
    color: var(--champagne);
    margin-bottom: 0.5rem;
}

.footer-credits {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .story-image {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .venue-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .attire-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-star {
        display: none;
    }
    
    .main-nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav a {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    
    .art-deco-border {
        inset: 10px;
    }
    
    .couple-names {
        font-size: 2rem;
    }
    
    .rsvp-form {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-card {
        padding: 3rem 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .section-header {
        gap: 1rem;
    }
    
    .registry-links {
        flex-direction: column;
        align-items: center;
    }
    
    .color-palette {
        flex-wrap: wrap;
    }
    
    .color-swatch {
        width: 40px;
        height: 40px;
    }
    
    .glamour-text {
        font-size: 1.8rem;
    }
    /* Slightly reduce the hollywood-stars top spacing on very small screens */
    .hollywood-stars {
        margin-top: clamp(0.8rem, 4vw, 1.6rem);
    }
}

/* Compact mobile navigation */
.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .main-nav,
    .main-nav.scrolled {
        min-height: 58px;
        padding: 0.65rem 1rem;
        justify-content: flex-end;
        background: rgba(5, 24, 38, 0.96);
        backdrop-filter: blur(12px);
        box-shadow: 0 3px 18px rgba(1, 6, 9, 0.28);
    }

    .nav-toggle {
        display: grid;
        grid-template-columns: 20px auto;
        align-items: center;
        column-gap: 0.6rem;
        width: auto;
        min-height: 38px;
        padding: 0.45rem 0.75rem;
        color: var(--ivory);
        border: 1px solid rgba(212, 175, 55, 0.7);
        background: rgba(255, 255, 255, 0.03);
        font-family: var(--font-sans);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .nav-toggle > span:not(.nav-toggle-label) {
        grid-column: 1;
        width: 20px;
        height: 1px;
        margin: 2px 0;
        background: var(--gold-light);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle > span:nth-child(1) { grid-row: 1; align-self: end; }
    .nav-toggle > span:nth-child(2) { grid-row: 2; }
    .nav-toggle > span:nth-child(3) { grid-row: 3; align-self: start; }

    .nav-toggle-label {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .main-nav.nav-open .nav-toggle > span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .main-nav.nav-open .nav-toggle > span:nth-child(2) { opacity: 0; }

    .main-nav.nav-open .nav-toggle > span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .main-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 0.6rem 1rem 1rem;
        background: rgba(5, 24, 38, 0.98);
        border-bottom: 1px solid rgba(212, 175, 55, 0.45);
        box-shadow: 0 12px 24px rgba(1, 6, 9, 0.34);
    }

    .main-nav.nav-open ul { display: grid; }

    .main-nav li { text-align: center; }

    .main-nav a {
        display: block;
        padding: 0.75rem 0.4rem;
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .main-nav a::before,
    .main-nav a::after { display: none; }

    .hero-content {
        padding-top: 5.5rem;
        transform: none;
    }

    .hollywood-stars {
        margin-top: 0;
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-content .hollywood-stars { animation-delay: 0.1s; }
.hero-content .save-the-date { animation-delay: 0.2s; }
.hero-content .subtitle-glamour { animation-delay: 0.3s; }
.hero-content .couple-names { animation-delay: 0.4s; }
.hero-content .art-deco-divider { animation-delay: 0.5s; }
.hero-content .wedding-date { animation-delay: 0.6s; }
.hero-content .venue-teaser { animation-delay: 0.7s; }
.hero-content .time-teaser { animation-delay: 0.8s; }

/* Star Sparkle Effect */
@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hollywood-stars {
    animation: sparkle 3s ease-in-out infinite;
}
