/* ============================================================
   WEDDING INVITATION — Maria & Alexey · 29.08.2026
   Hybrid design: user's premium aesthetics + my sections
   ============================================================ */

:root {
    --primary:    #7a5c44;
    --secondary:  #b08d6e;
    --gold:       #c9a96e;
    --gold-light: #e8d5b0;
    --cream:      #faf7f3;
    --cream-dark: #f2ece3;
    --text:       #3d2c1e;
    --text-light: #8a7060;
    --white:      #ffffff;
    --shadow:     rgba(122, 92, 68, 0.15);
    --transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

/* Disable smooth scroll on touch devices (causes laggy momentum scroll on iOS) */
@media (hover: none) and (pointer: coarse) {
    html { scroll-behavior: auto; }
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
}

/* Decorative bg — absolute, not fixed (fixed bg lags on iOS scroll) */
.bg-ornament {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%237a5c44' fill-opacity='0.6'%3E%3Ccircle cx='40' cy='40' r='1.5'/%3E%3Ccircle cx='0' cy='0' r='1'/%3E%3Ccircle cx='80' cy='0' r='1'/%3E%3Ccircle cx='0' cy='80' r='1'/%3E%3Ccircle cx='80' cy='80' r='1'/%3E%3C/g%3E%3C/svg%3E");
    height: 100%;
    width: 100%;
}

main { position: relative; z-index: 1; }

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

section {
    padding: 120px 0;
    position: relative;
}


/* ============================================================
   REVEAL ON SCROLL — smooth custom animations
   ============================================================ */
[data-aos] {
    opacity: 0;
    transition:
        opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

[data-aos="fade-up"]    { transform: translate3d(0, 40px, 0); }
[data-aos="fade-down"]  { transform: translate3d(0, -40px, 0); }
[data-aos="fade-left"]  { transform: translate3d(40px, 0, 0); }
[data-aos="fade-right"] { transform: translate3d(-40px, 0, 0); }
[data-aos="zoom-in"]    { transform: scale(0.92); }

[data-aos].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Safety: if JS fails to load, show content after 2.5s so page isn't blank */
@keyframes ensureVisible {
    to { opacity: 1; transform: none; }
}

html.no-js [data-aos],
[data-aos].force-show {
    animation: ensureVisible 0.8s ease-out 2.5s forwards;
}

/* ============================================================
   SECTION TITLES & DIVIDERS
   ============================================================ */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 400;
    color: var(--primary);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-subtitle {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 60px;
    font-weight: 400;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.divider::before,
.divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--gold-light);
}

.divider-icon {
    color: var(--gold);
    font-size: 1rem;
}

/* Venue divider — left-aligned on desktop, reduced margin */
.divider--venue {
    justify-content: flex-start;
    margin-bottom: 28px;
}


/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 10000;
    display: grid;
    place-items: center;
    transition: opacity 0.8s ease;
}

.preloader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader__inner {
    display: grid;
    place-items: center;
    gap: 20px;
    position: relative;
}

.preloader__ring {
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
}

.preloader__ring circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.4;
    stroke-dasharray: 40 400;
    opacity: 0.6;
}

.preloader__monogram {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 28px;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.preloader__monogram span {
    color: var(--gold);
    font-size: 34px;
}

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


/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #1a1008;
    color: var(--white);
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    /* ╔════════════════════════════════════════════════════╗
       ║  ПОЛОЖЕНИЕ ФОТО ПАРЫ НА ПЕРВОМ ЭКРАНЕ:              ║
       ║  background-position: center <значение>;            ║
       ║  • center 0%    — фото выше (виден верх кадра)      ║
       ║  • center 10%   — чуть выше                         ║
       ║  • center 20%   — стандарт                          ║
       ║  • center 40%   — центр (видна середина)            ║
       ║  • center 80%   — ниже (видны ноги)                 ║
       ║  Меняйте только процент. Текущее: 10%               ║
       ╚════════════════════════════════════════════════════╝ */
    background-position: center 10%;
    opacity: 0.6;
    z-index: 0;
    animation: slowZoom 25s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes slowZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.06); }
}

/* Slow-zoom animation REMOVED — caused scroll-jank in some browsers (Opera, Telegram WebView). Hero background is now static. */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 8, 2, 0.35) 0%,
        rgba(15, 8, 2, 0.20) 40%,
        rgba(15, 8, 2, 0.45) 75%,
        rgba(15, 8, 2, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 20px;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 9px;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: block;
    opacity: 0.75;
    font-weight: 400;
    font-family: 'Jost', sans-serif;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 14vw, 9rem);
    font-weight: 400;
    line-height: 0.95;
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero-title .ampersand {
    font-style: italic;
    color: var(--gold);
    font-size: 0.7em;
    display: block;
    line-height: 1.2;
}

.hero-text {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    max-width: 520px;
    margin: 0 auto 36px;
    opacity: 0.85;
    font-weight: 300;
    line-height: 1.9;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-date-pill {
    display: inline-block;
    border: 1px solid rgba(201, 169, 110, 0.6);
    padding: 12px 34px;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-light);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 400;
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: fadeScroll 2.5s ease-in-out infinite;
    pointer-events: none;
}

.hero-scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollLine 2.5s ease-in-out infinite;
}

@keyframes fadeScroll {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ============================================================
   CALENDAR — journal-page style (no red stripe)
   ============================================================ */
.calendar-section {
    background: var(--cream);
}

.calendar-book {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.calendar-book::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 10%;
    right: 10%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(90, 60, 30, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.calendar-page {
    background: var(--white);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(90, 60, 30, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}
/* Red binding stripe removed per user feedback */

.cal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #5c3d28 60%, var(--secondary) 100%);
    padding: 28px 32px 22px;
    position: relative;
    overflow: hidden;
}

.cal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.6), transparent);
}

.cal-header-ornament {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.12;
    color: var(--gold-light);
    font-family: 'Playfair Display', serif;
    pointer-events: none;
    line-height: 1;
}

.cal-month-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(232, 213, 176, 0.7);
    margin-bottom: 4px;
}

.cal-month-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}

.cal-year {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    color: rgba(232, 213, 176, 0.6);
    letter-spacing: 3px;
    margin-top: 2px;
}

.cal-body {
    padding: 24px 32px 32px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}

.cal-weekdays span {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 6px 0;
    border-bottom: 1px solid var(--gold-light);
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.cal-days span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text);
    cursor: default;
    position: relative;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

.cal-days .cal-weekend {
    color: #b08070;
}

.cal-days .cal-wedding {
    color: var(--white) !important;
    font-weight: 600;
    z-index: 2;
    font-size: 1rem;
}

.cal-days .cal-wedding::before {
    content: '';
    position: absolute;
    inset: 6%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.5);
    animation: calPulse 2.8s ease-in-out infinite;
}

@keyframes calPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(201, 169, 110, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 24px rgba(201, 169, 110, 0.75);
        transform: scale(1.05);
    }
}

.cal-footer {
    padding: 16px 32px 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cal-footer-text {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
}

.cal-heart {
    color: var(--gold);
    font-size: 1rem;
    display: inline-block;
    animation: heartPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.3); }
}


/* ============================================================
   TIMELINE — zigzag layout, text only (no card blocks)
   ============================================================ */
.timeline-section {
    background: var(--cream);
    overflow: hidden;
}

.timeline-outer {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.timeline-svg-wave {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 120px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
}

.tl-item {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    min-height: 140px;
    position: relative;
}

.tl-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.tl-dot {
    width: 14px;
    height: 14px;
    background: var(--cream);
    border: 2.5px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(201, 169, 110, 0.15), 0 4px 12px rgba(201, 169, 110, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.tl-item:hover .tl-dot {
    transform: scale(1.4);
    box-shadow: 0 0 0 7px rgba(201, 169, 110, 0.2), 0 6px 20px rgba(201, 169, 110, 0.45);
}

/* Side columns — TEXT ONLY, no cards/backgrounds */
.tl-side {
    padding: 20px 0;
}

.tl-left {
    padding-right: 44px;
    text-align: right;
}

.tl-right {
    padding-left: 44px;
    text-align: left;
}

.tl-empty {
    visibility: hidden;
}

.tl-time {
    font-family: 'Jost', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    color: var(--primary);
    font-weight: 300;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    font-feature-settings: "lnum", "tnum";
}

.tl-side h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tl-side p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 320px;
    margin-left: auto;
}

.tl-right p {
    margin-left: 0;
    margin-right: auto;
}

/* Mobile timeline */
@media (max-width: 700px) {
    .timeline-outer { max-width: 100%; }
    .timeline-svg-wave { display: none; }

    .tl-item {
        grid-template-columns: 24px 1fr;
        grid-template-areas: "dot card";
        min-height: unset;
    }

    .tl-center {
        grid-area: dot;
        align-self: flex-start;
        padding-top: 28px;
    }

    .tl-left {
        display: none;
    }

    .tl-right {
        grid-area: card;
        padding-left: 18px;
        padding-right: 0;
        text-align: left;
    }

    /* Odd items (originally left-sided) — display their left text on the right */
    .tl-item:nth-child(odd) .tl-left {
        display: block;
        grid-area: card;
        padding-left: 18px;
        padding-right: 0;
        text-align: left;
    }

    .tl-item:nth-child(odd) .tl-right {
        display: none;
    }

    .tl-side p { max-width: 100%; margin: 0; }

    /* Vertical line on mobile */
    .timeline-list::before {
        content: '';
        position: absolute;
        left: 11px;
        top: 20px;
        bottom: 20px;
        width: 1px;
        background: linear-gradient(
            to bottom,
            transparent,
            var(--gold-light) 10%,
            var(--gold) 50%,
            var(--gold-light) 90%,
            transparent
        );
    }
}

/* ─── Scroll-driven traveler bead + active dot state ─── */

/* Desktop bead — lives inside the SVG wave */
.tl-traveler {
    fill: var(--gold);
    filter: drop-shadow(0 0 6px rgba(201, 169, 110, 0.95));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tl-traveler-halo {
    fill: rgba(201, 169, 110, 0.22);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: tlTravelerPulse 2.4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes tlTravelerPulse {
    0%, 100% { transform: scale(0.85); opacity: 0.55; }
    50%      { transform: scale(1.25); opacity: 0.95; }
}

/* Mobile bead — absolutely positioned on the vertical line */
.tl-traveler-mobile {
    position: absolute;
    /* the line is at left: 11px (1px wide), center it on the line */
    left: 4px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(201, 169, 110, 0.22),
                0 0 14px rgba(201, 169, 110, 0.75);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    will-change: transform, opacity;
    transition: opacity 0.5s ease;
}

.tl-traveler-mobile::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.22);
    animation: tlTravelerPulse 2.4s ease-in-out infinite;
}

/* Event dot — "lit up" once the bead has passed it */
.tl-dot {
    transition: background 0.45s ease,
                box-shadow 0.45s ease,
                transform 0.35s ease;
}

.tl-dot.is-active {
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(201, 169, 110, 0.22),
                0 4px 18px rgba(201, 169, 110, 0.55);
    transform: scale(1.15);
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .tl-traveler-halo,
    .tl-traveler-mobile::before {
        animation: none;
    }
}


/* ============================================================
   VENUE
   ============================================================ */
.venue-section {
    background: var(--cream);
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.venue-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 24px 60px var(--shadow);
}

.venue-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.venue-image-wrap:hover img {
    transform: scale(1.04);
}

.venue-info {
    padding: 10px 0;
}

.venue-info .section-title {
    text-align: left;
    margin-bottom: 8px;
}

.venue-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 16px;
    margin-top: -25px;
    font-weight: 400;
}

.venue-address {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.venue-address i {
    color: var(--gold);
    font-size: 0.9rem;
}

.venue-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 440px;
}

.venue-btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    border: none;
}

.venue-btn:hover {
    background: var(--gold);
    box-shadow: 0 12px 32px rgba(201, 169, 110, 0.4);
    transform: translateY(-2px);
}


/* ============================================================
   DRESS CODE (kept from my version, restyled)
   ============================================================ */
.dresscode-section {
    background: var(--cream);
    text-align: center;
}

.dresscode-body {
    max-width: 720px;
    margin: 0 auto;
}

.dresscode-intro {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 52px;
}

.dresscode-palette {
    margin-bottom: 60px;
}

.dresscode-palette-label {
    font-size: 0.7rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    font-family: 'Jost', sans-serif;
}

.dresscode-swatches {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.swatch {
    width: 64px;
    height: 64px;
    background: var(--sw);
    position: relative;
    cursor: default;
    border-radius: 50%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.swatch:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.swatch::after {
    content: attr(data-color);
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.swatch:hover::after {
    opacity: 1;
}

.dresscode-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
    text-align: left;
}

.rule {
    display: flex;
    gap: 16px;
    padding: 26px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.rule i {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-no i { color: var(--secondary); }
.rule-yes i { color: var(--gold); }

.rule h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 500;
}

.rule p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.dresscode-note {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--primary);
    margin-top: 10px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}


/* ============================================================
   DETAILS (3 info cards)
   ============================================================ */
.details-section {
    background: var(--cream);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.detail-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow);
}

.detail-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--cream), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 1.5rem;
    color: var(--gold);
}

.detail-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.detail-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}


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

.rsvp-subtitle {
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: -40px;
    margin-bottom: 50px;
    font-weight: 400;
}

.rsvp-wrap {
    max-width: 620px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    font-family: 'Jost', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1.5px solid var(--gold-light);
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
    padding: 14px 16px;
    border: 1.5px solid var(--gold-light);
    border-radius: 12px;
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: var(--gold);
}

.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9a96e' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px;
    padding-right: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-row .form-group { margin-bottom: 0; }

.attendance-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
}

.attendance-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 10px 24px;
    border: 1.5px solid var(--gold-light);
    border-radius: 50px;
    transition: all 0.3s;
    user-select: none;
}

.attendance-label:has(input:checked) {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.attendance-label input {
    display: none;
}

/* Drinks multi-select (checkbox pills) */
.form-label-hint {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 8px;
    opacity: 0.8;
    display: inline-block;
}

/* On mobile — hint goes on its own line under the label */
@media (max-width: 640px) {
    .form-label-hint {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }
}

.drinks-label.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.drinks-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.drinks-label {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.drinks-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.drinks-label span {
    display: inline-block;
    padding: 9px 20px;
    border: 1.5px solid var(--gold-light);
    border-radius: 50px;
    font-size: 0.88rem;
    color: var(--text);
    background: transparent;
    transition: all 0.3s;
    font-family: 'Jost', sans-serif;
}

.drinks-label:hover span {
    border-color: var(--gold);
    color: var(--primary);
}

.drinks-label input:checked + span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--gold);
    box-shadow: 0 12px 32px rgba(201, 169, 110, 0.4);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.form-message {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    min-height: 24px;
}

.form-message.success { color: var(--primary); font-weight: 500; }
.form-message.error   { color: #c0392b; }


/* ============================================================
   CHAT
   ============================================================ */
.chat-section {
    background: var(--cream);
    text-align: center;
}

.chat-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 auto 36px;
    max-width: 460px;
}

.qr-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 32px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--white);
    padding: 10px;
}

.qr-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}


/* ============================================================
   TIMER — dark mesh-gradient with noise
   ============================================================ */
.timer-section {
    position: relative;
    text-align: center;
    padding: 160px 0;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(122, 92, 68, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(90, 65, 45, 0.35) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(160, 120, 80, 0.3) 0%, transparent 60%),
        linear-gradient(160deg, #2a1a0e 0%, #4a3020 30%, #6b4c30 55%, #4a3020 78%, #2a1a0e 100%);
}

.timer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Disable noise overlay on touch devices for smoother scroll */
@media (hover: none) and (pointer: coarse) {
    .timer-section::before { display: none; }
}

.timer-section .section-title { color: var(--white); }

.timer-section .section-subtitle {
    color: rgba(232, 213, 176, 0.65);
    margin-bottom: 60px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.countdown-item {
    text-align: center;
    padding: 0 32px;
    position: relative;
}

.countdown-item + .countdown-item::before {
    content: ':';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-70%);
    font-family: 'Jost', sans-serif;
    font-size: 3rem;
    color: rgba(201, 169, 110, 0.4);
    line-height: 1;
    font-weight: 300;
}

.countdown-number {
    font-family: 'Jost', sans-serif;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    line-height: 1;
    color: var(--white);
    display: block;
    margin-bottom: 14px;
    font-weight: 300;
    letter-spacing: 0.02em;
    font-feature-settings: "lnum", "tnum";
}

.countdown-label {
    font-size: 0.72rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-light);
    opacity: 0.8;
    font-weight: 300;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 70px 0 60px;
    text-align: center;
    background: var(--white);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--gold-light);
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 400;
}

.footer-date {
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-love {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--text-light);
    letter-spacing: 1px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    section { padding: 96px 0; }

    /* Venue — on mobile: title → divider → image → name → address → desc → button */
    .venue-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .venue-info {
        display: contents;
    }

    .venue-info .section-title {
        order: 1;
        text-align: center;
        margin-bottom: 12px;
        width: 100%;
    }

    .venue-info .divider {
        order: 2;
        justify-content: center !important;
        margin-bottom: 36px !important;
    }

    .venue-image-wrap {
        order: 3;
        width: 100%;
        max-width: 480px;
        margin-bottom: 36px;
    }

    .venue-name {
        order: 4;
        text-align: center;
        margin-top: 0;
        margin-bottom: 14px;
    }

    .venue-address {
        order: 5;
        justify-content: center;
        text-align: center;
    }

    .venue-desc {
        order: 6;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .venue-btn {
        order: 7;
        align-self: center;
    }

    .details-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .dresscode-rules { grid-template-columns: 1fr; }

    /* Countdown: single row on tablet, compressed */
    .countdown {
        display: flex;
        justify-content: center;
        gap: 14px;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 8px;
    }
    .countdown-item {
        flex: 1 1 0;
        min-width: 0;
        padding: 0;
    }
    .countdown-item + .countdown-item::before { display: none; }
    .countdown-number { font-size: clamp(2.4rem, 11vw, 4.5rem); }
    .countdown-label { font-size: 0.62rem; letter-spacing: 2.5px; }
}

@media (max-width: 640px) {
    section { padding: 80px 0; }

    .container { padding: 0 20px; }

    .hero-title { font-size: clamp(3rem, 16vw, 5.5rem); }

    .calendar-book { max-width: 100%; }
    .cal-body { padding: 20px 22px 26px; }
    .cal-header { padding: 24px 26px 20px; }
    .cal-footer { padding: 14px 22px 20px; gap: 10px; }
    .cal-footer-text { font-size: 0.82rem; letter-spacing: 0.5px; }
    .cal-heart { font-size: 0.85rem; }

    /* Shorten divider lines so they don't hit viewport edges */
    .divider::before,
    .divider::after {
        width: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 0;
    }
    .form-row .form-group { margin-bottom: 24px; }

    /* Countdown — keep single row, tighter */
    .countdown { gap: 10px; padding: 0 4px; }
    .countdown-number { font-size: clamp(2rem, 12vw, 3.6rem); }
    .countdown-label { font-size: 0.58rem; letter-spacing: 2px; }

    .swatch { width: 54px; height: 54px; }
    .dresscode-swatches { gap: 10px; }
}

@media (max-width: 400px) {
    .attendance-group { flex-direction: column; align-items: stretch; }
    .attendance-label { justify-content: center; }

    .countdown { gap: 8px; }
    .countdown-number { font-size: clamp(1.8rem, 13vw, 2.8rem); }
    .countdown-label { font-size: 0.55rem; letter-spacing: 1.5px; }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    .hero-bg { animation: none; }
}
