/* ========================================
   Wedding Invitation — Styles
   Aesthetic: Italian countryside stationery
   ======================================== */

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

:root {
    --cream: #FAF9F7;
    --cream-dark: #F0EFED;
    --cream-light: #FDFCFB;
    --text: #2C2C2C;
    --text-light: #19251B;
    --sage: #769179;
    --sage-hover: #6B7A63;
    --sage-glow: rgba(125, 139, 117, 0.2);
    --coral: #D4764E;
    --coral-soft: rgba(212, 118, 78, 0.12);
    --white: #FFFFFF;
    --border-muted: #DDD8D1;
    --gold: #FFD013;
    --overlay: rgba(34, 30, 26, 0.6);
    --font-script: 'Inspiration', cursive;
    --font-heading: 'Odudo', sans-serif;
    --font-body: 'Odudo', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --short-grey: #FAFAFA;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--cream-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
}

/* ── Page frame with decorative blue border ── */
.page-frame {
    background: var(--cream);
    border-radius: 6px;
    max-width: 960px;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 40px 60px 60px;
}

/* Inner decorative border */
.page-frame::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1.5px solid var(--sage-hover);
    border-radius: 3px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

/* Subtle corner ornaments */
.page-frame::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 0.5px solid var(--sage);
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
}

/* Paper grain texture overlay */
.page-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

/* ── Scroll reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Language toggle ── */
.lang-toggle {
    position: absolute;
    top: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    z-index: 10;
    transition: opacity 0.3s;
    letter-spacing: 0.03em;
    border: 1px solid var(--sage);
    border-radius: 24px;
    padding: 6px 12px;
}

.lang-toggle:hover {
    opacity: 0.6;
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
}

/* ── Hero Section ── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
    min-height: 640px;
}

.hero-illustrations {
    position: relative;
    width: 100%;
    max-width: 820px;
    height: 420px;
    margin: 0 auto 16px;
}

/* ── Illustration positioning & floating animations ── */
.illust {
    position: absolute;
    opacity: 0;
    transition: opacity 1.2s var(--ease-out-expo);
    object-fit: contain;
    pointer-events: none;
}

.illust.animate-in {
    opacity: 1;
}

.illust-cupid {
    width: 108px;
    left: 4%;
    top: -5%;
    animation: float-gentle 6s ease-in-out infinite;
    animation-play-state: paused;
}

.illust-cupid.animate-in {
    animation-play-state: running;
    animation-delay: -1s;
}

.illust-champagne {
    width: 102px;
    left: 1%;
    top: 42%;
    animation: float-gentle 7s ease-in-out infinite;
    animation-play-state: paused;
}

.illust-champagne.animate-in {
    animation-play-state: running;
    animation-delay: -3s;
}

.illust-flowers {
    width: 120px;
    left: 6%;
    bottom: -10%;
    animation: float-gentle 8s ease-in-out infinite;
    animation-play-state: paused;
}

.illust-flowers.animate-in {
    animation-play-state: running;
    animation-delay: -2s;
}

.illust-olive {
    width: 165px;
    right: 0%;
    top: -2%;
    animation: float-gentle 7.5s ease-in-out infinite;
    animation-play-state: paused;
}

.illust-olive.animate-in {
    animation-play-state: running;
    animation-delay: -4s;
}

.illust-rings {
    width: 108px;
    right: 2%;
    top: 40%;
    animation: float-gentle 6.5s ease-in-out infinite;
    animation-play-state: paused;
}

.illust-rings.animate-in {
    animation-play-state: running;
    animation-delay: -5s;
}

.illust-cake {
    width: 123px;
    right: 1%;
    bottom: -12%;
    animation: float-gentle 7s ease-in-out infinite;
    animation-play-state: paused;
}

.illust-cake.animate-in {
    animation-play-state: running;
    animation-delay: -1.5s;
}

.illust-couple {
    width: 420px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    z-index: 2;
    opacity: 0;
    transition: opacity 1.4s var(--ease-out-expo) 0.3s;
}

.illust-couple.animate-in {
    opacity: 1;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Hero title entrance */
.hero-title {
    font-family: var(--font-script);
    font-size: clamp(130px, 10vw, 130px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 1s var(--ease-out-expo) 0.6s, transform 1s var(--ease-out-expo) 0.6s;
}

.hero-title.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(16px, 3vw, 16px);
    font-weight: 400;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 36px;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s var(--ease-out-expo) 0.9s, transform 0.9s var(--ease-out-expo) 0.9s;
    margin-top: -20px;
}

html[lang="en"] .hero-subtitle {
    margin-top: 10px;
}

.hero-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.btn-cta {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    background: var(--sage);
    color: var(--white);
    border: none;
    padding: 15px 44px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s, transform 0.25s var(--ease-out-quart), box-shadow 0.3s;
    position: relative;
    z-index: 3;
    opacity: 0;
    animation: none;
}

.btn-cta.animate-in {
    opacity: 1;
    animation: cta-entrance 0.8s var(--ease-out-expo) 1.2s both;
}

@keyframes cta-entrance {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-cta:hover {
    background: var(--sage-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--sage-glow);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Decorative separator ── */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
    opacity: 0.35;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px;
    height: 0.5px;
    background: var(--text);
}

.section-divider svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    fill: none;
    stroke-width: 1.2;
}

/* ── Save the Date ── */
.save-date {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
    padding: 50px 24px 30px;
}

.save-date-info {
    flex: 1 1 300px;
}

.save-date-title {
    font-family: var(--font-script);
    font-size: clamp(60px, 10vw, 100px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #769179;
}

.save-date-text {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.save-date-note {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--sage);
}

/* ── Calendar ── */
.save-date-calendar {
    flex: 0 0 auto;
    text-align: center;
}

.calendar-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month-name {
    font-family: var(--font-script);
    font-size: 64px;
    line-height: 1;
    color: #769179;
}

.calendar-year {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    margin-top: 0;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.calendar-grid {
    min-width: 280px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 200;
    padding-bottom: 10px;
    color: var(--text);
}


.friday-green{
    color: var(--sage);
    font-weight: 400;
}

.calendar-header span:nth-child(2) {
    font-size: 18px;
    font-weight: 400;
}

.calendar-line {
    height: 1px;
    background: var(--border-muted);
    margin-bottom: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 200;
}

.calendar-highlight {
    position: relative;
    font-size: 18px;
    font-weight: 400;
    color: var(--sage);
}

/* Hand-drawn swirl circle spanning Vi header and 12 day */
.calendar-header span:nth-child(2),
.calendar-days .calendar-highlight {
    position: relative;
}

.calendar-days .calendar-highlight::after {
    content: '';
    position: absolute;
    left: 40%;
    top: -68px;
    transform: translateX(-46%) rotate(8deg) scale(0);
    width: 62px;
    height: 138px;
    pointer-events: none;
    transition: transform 0.6s var(--ease-out-expo);
    background: none;
    /* Hand-drawn oval with break on the left side, tilted right */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 108'%3E%3Cpath d='M26 4 C40 4 48 18 48 36 C48 54 44 72 38 86 C34 94 28 104 22 104 C12 104 6 90 5 74' stroke='%23FFD013' stroke-width='1.56' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 46 C6 34 10 18 18 8 C22 4 26 4 26 4' stroke='%23FFD013' stroke-width='1.20' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.save-date.visible .calendar-highlight::after {
    transform: translateX(-46%) rotate(8deg) scale(1);
}

/* ========================================
   Schedule Section
   ======================================== */
.schedule {
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    overflow: hidden;
}

.schedule-title {
    font-family: var(--font-script);
    font-size: clamp(36px, 8vw, 100px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #769179;
    align-self: flex-start;
}

.schedule-subtitle {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 44px;
    line-height: 1.6;
    align-self: flex-start;
}

/* Schedule events layout */
.schedule-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 640px;
    position: relative;
    overflow: visible;
}

/* Horizontal line through dot centers on desktop — positioned via JS fallback */
.schedule-events::after {
    content: '';
    position: absolute;
    left: -30px;
    right: -30px;
    height: 1px;
    background: #769179;
    opacity: 0.5;
    pointer-events: none;
    /* Default: text(~22px) + gap(6px) + dot-center(5px) */
    top: 33px;
}

.event-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.card-time-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.02em;
}

.card-time-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sage);
    flex-shrink: 0;
    position: relative;
}


.schedule-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    max-width: 300px;
    width: 100%;
}

.schedule-card-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    margin-bottom: 20px;
}

.schedule-illust {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.schedule-card-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.schedule-card-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
}

.location-pin {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ========================================
   Dress Code Section
   ======================================== */
.dress-code-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 24px 50px;
    gap: 40px;
}

.dress-code-left {
    flex: 1 1 340px;
    max-width: 460px;
}

.dress-code-title {
    font-family: var(--font-script);
    font-size: clamp(36px, 8vw, 58px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #769179;
}

.dress-code-desc {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 400px;
}

.dress-code-right {
    flex: 0 0 auto;
    position: relative;
    width: 260px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dress-code-illustrations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dress-illust {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
}

.dress-illust-leafs {
    width: 90px;
    top: -10px;
    left: 20px;
    animation: float-gentle 7s ease-in-out infinite;
    animation-delay: -2s;
}

.dress-illust-lemon {
    width: 40px;
    top: 0;
    right: 30px;
    animation: float-gentle 6s ease-in-out infinite;
    animation-delay: -4s;
}

.dress-illust-leaf {
    width: 50px;
    bottom: 10px;
    left: 10px;
    animation: float-gentle 8s ease-in-out infinite;
    animation-delay: -1s;
}

.dress-illust-lemons {
    width: 60px;
    bottom: 0;
    right: 20px;
    animation: float-gentle 7.5s ease-in-out infinite;
    animation-delay: -3s;
}

.dress-code-value {
    font-family: var(--font-script);
    font-size: clamp(48px, 8vw, 64px);
    color: #769179;
    line-height: 1.1;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ========================================
   Directions Section
   ======================================== */
.directions {
    padding: 60px 24px 60px;
}

.directions-title {
    font-family: var(--font-script);
    font-size: clamp(36px, 8vw, 58px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #769179;
}

.directions-subtitle {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text-light);
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.transport-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.transport-card {
    border: 1.5px solid var(--border-muted);
    border-radius: 16px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    transition: border-color 0.35s, transform 0.35s var(--ease-out-quart), box-shadow 0.35s;
}

.transport-card:hover {
    border-color: var(--sage-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.transport-icon {
    width: 120px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transport-icon svg {
    width: 100%;
    height: auto;
}

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

.transport-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.transport-desc {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-directions {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    background: #769179;
    color: var(--white);
    padding: 12px 0;
    width: 100%;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    transition: background 0.25s, transform 0.2s var(--ease-out-quart);
    margin-top: auto;
}

.btn-directions:hover {
    background: #657e68;
    transform: translateY(-1px);
}

/* Bus interest / progress bar */
.bus-interest {
    width: 100%;
    margin-top: auto;
}

.bus-interest-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--sage);
    display: block;
    margin-bottom: 6px;
    text-align: left;
}

.bus-progress-track {
    width: 100%;
    height: 8px;
    background: #E8E4DE;
    border-radius: 4px;
    overflow: hidden;
}

.bus-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #769179, #92AD95);
    border-radius: 4px;
    transition: width 1.2s var(--ease-out-expo);
}

/* ========================================
   Accommodation Section
   ======================================== */
.accommodation {
    padding: 60px 24px 60px;
}

.accommodation-title {
    font-family: var(--font-script);
    font-size: clamp(36px, 8vw, 58px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #769179;
}

.accommodation-subtitle {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text-light);
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hotel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.hotel-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.hotel-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-dark);
}

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

.hotel-info {
    padding: 16px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hotel-links {
    margin-top: auto;
}

.hotel-card--compact .hotel-links {
    margin-top: 0;
}

.hotel-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.hotel-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.hotel-distance {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-light);
}

.hotel-nav-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hotel-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hotel-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    gap: 8px;
    background: #F5F3F0;
}

.hotel-link-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-light);
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.hotel-link-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.hotel-link-brand {
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.booking-brand {
    font-family: var(--font-body);
    color: #003580;
}

.booking-dot {
    color: #003580;
}

.airbnb-brand {
    font-family: var(--font-body);
    color: #FF5A5F;
}

.hotel-link-btn {
    font-family: var(--font-body);
    font-size: 12px;
    color: #19251B;
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
    transition: color 0.2s;
    font-weight: 600;
}

.hotel-link-btn:hover {
    color: var(--text);
}

.hotel-link-booking {
    background: #EEF4F0;
}

.hotel-link-airbnb {
    background: #FFF0F0;
}

@media (max-width: 480px) {
    .accommodation {
        padding: 40px 12px 40px;
    }

    .hotel-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .accommodation {
        padding: 60px 40px 60px;
    }
}

/* Vertical timeline for mobile & tablet */
@media (max-width: 767px) {
    .schedule-events {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        padding-left: 28px;
        max-width: 380px;
    }

    /* Hide horizontal line on mobile */
    .schedule-events::after {
        display: none;
    }

    /* Vertical line on the left — through the dots, extending above & below */
    .schedule-events::before {
        content: '';
        position: absolute;
        left: 4.5px;
        top: -30px;
        bottom: -10px;
        width: 1px;
        background: #769179;
        opacity: 0.5;
    }

    .schedule-event {
        position: relative;
    }

    /* Position dot on the vertical line */
    .schedule-event .card-time-dot {
        position: absolute;
        left: -28px;
        top: 3px;
        width: 10px;
        height: 10px;
    }

    .event-time {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 14px;
    }

    .schedule-card {
        max-width: 100%;
        margin-bottom: 32px;
    }

    /* Shrink surrounding illustrations for tablet */
    .hero-illustrations { height: 320px; }
    .illust-couple { width: 320px; }
    .illust-cupid { width: 65px; }
    .illust-champagne { width: 60px; }
    .illust-flowers { width: 72px; }
    .illust-olive { width: 100px; }
    .illust-rings { width: 65px; }
    .illust-cake { width: 75px; }
}

/* ========================================
   Footer / closing
   ======================================== */
.closing {
    text-align: center;
    padding: 40px 24px 20px;
}

.closing-text {
    font-family: var(--font-script);
    font-size: clamp(28px, 6vw, 42px);
    color: #769179;
}

/* ========================================
   RSVP Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 24px;
    width: 620px;
    max-width: 620px;
    height: 800px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.5s var(--ease-out-expo);
}

#rsvpForm {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

/* ── Step header ── */
.step-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.step-back {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    border: 1.5px solid var(--border-muted);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.step-back svg {
    width: 26px;
    height: 26px;
}

.step-back:hover {
    border-color: var(--sage);
    background: var(--cream-light);
}

.step-back.hidden {
    opacity: 0;
    pointer-events: none;
}

.step-indicator {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--sage);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 500;
    margin-bottom: 6px;
    transition: text-align 0.2s;
}

.modal-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
    opacity: 0.7;
    transition: text-align 0.2s;
}

/* ── Step content ── */
.step-content {
    display: none;
    animation: step-fade-in 0.35s var(--ease-out-expo) both;
}

.step-content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

@keyframes step-fade-in {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content.slide-out-left {
    animation: step-fade-out-left 0.25s ease both;
}

@keyframes step-fade-out-left {
    to {
        opacity: 0;
        transform: translateX(-16px);
    }
}

.step-description {
    margin-bottom: 20px;
}

.step-question {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.step-detail {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    opacity: 0.7;
}

/* ── Companion choice cards (Step 2) ── */
.companion-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    align-items: stretch;
}

.choice-card {
    cursor: pointer;
    display: flex;
}

.choice-card input[type="radio"] {
    display: none;
}

.choice-card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--short-grey);
    border: 1.5px solid transparent;
    transition: border-color 0.25s, background 0.25s;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    width: 100%;
}

.choice-card input[type="radio"]:checked ~ .choice-card-inner {
    border-color: var(--sage);
    background: var(--white);
}

.choice-card input[type="radio"]:checked ~ .choice-card-inner .radio-custom {
    border-color: var(--sage);
}

.choice-card input[type="radio"]:checked ~ .choice-card-inner .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--sage);
    border-radius: 50%;
}

.companion-fields {
    transition: opacity 0.3s ease, max-height 0.4s ease;
    overflow: hidden;
}

.companion-fields.hidden {
    display: none;
}

/* ── Guest card ── */
.guest-card {
    background: var(--short-grey);
    border: none;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    position: relative;
    animation: card-enter 0.4s var(--ease-out-expo) both;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guest-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    color: var(--text);
}

.guest-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.field input,
.guest-card textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 11px 14px;
    border: 1.5px solid var(--border-muted);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.guest-card textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px var(--sage-glow);
}

.field input::placeholder,
.guest-card textarea::placeholder {
    color: #B8B3AC;
}

.guest-card textarea {
    resize: vertical;
    min-height: 70px;
}

.field-section-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text);
}

.field-question {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
    opacity: 0.8;
}

/* ── Custom radio buttons ── */
.radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.radio-group-vertical {
    flex-direction: column;
    gap: 14px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border-muted);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.25s;
    flex-shrink: 0;
    background: var(--white);
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--sage);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--sage);
    border-radius: 50%;
    animation: radio-pop 0.3s var(--ease-out-expo) forwards;
}

@keyframes radio-pop {
    to { transform: translate(-50%, -50%) scale(1); }
}

/* ── Remove guest button ── */
.btn-remove-guest {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #B8B3AC;
    line-height: 1;
    transition: color 0.2s;
}

.btn-remove-guest:hover {
    color: var(--coral);
}

/* ── Add guest ── */
.btn-add-guest {
    width: 100%;
    padding: 14px;
    border: 1.5px dashed var(--border-muted);
    border-radius: 30px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.btn-add-guest:hover {
    border-color: var(--sage);
    color: var(--sage);
    background: var(--cream-light);
}

/* ── Step navigation ── */
.step-nav {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    flex-shrink: 0;
}

.btn-step {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-cancel {
    background: var(--white);
    border: 1.5px solid var(--border-muted);
    color: var(--text);
}

.btn-cancel:hover {
    border-color: var(--text-light);
    background: var(--cream-light);
}

.btn-continue {
    background: var(--sage);
    border: 1.5px solid var(--sage);
    color: var(--white);
}

.btn-continue:hover {
    background: var(--sage-hover);
    border-color: var(--sage-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--sage-glow);
}

.btn-continue:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-continue.success {
    background: #5A8A50;
    border-color: #5A8A50;
}

/* ── Hidden utility ── */
.hidden {
    display: none !important;
}

/* ── Step body text (steps 3-5) ── */
.step-body-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.step-body-question {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

/* ── Success screen (step 6) ── */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 20px 0;
}

.success-img {
    width: 220px;
    max-width: 100%;
    margin-bottom: 28px;
    border-radius: var(--radius);
}

.success-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 400px;
}

.success-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.7;
    max-width: 360px;
    line-height: 1.5;
}

/* ── Success nav ── */
.step-nav-success {
    justify-content: center;
}

.btn-ok {
    max-width: 200px;
}

/* ── Review summary ── */
.review-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: var(--short-grey);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.review-item-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sage);
    margin-bottom: 4px;
}

.review-item-value {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

/* ========================================
   Responsive
   ======================================== */

/* Mobile small */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .page-frame {
        padding: 32px 16px 40px;
    }

    .page-frame::before {
        inset: 8px;
    }

    .page-frame::after {
        inset: 5px;
    }

    /* Hero compact for mobile */
    .hero {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .hero-title {
        font-size: clamp(72px, 20vw, 100px);
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        margin-top: -14px;
    }

    .btn-cta {
        font-size: 13px;
        padding: 12px 36px;
    }

    .hero-illustrations {
        height: 240px;
        margin-bottom: 8px;
    }

    .illust-couple { width: 220px; }
    .illust-cupid { width: 48px; left: 0%; }
    .illust-champagne { width: 45px; left: 0%; top: 46%; }
    .illust-flowers { width: 54px; left: 0%; }
    .illust-olive { width: 72px; right: 0%; }
    .illust-rings { width: 48px; right: 0%; }
    .illust-cake { width: 56px; right: 0%; }

    .save-date {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0px;
    }

    .save-date-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        flex: none;
    }

    .schedule {
        padding: 40px 12px 30px;
        text-align: center;
    }

    .schedule-title,
    .schedule-subtitle {
        align-self: center;
        max-width: 100%;
    }

    .schedule-card {
        max-width: 280px;
    }

    .dress-code-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 12px 30px;
        gap: 24px;
    }

    .dress-code-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: none;
    }

    .dress-code-desc {
        font-size: 14px;
        max-width: 100%;
    }

    .dress-code-title {
        font-size: clamp(30px, 9vw, 44px);
    }

    .dress-code-right {
        width: 200px;
        height: 180px;
    }

    .dress-illust-leafs { width: 70px; }
    .dress-illust-lemon { width: 30px; }
    .dress-illust-leaf { width: 40px; }
    .dress-illust-lemons { width: 48px; }

    .dress-code-value {
        font-size: clamp(40px, 10vw, 52px);
    }

    .directions {
        padding: 40px 12px 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .transport-cards {
        grid-template-columns: 1fr;
    }

    .guest-name-row {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 28px 20px 24px;
        border-radius: 18px;
        height: calc(100dvh - 32px);
        max-height: calc(100dvh - 32px);
        min-height: calc(100dvh - 32px);
    }

    .lang-toggle {
        top: 20px;
        right: 20px;
    }

    /* Proportionally smaller fonts for mobile */
    .save-date-title {
        font-size: clamp(48px, 12vw, 70px);
    }

    .save-date-text {
        font-size: 14px;
    }

    .save-date-note {
        font-size: 12px;
    }

    .calendar-month-name {
        font-size: 48px;
    }

    .calendar-year {
        font-size: 18px;
    }

    .calendar-header {
        font-size: 14px;
    }

    .calendar-header span:nth-child(2) {
        font-size: 15px;
    }

    .calendar-days {
        font-size: 14px;
    }

    .calendar-highlight {
        font-size: 15px;
    }

    .calendar-days .calendar-highlight::after {
        width: 50px;
        height: 112px;
        top: -56px;
    }

    .schedule-title {
        font-size: clamp(30px, 9vw, 44px);
    }

    .schedule-subtitle {
        font-size: 14px;
    }

    .schedule-card-name {
        font-size: 16px;
    }

    .card-time-text {
        font-size: 15px;
    }

    .schedule-card-location {
        font-size: 12px;
    }

    .schedule-card-illustration {
        height: 110px;
    }

    .directions-title {
        font-size: clamp(30px, 9vw, 44px);
    }

    .directions-subtitle {
        font-size: 14px;
    }

    .transport-name {
        font-size: 15px;
    }

    .transport-desc {
        font-size: 11px;
    }

    .accommodation-title {
        font-size: clamp(30px, 9vw, 44px);
    }

    .accommodation-subtitle {
        font-size: 14px;
    }

    .closing-text {
        font-size: clamp(48px, 6vw, 34px);
    }

    .modal-title {
        font-size: clamp(20px, 5vw, 26px);
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .guest-label {
        font-size: 16px;
    }

    .btn-submit {
        font-size: 14px;
    }

    .choice-card-inner {
        font-size: 12px;
        padding: 12px 12px;
        gap: 8px;
    }

    .step-body-text {
        font-size: 13px;
    }

    .step-body-question {
        font-size: 13px;
    }

    .field-section-title {
        font-size: 13px;
    }

    .field-question {
        font-size: 12px;
    }

    .radio-label {
        font-size: 13px;
    }

    .btn-step {
        font-size: 13px;
        padding: 12px 16px;
    }

    .step-indicator {
        font-size: 12px;
    }
}

/* Tablet + */
@media ((min-width: 890px) and (max-width: 1024px)) {
    .page-frame {
        padding: 50px 48px 70px;
    }

    .page-frame::before {
        inset: 18px;
    }

    .page-frame::after {
        inset: 14px;
    }

    .hero {
        padding-top: 40px;
        padding-bottom: 70px;
        min-height: 600px;
    }

    .hero-illustrations {
        height: 380px;
    }


    .illust-couple { width: 360px; }
    .illust-cupid { width: 96px; left: 6%; }
    .illust-champagne { width: 90px; left: 3%; }
    .illust-flowers { width: 105px; left: 5%; }
    .illust-olive { width: 140px; right: 3%; }
    .illust-rings { width: 96px; right: 4%; }
    .illust-cake { width: 108px; right: 3%; }

    .save-date {
        padding: 50px 40px 30px;
    }

    .schedule {
        padding: 60px 40px 40px;
    }

    .directions {
        padding: 60px 40px 60px;
    }

    .lang-toggle {
        top: 32px;
        right: 36px;
    }
    .save-date {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    .save-date-info{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 24px;
    }

    .dress-code-section {
        padding: 50px 40px 50px;
    }

    .dress-code-right {
        width: 300px;
        height: 240px;
    }

    .dress-illust-leafs { width: 100px; }
    .dress-illust-lemon { width: 45px; }
    .dress-illust-leaf { width: 55px; }
    .dress-illust-lemons { width: 70px; }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Scrollbar styling for modal */
.modal::-webkit-scrollbar {
    width: 5px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--border-muted);
    border-radius: 3px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }

    .illust {
        opacity: 1;
    }

    .hero-title,
    .hero-subtitle,
    .btn-cta {
        opacity: 1;
        transform: none;
    }

    .calendar-days .calendar-highlight::after {
        transform: translateX(-46%) rotate(8deg) scale(1);
    }

}
