/* ============================================================
   Gibson–Messer Wedding — Global Design System
   ============================================================ */

/* --- Google Fonts ------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Fondamento&family=Lavishly+Yours&family=Square+Peg&display=swap');

/* --- Design Tokens ----------------------------------------- */
:root {
    /* Primitive — reds */
    --color-red-600: #C8392B;
    --color-red-700: #A8341F;
    --color-red-400: #D9654F;
    --color-red-100: #F7DDD8;

    /* Primitive — blues */
    --color-blue-600: #3D6B8C;
    --color-blue-700: #2B5270;
    --color-blue-900: #1E3A4A;
    --color-blue-400: #5B8FAF;
    --color-blue-100: #D0E4F0;

    /* Primitive — neutrals */
    --color-cream-100: #F2E8D5;
    --color-cream-200: #E8DBBE;
    --color-cream-400: #C8BB9E;
    --color-cream-900: #2A1F14;

    /* Semantic */
    --color-brand-primary:   var(--color-red-600);
    --color-brand-secondary: var(--color-blue-700);
    --color-action-bg:       var(--color-red-700);
    --color-surface-page:    var(--color-cream-100);
    --color-surface-card:    var(--color-cream-200);
    --color-text-link:       var(--color-blue-700);
    --color-text-body:       var(--color-cream-900);
    --color-border-default:  var(--color-cream-400);

    /* Institutional accent tokens */
    --color-ink:       #0F0E0C;
    --color-verdigris: #4A6B5A;
    --color-brass:     #9C8355;
    --rule-brass:      1px solid #9C8355;

    /* Motion */
    --ease-out-expo:         cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-dramatic:  cubic-bezier(0.77, 0, 0.175, 1);

    /* Spacing */
    --section-padding: clamp(12rem, 25vh, 25rem);
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--color-surface-page);
    color: var(--color-text-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Enforce no faux-bold or strokes anywhere */
h1, h2, h3, h4, h5, h6, p, a, span, button, li {
    font-weight: 400 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

/* --- Typography Utilities ---------------------------------- */
.statement-font  { font-family: 'Lavishly Yours', cursive; text-transform: none; }
.subheader-font  { font-family: 'Fondamento', cursive; letter-spacing: 0.02em; text-transform: none; }
.body-font {
    font-family: 'Square Peg', cursive;
    letter-spacing: 0.04em;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    line-height: 1.7;
    text-transform: none;
}

/* --- Parchment Texture Overlay ----------------------------- */
.texture-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    mix-blend-mode: multiply;
    opacity: 0.65;
    pointer-events: none;
    z-index: 9999;
}

/* --- Cinematic Reveal Animations --------------------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
    transition:
        opacity   1.2s var(--ease-out-expo),
        transform 1.2s var(--ease-out-expo),
        filter    1.2s var(--ease-out-expo);
    will-change: opacity, transform, filter;
}
.reveal-up.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Navigation -------------------------------------------- */
nav {
    position: fixed;
    top: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 5vw;
    z-index: 1000;
    background: transparent;
    mix-blend-mode: difference;
}

body.menu-open nav { mix-blend-mode: normal; }

.nav-logo {
    display: inline-block;
    text-decoration: none;
    position: relative;
    z-index: 1002;
}

.nav-logo img {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.5s ease;
}

/* --- Hamburger --------------------------------------------- */
.hamburger {
    width: 40px;
    height: 14px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #FFFFFF;
    transition:
        transform         0.6s var(--ease-out-expo),
        background-color  0.5s ease,
        opacity           0.4s ease;
    transform-origin: right center;
}

body.menu-open .hamburger span                 { background-color: var(--color-cream-100); }
body.menu-open .hamburger span:nth-child(1)    { transform: rotate(-45deg) scaleX(1.1) translateY(-1px); }
body.menu-open .hamburger span:nth-child(2)    { opacity: 0; transform: scaleX(0); }
body.menu-open .hamburger span:nth-child(3)    { transform: rotate(45deg)  scaleX(1.1) translateY(1px);  }

/* --- Fullscreen Menu Overlay ------------------------------- */
.menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 100%, var(--color-blue-700), var(--color-blue-900));
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 10vw;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 1.2s var(--ease-in-out-dramatic);
}

body.menu-open .menu-overlay { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

.menu-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10vw;
    align-items: end;
}

.menu-col { display: flex; flex-direction: column; }

.menu-link {
    color: var(--color-surface-page);
    font-size: clamp(4rem, 8vw, 10rem);
    line-height: 0.8;
    text-decoration: none;
    margin-bottom: 2rem;
    transform: translateY(24px);
    opacity: 0;
    transition:
        transform 1s var(--ease-out-expo),
        opacity   1s var(--ease-out-expo),
        color     0.4s ease;
}
body.menu-open .menu-link:hover { color: var(--color-red-400); transform: translateX(16px); }

.menu-sublink {
    color: var(--color-blue-400);
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    text-decoration: none;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(91, 143, 175, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition:
        transform     1s var(--ease-out-expo),
        opacity       1s var(--ease-out-expo),
        color         0.4s ease,
        border-color  0.4s ease;
}
.menu-sublink:hover { color: var(--color-surface-page); border-color: var(--color-surface-page); }

body.menu-open .menu-link,
body.menu-open .menu-sublink { transform: translateY(0); opacity: 1; }

body.menu-open .menu-link:nth-child(1)    { transition-delay: 0.30s; }
body.menu-open .menu-link:nth-child(2)    { transition-delay: 0.40s; }
body.menu-open .menu-link:nth-child(3)    { transition-delay: 0.50s; }
body.menu-open .menu-link:nth-child(4)    { transition-delay: 0.60s; }
body.menu-open .menu-sublink:nth-child(1) { transition-delay: 0.50s; }
body.menu-open .menu-sublink:nth-child(2) { transition-delay: 0.60s; }
body.menu-open .menu-sublink:nth-child(3) { transition-delay: 0.70s; }

body.menu-open { overflow-y: hidden; }

/* --- Hero -------------------------------------------------- */
.hero {
    height: 100vh; width: 100vw;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 5vw;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    background-attachment: fixed;
    z-index: -1;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 11rem);
    color: var(--color-cream-100);
    line-height: 0.75;
    z-index: 2;
}

.hero-meta {
    position: absolute;
    bottom: 5vw; right: 5vw;
    text-align: right;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: var(--color-cream-200);
    z-index: 2;
}

/* --- Page Hero (inner pages) ------------------------------- */
.page-hero {
    height: 50vh; width: 100vw;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 5vw;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.page-hero h1 {
    font-size: clamp(4rem, 10vw, 11rem);
    color: var(--color-cream-100);
    line-height: 0.75;
    z-index: 2;
}

/* --- Story / Narrative Section ----------------------------- */
.story-section {
    padding: var(--section-padding) 5vw;
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 15vw;
    align-items: flex-start;
    background: radial-gradient(circle at 80% 20%, var(--color-surface-page) 0%, #E8DFCC 100%);
}

.section-title {
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--color-ink);
    position: sticky;
    top: calc(50vh - 80px - 3rem);
}

.story-content p { margin-bottom: 5rem; color: var(--color-text-body); max-width: 800px; }
.story-content p:last-child { margin-bottom: 0; }

/* --- Image Break ------------------------------------------- */
.image-break {
    width: 100vw;
    padding: 20vh 10vw;
    display: flex;
    justify-content: flex-end;
    background: var(--color-cream-200);
}

.image-wrapper {
    overflow: hidden;
    width: 60vw;
    box-shadow: 0 40px 100px rgba(42, 31, 20, 0.15);
}

.image-break img {
    width: 100%; height: auto; max-height: 90vh; object-fit: cover;
    filter: grayscale(10%) sepia(20%) contrast(110%);
    transform: scale(1.05);
    transition: transform 2.5s var(--ease-out-expo);
}

.image-wrapper.visible img { transform: scale(1); }

/* --- Events ------------------------------------------------ */
.events-container {
    padding: var(--section-padding) 5vw;
    background: radial-gradient(circle at 20% 80%, var(--color-surface-page) 0%, #E8DFCC 100%);
}

.events-header { text-align: center; margin-bottom: 20vh; }
.events-header h2 { font-size: clamp(4rem, 8vw, 8rem); color: var(--color-brand-secondary); }

.event-item {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 15vw;
    margin-bottom: 25vh;
    padding-top: 8vh;
    border-top: var(--rule-brass);
    align-items: flex-start;
}

.event-meta { color: var(--color-brand-primary); position: sticky; top: calc(50vh - 80px - 3rem); }
.event-date { font-size: clamp(1.2rem, 2vw, 2rem); margin-bottom: 1rem; color: var(--color-verdigris); }
.event-time { font-size: 1.1rem; opacity: 0.8; }
.event-location { font-size: 1.1rem; margin-top: 1rem; color: var(--color-text-body); }

.event-number {
    font-family: 'Fondamento', cursive;
    font-size: 0.75rem;
    color: var(--color-brass);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.75rem;
}

.events-label {
    font-family: 'Fondamento', cursive;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--color-verdigris);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.event-details h3 { font-size: clamp(3rem, 6vw, 6rem); color: var(--color-ink); margin-bottom: 3rem; line-height: 0.9; }
.event-details p { color: var(--color-text-body); max-width: 800px; }

/* --- Travel ------------------------------------------------ */
.travel-section {
    padding: var(--section-padding) 5vw;
    background: radial-gradient(circle at 50% 0%, var(--color-cream-200) 0%, var(--color-cream-400) 100%);
    border-top: 1px solid rgba(200, 187, 158, 0.4);
}

.travel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15vw;
    margin-top: 15vh;
}

.travel-heading {
    color: var(--color-brand-secondary);
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(200, 187, 158, 0.4);
    padding-bottom: 1rem;
}

.travel-block { margin-bottom: 8rem; }
.travel-block:last-child { margin-bottom: 0; }

/* --- Generic content sections (RSVP, Registry, FAQ) -------- */
.content-section {
    padding: var(--section-padding) 5vw;
    background: radial-gradient(circle at 80% 20%, var(--color-surface-page) 0%, #E8DFCC 100%);
}

.content-grid {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 15vw;
    align-items: flex-start;
}

.content-block { margin-bottom: 8rem; }
.content-block:last-child { margin-bottom: 0; }

.content-heading {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--color-brand-secondary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(200, 187, 158, 0.4);
}

/* --- Inline Links ------------------------------------------ */
a.inline-link {
    color: var(--color-text-link);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 187, 158, 0.4);
    transition: color 0.4s, border-color 0.4s;
}
a.inline-link:hover { color: var(--color-action-bg); border-color: var(--color-action-bg); }

/* --- Footer CTA -------------------------------------------- */
.footer-cta {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(30, 58, 74, 0.7), rgba(42, 31, 20, 0.9)), url('../assets/Florals 2.png') center/cover no-repeat;
    background-attachment: fixed;
}

.footer-cta h2 {
    color: var(--color-cream-100);
    font-size: clamp(4rem, 10vw, 11rem);
    margin-bottom: 4rem;
}

.footer-btn {
    padding: 1.5rem 6rem;
    border: 1px solid rgba(242, 232, 213, 0.4);
    color: var(--color-cream-100);
    text-decoration: none;
    font-family: 'Fondamento', cursive;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 0;
    transition: background 0.8s var(--ease-out-expo), color 0.8s var(--ease-out-expo), border-color 0.8s var(--ease-out-expo);
    backdrop-filter: blur(5px);
    display: inline-block;
}
.footer-btn:hover {
    background: var(--color-cream-100);
    color: var(--color-blue-900);
    border-color: var(--color-cream-100);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
    :root { --section-padding: clamp(8rem, 15vh, 12rem); }

    .story-section,
    .content-grid,
    .event-item,
    .travel-grid,
    .menu-grid { grid-template-columns: 1fr; gap: 5vh; }

    .section-title,
    .event-meta { position: static; margin-bottom: 2rem; }

    .image-break { padding: 15vh 5vw; justify-content: center; }
    .image-wrapper { width: 100%; }

    .event-item { padding-top: 3rem; margin-bottom: 15vh; }
    .travel-block { margin-bottom: 5rem; }

    .hero-meta { text-align: left; right: auto; left: 5vw; }
}

@media (max-width: 768px) {
    :root { --section-padding: clamp(5rem, 10vh, 8rem); }

    /* Nav */
    nav { padding: 1.5rem 5vw; }
    .nav-logo img { width: 56px; }

    /* Menu — keep links from overflowing on short phones */
    .menu-overlay { align-items: flex-start; padding: 12vh 7vw; }
    .menu-grid { grid-template-columns: 1fr; gap: 5vh; }
    .menu-link { font-size: clamp(2.8rem, 11vw, 4.5rem); margin-bottom: 1rem; }
    .menu-sublink { font-size: clamp(1.3rem, 5vw, 2rem); margin-bottom: 1.5rem; }

    /* iOS Safari: background-attachment:fixed is broken on mobile */
    .footer-cta { background-attachment: scroll; height: 70vh; }

    /* Page hero */
    .page-hero { height: 40vh; }
    .page-hero h1 { font-size: clamp(3rem, 10vw, 5rem); }

    /* Body font */
    .body-font { font-size: clamp(1rem, 4vw, 1.3rem); }

    /* Story */
    .section-title { font-size: clamp(2.5rem, 9vw, 4rem); }
    .story-content p { margin-bottom: 2.5rem; }

    /* Image break */
    .image-break { padding: 8vh 5vw; }

    /* Events */
    .events-header { margin-bottom: 8vh; }
    .events-header h2 { font-size: clamp(3rem, 11vw, 5rem); }
    .event-item { margin-bottom: 8vh; padding-top: 2.5rem; }
    .event-details h3 { font-size: clamp(2.5rem, 9vw, 4rem); margin-bottom: 1.5rem; }
    .event-date { font-size: 1rem; margin-bottom: 0.5rem; }
    .event-time, .event-location { font-size: 0.95rem; }

    /* Travel */
    .travel-grid { margin-top: 5vh; }
    .travel-block { margin-bottom: 3rem; }
    .travel-heading { font-size: 1.5rem; }

    /* Content sections (FAQ, RSVP, Registry) */
    .content-block { margin-bottom: 4rem; }
    .content-heading { font-size: clamp(1.2rem, 4vw, 1.8rem); }

    /* Footer */
    .footer-cta h2 { font-size: clamp(3rem, 11vw, 5rem); margin-bottom: 2rem; }
    .footer-btn { padding: 1rem 3rem; font-size: 1rem; }
}

/* ============================================================
   ADDITIONS — Nav Right, Weekend at a Glance, RSVP Form
   ============================================================ */

/* --- Nav Right (inner pages) ------------------------------- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1002;
}

.nav-rsvp {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Fondamento', cursive;
    font-size: clamp(0.6rem, 0.7vw, 0.68rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    z-index: 1002;
    transition: color 0.5s ease, opacity 0.4s ease;
}

body.menu-open .nav-rsvp { color: var(--color-cream-100); }
.nav-rsvp:hover { opacity: 0.65; }
.hamburger:hover span { opacity: 0.6; }


/* --- RSVP Form --------------------------------------------- */
.rsvp-section {
    padding: var(--section-padding) 5vw;
    background: radial-gradient(circle at 80% 20%, var(--color-surface-page) 0%, #E8DFCC 100%);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rsvp-progress {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 5rem;
    align-items: center;
    justify-content: center;
}

.rsvp-progress__pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-cream-400);
    transition:
        background  0.5s var(--ease-out-expo),
        transform   0.5s var(--ease-out-expo);
}

.rsvp-progress__pip.is-active  { background: var(--color-brass); transform: scale(1.4); }
.rsvp-progress__pip.is-complete { background: var(--color-verdigris); }

.rsvp-form-wrapper {
    position: relative;
    width: 100%;
    max-width: 620px;
}

/* Step show/hide + transitions */
.rsvp-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity   0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
}

.rsvp-step.step--active                 { display: block; }
.rsvp-step.step--active.step--entered   { opacity: 1; transform: translateY(0); }
.rsvp-step.step--exiting {
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    transition:
        opacity   0.4s var(--ease-out-expo),
        transform 0.4s var(--ease-out-expo);
}

/* Step typography */
.rsvp-step__eyebrow {
    font-family: 'Fondamento', cursive;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--color-verdigris);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.rsvp-step__heading {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--color-ink);
    line-height: 0.85;
    margin-bottom: 2rem;
}

.rsvp-step__body {
    color: var(--color-text-body);
    margin-bottom: 3rem;
    max-width: 480px;
}

/* Fields */
.rsvp-field { margin-bottom: 2rem; }

.rsvp-label {
    font-family: 'Fondamento', cursive;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--color-brass);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.rsvp-input,
.rsvp-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-cream-400);
    color: var(--color-ink);
    font-family: 'Square Peg', cursive;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    letter-spacing: 0.04em;
    padding: 0.75rem 0;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    transition: border-color 0.4s ease;
}

.rsvp-input:focus,
.rsvp-textarea:focus { border-color: var(--color-brass); }

.rsvp-input::placeholder,
.rsvp-textarea::placeholder { color: var(--color-cream-400); font-size: 0.9em; }

.rsvp-textarea { resize: vertical; min-height: 80px; }

.rsvp-field__error {
    font-family: 'Fondamento', cursive;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-red-600);
    margin-top: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.5s var(--ease-out-expo),
        opacity    0.5s var(--ease-out-expo);
}

.rsvp-field__error.is-visible { max-height: 4rem; opacity: 1; }

/* Household member list */
.rsvp-member-list { list-style: none; margin-bottom: 3rem; }

.rsvp-member {
    font-family: 'Square Peg', cursive;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--color-ink);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(200, 187, 158, 0.4);
    letter-spacing: 0.04em;
}

.rsvp-member:first-child { border-top: 1px solid rgba(200, 187, 158, 0.4); }

/* Guest attendance rows */
.rsvp-guest-rows { margin-bottom: 2rem; }

.rsvp-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(200, 187, 158, 0.3);
    gap: 2rem;
    flex-wrap: wrap;
}

.rsvp-guest-row:first-child { border-top: 1px solid rgba(200, 187, 158, 0.3); }

.rsvp-guest-row__name {
    font-family: 'Square Peg', cursive;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: var(--color-ink);
    letter-spacing: 0.04em;
}

.rsvp-toggle-pair { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.rsvp-toggle {
    padding: 0.5rem 1.2rem;
    border: var(--rule-brass);
    background: transparent;
    color: var(--color-cream-900);
    font-family: 'Fondamento', cursive;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition:
        background   0.5s var(--ease-out-expo),
        color        0.5s var(--ease-out-expo),
        border-color 0.5s var(--ease-out-expo);
}

.rsvp-toggle.is-selected[data-value="yes"] {
    background: var(--color-verdigris);
    color: var(--color-cream-100);
    border-color: var(--color-verdigris);
}

.rsvp-toggle.is-selected[data-value="no"] {
    background: var(--color-cream-400);
    color: var(--color-cream-900);
    border-color: var(--color-cream-400);
}

/* Sub-event label (step 4) */
.rsvp-subevent-label {
    font-family: 'Fondamento', cursive;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--color-brass);
    text-transform: uppercase;
    margin: 2.5rem 0 0;
    padding-bottom: 0.5rem;
    border-bottom: var(--rule-brass);
    opacity: 0.8;
}

.rsvp-subevent-label:first-of-type { margin-top: 0; }

/* Action buttons */
.rsvp-step__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.rsvp-btn {
    margin-top: 3rem;
    padding: 1.2rem 4rem;
    border: 1px solid rgba(30, 58, 74, 0.5);
    background: var(--color-blue-900);
    color: var(--color-cream-100);
    font-family: 'Fondamento', cursive;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition:
        background 0.8s var(--ease-out-expo),
        opacity    0.4s ease;
}

.rsvp-btn:hover   { background: var(--color-blue-700); }
.rsvp-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.rsvp-btn--ghost {
    background: transparent;
    color: var(--color-brass);
    border-color: var(--color-brass);
    margin-top: 0;
}

.rsvp-btn--ghost:hover { background: rgba(156, 131, 85, 0.08); }

/* Loading spinner */
.btn-spinner {
    display: none;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(242, 232, 213, 0.4);
    border-top-color: var(--color-cream-100);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.rsvp-form--loading .btn-spinner { display: inline-block; }
.rsvp-form--loading .btn-label   { opacity: 0.5; }

/* Confirmation monogram */
.rsvp-confirmation-monogram { margin-bottom: 3rem; }
.rsvp-confirmation-monogram img {
    width: 60px;
    height: auto;
    opacity: 0.35;
}

/* Card deck interaction hint */
.rsvp-card-hint {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-brass);
    opacity: 0.6;
    text-align: center;
    margin-top: 2rem;
}

/* RSVP section intro */
.rsvp-intro {
    text-align: center;
    margin-bottom: clamp(3rem, 6vh, 5rem);
    width: 100%;
    max-width: 620px;
}

.rsvp-intro__monogram {
    width: 50px;
    height: auto;
    opacity: 0.3;
    margin: 0 auto 2rem;
    display: block;
}

.rsvp-intro__label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--color-verdigris);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.rsvp-intro__heading {
    font-size: clamp(3.5rem, 7vw, 7rem);
    color: var(--color-ink);
    line-height: 0.85;
    margin-bottom: 1.5rem;
}

.rsvp-intro__body {
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.65;
}

/* RSVP mobile */
@media (max-width: 768px) {
    .rsvp-progress { margin-bottom: 3rem; }
    .rsvp-input, .rsvp-textarea { font-size: 16px; } /* Prevent iOS Safari zoom */
    .rsvp-guest-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .rsvp-btn { padding: 1rem 2.5rem; width: 100%; justify-content: center; }
    .rsvp-step__actions { width: 100%; }
    .rsvp-step__heading { font-size: clamp(2.5rem, 9vw, 4rem); }
}
