/* ============================================================
   ELENA & SANDRO — Wedding Single Page
   Tema: Autunnale, elegante e caloroso
   Palette ispirata alle foto della coppia + frame decorativo
   ============================================================ */

:root {
    /* --- Backgrounds (warm ivory / cream) --- */
    --bg: oklch(96% 0.012 85);
    --surface: oklch(99% 0.004 85);
    --surface-alt: oklch(93% 0.018 75);

    /* --- Foreground tones --- */
    --fg: oklch(22% 0.025 25);
    --muted: oklch(46% 0.018 35);
    --border: oklch(85% 0.012 75);

    /* --- Autumn accent palette --- */
    --accent: #d96c4a; /* terracotta caldo fallback hex */
    --accent-2: oklch(48% 0.13 145); /* verde salvia       */
    --accent-warm: oklch(65% 0.14 72); /* ocra dorato        */

    /* --- Semantic --- */
    --success: oklch(60% 0.13 148);
    --danger: oklch(55% 0.18 25);

    /* --- Typography --- */
    --font-display: "Playfair Display", "Georgia", serif;
    --font-body: "Lato", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--fg);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Utility ---- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 100px 0;
}
.text-center {
    text-align: center;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--fg);
    line-height: 1.2;
}
h1 {
    letter-spacing: -0.025em;
}
h2 {
    letter-spacing: -0.02em;
}
h3 {
    letter-spacing: -0.01em;
}

p {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Decorative frame overlay (from bg1.png) ---- */
.frame-overlay {
    position: absolute;
    inset: 0;
    background-image: url("bg1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 2;
}

/* ============================================================
   NAVIGATION — sticky, frosted, minimal
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}
.nav--hidden {
    transform: translateY(-100%);
}
.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.nav__rsvp-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav__rsvp-cta:hover {
    color: #fff !important;
    background: #c45a38; /* leggermente più scuro per contrasto */
}

.nav__download-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: oklch(35% 0.12 95);
    background: transparent;
    border: 1.5px solid oklch(70% 0.14 95);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav__download-cta:hover {
    color: #fff;
    background: oklch(70% 0.14 95);
}

.nav__links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}
.nav__links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.nav__links a:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    .nav__rsvp-item {
        display: none !important;
    }
    .nav__links {
        gap: 18px;
    }
    .nav__links a {
        font-size: 0.78rem;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--surface);
}

/* Hero parallax layers */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: saturate(0.85) brightness(0.6);
}

/* Dark overlay to ensure text readability */
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 40px;
    padding-left: 24px;
    padding-right: 24px;
    max-width: 680px;
}

/* Decorative top frame accent */
.hero__frame-top {
    width: 180px;
    height: auto;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.hero__names {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 8px;
    padding-top: 30px;
}

.hero__amp {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero__date {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-top: 16px;
    margin-bottom: 48px;
}

.hero__divider {
    width: 60px;
    height: 1px;
    background: var(--accent-warm);
    border: none;
    margin: 32px auto;
    opacity: 0.7;
}

/* Hero intro text — styled with the provided copy */
.hero__story {
    margin-top: auto;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.8;
    color: #fff;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.hero__story strong {
    font-weight: 600;
    color: #fff;
}

.hero__story a,
.hero__story a:hover,
.hero__story a:active,
.hero__story a:visited {
    color: #fff;
    text-decoration: underline;
}

.hero__story em {
    font-style: italic;
    color: var(--accent-warm);
}

/* Hero scroll hint */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: var(--accent-warm);
    opacity: 0.5;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.7;
        transform: scaleY(1.3);
    }
}

@media (max-width: 640px) {
    .hero__bg-image {
        width: 100%;
        height: 100%;
        max-width: none;
        aspect-ratio: auto;
        border-radius: 0;
        opacity: 0.7;
    }
    .hero__content {
        padding: 32px 20px;
    }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
    color: var(--fg);
}

.section-subtitle {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    color: var(--muted);
    text-align: center;
    max-width: 48ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 56px;
}

.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}
.section-ornament span {
    width: 50px;
    height: 1px;
    background: var(--accent-warm);
    opacity: 0.6;
}
.section-ornament svg {
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.8;
}

/* ============================================================
   LOCATION SECTION
   ============================================================ */
#location {
    background: var(--surface);
}

.location-image-wrapper {
    position: relative;
    margin-bottom: 48px;
    border-radius: 20px;
    overflow: hidden;
}

.location-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 9/16;
    max-height: 520px;
    border-radius: 20px;
}

/* Subtle overlay for visual depth */
.location-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent 40%);
    border-radius: 20px;
    pointer-events: none;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 768px) {
    .location-image-wrapper {
        margin-bottom: 32px;
    }
}

.location-info {
    display: flex;
    flex-direction: column;
    padding: 40px 36px;
    background: var(--surface-alt);
    border-radius: 20px;
    border: 1px solid var(--border);
    height: 100%;
}

.location-info__nav {
    margin-top: auto;
    text-align: center;
    padding-top: 36px;
}

.location-info__venue {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.location-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.location-detail__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(237, 138, 96, 0.1);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.location-detail__text {
    font-size: 0.95rem;
    line-height: 1.6;
}
.location-detail__label {
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 2px;
    display: block;
    font-size: 0.82em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 100%;
    min-height: 480px;
    background: var(--surface-alt);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .map-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
    }
    .location-info {
        padding: 28px 24px;
    }
}

/* Route hint */
.route-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: rgba(237, 138, 96, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    font-size: 0.85rem;
    line-height: 1.55;
    color: oklch(40% 0.02 60);
}

.route-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

/* Navigation button */
.btn-navigation {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent-2);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-navigation:hover {
    background: oklch(40% 0.11 148);
    box-shadow: 0 4px 16px rgba(75, 130, 70, 0.25);
    transform: translateY(-1px);
}

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

@media (max-width: 768px) {
    .btn-navigation {
        padding: 14px 28px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   RSVP FORM SECTION
   ============================================================ */
#rsvp {
    background: var(--bg);
}

.rsvp-form-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 40px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--fg);
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(237, 138, 96, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: oklch(75% 0.01 40);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio group (menu choice) */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: block;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted);
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + label {
    color: var(--accent);
    background: rgba(237, 138, 96, 0.06);
    border-color: var(--accent);
    font-weight: 600;
}

.radio-option label:hover {
    border-color: oklch(75% 0.02 40);
}

/* Submit button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-submit:hover {
    background: oklch(50% 0.16 28);
    box-shadow: 0 4px 16px rgba(237, 138, 96, 0.3);
    transform: translateY(-1px);
}

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

/* Primary submit — terracotta */
.btn-submit--primary {
    flex: 1;
    background: var(--accent);
    color: #fff;
}

/* Secondary download — ochre yellow */
.btn-submit--secondary {
    flex: 1;
    background: oklch(50% 0.16 28);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.btn-submit--secondary:hover {
    background: oklch(50% 0.16 28);
    box-shadow: 0 4px 16px rgba(194, 147, 39, 0.3);
    transform: translateY(-1px);
}

.btn-submit--primary:hover,
.btn-submit--secondary:hover {
    /* shared hover lift */
}

/* Hide download button on mobile */
@media (max-width: 640px) {
    .float-btn--download {
        display: none !important;
    }
}

/* Float CTA variants */
.btn-float {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
}
.btn-float:hover {
    transform: translateY(-2px);
}

.btn-float--download {
    background: oklch(70% 0.14 95);
}

/* Success state */
#rsvp-success-msg {
    display: none;
    text-align: center;
    padding: 48px 24px;
}
#rsvp-success-msg.visible {
    display: block !important;
    animation: rsvpFadeInUp 0.6s ease forwards;
}
@keyframes rsvpFadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .rsvp-form-wrapper {
        padding: 32px 24px;
        border-radius: 20px;
    }
    .radio-group {
        flex-direction: column;
    }
}

/* ============================================================
   MENU INFO BUTTON & POPUP (RSVP section)
   ============================================================ */
.form-group--menu {
    position: relative;
}

.menu-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    background: rgba(237, 138, 96, 0.1);
    border-radius: 50%;
    cursor: pointer;
    vertical-align: middle;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}
.menu-info-btn:hover {
    color: #fff;
    background: var(--accent);
    transform: scale(1.15);
}

/* Popup — default state (mobile): hidden, not in flow */
.menu-popup {
    display: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 100;
}

.menu-popup.is-open {
    display: block !important;
}

/* Desktop: absolute overlay triggered by hover */
@media (hover: hover) and (pointer: fine) {
    .menu-popup {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 260px;
        max-width: 340px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px) scale(0.97);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s;
    }

    .menu-popup.is-open {
        /* JS toggle ignored on desktop — hover handles it */
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .form-group--menu:hover > .menu-popup {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
}

/* Small arrow pointing up */
.menu-popup::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-left: 1.5px solid var(--border);
    border-top: 1.5px solid var(--border);
    transform: rotate(45deg);
}

.menu-popup__header {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg);
    padding: 12px 18px 8px;
}

/* Decorative underline under header */
.menu-popup__header::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent-warm);
    margin-top: 8px;
    border-radius: 1px;
    opacity: 0.7;
}

.menu-list {
    list-style: none;
    padding: 8px 18px 16px;
    margin: 0;
}

.menu-list li {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--fg);
    padding: 4px 0;
}

/* Alternate courses in lighter muted tone */
.menu-list li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.menu-alt {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 2px;
    padding-left: 16px;
}




/* ============================================================
   GUEST BOOK SECTION
   ============================================================ */
#guestbook {
    background: var(--surface);
    position: relative;
    overflow: visible;
}

.guestbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.guest-card {
    padding: 32px 28px;
    background: var(--surface-alt);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.guest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.guest-card__quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg);
    margin-bottom: 20px;
}

.guest-card__quote::before {
    content: "\201C";
    color: var(--accent-warm);
    font-size: 1.5em;
    vertical-align: -0.1em;
}
.guest-card__quote::after {
    content: "\201D";
    color: var(--accent-warm);
    font-size: 1.5em;
    vertical-align: -0.1em;
}

.guest-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent));
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
}

.guest-card__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--fg);
}

.guest-card__date {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* Guest book mini form */
.guestbook-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 36px;
    background: var(--surface-alt);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.guestbook-form h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
    color: var(--fg);
}

@media (max-width: 640px) {
    .guestbook-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   GUEST BOOK CAROUSEL — 3 cards per page, navigable
   ============================================================ */
.carousel-hero-wrapper {
    position: relative;
    margin-top: 8px;
    left: auto;
    transform: none;
    width: 100%;
    z-index: 20;
    overflow: visible;
}

.carousel-hero-inner {
    display: flex;
    align-items: stretch;
    padding: 16px 48px;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    overflow: visible;
}

.carousel-page {
    flex: 1;
    min-width: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    z-index: 5;
}
.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(237, 138, 96, 0.3);
}
.carousel-prev {
    left: -4px;
}
.carousel-next {
    right: -4px;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    gap: 20px;
    padding: 8px 0;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-page {
    scroll-snap-align: center;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .carousel-hero-wrapper::before,
    .carousel-hero-wrapper::after {
        width: 60px;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    z-index: 5;
}
.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(237, 138, 96, 0.3);
}
.carousel-prev {
    left: 0;
}
.carousel-next {
    right: 0;
}

/* ============================================================
   PHOTO SHARING SECTION
   ============================================================ */
#photoshare {
    background: var(--bg);
}

.photo-share-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 56px 48px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(237, 138, 96, 0.06),
        rgba(100, 160, 100, 0.06)
    );
    border-radius: 24px;
    border: 1px solid var(--border);
}

.photo-share-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.photo-share-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
    color: var(--fg);
    letter-spacing: -0.01em;
}

.photo-share-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 48ch;
    margin: 0 auto 32px;
}

.btn-link-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent-2);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-link-external:hover {
    background: oklch(40% 0.11 148);
    box-shadow: 0 4px 16px rgba(75, 130, 70, 0.25);
    transform: translateY(-1px);
}

.btn-link-external.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--muted-color, #9ca3af);
}

/* Shared RSVP-style CTA button */
.btn-rsvp-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-rsvp-cta:hover {
    background: oklch(50% 0.16 28);
    box-shadow: 0 4px 16px rgba(237, 138, 96, 0.3);
    transform: translateY(-1px);
}

/* Small inline RSVP link for text contexts */
.rsvp-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}
.rsvp-link:hover {
    color: oklch(50% 0.16 28);
}

@media (max-width: 640px) {
    .photo-share-card {
        padding: 40px 28px;
        margin: 0 16px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ---- Footer ---- */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    text-align: center;
}

.footer__names {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.footer__date {
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================================
   ANIMATIONS — fade-in on scroll (lightweight, no lib)
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.1s;
}
.delay-2 {
    transition-delay: 0.25s;
}
.delay-3 {
    transition-delay: 0.4s;
}

/* ============================================================
   SCROLLBAR STYLING (webkite)
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Print-friendly */
@media print {
    .nav,
    .hero__scroll {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    .section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
}
