/* 
  ========================================
  RESET & CORE VARIABLES
  ========================================
*/
:root {
    /* Color Palette - Strict Beige/Brown */
    --color-beige: #d4c7ad;
    --color-brown: #605241;

    /* Transitions */
    --transition-speed: 0.5s;
}

/* Light Mode Defaults (Body.light) */
body.light {
    --bg-body: var(--color-beige);
    --text-body: var(--color-brown);
    --bg-card: rgba(255, 255, 255, 0.2);
    --border-color: var(--color-brown);
}

/* Night Mode Defaults (Body.dark) */
body.dark {
    --bg-body: var(--color-brown);
    --text-body: var(--color-beige);
    --bg-card: rgba(0, 0, 0, 0.2);
    --border-color: var(--color-beige);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

body.no-scroll {
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Italiana', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

button,
.btn {
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
}

/* 
  ========================================
  GLASS UI & TOP BAR
  ========================================
*/
.top-bar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    /* Padding for edges */
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    /* Push items to corners (Lang Left, Toggle Right) */
    align-items: center;
}

html[dir="rtl"] .top-bar {
    justify-content: flex-end;
    gap: 12px;
}

html[dir="rtl"] .lang-selector {
    order: 1;
}

html[dir="rtl"] .theme-switch-wrapper {
    order: 2;
}

/* Glass Effect Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    /* Subtle translucency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-body);
}

body.dark .glass-panel {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 
  === THEME SWITCH (iOS Style) === 
*/
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    cursor: pointer;
    /* Glass effect on the track itself */
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 34px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body.dark .theme-switch {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    /* Handled by parent */
    border-radius: 34px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 1px;
    /* Center optically */
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Liquid feel */
}

/* Checked State (Night Mode) */
input:checked+.slider:before {
    transform: translateX(20px);
    background-color: var(--color-beige);
    /* Knob color in dark mode */
}


/* 
  === LANGUAGE SELECTOR === 
*/
.lang-selector {
    position: relative;
}

.lang-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 140px;
    border-radius: 12px;
    padding: 0.5rem 0;
    list-style: none;

    /* Animation Initial State */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    transform-origin: top right;
}

html[dir="rtl"] .lang-dropdown {
    right: 0;
    left: auto;
    transform-origin: top right;
    text-align: right;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-dropdown li {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lang-dropdown li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown li.active {
    font-weight: 600;
}

/* 
  ========================================
  ENTRY GATE
  ========================================
*/
.entry-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
    overflow: hidden;
}

/* 
  ========================================
  SHADOW SWEEP TRANSITION
  ========================================
*/

.shadow-sweep-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1500;
    overflow: hidden;
    pointer-events: none;
}

.shadow-sweep-container.hidden {
    display: none;
}

.shadow-blob {
    position: absolute;
    width: 100vmax;
    height: 100vmax;
    background: radial-gradient(circle, rgba(44, 36, 27, 0.4) 0%, rgba(44, 36, 27, 0.1) 40%, transparent 70%);
    filter: blur(80px);
    opacity: 0;
    will-change: transform, opacity;
}

.active .shadow-blob {
    animation: shadowSweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Variance in blobs for organic feel */
.s1 {
    top: -20%;
    left: -20%;
    animation-delay: 0s;
}

.s2 {
    top: 20%;
    left: 0%;
    animation-delay: 0.1s;
    width: 120vmax;
}

.s3 {
    top: -10%;
    left: 20%;
    animation-delay: 0.2s;
}

@keyframes shadowSweep {
    0% {
        opacity: 0;
        transform: translate(100%, -100%) scale(1.2);
    }

    /* Appear almost instantly */
    2% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-100%, 100%) scale(1.5);
    }
}




.entry-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* LOGO SWITCHING */
.logo-light,
.logo-dark {
    display: none;
    /* Hide all theme-specific logos by default */
}

body.light .logo-light {
    display: block;
}

body.dark .logo-dark {
    display: block;
}

.logo-container img {
    max-width: 215px;
    height: auto;
}

.names {
    font-size: 3rem;
    margin: 0;
}

.date {
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
    font-weight: 300;
}

.btn-entrance {
    margin-top: 1rem;
    border: 1px solid var(--text-body);
    padding: 0.8rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-body);
}

.btn-entrance:hover {
    background-color: var(--text-body);
    color: var(--bg-body);
    /* Inverse text color on hover */
}

/* 
  ========================================
  ENTRY ANIMATIONS (STAGGERED)
  ========================================
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-reveal {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

/* Logo */
.delay-2 {
    animation-delay: 0.45s;
}

/* Names */
.delay-3 {
    animation-delay: 0.7s;
}

/* Date */
.delay-4 {
    animation-delay: 0.95s;
}

/* Button */


/* 
  ========================================
  MAIN SITE BACKGROUND
  ========================================
*/
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('assets/bg-pillars.jpg');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.4;
    /* Slight transparency to blend with theme color */
    pointer-events: none;
    transition: opacity var(--transition-speed);
}

/* Adjust opacity/blending for Dark Mode if needed */
body.dark .bg-decoration {
    opacity: 0.15;
    /* Subtler in dark mode */
}

/* Main Content Visibility & Fade (Page 2) */
#main-content {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    /* Show pillars! */
    min-height: 100vh;
    padding: 2rem 1rem 5rem;
    color: var(--text-body);
    /* Respects theme */
    text-align: center;
    position: relative;
    z-index: 1;
    transition: background-color var(--transition-speed);
}

#main-content.visible {
    display: flex;
    animation: mainFadeIn 2.5s ease-out forwards;
}

/* Restoring the Pillars Background with its own fade */
.bg-decoration-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('assets/bg-pillars.jpg');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-out;
    pointer-events: none;
}

#main-content.visible .bg-decoration-main {
    opacity: 0.4;
    /* Matches the original mood */
}

@keyframes mainFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.invitation-header {
    margin-bottom: 2rem;
}

.reminder-logo {
    max-width: 130px;
    /* Enlarged from 80px */
    height: auto;
    opacity: 0.8;
}

.hidden {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* 
  ========================================
  SECTIONS
  ========================================
*/
section {
    padding: 4rem 1.5rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* COUNTDOWN */
.hero-section {
    min-height: 90vh;
    /* Full screen feel */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-container {
    display: flex;
    gap: 2rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-block span {
    font-family: 'Italiana', serif;
    font-size: 3.5rem;
    line-height: 1;
}

.time-block .label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

/* DETAILS & RSVP */
.details-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.venue {
    font-family: 'Italiana', serif;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.btn-rsvp {
    display: inline-block;
    border: 1px solid var(--text-body);
    color: var(--text-body);
    padding: 1rem 3rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-rsvp:hover {
    background-color: var(--text-body);
    color: var(--bg-body);
}

.site-footer {
    padding: 3rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 
  ========================================
  ZOOM JOURNEY ANIMATIONS
  ========================================
*/
@keyframes zoomOutFade {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(3);
        filter: blur(10px);
    }
}

@keyframes zoomInBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.3);
    }
}

.zoom-out-fade {
    animation: zoomOutFade 1s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.zoom-in-bg {
    animation: zoomInBg 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* 
  ========================================
  RESPONSIVE
  ========================================
*/
@media (max-width: 600px) {
    .names {
        font-size: 2.2rem;
    }

    .logo-container img {
        max-width: 150px;
    }

    .countdown-container {
        gap: 1rem;
    }

    .time-block span {
        font-size: 2.2rem;
    }
}

/* 
  ========================================
  INVITATION CORE CONTENT (PAGE 2)
  ========================================
*/

.invitation-body.glass-card {
    --bg-color: rgba(255, 255, 255, 0.25);
    --highlight: rgba(255, 255, 255, 0.75);
    --text: var(--text-body);

    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding-top: 10px;
}

/* DARK MODE: Significantly darker liquid for better legibility */
body.dark .invitation-body.glass-card {
    --bg-color: rgba(20, 18, 16, 0.65);
    /* Darker charcoal */
    --highlight: rgba(255, 255, 255, 0.1);
}

.glass-filter,
.glass-overlay,
.glass-specular,
.glass-distortion-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.glass-filter {
    z-index: 1;
    backdrop-filter: blur(12px);
    filter: url(#glass-distortion) saturate(120%) brightness(1.1);
}

.glass-distortion-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 80%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 80%);
    background-size: 200% 200%;
    animation: floatDistort 15s infinite ease-in-out;
    mix-blend-mode: overlay;
    z-index: 2;
    pointer-events: none;
}

@keyframes floatDistort {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.glass-overlay {
    z-index: 2;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-specular {
    z-index: 3;
    box-shadow: inset 1.5px 1.5px 2px var(--highlight);
    pointer-events: none;
    transition: background 0.3s ease;
}

.glass-content {
    position: relative;
    z-index: 4;
    padding: 0px 0px 0;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

h1.main-announcement {
    font-size: clamp(1.2rem, 5.5vw, 2.5rem);
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
    color: var(--text-body);
    font-family: 'Italiana', serif;
    width: 100%;
    text-align: center;
}

.wedding-dates {
    margin-bottom: 0;
    padding-bottom: 0;
    width: 100%;
    border-bottom: none;
}

.date-fr {
    font-size: 1.4rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.date-he {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.ceremony-section {
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 0;
    padding-left: clamp(14px, 4vw, 28px);
    padding-right: clamp(14px, 4vw, 28px);
}

.section-title-alt {
    font-size: clamp(1.3rem, 7vw, 2.6rem);
    margin: 0.5rem 0 0.5rem;
    font-family: 'Italiana', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
}

/* 6. HEBREW VERSE */
.hebrew-verse {
    font-size: clamp(0.6rem, 3.5vw, 1rem);
    margin: 0.5rem 0 0.8rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

/* 5. PARENTS GRID - REFINED FOR MOBILE */
.parents-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 25px;
    width: 100%;
}

.parents-col {
    flex: 1;
    text-align: left;
}

html[dir="rtl"] .parents-col:first-child {
    text-align: left;
}

html[dir="rtl"] .parents-col:last-child {
    text-align: right;
}

html[dir="rtl"] .parents-grid {
    direction: ltr;
}

.parents-col:first-child {
    text-align: left;
}

.parents-col:last-child {
    text-align: right;
}

.parents-col p {
    margin: 0.2rem 0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* 6. HEBREW VERSE */
.hebrew-verse {
    font-size: clamp(0.6rem, 3.5vw, 1rem);
    /* Even more responsive */
    margin: 1.5rem 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    /* Safety against very narrow screens */
    text-overflow: clip;
}

/* 7. JOY ANNOUNCEMENT */
.joy-announcement {
    font-size: 0.95rem;
    margin-bottom: 0px;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

/* 8. COUPLE NAMES */
.couple-names {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-family: 'Italiana', serif;
    margin: 15px 0;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 9. CEREMONY TEXT */
.ceremony-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.ceremony-text p {
    margin: 0.2rem 0;
}

/* 10. LIEU */
.venue-details {
    margin-bottom: 0px;
}

.venue-name {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Italiana', serif;
    margin: 0;
    text-transform: uppercase;
}

.venue-address {
    font-size: 0.95rem;
    /* Unified homogeneous size */
    margin: 0.5rem 0;
    opacity: 0.8;
    font-family: 'Montserrat', sans-serif;
}

/* 11. RÉCEPTION */
.reception-mention {
    font-style: italic;
    font-size: 0.95rem;
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
}

/* 12. PENSÉE SPÉCIALE */
.memorial-section {
    font-size: 0.85rem;
    /* Slightly smaller for thought section */
    opacity: 0.8;
    margin-bottom: 1.6rem;
    /* Reduced space below */
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

.memorial-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* 13. BOUTON ITINÉRAIRE */
.itinerary-container {
    margin-bottom: 0;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.btn-waze {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    margin: 12px auto 0;
    padding: 14px 28px;
    gap: 10px;
    background-color: var(--text-body);
    color: var(--bg-body);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-waze:hover {
    background-color: #605241;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-waze-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.btn-waze-label {
    line-height: 1;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon svg {
    display: block;
}

/* RSVP PREVIEW */
.rsvp-section {
    width: 100%;
    padding: 2.5rem 0 3rem;
    display: flex;
    justify-content: center;
}

.rsvp-card {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 2.2rem 1.8rem 2.5rem;
    color: #2f2721;
    background-color: #f7f2eb;
    box-shadow: 0 12px 30px rgba(59, 43, 29, 0.15);
    font-family: 'Montserrat', sans-serif;
}

.rsvp-title {
    font-family: 'Italiana', serif;
    font-size: clamp(2rem, 8vw, 3rem);
    text-align: center;
    letter-spacing: 0.12em;
    margin: 0 0 1.5rem;
    color: #5a4230;
}

.rsvp-progress {
    margin-bottom: 1.25rem;
}

.rsvp-step {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    color: #5e5146;
}

.rsvp-progress-bar {
    height: 12px;
    background: rgba(90, 75, 61, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.rsvp-progress-fill {
    display: block;
    height: 100%;
    width: 50%;
    background: rgba(90, 75, 61, 0.55);
}

.rsvp-card.is-step-two .rsvp-progress-fill {
    width: 100%;
}

.rsvp-divider {
    height: 1px;
    background: rgba(90, 75, 61, 0.25);
    margin: 1.5rem 0;
}

.rsvp-block {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.rsvp-subtitle {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: #342a22;
}

.rsvp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rsvp-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #3c322a;
}

.rsvp-option input {
    width: 18px;
    height: 18px;
    accent-color: #5a4230;
}

.rsvp-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(90, 75, 61, 0.45);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    color: #4a3c31;
    background: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.rsvp-select-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid rgba(90, 75, 61, 0.6);
}

.rsvp-next {
    margin: 2rem auto 0;
    display: block;
    padding: 0.7rem 2.4rem;
    border-radius: 8px;
    border: none;
    background: rgba(90, 75, 61, 0.5);
    color: #f5efe7;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.rsvp-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsvp-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.rsvp-field-phone {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.rsvp-flag {
    height: 44px;
    border: 1px solid rgba(90, 75, 61, 0.45);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #4a3c31;
    background: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.rsvp-flag-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(90, 75, 61, 0.6);
}

.rsvp-input,
.rsvp-textarea {
    width: 100%;
    border: 1px solid rgba(90, 75, 61, 0.45);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.4);
    color: #3c322a;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.rsvp-textarea {
    min-height: 120px;
    resize: none;
}

.rsvp-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
}

.rsvp-back,
.rsvp-send {
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.rsvp-back {
    background: rgba(90, 75, 61, 0.15);
    color: #4a3c31;
}

.rsvp-send {
    background: rgba(90, 75, 61, 0.5);
    color: #f5efe7;
}

@media (max-width: 600px) {
    .rsvp-card {
        padding: 2rem 1.4rem 2.2rem;
    }

    .rsvp-options {
        flex-direction: column;
        gap: 0.6rem;
    }

    .rsvp-field-row {
        grid-template-columns: 1fr;
    }

    .rsvp-field-phone {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .rsvp-actions {
        flex-direction: column;
    }
}

/* 14. FOOTER */
.invitation-footer {
    padding-top: 2rem;
    width: 250px;
    text-align: center;
    margin: 0 auto 3rem;
    /* Reduced bottom space */
}

.invitation-footer p {
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-credit {
    color: inherit;
    text-decoration: none;
}

.footer-credit:hover {
    text-decoration: underline;
}

/* AUDIO TOGGLE */
.audio-toggle {
    position: fixed;
    right: clamp(14px, 3vw, 28px);
    bottom: clamp(14px, 3vw, 28px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(90, 75, 61, 0.35);
    background: rgba(255, 255, 255, 0.65);
    color: #4a3c31;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(59, 43, 29, 0.15);
    cursor: pointer;
    z-index: 2100;
}

.audio-toggle.is-playing {
    background: rgba(90, 75, 61, 0.6);
    color: #f5efe7;
    border-color: rgba(90, 75, 61, 0.6);
}

.audio-state {
    font-weight: 600;
}

/* RESPONSIVE STYLES */
@media (max-width: 600px) {
    .invitation-body.glass-card .glass-content {
        padding: 0px 0px 1.5rem;
    }

    .parents-grid {
        gap: 0.5rem;
    }

    .parents-col p {
        font-size: 0.75rem;
        /* Slightly smaller for mobile side-by-side */
    }

    .main-announcement {
        font-size: clamp(1.4rem, 6vw, 2rem);
        /* Slightly bigger on mobile */
    }

    .joy-announcement,
    .ceremony-text,
    .memorial-section {
        padding: 0;
    }

    #main-content {
        padding-top: 2rem;
    }

    .invitation-footer {
        width: 100%;
    }
}

/* 
  ========================================
  RESTORED TIMER STYLING (PAGE 2)
  ========================================
*/
.invitation-body .countdown-container {
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 4vw, 1.5rem);
    margin: 0.3rem 0 1.5rem;
    padding: 1.5rem 1rem;
    width: 100%;

    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Dark mode countdown background */
body.dark .invitation-body .countdown-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.invitation-body .time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.invitation-body .time-value {
    font-size: clamp(3rem, 12vw, 4rem);
    font-weight: 300;
    color: var(--text-body);
    font-family: 'Italiana', serif;
    line-height: 1;
}

.invitation-body .time-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    #countdown.countdown-container {
        gap: 0.8rem;
    }
}
