/* ============================================================
   WEDDING INVITATION — GREEN THEME
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --green-darkest:  #1a3c28;
    --green-dark:     #2d5a3f;
    --green-mid:      #3e7a56;
    --green-light:    #5fa67a;
    --green-pale:     #d4edda;
    --green-faintest: #eef7f0;
    --gold:           #c9a84c;
    --gold-light:     #e2cc7e;
    --cream:          #faf9f6;
    --white:          #ffffff;
    --text-dark:      #2c3e2d;
    --text-mid:       #4a5e4b;
    --text-light:     #7a8e7b;

    --font-display: 'Tangerine', cursive;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body:    'Cormorant Garamond', serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 60, 40, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.site-header.show {
    transform: translateY(0);
}

.site-header.visible {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 3cm;
}

.header-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 700;
}

.header-nav {
    display: flex;
    gap: 28px;
    margin-right: auto;
}

.header-lang {
    display: flex;
    gap: 6px;
    align-items: center;
}

.header-nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    padding: 4px 0;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 600px) {
    .hamburger {
        display: flex;
    }

    .header-inner {
        padding: 0 14px;
        gap: 8px;
    }

    .header-logo {
        font-size: 1.4rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(26, 60, 40, 0.96);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        margin-right: 0;
    }

    .header-nav.open {
        display: flex;
    }

    .header-lang {
        margin-left: auto;
        margin-right: 8px;
        gap: 4px;
    }

    .header-lang .lang-btn {
        padding: 2px;
    }
}

.hidden {
    display: none !important;
}

/* ============================================================
   PASSWORD SCREEN
   ============================================================ */
#password-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: linear-gradient(160deg, #1a3c28 0%, #2d5a3f 40%, #1a3c28 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

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

.password-box {
    text-align: center;
    padding: 50px 40px;
    max-width: 380px;
    width: 90%;
}

.password-seal {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #e8d88a, #c9a84c 55%, #a8893d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow:
        0 0 0 4px rgba(201,168,76,0.5),
        0 0 0 8px rgba(201,168,76,0.12),
        0 8px 30px rgba(0,0,0,0.4);
}

.password-seal-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #1a3c28;
    line-height: 1;
    font-weight: 700;
}

.password-seal-year {
    font-family: var(--font-heading);
    font-size: 0.45rem;
    color: #1a3c28;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.75;
}

.password-prompt {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: rgba(201, 168, 76, 0.85);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.password-field {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(201,168,76,0.35);
    border-radius: 8px;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
    transition: border-color 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
}

.password-field::placeholder {
    color: rgba(255,255,255,0.3);
    letter-spacing: 2px;
}

.password-field:focus {
    border-color: rgba(201,168,76,0.7);
    background: rgba(255,255,255,0.12);
}

.password-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a3c28;
    background: linear-gradient(135deg, #e8d88a, #c9a84c);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.password-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

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

.password-error {
    color: #e87c7c;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    margin-top: 14px;
    min-height: 1.2em;
    letter-spacing: 1px;
}

.password-field.shake {
    animation: shakeInput 0.4s ease;
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* ============================================================
   ENVELOPE SCREEN
   ============================================================ */
/* Envelope screen — transparent overlay, no background */
#envelope-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: auto;
    transition: none;
}

#envelope-screen.fade-out {
    pointer-events: none;
}

.envelope-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    cursor: pointer;
    perspective: 1200px;
    isolation: isolate;
}

/* ============================================================
   ENVELOPE — FOREST GREEN, UNIFORM BASE + CAST SHADOWS
   Light source: top-left. All panels share one base green.
   Shadows are cast BY upper panels ONTO lower ones.
   ============================================================ */

/* ---- Shared paper fiber texture mixin (applied per panel via ::after) ---- */
.env-fold {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Fiber texture overlay shared by all panels */
.env-fold::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.055;
    background-image:
        /* Horizontal fibers */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255,255,255,0.9) 3px,
            rgba(255,255,255,0.9) 4px
        ),
        /* Vertical fibers — slightly offset frequency */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(255,255,255,0.6) 4px,
            rgba(255,255,255,0.6) 5px
        ),
        /* Diagonal cross-fibers for depth */
        repeating-linear-gradient(
            32deg,
            transparent,
            transparent 6px,
            rgba(0,0,0,0.5) 6px,
            rgba(0,0,0,0.5) 7px
        );
    pointer-events: none;
}

/*
   LEFT panel:
   - Bottom panel directly connected → razor-tight contact shadow at bottom
   - Top flap slightly lifted above → consistent soft shadow along its diagonal
*/
.env-fold-left {
    background: #3a7a52;
    clip-path: url(#clip-left);
}

/*
   RIGHT panel:
   - Mirror of left — symmetric
   - Same zero-gap contact shadow from bottom panel
   - Same consistent flap shadow (mirrored)
*/
.env-fold-right {
    background: #3a7a52;
    clip-path: url(#clip-right);
}

/*
   BOTTOM panel (trapezoid):
   - Top flap slightly lifted → consistent soft shadow at top edge + flap tip
   - Directly connected to left/right panels along its top diagonal edges
*/
.env-fold-bottom {
    background: #3a7a52;
    clip-path: url(#clip-bottom);
}

/* ---- Crease lines removed ---- */
.env-creases { display: none; }

/* ---- Seam lines between lower flaps ---- */
.env-seams {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Remove the old pseudo-element version */
.envelope-wrapper::after {
    display: none;
}

/* ---- Wax seal ---- */
.envelope-seal {
    position: absolute;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #e8d88a, #c9a84c 55%, #a8893d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(201,168,76,0.5),
        0 0 0 8px rgba(201,168,76,0.12),
        0 8px 30px rgba(0,0,0,0.6),
        inset 0 2px 5px rgba(255,255,255,0.35),
        inset 0 -2px 5px rgba(0,0,0,0.25);
    z-index: 6;
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.seal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    box-shadow: inset 0 0 0 3px rgba(0,0,0,0.08);
}

.seal-text {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #1a3c28;
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255,255,255,0.2);
}

.seal-year {
    font-family: var(--font-heading);
    font-size: 0.5rem;
    color: #1a3c28;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 3px;
    opacity: 0.75;
}

/* ---- Top flap: slightly lifted above all panels, casts soft shadow ---- */
.env-flap {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background:
        /* Light from top — top edge bright */
        linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 20%),
        /* Slight shadow near the tip (furthest from light) */
        linear-gradient(0deg, rgba(0,0,0,0.06) 0%, transparent 30%),
        /* Uniform base */
        #3a7a52;
    z-index: 5;
    clip-path: url(#clip-flap);
    transform-origin: top center;
    transform: perspective(900px) rotateX(0deg);
    transition: none;
}

/* Wrapper carries the shadow so clip-path doesn't clip it away */
.env-flap-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 75%;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0px 6px 5px rgba(0,0,0,0.35));
}

/* Paper fiber texture on flap */
.env-flap::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: url(#clip-flap);
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent, transparent 3px,
            rgba(255,255,255,0.9) 3px, rgba(255,255,255,0.9) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent, transparent 4px,
            rgba(255,255,255,0.6) 4px, rgba(255,255,255,0.6) 5px
        ),
        repeating-linear-gradient(
            32deg,
            transparent, transparent 6px,
            rgba(0,0,0,0.5) 6px, rgba(0,0,0,0.5) 7px
        );
    pointer-events: none;
}

/* Paper-edge highlight at the crease fold line */
.env-flap::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100, 190, 130, 0.7) 20%,
        rgba(120, 210, 150, 0.95) 50%,
        rgba(100, 190, 130, 0.7) 80%,
        transparent 100%
    );
    pointer-events: none;
}

/* ---- Opened states ---- */

/* Step 1: Flap lifts open with natural paper physics */
.envelope-wrapper.opened .env-flap {
    animation: flapOpen 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flapOpen {
    0%   { transform: perspective(900px) rotateX(0deg); }      /* closed */
    12%  { transform: perspective(900px) rotateX(-15deg); }    /* slow peel — like breaking the seal grip */
    75%  { transform: perspective(900px) rotateX(-172deg); }   /* fast sweep backward */
    88%  { transform: perspective(900px) rotateX(-188deg); }   /* slight overshoot — paper is flexible */
    100% { transform: perspective(900px) rotateX(-180deg); }   /* settle flat */
}

/* After flap fully opens, hide it so it doesn't show when sliding down */
.envelope-wrapper.flap-gone .env-flap {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.envelope-wrapper.opened .envelope-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* Step 2: Whole envelope slides down after flap opens */
.envelope-wrapper.slide-down .env-fold,
.envelope-wrapper.slide-down .env-creases,
.envelope-wrapper.slide-down .env-seams,
.envelope-wrapper.slide-down .env-flap-wrapper,
.envelope-wrapper.slide-down .env-flap,
.envelope-wrapper.slide-down .envelope-seal {
    transform: translateY(110vh);
    transition: transform 1s cubic-bezier(0.4, 0, 0.6, 1);
}

.tap-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(201, 168, 76, 0.75);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 1001;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ---- Mobile: rotate envelope 90° so it appears landscape on portrait screen ---- */
@media (max-width: 600px) {
    .envelope-wrapper {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vh;
        height: 100vw;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
    }

    /* Slide-down: after 90° rotation, visual "down" = translateX in local coords */
    .envelope-wrapper.slide-down .env-fold,
    .envelope-wrapper.slide-down .env-creases,
    .envelope-wrapper.slide-down .env-seams,
    .envelope-wrapper.slide-down .env-flap-wrapper,
    .envelope-wrapper.slide-down .env-flap,
    .envelope-wrapper.slide-down .envelope-seal {
        transform: translateY(110vh);
        transition: transform 1s cubic-bezier(0.4, 0, 0.6, 1);
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('watercolor.png') center/cover no-repeat;
    overflow: hidden;
    /* Always visible so it shows through the opening envelope */
    opacity: 1 !important;
    transform: none !important;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 63, 0.08);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--green-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.couple-names {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    color: var(--green-dark);
    font-weight: 700;
    line-height: 1.2;
}

.couple-names .amp {
    color: var(--gold-light);
    font-size: 0.7em;
    margin: 0 8px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--green-dark);
    font-style: italic;
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-rsvp {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 48px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-rsvp:hover {
    background: var(--gold-light);
    color: var(--green-dark);
}

.scroll-indicator {
    margin-top: 30px;
    cursor: pointer;
}

.scroll-indicator span {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--gold-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.4rem;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.leaf-divider {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* ============================================================
   DETAILS SECTION
   ============================================================ */
.details-section {
    background: var(--green-faintest);
}

/* Two-column split: image+address left, timeline right */
.details-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .details-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Left column: square image + venue info */
.details-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.venue-image-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.venue-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.venue-info {
    text-align: center;
    padding: 24px 16px 0;
}

.venue-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--green-dark);
    margin-bottom: 12px;
}

/* Right column */
.details-right {
    display: flex;
    flex-direction: column;
}

.timeline-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.detail-date {
    font-weight: 600;
    color: var(--green-mid);
    margin-bottom: 4px;
}

.detail-time {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.detail-venue {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.detail-address {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story-section {
    background: var(--white);
}

.story-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.story-text-side {
    flex: 1;
}

.story-image {
    flex: 1;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center -1cm;
    display: block;
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-mid);
    font-style: italic;
    text-align: left;
}

@media (max-width: 768px) {
    .story-content {
        flex-direction: column;
    }
    .story-image {
        max-width: 100%;
    }
}

/* ============================================================
   LOGISTICS SECTION
   ============================================================ */
.logistics-section {
    background: var(--white);
}

.logistics-subsection-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--green-dark);
    text-align: center;
    margin: 40px auto 20px;
    max-width: 900px;
    position: relative;
    letter-spacing: 0.5px;
}

.logistics-subsection-title:first-of-type {
    margin-top: 10px;
}

.logistics-subsection-title.logistics-subsection-second {
    margin-top: 113px !important; /* ~3 cm */
}

.logistics-hotels-block {
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 70px;
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 0.95rem;
}

.logistics-hotels-block p {
    margin: 0 0 8px;
}

.logistics-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
}

.logistics-table > tbody > tr {
    border-bottom: 1px solid var(--green-pale);
}

.logistics-table > tbody > tr:last-child {
    border-bottom: none;
}

.logistics-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--green-dark);
    font-weight: 600;
    padding: 24px 24px 24px 0;
    vertical-align: top;
    white-space: nowrap;
    width: 200px;
}

.logistics-value {
    padding: 24px 0;
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 0.95rem;
    vertical-align: top;
}

.logistics-value p {
    margin: 0 0 8px;
}

.logistics-password {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1rem !important;
    margin: 12px 0 16px !important;
    background: var(--gold-light);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 6px;
    border: none;
}

.logistics-bus-heading {
    font-weight: 600;
    color: var(--green-dark);
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    font-size: 0.9rem;
}

.hotel-table a {
    color: var(--green-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--green-pale);
    transition: color 0.2s, border-color 0.2s;
}

.hotel-table a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.bus-schedule,
.hotel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.9rem;
}

.bus-schedule th,
.hotel-table th {
    text-align: left;
    font-weight: 600;
    color: var(--green-dark);
    padding: 8px 12px;
    border-bottom: 2px solid var(--green-pale);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bus-schedule td,
.hotel-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--text-mid);
}

.bus-schedule tbody tr:last-child td,
.hotel-table tbody tr:last-child td {
    border-bottom: none;
}

.bus-schedule tbody tr:hover td,
.hotel-table tbody tr:hover td {
    background: rgba(45, 90, 63, 0.04);
}

@media (max-width: 600px) {
    .logistics-table,
    .logistics-table > tbody,
    .logistics-table > tbody > tr,
    .logistics-label,
    .logistics-value {
        display: block;
        width: 100%;
    }
    .logistics-label {
        padding: 20px 0 4px;
        white-space: normal;
    }
    .logistics-value {
        padding: 4px 0 20px;
    }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--green-pale);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--green-dark);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--green-dark);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 0 20px;
}

.faq-answer p {
    color: var(--text-mid);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0 0 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   TIMELINE SECTION  —  vertical, text always on right
   ============================================================ */
.timeline-section {
    background: var(--white);
}

.timeline-v {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 0 10px 0;
}

/* Vertical connecting line through circles */
.tl-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 2px;
    background: var(--green-pale);
    z-index: 0;
}

/* Each row: circle on left, label on right */
.tl-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    margin-bottom: 36px;
}

.tl-row:last-child {
    margin-bottom: 0;
}

/* Spacer not needed — hide it */
.tl-spacer {
    display: none;
}

/* Circle with icon */
.tl-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}

.tl-circle svg {
    width: 26px;
    height: 26px;
    color: var(--green-dark);
}

/* Label block — always to the right of the circle */
.tl-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 20px;
    text-align: left;
    align-items: flex-start;
}

.tl-time {
    font-weight: 700;
    font-size: 1rem;
    color: var(--green-mid);
}

.tl-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--green-dark);
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .tl-circle {
        width: 48px;
        height: 48px;
    }
    .tl-circle svg {
        width: 22px;
        height: 22px;
    }
    .tl-line-v {
        left: 24px;
    }
    .tl-label {
        padding-left: 16px;
    }
}

/* ============================================================
   COUNTDOWN SECTION
   ============================================================ */
.countdown-section {
    background: url('watercolor.png') center center / cover no-repeat;
    color: var(--green-dark);
    padding: 24px 0;
    position: relative;
}

.countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 63, 0.08);
}

.countdown-section .container {
    position: relative;
    z-index: 1;
}

.countdown-section .section-title {
    color: var(--green-dark);
}

.countdown-section .leaf-divider {
    margin-bottom: 0;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-dark);
}

.countdown-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green-dark);
    opacity: 0.8;
    margin-top: 4px;
}

/* Mobile: keep countdown on a single line */
@media (max-width: 600px) {
    .countdown {
        flex-wrap: nowrap;
        gap: 12px;
    }
    .countdown-item {
        flex: 1;
        min-width: 0;
    }
    .countdown-number {
        font-size: 1.8rem;
    }
    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
}

/* ============================================================
   RSVP SECTION
   ============================================================ */
.rsvp-section {
    background: var(--green-faintest);
}

.rsvp-subtitle {
    text-align: center;
    color: var(--text-mid);
    margin-bottom: 36px;
    font-style: italic;
}

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

@media (max-width: 600px) {
    .rsvp-form {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--green-pale);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(62, 122, 86, 0.15);
}

.btn-submit {
    grid-column: 1 / -1;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 14px 40px;
    background: var(--green-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
}

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

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

/* Success / Error messages */
.rsvp-success {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.6s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-mid);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.rsvp-success h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.rsvp-success p {
    color: var(--text-mid);
}

.rsvp-error {
    max-width: 500px;
    margin: 20px auto 0;
    text-align: center;
    padding: 16px;
    background: #fce4e4;
    border: 1px solid #f5aaaa;
    border-radius: 8px;
    color: #a94442;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--green-darkest);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 50px 24px;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.footer-date {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.footer-contact {
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   LANGUAGE SWITCHER (in header)
   ============================================================ */
.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.2s, background 0.25s;
    padding: 0;
    overflow: hidden;
}

.lang-btn .flag-svg {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    display: block;
}

.lang-btn:hover {
    border-color: rgba(201, 168, 76, 0.5);
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.15);
}

/* ============================================================
   RTL / URDU SUPPORT
   ============================================================ */
.lang-urdu {
    direction: rtl;
    text-align: right;
}

.lang-urdu .hero-content,
.lang-urdu .section-title,
.lang-urdu .leaf-divider,
.lang-urdu .story-text,
.lang-urdu .rsvp-subtitle,
.lang-urdu .rsvp-success {
    text-align: center;
}

.lang-urdu .couple-names {
    text-align: center;
}

.lang-urdu .hero-tagline {
    text-align: center;
}

.lang-urdu .detail-card {
    text-align: center;
}

/* Use Nastaliq font for Urdu body text */
.lang-urdu,
.lang-urdu input,
.lang-urdu select,
.lang-urdu textarea,
.lang-urdu label,
.lang-urdu p,
.lang-urdu h3,
.lang-urdu h4,
.lang-urdu .btn-submit,
.lang-urdu .rsvp-subtitle,
.lang-urdu .hero-subtitle,
.lang-urdu .hero-tagline,
.lang-urdu .countdown-label,
.lang-urdu .footer-date,
.lang-urdu .footer-contact {
    font-family: 'Noto Nastaliq Urdu', 'Cormorant Garamond', serif;
}

/* Keep display font (Tangerine) for couple names and section titles in Urdu */
.lang-urdu .couple-names {
    font-family: var(--font-display);
}

/* Section titles in Urdu use Nastaliq */
.lang-urdu .section-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 2.4rem;
    line-height: 1.8;
}

/* Timeline adjustments for RTL */
.lang-urdu .timeline-v {
    direction: rtl;
    margin-left: 0;
    margin-right: auto;
}
.lang-urdu .tl-label {
    padding-left: 0;
    padding-right: 20px;
    text-align: right;
    /* In RTL flex column, flex-start aligns to the right edge */
    align-items: flex-start;
}
.lang-urdu .tl-time,
.lang-urdu .tl-text {
    width: 100%;
    text-align: right;
}
.lang-urdu .tl-line-v {
    left: auto;
    right: 28px;
}
.lang-urdu .tl-time {
    direction: ltr;
    unicode-bidi: embed;
}

/* Form groups in RTL */
.lang-urdu .form-group input,
.lang-urdu .form-group select,
.lang-urdu .form-group textarea {
    text-align: right;
    direction: rtl;
}

/* Keep language switcher on right even in RTL */
.lang-urdu ~ .lang-switcher,
.lang-switcher {
    right: 20px;
    left: auto;
}
