/* ============================================= */
/* DESIGN SYSTEM — Convite Daniel & Natália      */
/* Estilo: Watercolor Botânico (inspirado na ref) */
/* ============================================= */

/* ---------- TOKENS ---------- */
:root {
    /* Greens — Sage / Eucalyptus watercolor tones */
    --sage-deep: #3D6B4F;
    --sage: #5A8A6A;
    --sage-medium: #7BA68D;
    --sage-light: #A8CCBA;
    --sage-wash: #D4E8DC;
    --sage-whisper: #EBF3EE;
    
    /* Golds — Warm subtle accents */
    --gold: #B8976A;
    --gold-light: #D4BC8E;
    --gold-dark: #8F7449;
    --gold-shimmer: #E8D5A3;
    
    /* Neutrals — Soft, warm */
    --cream: #FAFAF6;
    --cream-warm: #F5F0E8;
    --parchment: #FFFDF7;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --text-muted: #A0A0A0;
    
    /* Envelope */
    --envelope-main: #A6C4B0;
    --envelope-dark: #8BA895;
    --envelope-light: #C2DCCB;
    --envelope-inner: #3D6B4F;
    --seal-red: #8B2E2E;
    --seal-red-light: #A83B3B;
    --seal-red-dark: #6B1F1F;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 107, 79, 0.06);
    --shadow-md: 0 4px 24px rgba(61, 107, 79, 0.1);
    --shadow-lg: 0 8px 40px rgba(61, 107, 79, 0.14);
    --shadow-gold: 0 4px 20px rgba(184, 151, 106, 0.2);
    
    /* Timing */
    --ease-elegant: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background-color: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---------- PORTÃO DE ACESSO (token obrigatório) ---------- */
body.gate-locked > *:not(.access-gate) {
    display: none !important;
}

.access-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    padding: 24px;
}

.access-gate-content {
    text-align: center;
    max-width: 420px;
}

.access-gate-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid var(--sage-wash);
    border-top-color: var(--sage-deep);
    animation: access-gate-spin 0.8s linear infinite;
}

@keyframes access-gate-spin {
    to { transform: rotate(360deg); }
}

.access-gate-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.access-gate-title {
    font-family: 'Great Vibes', cursive;
    font-size: 40px;
    color: var(--sage-deep);
    margin-bottom: 12px;
}

.access-gate-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 8px;
}

.access-gate-retry {
    display: inline-block;
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: none;
}

/* ---------- UTILITIES ---------- */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.section-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================= */
/* BOTANICAL DECORATIONS                          */
/* ============================================= */
.botanical-decor {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    opacity: 0.55;
    max-width: 220px;
    mix-blend-mode: multiply;
    transition: opacity 0.5s var(--ease-elegant);
}

.botanical-top-right {
    top: -20px;
    right: -30px;
    transform: rotate(0deg);
}

.botanical-bottom-left {
    bottom: -20px;
    left: -30px;
    transform: scaleX(-1) scaleY(-1);
}

.envelope-botanical {
    position: absolute;
    pointer-events: none;
    opacity: 0.45;
    max-width: 220px;
    mix-blend-mode: multiply;
    z-index: 0;
    transition: opacity 0.5s var(--ease-elegant);
}

.envelope-botanical-top {
    top: -20px;
    right: -30px;
}

.envelope-botanical-bottom {
    bottom: -20px;
    left: -30px;
    transform: scaleX(-1) scaleY(-1);
}

@media (min-width: 768px) {
    .botanical-decor,
    .envelope-botanical {
        max-width: 300px;
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .botanical-decor,
    .envelope-botanical {
        max-width: 160px;
        opacity: 0.4;
    }
}

/* ============================================= */
/* WATERCOLOR BACKGROUND EFFECTS                  */
/* ============================================= */
.watercolor-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/watercolor-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* Watercolor Blend Effect with Soft Feathered Edges */
.watercolor-blend {
    mix-blend-mode: multiply;
    
    /* GPU acceleration to prevent aliasing/jagged edges (serrilhado) on scaling */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    
    /* Standard CSS Masking with multi-stop organic fade */
    mask-image: 
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 5%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0.3) 95%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 5%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0.3) 95%, rgba(0,0,0,0) 100%);
    mask-composite: intersect;
    
    /* Webkit Prefix for older Chrome and Safari versions */
    -webkit-mask-image: 
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 5%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0.3) 95%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 5%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 80%, rgba(0,0,0,0.3) 95%, rgba(0,0,0,0) 100%);
    -webkit-mask-composite: source-in;
}

/* ============================================= */
/* ENVELOPE SCREEN                                */
/* ============================================= */
#envelope-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--cream);
    background-image: 
        linear-gradient(rgba(250, 250, 246, 0.8), rgba(250, 250, 246, 0.8)),
        url('assets/images/watercolor-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s var(--ease-elegant), visibility 0.6s var(--ease-elegant);
}

#envelope-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(184, 151, 106, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(61, 107, 79, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

#envelope-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Envelope Wrapper --- */
.envelope-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* --- Guest Greeting Tag --- */
.guest-greeting-tag {
    text-align: center;
    margin-bottom: 24px;
    padding: 12px 0;
    animation: fadeInUp 0.8s var(--ease-elegant) both;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.greeting-pre {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 500;
    color: var(--sage-deep);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.greeting-main {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(28px, 6vw, 38px);
    color: var(--gold-dark);
}

/* --- Envelope --- */
.envelope {
    position: relative;
    width: 320px;
    height: 230px;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 800px;
}

@media (min-width: 480px) {
    .envelope {
        width: 380px;
        height: 270px;
    }
}

/* Envelope Back */
.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, rgba(78, 117, 92, 0.5) 0%, rgba(168, 137, 94, 0.35) 100%),
        url('assets/images/watercolor-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid rgba(61, 107, 79, 0.35);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.35),
        0 2px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.envelope-inner-pattern {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, var(--envelope-inner) 0%, #2D5240 100%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s var(--ease-elegant) 0.3s;
}

.envelope.open .envelope-inner-pattern {
    opacity: 1;
}

/* Envelope Front */
.envelope-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background-image: 
        linear-gradient(135deg, rgba(78, 117, 92, 0.5) 0%, rgba(168, 137, 94, 0.35) 100%),
        url('assets/images/watercolor-bg.png');
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 35%, 50% 0, 100% 35%, 100% 100%, 0 100%);
    border-radius: 0 0 8px 8px;
    z-index: 2;
    filter: drop-shadow(0px -4px 6px rgba(0, 0, 0, 0.4));
}

/* Envelope Lid */
.envelope-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 58%;
    transform-origin: top center;
    transform: rotateX(0deg);
    transition: transform 0.7s var(--ease-elegant);
    z-index: 3;
    backface-visibility: hidden;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.4));
}

.envelope-lid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, rgba(78, 117, 92, 0.5) 0%, rgba(168, 137, 94, 0.35) 100%),
        url('assets/images/watercolor-bg.png');
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.envelope.open .envelope-lid {
    transform: rotateX(-180deg);
}

/* Letter */
.letter {
    position: absolute;
    width: 82%;
    height: 78%;
    left: 9%;
    top: 11%;
    background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
    border-radius: 6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 1s var(--ease-elegant) 0.4s, opacity 0.5s var(--ease-elegant) 0.4s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.envelope.open .letter {
    transform: translateY(-130%);
    opacity: 1;
}

.letter-content {
    text-align: center;
    opacity: 0.85;
}

.letter-ornament {
    color: var(--gold);
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.letter-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.letter-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.letter-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.letter-ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 20px;
    color: var(--sage-deep);
}

/* Wax Seal */
.seal {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 48% 52% 49% 51% / 51% 49% 52% 48%; /* Organic handmade shape */
    background: radial-gradient(
        circle at 35% 30%,
        var(--seal-red-light) 0%,
        var(--seal-red) 50%,
        var(--seal-red-dark) 100%
    );
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.2);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sealPulse 2.5s ease-in-out infinite;
    transition: transform 0.4s var(--ease-bounce), opacity 0.4s var(--ease-elegant);
}

.seal::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    background: radial-gradient(
        circle at 35% 30%,
        var(--seal-red) 0%,
        var(--seal-red-dark) 100%
    );
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.seal:hover {
    transform: translateX(-50%) scale(1.1);
}

@media (min-width: 480px) {
    .seal {
        width: 72px;
        height: 72px;
        bottom: -36px;
    }
}

.seal-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.25);
}

.seal-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.seal-amp {
    font-family: 'Great Vibes', cursive;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 1px;
}

.seal-shine {
    position: absolute;
    top: 6px;
    left: 10px;
    width: 18px;
    height: 12px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.envelope.open .seal {
    animation: sealBreak 0.5s var(--ease-elegant) forwards;
}

@keyframes sealPulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 -2px 6px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.1), 0 0 0 0 rgba(139, 46, 46, 0); }
    50% { box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 -2px 6px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.1), 0 0 0 12px rgba(139, 46, 46, 0.15); }
}

@keyframes sealBreak {
    0% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
    40% { transform: translateX(-50%) scale(1.3) rotate(8deg); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(0.5) rotate(20deg); opacity: 0; }
}

/* Tap Hint */
.tap-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--sage-deep);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s var(--ease-elegant) 0.5s both;
    transition: opacity 0.3s, transform 0.3s;
}

.tap-hint-icon {
    font-size: 16px;
    animation: tapBounce 1.5s ease-in-out infinite;
}

@keyframes tapBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/* FLOATING NAVIGATION                            */
/* ============================================= */
.floating-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-elegant), visibility 0.5s var(--ease-elegant), left 0.35s var(--ease-elegant);
}

@media (min-width: 1200px) {
    .floating-nav {
        left: calc(50vw - 680px); /* Pushes the menu even further to the extreme left */
    }
}
@media (max-width: 1199px) and (min-width: 992px) {
    .floating-nav {
        left: 10px; /* Clings close to the left screen boundary */
    }
}
@media (max-width: 991px) and (min-width: 641px) {
    .floating-nav {
        left: 8px; /* Safe micro-margin */
    }
}

.floating-nav.visible {
    opacity: 1;
    visibility: visible;
}

.floating-nav-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(168, 204, 186, 0.35);
    box-shadow: 0 3px 18px rgba(61, 107, 79, 0.12);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s var(--ease-elegant);
    overflow: hidden;
}

.floating-nav-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: color 0.3s var(--ease-elegant);
    flex-shrink: 0;
}

.floating-nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    display: block;
}

.floating-nav-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: 0.5px;
    max-width: 150px;       /* Always visible on desktop */
    opacity: 1;             /* Always visible on desktop */
    padding-left: 10px;     /* Always visible on desktop */
    overflow: hidden;
    white-space: nowrap;
    transition: color 0.3s var(--ease-elegant);
}

/* Hover state for normal items */
.floating-nav-item:hover {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 28px rgba(61, 107, 79, 0.2);
    transform: translateX(4px);
    border-color: var(--sage-medium);
}
.floating-nav-item:hover .floating-nav-icon {
    color: var(--sage-deep);
}
.floating-nav-item:hover .floating-nav-label {
    color: var(--sage-deep);
}
 
/* Active items (normal state) */
.floating-nav-item.active {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
    box-shadow: 0 4px 20px rgba(61, 107, 79, 0.25);
}
.floating-nav-item.active .floating-nav-icon {
    color: var(--white);
}
.floating-nav-item.active .floating-nav-label {
    color: rgba(255, 255, 255, 0.95);
}
 
/* Active items (hover state) */
.floating-nav-item.active:hover {
    background: var(--sage);
    border-color: var(--sage);
    box-shadow: 0 5px 28px rgba(61, 107, 79, 0.3);
}
.floating-nav-item.active:hover .floating-nav-icon {
    color: var(--white);
}
.floating-nav-item.active:hover .floating-nav-label {
    color: var(--white);
}

/* Mobile: bottom navigation */
@media (max-width: 640px) {
    .floating-nav {
        left: 50%;
        top: auto;
        bottom: 24px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 14px;
    }
    
    .floating-nav-item {
        padding: 16px;
        border-radius: 50%;
    }
    
    .floating-nav-item:hover {
        transform: translateY(-3px);
    }
    
    .floating-nav-label {
        display: none;
    }
    
    .floating-nav-icon {
        font-size: 24px;
    }
}

@media (max-width: 380px) {
    .floating-nav {
        gap: 8px;
    }

    .floating-nav-item {
        padding: 12px;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .floating-nav {
        left: 16px;
    }
    
    .floating-nav-item {
        padding: 14px 16px;
    }
    
    .floating-nav-icon {
        font-size: 22px;
    }
}

/* ============================================= */
/* INVITATION — Main Content                      */
/* ============================================= */
#invitation {
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

.invitation-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s var(--ease-elegant);
}

.invitation-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle watercolor edge washes via CSS */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(168, 204, 186, 0.15) 0%, rgba(212, 232, 220, 0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 350px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(168, 204, 186, 0.12) 0%, rgba(212, 232, 220, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Watercolor splatter dots (CSS-generated) */
.hero .section-container::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(122, 166, 141, 0.15);
    box-shadow:
        30px 40px 0 3px rgba(168, 204, 186, 0.1),
        -15px 120px 0 2px rgba(122, 166, 141, 0.12),
        calc(100% + 20px) 60px 0 4px rgba(168, 204, 186, 0.08),
        calc(100% - 10px) 180px 0 2px rgba(122, 166, 141, 0.1),
        50px calc(100% - 50px) 0 3px rgba(168, 204, 186, 0.1),
        calc(100% + 10px) calc(100% - 100px) 0 5px rgba(168, 204, 186, 0.06);
    pointer-events: none;
    z-index: 0;
}

/* --- Ornaments --- */
.ornament {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    color: var(--gold);
}

.ornament-svg {
    width: 140px;
    height: auto;
    opacity: 0.6;
}

.ornament-divider-svg {
    width: 220px;
}

/* --- Hero Subtitles --- */
.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.hero-subtitle-secondary {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 16px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Church Image --- */
.church-image-container {
    margin: 0 auto 28px;
    max-width: 320px;
    position: relative;
}

.church-image {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.85);
    transition: filter 0.5s var(--ease-elegant);
}

@media (min-width: 480px) {
    .church-image-container {
        max-width: 380px;
    }
}

@media (min-width: 768px) {
    .church-image-container {
        max-width: 420px;
    }
}

/* --- Names (Serif, Uppercase, Wide Tracking) --- */
.names-container {
    position: relative;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name-line {
    width: 120px;
    height: 1px;
    background: var(--text-dark);
    opacity: 0.4;
}

.groom-name,
.bride-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 9vw, 56px);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    display: block;
    clip-path: none !important;
}

.names-ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(28px, 7vw, 42px);
    color: var(--sage-deep);
    display: block;
    margin: 2px 0;
    line-height: 1;
}

/* --- Date --- */
.date-display {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.date-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text-dark);
}

.date-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
}

/* --- Countdown --- */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 12px 8px;
    background: rgba(250, 250, 246, 0.7);
    border: 1px solid var(--sage-wash);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--sage-deep);
    line-height: 1;
    margin-bottom: 4px;
    min-width: 2ch;
    text-align: center;
    transition: transform 0.15s, opacity 0.15s;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.countdown-separator {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 300;
    color: var(--sage-medium);
    margin-bottom: 14px;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================= */
/* TIMELINE SECTION                               */
/* ============================================= */
.timeline-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(180deg, 
        var(--cream) 0%, 
        rgba(212, 232, 220, 0.15) 30%, 
        rgba(235, 243, 238, 0.2) 50%, 
        rgba(212, 232, 220, 0.1) 70%, 
        var(--cream) 100%
    );
}

/* Subtle watercolor wash effect on timeline section */
.timeline-section::before {
    content: '';
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(168, 204, 186, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(36px, 8vw, 52px);
    color: var(--sage-deep);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 300;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
}

/* --- Timeline Container --- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    display: none !important;
}

/* --- Timeline Item --- */
.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 70px;
    width: 100%;
}

.timeline-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.timeline-media-side {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 24px;
    display: block;
    z-index: 1;
}

.mobile-only-photo {
    display: none !important;
}


/* --- Timeline Dot --- */
.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--sage-light);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s var(--ease-elegant);
}

@media (min-width: 641px) {
    .timeline-dot {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 640px) {
    .timeline-dot {
        left: 24px;
        top: 24px;
        transform: translateX(-50%);
    }
}

.timeline-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s var(--ease-bounce);
}

.timeline-item.active .timeline-dot {
    border-color: var(--sage-deep);
    box-shadow: 0 0 0 4px rgba(61, 107, 79, 0.12);
}

.timeline-item.active .timeline-dot-inner {
    opacity: 1;
    transform: scale(1);
    background: var(--sage-deep);
}

@media (max-width: 640px) {
    .timeline-dot {
        left: 24px;
    }
}

/* --- Timeline Card --- */
.timeline-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(168, 204, 186, 0.2);
    transition: transform 0.4s var(--ease-elegant), box-shadow 0.4s var(--ease-elegant);
    width: 100%;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(235, 243, 238, 0.5), rgba(212, 232, 220, 0.3));
    border-bottom: 1px solid rgba(168, 204, 186, 0.15);
}

.timeline-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sage-deep), var(--sage));
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.timeline-icon svg {
    width: 100%;
    height: 100%;
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--sage-deep);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.timeline-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--gold-dark);
    letter-spacing: 1px;
}

.timeline-card-body {
    padding: 20px 24px;
}

.timeline-venue {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* --- Venue Photo --- */
.timeline-card-photo {
    width: 100%;
    height: 240px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* --- Side Photo (Desktop/Mobile) --- */
.timeline-side-photo {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}
@media (max-width: 640px) {
    .timeline-side-photo {
        height: auto;
    }
}
 
/* --- Cerimônia (Estilo Clássico / Dourado) --- */
#timeline-ceremony .timeline-card {
    background: rgba(245, 240, 232, 0.45); /* warm parchment/cream wash background */
    border: 1px solid var(--gold-light);
    box-shadow: var(--shadow-sm), 0 4px 15px rgba(184, 151, 106, 0.08);
}
#timeline-ceremony .timeline-card-header {
    background: linear-gradient(135deg, rgba(245, 240, 232, 0.7), rgba(255, 255, 255, 0.55));
    border-bottom: 1px solid rgba(184, 151, 106, 0.25);
}
#timeline-ceremony .timeline-icon {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}
#timeline-ceremony .timeline-card-photo {
    box-shadow: 0 8px 25px rgba(184, 151, 106, 0.1) !important;
    border: 1px solid rgba(184, 151, 106, 0.2) !important;
}
#timeline-ceremony .btn-gmaps {
    background: var(--gold-dark);
    border-color: var(--gold);
    color: var(--white);
}
#timeline-ceremony .btn-gmaps:hover {
    background: var(--gold);
}
#timeline-ceremony .btn-waze {
    color: var(--gold-dark);
    border-color: var(--gold-light);
}
#timeline-ceremony .btn-waze:hover {
    background: rgba(245, 240, 232, 0.5);
    border-color: var(--gold);
}
 
/* --- Recepção (Estilo Moderno / Arco Eucalipto) --- */
#timeline-reception .timeline-card {
    background: rgba(212, 232, 220, 0.35); /* soft sage wash background */
    border: 1px solid var(--sage-light);
    box-shadow: var(--shadow-md);
}
#timeline-reception .timeline-card-header {
    background: linear-gradient(135deg, rgba(212, 232, 220, 0.5), rgba(255, 255, 255, 0.45));
    border-bottom: 1px solid rgba(168, 204, 186, 0.3);
}
#timeline-reception .timeline-icon {
    background: linear-gradient(135deg, var(--sage-deep), var(--sage));
}
#timeline-reception .timeline-venue {
    color: var(--sage-deep);
    font-weight: 600;
}
#timeline-reception .btn-gmaps {
    background: var(--sage);
    border-color: var(--sage-medium);
}
#timeline-reception .btn-gmaps:hover {
    background: var(--sage-deep);
}
#timeline-reception .timeline-card-photo {
    border-radius: 100px 100px 12px 12px;
    box-shadow: 0 8px 24px rgba(61, 107, 79, 0.15) !important;
    border: 1px solid rgba(168, 204, 186, 0.35) !important;
}

.timeline-side-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 0.5s var(--ease-elegant);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}



.timeline-side-photo.placeholder {
    background: linear-gradient(
        135deg,
        var(--sage-whisper) 0%,
        var(--sage-wash) 50%,
        var(--sage-whisper) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.timeline-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.5s var(--ease-elegant);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}



/* Placeholder for venue photos not yet provided */
.timeline-card-photo.placeholder {
    background: linear-gradient(
        135deg,
        var(--sage-whisper) 0%,
        var(--sage-wash) 50%,
        var(--sage-whisper) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.placeholder-icon {
    font-size: 32px;
    opacity: 0.5;
    line-height: 1;
}

.placeholder-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--sage-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Map Container --- */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(168, 204, 186, 0.2);
}

.map-container iframe {
    display: block;
    border-radius: 12px;
}

/* --- Direction Buttons --- */
.directions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s var(--ease-elegant);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-directions svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-gmaps {
    background: var(--sage-deep);
    color: var(--parchment);
    border: 1px solid var(--sage);
}

.btn-gmaps:hover {
    background: var(--sage);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-waze {
    background: transparent;
    color: var(--sage-deep);
    border: 1px solid var(--sage-light);
}

.btn-waze:hover {
    background: var(--sage-whisper);
    border-color: var(--sage);
    transform: translateY(-1px);
}

/* ============================================= */
/* RSVP SECTION                                   */
/* ============================================= */
.rsvp-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(212, 232, 220, 0.08) 50%, var(--cream) 100%);
}

.gifts-teaser {
    padding: 32px 0 0;
    text-align: center;
}

.gifts-teaser-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    font-style: italic;
    color: var(--text-dark);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.btn-gifts-teaser {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s var(--ease-elegant);
}

.btn-gifts-teaser:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.rsvp-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 360px;
    margin: 0 auto 24px;
}

@media (min-width: 480px) {
    .rsvp-buttons {
        flex-direction: row;
        max-width: 500px;
    }
}

.btn-rsvp {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 20px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s var(--ease-elegant);
    position: relative;
    overflow: hidden;
}

.btn-rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.btn-rsvp:hover::before {
    left: 100%;
}

.btn-rsvp-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.btn-rsvp-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    display: block;
}

.btn-rsvp-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.btn-rsvp-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.btn-rsvp-yes {
    background: linear-gradient(135deg, var(--sage-deep), var(--sage));
    color: var(--parchment);
    box-shadow: var(--shadow-md);
}

.btn-rsvp-yes:hover {
    background: linear-gradient(135deg, var(--sage), #4A9467);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.btn-rsvp-no {
    background: var(--white);
    color: var(--text-medium);
    border: 1px solid rgba(168, 204, 186, 0.3);
    box-shadow: var(--shadow-sm);
}

.btn-rsvp-no:hover {
    background: #FFF5F5;
    color: #C53030;
    border-color: #FEB2B2;
    box-shadow: 0 4px 20px rgba(197, 48, 48, 0.12);
    transform: translateY(-3px);
}

.rsvp-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.btn-rsvp.rsvp-chosen {
    box-shadow: 0 0 0 3px rgba(61, 107, 79, 0.25);
    transform: translateY(-2px);
}

/* ============================================= */
/* PRESENTES                                      */
/* ============================================= */
.gifts-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(212, 232, 220, 0.08) 50%, var(--cream) 100%);
}

.gifts-status {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    padding: 24px 0;
}

.gifts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 680px;
    margin: 0 auto;
}

@media (min-width: 560px) {
    .gifts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gift-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(168, 204, 186, 0.2);
    transition: transform 0.4s var(--ease-elegant), box-shadow 0.4s var(--ease-elegant);
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gift-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--sage-whisper);
}

.gift-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.gift-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--sage-deep);
}

.gift-card-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
}

.btn-gift {
    margin-top: 10px;
    align-self: flex-start;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-elegant);
}

.btn-gift:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* ---------- Modal de Presente ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 44, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-elegant);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--parchment);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease-bounce);
}

.modal-overlay.open .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--sage-deep);
    margin-bottom: 6px;
}

.modal-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.modal-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 6px;
    margin-top: 16px;
}

#gift-form input,
#gift-form textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(168, 204, 186, 0.4);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    resize: vertical;
}

#gift-form input:focus,
#gift-form textarea:focus {
    outline: none;
    border-color: var(--sage);
}

.pix-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--sage-whisper);
    border: 1px solid rgba(168, 204, 186, 0.35);
}

.pix-box-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.pix-box-key {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--white);
    border-radius: 8px;
    padding: 8px 12px;
}

.pix-box-key span {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--sage-deep);
    word-break: break-all;
}

.btn-pix-copy {
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: var(--gold-dark);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-modal-submit {
    margin-top: 22px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sage-deep), var(--sage));
    color: var(--parchment);
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-elegant);
}

.btn-modal-submit:hover {
    box-shadow: var(--shadow-md);
}

.btn-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-thanks {
    text-align: center;
    padding: 16px 0;
}

.modal-thanks-text {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: var(--sage-deep);
    margin-bottom: 6px;
}

.modal-thanks-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================= */
/* FOOTER                                         */
/* ============================================= */
.footer {
    padding: 60px 24px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--cream) 0%, var(--sage-whisper) 100%);
}

.footer-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: var(--text-medium);
    max-width: 400px;
    margin: 0 auto 8px;
    line-height: 1.5;
}

.footer-verse {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--gold-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.footer-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 4px;
}

/* ============================================= */
/* SCROLL ANIMATIONS                              */
/* ============================================= */
.fade-in-element {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-elegant), transform 0.8s var(--ease-elegant);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-element:nth-child(2) { transition-delay: 0.1s; }
.fade-in-element:nth-child(3) { transition-delay: 0.2s; }
.fade-in-element:nth-child(4) { transition-delay: 0.3s; }

/* ============================================= */
/* RESPONSIVE                                     */
/* ============================================= */
@media (max-width: 380px) {
    .countdown-item {
        min-width: 50px;
        padding: 10px 6px;
    }
    
    .countdown-number {
        font-size: 22px;
    }

    .countdown-separator {
        font-size: 18px;
    }
    
    .groom-name,
    .bride-name {
        letter-spacing: 0.15em;
    }
}

@media (min-width: 768px) {
    .hero-subtitle-secondary {
        font-size: 18px;
        max-width: 440px;
    }
    
    .countdown-item {
        min-width: 76px;
        padding: 16px 12px;
    }
    
    .countdown-number {
        font-size: 32px;
    }
    
    .section-container {
        max-width: 780px;
    }
}

/* ============================================= */
/* ACCESSIBILITY                                  */
/* ============================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .seal {
        animation: none;
    }
    
    .countdown-separator {
        animation: none;
    }
}

.seal:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.btn-rsvp:focus-visible,
.btn-directions:focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 2px;
}

.floating-nav-item:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}

/* ============================================= */
/* SCROLLBAR                                      */
/* ============================================= */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--sage-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sage-medium);
}

/* ============================================= */
/* WIDE LAYOUT FOR DESKTOP                       */
/* ============================================= */
@media (min-width: 992px) {
    /* 1. Hero Grid */
    .hero .section-container {
        max-width: 1020px;
    }
    
    .hero-grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
        text-align: center;
        width: 100%;
    }
    
    .hero-left-column {
        flex: 1.2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-right-column {
        flex: 0.8;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* 2. Timeline Grid */
    .timeline-section .section-container {
        max-width: 1020px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
        margin-bottom: 90px;
    }
    
    #timeline-ceremony {
        flex-direction: row !important; /* image left, card right */
    }
    
    #timeline-reception {
        flex-direction: row-reverse !important; /* card left, image right */
    }
    
    .timeline-media-side {
        width: 47% !important;
        max-width: none;
        margin: 0 !important;
    }
    
    .timeline-card {
        width: 47% !important;
        max-width: none;
        margin: 0 !important;
    }
}

/* ============================================= */
/* MUSIC PLAYER WIDGET STYLES                     */
/* ============================================= */
.music-player-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(168, 204, 186, 0.5);
    box-shadow: 0 4px 15px rgba(61, 107, 79, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    transition: all 0.3s var(--ease-elegant);
}

.music-track-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--sage-deep);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.music-control {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sage-deep);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: all 0.2s var(--ease-elegant);
}

.music-control:hover {
    transform: scale(1.05);
    background: var(--sage);
}

.music-svg {
    width: 18px;
    height: 18px;
}

/* Hide SVG based on playing/paused class */
.music-control.playing .svg-play {
    display: none;
}
.music-control.playing .svg-pause {
    display: block;
}

.music-control.paused .svg-play {
    display: block;
}
.music-control.paused .svg-pause {
    display: none;
}

.music-icon-playing-state {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile adjust for music widget */
@media (max-width: 640px) {
    .music-player-widget {
        bottom: 96px; /* Position it above the bottom navigation bar */
        right: 16px;
        padding: 5px 5px 5px 12px;
        gap: 8px;
    }
    .music-track-info {
        font-size: 11px;
    }
    .music-control {
        width: 32px;
        height: 32px;
    }
    .music-svg {
        width: 14px;
        height: 14px;
    }
}

/* ============================================= */
/* COLLAPSE FLOATING NAV LABELS ON MEDIUM SCREENS */
/* ============================================= */
@media (max-width: 1299px) and (min-width: 641px) {
    .floating-nav-label {
        display: none;
    }
    .floating-nav-item {
        padding: 16px;
        border-radius: 50%;
    }
    .floating-nav-item:hover {
        transform: translateX(4px);
    }
}

/* ============================================= */
/* ENHANCED READABILITY FOR SMALL FONTS          */
/* ============================================= */
.countdown-label {
    font-size: 10px; /* Was 8px */
    font-weight: 600;
}
.date-location {
    font-size: 13px; /* Was 11px */
    font-weight: 500;
}
.rsvp-note {
    font-size: 13px; /* Was 11px */
    color: var(--text-medium);
}
.placeholder-text {
    font-size: 13px; /* Was 11px */
}
.letter-text {
    font-size: 16px; /* Was 14px */
}
.footer-verse {
    font-size: 13px; /* Was 11px */
    font-weight: 600;
}
.footer-year {
    font-size: 14px; /* Was 12px */
}

/* ============================================= */
/* HOVER EFFECTS & TRANSITIONS ON IMAGES         */
/* ============================================= */
.timeline-side-photo {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.5s var(--ease-elegant);
}
.timeline-side-photo:hover {
    box-shadow: var(--shadow-lg);
}
.timeline-side-photo img {
    border-radius: 12px;
    transition: transform 0.6s var(--ease-elegant);
}
.timeline-side-photo:hover img {
    transform: scale(1.04) translate3d(0, 0, 0);
}
.church-image-container {
    transition: transform 0.6s var(--ease-elegant);
}
.church-image-container:hover {
    transform: translateY(-4px);
}
.church-image {
    transition: transform 0.6s var(--ease-elegant);
}
.church-image-container:hover .church-image {
    transform: scale(1.02);
}

