:root {
    --olive: #9ba24e;
    --olive-deep: #828a3c;
    --olive-soft: #aab15f;
    --cream: #faf7ef;
    --card: #fffdf8;
    --gold: #b08a4e;
    --gold-deep: #97713c;
    --gold-on-olive: #d8c08a;
    --ink: #4a473f;
    --muted: #8c887b;
    --line: #e8e0d0;
    --shadow: 0 18px 50px rgba(74, 71, 63, 0.10);
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 300;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 0.4em;
}

a { color: var(--gold-deep); text-decoration: none; }

/* ---------- Shared decorative bits ---------- */
.label {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--gold);
}

.divider {
    text-align: center;
    color: var(--gold);
    font-size: 1.1rem;
    margin: 2.2rem 0;
    line-height: 1;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 1rem;
}

/* ---------- Header / nav ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1.25rem, 5vw, 4rem);
    position: sticky;
    top: 0;
    background: rgba(250, 247, 239, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}

.brand {
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: 0.22em;
    color: var(--olive-deep);
}
.brand span { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.site-nav a {
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover { color: var(--gold-deep); }
.site-nav a.active { border-color: var(--gold); color: var(--gold-deep); }

.nav-cta {
    background: var(--olive);
    color: #fff !important;
    padding: 0.5rem 1.15rem !important;
    border-radius: 999px;
    border: none !important;
    letter-spacing: 0.18em;
}
.nav-cta:hover { background: var(--olive-deep); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid var(--olive);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn-ghost { background: transparent; color: var(--olive-deep); }
.btn-ghost:hover { background: var(--olive); color: #fff; }
.btn-light { background: #fff; color: var(--olive-deep); border-color: #fff; }
.btn-light:hover { background: var(--gold-on-olive); border-color: var(--gold-on-olive); color: var(--olive-deep); }
.btn-block { width: 100%; border: none; }
.btn.is-loading { cursor: progress; opacity: 0.9; }
.btn.is-loading:hover { transform: none; }
.btn[disabled] { cursor: progress; }

.btn-spinner {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    margin-right: 0.55em;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -0.15em;
    animation: btn-spin 0.6s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .btn-spinner { animation-duration: 1.5s; }
}

/* ---------- Hero (mirrors the green monogram card) ---------- */
.hero {
    background: var(--olive);
    color: #fff;
    text-align: center;
    padding: clamp(2.5rem, 7vw, 5rem) 1.5rem clamp(3rem, 8vw, 5.5rem);
    position: relative;
    overflow: hidden;
}
.hero-monogram {
    font-family: var(--serif);
    font-weight: 500;
    color: #fffdf8;
    line-height: 0.8;
    font-size: clamp(8rem, 26vw, 17rem);
    display: block;
}
.hero-monogram.bottom { margin-top: -0.1em; }

.hero-center { padding: clamp(1.2rem, 4vw, 2rem) 0; }
.hero-center .eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 0.6rem; }
.hero-couple {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 6vw, 3rem);
    letter-spacing: 0.18em;
    color: var(--gold-on-olive);
    text-transform: uppercase;
    margin: 0 0 1.2rem;
    font-weight: 500;
}
.date-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    color: #fff;
}

/* Scroll-down hint at the bottom of the hero */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: clamp(1rem, 3vw, 1.8rem);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: #fffdf8;
    text-decoration: none;
    animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--gold-on-olive); }
.scroll-cue-text {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.68rem;
}
.scroll-cue-arrow { font-size: 1.5rem; line-height: 0.6; }

@keyframes scroll-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* In-flow variant: a hint between two stacked sections (e.g. invitation -> FAQ) */
.scroll-cue-inline {
    position: static;
    transform: none;
    width: max-content;
    margin: 2.6rem auto 0;
    color: var(--gold-deep);
    animation: scroll-bounce-inline 2s ease-in-out infinite;
}
.scroll-cue-inline:hover { color: var(--olive-deep); }

@keyframes scroll-bounce-inline {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue { animation: none; }
    html { scroll-behavior: auto; }
}

/* Confirmation banner shown on the home page after submitting an RSVP */
.rsvp-confirmation {
    max-width: 560px;
    margin: 0 auto 3rem;
    text-align: center;
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
}
.rsvp-confirmation-icon { font-size: 2.4rem; color: var(--gold); line-height: 1; }
.rsvp-confirmation h2 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    color: var(--olive-deep);
    letter-spacing: 0.04em;
    margin: 0.3rem 0 0.4rem;
}
.rsvp-confirmation p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- Invitation block (mirrors the ivory card) ---------- */
.invitation {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 6vw, 3rem);
}
.invitation .wij-gaan {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    letter-spacing: 0.25em;
    color: var(--gold);
    margin: 0;
}
.invitation .trouwen {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 11vw, 5.5rem);
    letter-spacing: 0.22em;
    color: var(--gold);
    margin: 0.1em 0 0.6em;
    font-weight: 400;
}
.invitation p { color: var(--ink); font-size: 1.1rem; margin: 0.4rem 0; }
.invitation .block { margin: 1.6rem 0; }
.invitation .label { display: block; margin-bottom: 0.4rem; }
.invitation .muted { color: var(--muted); }
.invitation .cadeau-icon { font-size: 1.8rem; color: var(--gold); margin-top: 0.3rem; }

/* ---------- FAQ ---------- */
.faq {
    background: var(--card);
    border-top: 1px solid var(--line);
}
.faq-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.faq-head .label { display: block; margin-bottom: 0.6rem; }
.faq-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--olive-deep); letter-spacing: 0.05em; }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 2.2rem 1.1rem 0;
    position: relative;
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--ink);
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 56ch;
}
.faq-footnote {
    max-width: 560px;
    margin: 2.5rem auto 0;
    text-align: center;
    color: var(--muted);
    font-size: 1rem;
}

/* ---------- Page heads ---------- */
.page-head { text-align: center; max-width: 700px; margin: 0 auto; }
.page-head .label { display: block; margin-bottom: 0.8rem; }
.page-head h1 { font-size: clamp(2.5rem, 7vw, 4rem); letter-spacing: 0.06em; }
.page-head p { color: var(--muted); font-size: 1.1rem; }

section { padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 6vw, 4rem); }

/* ---------- Timeline / programma ---------- */
.timeline { max-width: 640px; margin: 2.5rem auto 0; }
.timeline-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.timeline-item:last-child { border-bottom: none; }
.timeline .time {
    font-family: var(--serif);
    font-size: 1.7rem;
    color: var(--gold);
    text-align: right;
}
.timeline .event h3 { font-size: 1.5rem; margin-bottom: 0.15rem; color: var(--olive-deep); }
.timeline .event p { color: var(--muted); margin: 0; }

/* ---------- Info grid ---------- */
.info-grid {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.info-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.info-block .ic { font-size: 1.8rem; }
.info-block h3 { font-size: 1.4rem; color: var(--gold-deep); letter-spacing: 0.04em; }
.info-block p { color: var(--muted); margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; background: var(--olive); color: #fff; }
.cta-banner .label { color: var(--gold-on-olive); display: block; margin-bottom: 0.6rem; }
.cta-banner h2 { font-size: clamp(2rem, 5vw, 3rem); color: #fff; letter-spacing: 0.06em; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.8rem; }

/* ---------- RSVP form ---------- */
.form-wrap { max-width: 560px; margin: 0 auto; }
.rsvp-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(1.5rem, 5vw, 2.75rem);
    box-shadow: var(--shadow);
    text-align: left;
}
.form-back { text-align: center; margin-top: 1.5rem; }

.field { margin-bottom: 1.4rem; }
.field label {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(155, 162, 78, 0.18);
}
.field textarea { resize: vertical; }

.choices { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choices label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}
.choices input[type="radio"] { accent-color: var(--olive); width: auto; }

ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: #b54b3a; font-size: 0.85rem; }

/* ---------- Thank you ---------- */
.thanks { max-width: 600px; margin: 0 auto; text-align: center; }
.thanks-icon { font-size: 3.4rem; color: var(--gold); }
.thanks h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); letter-spacing: 0.05em; }
.thanks p { color: var(--muted); font-size: 1.15rem; }
.thanks-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 2.6rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--olive);
    color: #fff;
}
.site-footer .footer-monogram {
    font-family: var(--serif);
    font-size: 1.6rem;
    letter-spacing: 0.25em;
    color: var(--gold-on-olive);
    margin-bottom: 0.5rem;
}
.site-footer p { margin: 0.2rem 0; letter-spacing: 0.08em; font-size: 0.92rem; }
.site-footer .muted { color: rgba(255,255,255,0.8); }
