:root {
    --ivory: #FAF7F2;
    --gold: #D4AF37;
    --gold-light: #F4E4C1;
    --gold-contrast: #F5E6C4;
    --gold-dark: #B8941E;
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.22);
    --card-bg: rgba(255, 255, 255, 0.95);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--ivory);
    color: var(--charcoal);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
}


h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

img, iframe {
    max-width: 100%;
    display: block;
}

/* ========================================
   LANDING PAGE (Mobile-First)
======================================== */

.landing-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.landing-container.active {
    opacity: 1;
    pointer-events: all;
}

.landing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ivory);
    background-image: url('../images/section-bg-light.jpg?v=20261004c');
    background-repeat: repeat;
    background-size: 320px 320px;
}

.landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    animation: fadeInUp 0.9s ease;
}

.landing-text {
    margin-bottom: 48px;
}

.guest-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 6.5vw, 3rem);
    color: #8B7355;
    margin-bottom: 22px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.8px;
    word-break: break-word;
}

.main-invite {
    font-size: clamp(1.1rem, 3.2vw, 1.35rem);
    color: #6B6B6B;
    margin-bottom: 24px;
    letter-spacing: 0.8px;
    font-weight: 400;
    text-wrap: balance;
}

.couple-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 9.5vw, 4.5rem);
    font-weight: 600;
    color: #B8941E;
    letter-spacing: 1px;
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

.continue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 42px;
    min-height: 58px;
    width: min(100%, 340px);
    background: linear-gradient(135deg, #D4AF37, #B8941E);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.05rem, 3.2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}

.continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.continue-button:active {
    transform: translateY(0);
}

.button-arrow {
    font-size: 1.45rem;
    transition: transform 0.3s ease;
}

.continue-button:hover .button-arrow {
    transform: translateX(4px);
}

/* ========================================
   INVITATION PAGE (Mobile-First)
======================================== */

.invitation-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    overflow-x: hidden;
    width: 100%;
    background-color: var(--ivory);
    background-image: url('../images/section-bg-light.jpg?v=20261004c');
    background-repeat: repeat;
    background-size: 320px 320px;
}

.invitation-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base Sections */
section {
    padding: 50px 16px;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: clamp(2rem, 6.5vw, 3.5rem);
    color: var(--gold);
    margin-bottom: 14px;
    text-shadow: 1px 1px 3px var(--shadow);
    text-wrap: balance;
    line-height: 1.2;
}

.title-ornament {
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto;
    position: relative;
}

.title-ornament::before,
.title-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.title-ornament::before {
    left: 0;
}

.title-ornament::after {
    right: 0;
}

/* HERO SECTION (Mobile-First) */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1C1A17;
    padding: 30px 16px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(212, 175, 55, 0.02) 60px, rgba(212, 175, 55, 0.02) 120px),
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(212, 175, 55, 0.02) 60px, rgba(212, 175, 55, 0.02) 120px);
    opacity: 0.5;
}

.gold-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(212, 175, 55, 0.1) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 10px;
    width: 100%;
    max-width: 600px;
    margin: auto 0;
}

.names-container {
    position: relative;
    margin: 20px 0 35px 0;
}

.groom-name,
.bride-name {
    font-size: clamp(2.8rem, 9.5vw, 5rem);
    color: var(--gold);
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.6),
        -1px -1px 2px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(212, 175, 55, 0.35);
    margin: 10px 0;
    line-height: 1.15;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.invitation-container:not(.visible) .groom-name,
.invitation-container:not(.visible) .bride-name {
    opacity: 0;
    transform: translateY(20px);
}

.groom-name.animated,
.bride-name.animated {
    opacity: 1;
    transform: translateY(0);
}

.weds-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 16px 0;
}

.weds-text::before,
.weds-text::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-light), transparent);
}

.weds-word {
    font-size: clamp(1.3rem, 4.5vw, 2rem);
    color: var(--gold-contrast);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 12px rgba(244, 228, 193, 0.5);
}

/* Hero Scroll Indicator */
.scroll-indicator {
    margin-top: 30px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1.5s ease 1s both;
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--gold-contrast);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.scroll-arrow {
    width: 22px;
    height: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold-contrast);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(14px); opacity: 0.3; }
}

/* ========================================
   INVOCATION SECTION (Mobile-First)
======================================== */
.invocation-section {
    padding: clamp(85px, 13vw, 115px) clamp(35px, 9vw, 65px) clamp(145px, 25vw, 195px);
    background-color: #FAF7F2;
    background-image: url('../images/invocation-bg-mobile.jpg?v=20261004b');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.invocation-section::before {
    display: none;
}

.invocation-card-wrapper {
    display: contents;
}

.invocation-content {
    max-width: 275px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bismillah {
    margin-bottom: 12px;
}

.bismillah-svg {
    width: min(100%, 220px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(1px 2px 4px var(--shadow));
}

.arabic-text {
    fill: var(--gold);
    font-size: 20px;
    font-weight: 600;
}

.bismillah-translation {
    font-size: clamp(0.82rem, 2.6vw, 0.98rem);
    color: var(--charcoal-light);
    font-style: italic;
    letter-spacing: 0.3px;
    margin: 0 auto 20px auto;
    max-width: 260px;
    line-height: 1.5;
    text-wrap: balance;
}

.invitation-intro {
    margin-bottom: 20px;
}

.blessing-text {
    font-size: clamp(0.88rem, 2.7vw, 1.05rem);
    color: var(--charcoal);
    margin: 0 auto 10px auto;
    max-width: 260px;
    font-weight: 400;
    line-height: 1.5;
    text-wrap: balance;
}

.we-invite {
    font-size: clamp(1rem, 3.2vw, 1.25rem);
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 3px;
    margin: 12px 0;
}

.hero-guest-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.45rem, 4.8vw, 2.1rem);
    color: var(--gold);
    margin: 12px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-wrap: balance;
}

.join-text {
    font-size: clamp(0.88rem, 2.7vw, 1.02rem);
    color: var(--charcoal);
    margin: 10px auto 0 auto;
    max-width: 260px;
    font-weight: 400;
    line-height: 1.5;
    text-wrap: balance;
}

.names-display {
    margin-top: 18px;
}

.couple-card {
    margin: 8px 0;
}

.name-display {
    font-size: clamp(2.2rem, 7vw, 3rem);
    color: var(--gold);
    margin: 2px 0;
    font-weight: 600;
    line-height: 1.15;
}

.parent-line {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.82rem, 2.6vw, 0.98rem);
    color: var(--charcoal);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 4px auto 0 auto;
    max-width: 250px;
    padding: 0 5px;
    line-height: 1.5;
    text-wrap: balance;
}

.ampersand-display {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--gold-dark);
    font-family: 'Cormorant Garamond', serif;
    display: block;
    margin: 8px 0;
    font-weight: 600;
}

/* ========================================
   COUNTDOWN SECTION (Mobile-First)
======================================== */
.countdown-section {
    background-color: var(--ivory);
    background-image: url('../images/section-bg-light.jpg?v=20261004c');
    background-repeat: repeat;
    background-size: 320px 320px;
    position: relative;
    overflow: hidden;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 14px 4px;
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-number {
    display: block;
    font-size: clamp(1.8rem, 5.8vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(212, 175, 55, 0.25);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: clamp(0.65rem, 2.2vw, 0.85rem);
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    font-weight: 500;
}

/* Just Married Celebration */
.just-married-container {
    text-align: center;
    padding: 30px 15px;
    animation: fadeInScale 0.9s ease;
}

.just-married-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--gold);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2), 0 0 25px rgba(212, 175, 55, 0.4);
    margin-bottom: 15px;
    line-height: 1.15;
}

.celebration-text {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    color: var(--charcoal);
    font-style: italic;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    z-index: 10;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   EVENTS SECTION (Mobile-First)
======================================== */
.events-section {
    background-color: var(--ivory);
    background-image: url('../images/section-bg-light.jpg?v=20261004c');
    background-repeat: repeat;
    background-size: 320px 320px;
    position: relative;
}

.events-timeline {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    width: 100%;
}

.event-card {
    background: var(--card-bg);
    padding: 22px 18px;
    border-radius: 16px;
    box-shadow: 0 6px 24px var(--shadow);
    border: 1px solid var(--gold-light);
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
}

.event-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-card h3 {
    font-size: clamp(1.6rem, 5.2vw, 2.4rem);
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1.2;
}

.event-date {
    font-size: clamp(1rem, 3.2vw, 1.25rem);
    color: var(--charcoal);
    margin-bottom: 8px;
    font-weight: 600;
}

.event-time,
.event-location {
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    color: var(--charcoal-light);
    margin: 5px 0;
    line-height: 1.5;
}

.event-description {
    margin-top: 14px;
    color: var(--charcoal-light);
    line-height: 1.6;
    font-size: clamp(0.88rem, 2.6vw, 1rem);
}

/* Event Calendar Invites Actions */
.event-calendar-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(212, 175, 55, 0.4);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: 52px;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    border-radius: 50px;
    border: 1.5px solid var(--gold-light);
    background: rgba(255, 255, 255, 0.9);
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.78rem, 2.4vw, 0.88rem);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.calendar-btn span {
    display: inline-block;
    line-height: 1.25;
}

.calendar-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #ffffff;
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.calendar-btn:active {
    transform: translateY(0);
}

.calendar-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--gold-dark);
    transition: color 0.25s ease, transform 0.25s ease;
}

.calendar-btn:hover .calendar-icon {
    color: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 320px) {
    .event-calendar-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   VENUE SECTION (Mobile-First)
======================================== */
.venue-section {
    background-color: var(--ivory);
    background-image: url('../images/section-bg-light.jpg?v=20261004c');
    background-repeat: repeat;
    background-size: 320px 320px;
    position: relative;
}

#venues-container {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.venue-card {
    background: var(--card-bg);
    padding: 22px 18px;
    border-radius: 16px;
    box-shadow: 0 6px 24px var(--shadow);
    border: 1px solid var(--gold-light);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.venue-card:last-child {
    margin-bottom: 0;
}

.venue-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.venue-details {
    display: contents;
}

.venue-card h3 {
    font-size: clamp(1.2rem, 3.8vw, 1.8rem);
    color: var(--gold-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.venue-name {
    font-size: clamp(1.6rem, 5.2vw, 2.5rem);
    color: var(--gold);
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.2;
}

.venue-address {
    color: var(--charcoal-light);
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
    margin-bottom: 8px;
    line-height: 1.5;
}

.venue-datetime {
    color: var(--charcoal);
    font-size: clamp(0.95rem, 3vw, 1.18rem);
    font-weight: 600;
    margin-bottom: 18px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 230px;
    box-shadow: 0 4px 16px var(--shadow);
    margin-bottom: 16px;
    background: #e5e3df;
}

.venue-actions {
    display: flex;
    justify-content: center;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 22px;
    background: #FAF7F2;
    border: 1.5px solid var(--gold);
    border-radius: 50px;
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.15);
}

.directions-btn:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.directions-icon {
    font-size: 1.1rem;
}

/* ========================================
   RSVP SECTION (Mobile-First)
======================================== */
.rsvp-section {
    background-color: var(--ivory);
    background-image: url('../images/section-bg-light.jpg?v=20261004c');
    background-repeat: repeat;
    background-size: 320px 320px;
    position: relative;
}

.rsvp-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.rsvp-message {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    color: var(--charcoal-light);
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.5;
}

.rsvp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    width: min(100%, 330px);
    min-height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(0.92rem, 2.9vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}

.rsvp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.button-icon svg {
    width: 22px;
    height: 22px;
}

/* ========================================
   FOOTER (Mobile-First)
======================================== */
.footer {
    background: linear-gradient(135deg, var(--charcoal), #1F1F1F);
    color: var(--gold-light);
    text-align: center;
    padding: 45px 16px;
    width: 100%;
}

.footer-ornament {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.footer p {
    margin: 10px 0;
    font-size: clamp(0.9rem, 2.6vw, 1.05rem);
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 5.2vw, 2.4rem);
    color: var(--gold);
    font-weight: 600;
}

.footer-date {
    color: var(--gold-light);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ===================================================
   PROGRESSIVE ENHANCEMENT: TABLET (min-width: 768px)
=================================================== */
@media (min-width: 768px) {
    section {
        padding: 75px 24px;
    }

    .hero-content {
        padding: 50px 24px;
    }

    .groom-name, .bride-name {
        font-size: clamp(3.6rem, 5.5vw, 4.8rem);
    }

    .weds-word {
        font-size: 1.4rem;
        letter-spacing: 4px;
    }

    /* Centered Royal Framed Invitation Card for Tablet */
    .invocation-section {
        padding: 75px 24px;
        background-color: transparent;
        background-image: none;
    }

    .invocation-card-wrapper {
        display: block;
        max-width: 680px;
        margin: 0 auto;
        background: #FAF7F2 url('../images/invocation-bg-original.jpg') no-repeat center center;
        background-size: 100% 100%;
        padding: 75px 45px 120px;
        border-radius: 16px;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    }

    .invocation-content {
        max-width: 480px;
    }

    .bismillah-svg {
        width: 250px;
    }

    .bismillah-translation,
    .blessing-text,
    .join-text {
        max-width: 100%;
    }

    .couple-card .parent-line {
        max-width: 100%;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .title-ornament {
        width: 150px;
        height: 3px;
    }

    .names-container {
        margin: 40px 0;
    }

    .countdown-timer {
        gap: 16px;
        max-width: 620px;
    }

    .countdown-item {
        padding: 20px 10px;
        border-radius: 16px;
    }

    .countdown-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
    }

    .events-timeline {
        gap: 30px;
        max-width: 760px;
    }

    .event-card {
        padding: 32px 28px;
        border-radius: 18px;
    }

    .venue-card {
        padding: 32px 28px;
        border-radius: 18px;
        margin-bottom: 35px;
    }

    .map-container {
        height: 300px;
    }

    .directions-btn {
        width: auto;
        padding: 12px 30px;
    }

    .rsvp-button {
        width: auto;
        padding: 18px 45px;
    }

    .footer {
        padding: 55px 20px;
    }
}

/* ===================================================
   PROGRESSIVE ENHANCEMENT: DESKTOP (min-width: 1024px)
=================================================== */
@media (min-width: 1024px) {
    /* Desktop Landing Page Enhancements */
    .landing-content {
        max-width: 680px;
        padding: 50px 30px;
    }

    .guest-line {
        font-size: 3.2rem;
        margin-bottom: 24px;
    }

    .main-invite {
        font-size: 1.35rem;
        margin-bottom: 26px;
    }

    .couple-names {
        font-size: 4.6rem;
    }

    .continue-button {
        width: 360px;
        min-height: 62px;
        font-size: 1.25rem;
    }

    section {
        padding: 100px 30px;
    }

    .hero-content {
        padding: 60px 30px;
    }

    .groom-name, .bride-name {
        font-size: clamp(4.5rem, 5.2vw, 5.8rem);
    }

    .names-container {
        margin: 50px 0;
    }

    /* Centered Royal Framed Invitation Card for Desktop */
    .invocation-section {
        padding: 95px 30px;
    }

    .invocation-card-wrapper {
        max-width: 720px;
        padding: 85px 55px 135px;
        border-radius: 18px;
        box-shadow: 0 20px 55px rgba(0, 0, 0, 0.1);
    }

    .invocation-content {
        max-width: 520px;
    }

    .bismillah-svg {
        width: 270px;
    }

    .section-title {
        margin-bottom: 60px;
    }

    .countdown-timer {
        gap: 24px;
        max-width: 720px;
    }

    .countdown-item {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .countdown-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
    }

    /* Desktop Events: 2-Column Responsive Grid */
    .events-timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 1080px;
        gap: 32px;
    }

    .event-card {
        padding: 36px 32px;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .event-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 45px var(--shadow-strong);
    }

    /* Desktop Venues: 2-Column Split Layout */
    #venues-container {
        max-width: 1080px;
    }

    .venue-card {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        gap: 36px;
        align-items: center;
        padding: 38px 40px;
        border-radius: 20px;
        margin-bottom: 40px;
    }

    .venue-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 45px var(--shadow-strong);
    }

    .venue-details {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .venue-details h3 {
        margin-bottom: 10px;
    }

    .venue-details .venue-name {
        margin-bottom: 12px;
    }

    .venue-details .venue-address {
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .venue-details .venue-datetime {
        margin-bottom: 24px;
    }

    .venue-details .venue-actions {
        display: flex;
        justify-content: flex-start;
    }

    .map-container {
        height: 100%;
        min-height: 320px;
        border-radius: 16px;
    }

    .rsvp-button:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 14px 40px rgba(212, 175, 55, 0.55);
    }
}

/* ===================================================
   PROGRESSIVE ENHANCEMENT: WIDESCREEN (min-width: 1440px)
=================================================== */
@media (min-width: 1440px) {
    .events-timeline,
    #venues-container {
        max-width: 1140px;
    }
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

/* ===================================================
   RSVP POPUP MODAL (Matching Wedding Site Style)
=================================================== */
.rsvp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 44, 44, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rsvp-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rsvp-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    max-height: 90dvh;
    background-color: var(--ivory);
    background-image: url('../images/section-bg-light.jpg?v=20261004c');
    background-repeat: repeat;
    background-size: 260px 260px;
    border-radius: 20px;
    border: 1px solid var(--gold-light);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(212, 175, 55, 0.2);
    padding: 12px;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.rsvp-modal-backdrop.open .rsvp-modal {
    transform: translateY(0) scale(1);
}

/* Close Button with Gold Accent */
.rsvp-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--gold-light);
    color: var(--gold-dark);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.rsvp-modal-close:hover {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
    transform: rotate(90deg) scale(1.05);
}

/* Framed Inner Container */
.rsvp-modal-frame {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px 26px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: calc(90vh - 24px);
    max-height: calc(90dvh - 24px);
}

.rsvp-modal-frame::-webkit-scrollbar {
    width: 5px;
}
.rsvp-modal-frame::-webkit-scrollbar-track {
    background: transparent;
}
.rsvp-modal-frame::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 10px;
}

/* Header & Ornament */
.rsvp-modal-deadline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-style: italic;
    font-weight: 600;
    color: var(--gold-dark);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.25;
}

.rsvp-title-ornament {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto 24px auto;
    position: relative;
}

.rsvp-title-ornament::before,
.rsvp-title-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.rsvp-title-ornament::before {
    left: 0;
}

.rsvp-title-ornament::after {
    right: 0;
}

/* Form Layout */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rsvp-form-row {
    display: flex;
    gap: 20px;
}

.rsvp-form-row .rsvp-form-group {
    flex: 1;
}

.rsvp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rsvp-form-group label,
.rsvp-group-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.3px;
}

.optional-text {
    font-style: italic;
    color: #8C8275;
    font-size: 0.9em;
    font-weight: 400;
}

/* Minimalist Underlined Inputs with Gold Accents */
.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form textarea,
.rsvp-form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--gold-light);
    border-radius: 0;
    padding: 8px 0 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rsvp-form input[type="text"]::placeholder,
.rsvp-form input[type="tel"]::placeholder,
.rsvp-form textarea::placeholder {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #9C9388;
    font-size: 1.08rem;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="tel"]:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
    border-bottom: 2px solid var(--gold);
}

.rsvp-form textarea {
    resize: vertical;
    min-height: 48px;
    line-height: 1.4;
}

/* Attendance Choice Buttons (Joyfully accept / Regretfully decline) */
.rsvp-attendance-options {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.rsvp-attendance-btn {
    flex: 1;
    border: 1.5px solid var(--gold-light);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 13px 14px;
    text-align: center;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--charcoal);
    transition: all 0.25s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-attendance-btn input[type="radio"] {
    display: none;
}

.rsvp-attendance-btn:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.rsvp-attendance-btn.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(184, 148, 30, 0.16));
    color: var(--gold-dark);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.18);
}

/* Number of Guests Dropdown */
.rsvp-select-wrapper {
    position: relative;
    width: 100%;
}

.rsvp-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 28px;
    font-weight: 600;
    color: var(--charcoal);
}

.rsvp-select-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gold-dark);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-select-arrow svg {
    width: 16px;
    height: 16px;
}

/* Dynamic Celebrations Pills in Site's Palette */
.rsvp-events-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.rsvp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--gold-light);
    background: rgba(255, 255, 255, 0.85);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--charcoal);
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
}

.rsvp-pill input[type="checkbox"] {
    display: none;
}

.rsvp-pill .pill-bullet {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--gold);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.rsvp-pill.selected {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold-dark);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.rsvp-pill.selected .pill-bullet {
    background-color: #ffffff;
    transform: scale(1.2);
}

.rsvp-pill:not(.selected) {
    border-color: var(--gold-light);
    color: var(--charcoal-light);
    background: rgba(255, 255, 255, 0.65);
}

.rsvp-pill:not(.selected) .pill-bullet {
    background-color: #D4C4A8;
}

.rsvp-pill:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

/* Submit Button: Matches the Page's Continue & RSVP Buttons */
.rsvp-submit-btn {
    width: 100%;
    min-height: 54px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    margin-top: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rsvp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.55);
}

.rsvp-submit-btn:active {
    transform: translateY(0);
}

/* ===================================================
   MOBILE-FIRST RESPONSIVE OPTIMIZATIONS
=================================================== */
@media (max-width: 640px) {
    .rsvp-modal {
        padding: 8px;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 16px;
    }

    .rsvp-modal-frame {
        padding: 24px 16px 20px;
        border-radius: 12px;
        max-height: calc(94vh - 16px);
        max-height: calc(94dvh - 16px);
    }

    .rsvp-modal-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .rsvp-form {
        gap: 18px;
    }

    .rsvp-form-row {
        flex-direction: column;
        gap: 16px;
    }

    .rsvp-attendance-options {
        flex-direction: column;
        gap: 8px;
    }

    .rsvp-attendance-btn {
        padding: 11px 12px;
        font-size: 1.08rem;
    }

    .rsvp-pill {
        padding: 7px 15px;
        font-size: 1.02rem;
    }

    .rsvp-submit-btn {
        min-height: 50px;
        font-size: 0.95rem;
        letter-spacing: 1px;
        padding: 14px 20px;
    }
}

