/* ================================================
   Wedding Family ("Nas troje") — Standard Wedding Theme
   A wedding + a first birthday on one day.
   Palette: clay · sage · warm cream · soft ink
   Fonts:   Fraunces (display / names) + Figtree (body)
   Style:   Full-bleed family hero, "one day two reasons" band,
            clean legible cards — legibility over ornamentation.
   ================================================ */

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

:root {
    --clay:        #c98a63;
    --clay-deep:   #b06f4a;
    --sage:        #7f9b86;
    --sage-deep:   #647d6b;
    --ink:         #3c3732;
    --text:        #5c554d;
    --muted:       #8c8177;
    --cream:       #f7f2ea;
    --cream-alt:   #fbf7f0;
    --white:       #ffffff;
    --border:      rgba(60, 55, 50, .12);
    --accent-color: #c98a63;
    --radius:      16px;
    --btn-radius:  50px;

    --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ff-body:    'Figtree', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --hair-line: linear-gradient(90deg, transparent, var(--clay) 22%, var(--sage) 78%, transparent);

    --card-shadow: 0 1px 2px rgba(60, 55, 50, .05), 0 10px 26px rgba(60, 55, 50, .08), 0 40px 70px rgba(60, 55, 50, .12);
    --card-shadow-sm: 0 1px 2px rgba(60, 55, 50, .05), 0 12px 28px rgba(60, 55, 50, .09);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    color: var(--text);
    background:
        radial-gradient(circle at 1px 1px, rgba(60, 55, 50, .03) 1px, transparent 0) 0 0 / 24px 24px,
        var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--clay-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clay); }

/* ── Containers ─────────────────────────────── */
.wf-container     { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.wf-container--sm { max-width: 680px; }

/* Alternating section backgrounds, computed from what actually renders. */
.wf-alt-sections > * { background: var(--white); }
.wf-alt-sections > *:nth-child(even) { background: var(--cream-alt); }

/* Shared section components only get a class hook from this theme — give them a
   consistent vertical rhythm. Scoped with .wf-alt-sections so it beats a
   same-specificity rule the component pushes after this stylesheet loads. */
.wf-alt-sections .wf-couple,
.wf-alt-sections .wf-countdown,
.wf-alt-sections .wf-audio,
.wf-alt-sections .wf-story,
.wf-alt-sections .wf-wedding-party,
.wf-alt-sections .wf-gallery,
.wf-alt-sections .wf-program,
.wf-alt-sections .wf-dress-code,
.wf-alt-sections .wf-good-to-know,
.wf-alt-sections .wf-location,
.wf-alt-sections .wf-accommodation,
.wf-alt-sections .wf-gallery-upload,
.wf-alt-sections .wf-guest-wall,
.wf-alt-sections .wf-album,
.wf-alt-sections .wf-closing,
.wf-alt-sections .wf-rsvp {
    padding: 4.75rem 1rem;
}

/* ── Section helpers ─────────────────────────── */
.wf-section-title {
    position: relative;
    font-family: var(--ff-display);
    font-optical-sizing: auto;
    font-size: clamp(1.8rem, 4.4vw, 2.6rem);
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    line-height: 1.2;
    padding-bottom: 1.35rem;
    margin-bottom: 1.25rem;
}

.wf-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--hair-line);
}

.wf-section-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 7px;
    height: 7px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--clay);
    z-index: 1;
}

.wf-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--clay-deep);
    text-align: center;
    margin-bottom: .7rem;
}

/* ── Floating topbar ─────────────────────────── */
.wf-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}

.wf-topbar__brand {
    font-family: var(--ff-display);
    font-size: .95rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    transition: color .3s ease, text-shadow .3s ease;
}

@media (min-width: 601px) {
    .wf-topbar.scrolled {
        background: color-mix(in srgb, var(--cream) 92%, transparent);
        backdrop-filter: blur(10px);
    }
    .wf-topbar.scrolled .wf-topbar__brand {
        color: var(--ink);
        text-shadow: none;
    }
}

.wf-topbar__links {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}

.wf-topbar__links a {
    position: relative;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    padding-bottom: .2rem;
}

.wf-topbar.scrolled .wf-topbar__links a {
    color: var(--ink);
    text-shadow: none;
}

.wf-topbar__links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}
.wf-topbar__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.wf-topbar__toggle { display: none; }

@media (max-width: 600px) {
    .wf-topbar__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 2.4rem;
        height: 2.4rem;
        border: 0;
        border-radius: 999px;
        background: rgba(24, 22, 20, .55);
        backdrop-filter: blur(6px);
        cursor: pointer;
        margin-left: auto;
    }
    .wf-topbar__toggle span {
        display: block;
        width: 17px;
        height: 2px;
        margin: 0 auto;
        background: #fff;
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
    }
    .wf-topbar__toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .wf-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .wf-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .wf-topbar__links {
        position: absolute;
        top: calc(100% + .5rem);
        right: 1.1rem;
        left: 1.1rem;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-radius: 14px;
        box-shadow: var(--card-shadow-sm);
        padding: .35rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .wf-topbar__links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .wf-topbar__links a {
        color: var(--ink);
        text-shadow: none;
        padding: .7rem .85rem;
        border-radius: 10px;
    }
    .wf-topbar__links a:hover { background: var(--cream); }
    .wf-topbar__links a::after { display: none; }
    .wf-topbar.scrolled .wf-topbar__brand { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
}

/* Demo-only Basic/Standard switch + close + cart — shared look from
   layouts/theme.blade.php, just positioned here. */
.dpb-switch, .dpb-fab { position: fixed; bottom: 1rem; z-index: 9999; }
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}

/* ── Hero (pattern B: full-bleed photo, text on scrim) ── */
.wf-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 7rem 1.25rem 4.5rem;
}

.wf-hero__flat {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201, 138, 99, .28), transparent),
        linear-gradient(180deg, var(--sage-deep), var(--clay-deep));
}

.wf-hero .hero-swiper { z-index: 0; }
.wf-hero__content {
    position: relative;
    z-index: 2;
    max-width: 40rem;
    color: #fff;
    animation: wf-rise .9s ease both;
}

@keyframes wf-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wf-hero__eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
    margin-bottom: 1rem;
}

.wf-hero__names {
    font-family: var(--ff-display);
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: clamp(2.4rem, 8vw, 4.25rem);
    line-height: 1.08;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

.wf-hero__amp {
    display: inline-block;
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, .85);
    margin: 0 .12em;
}

.wf-hero__child {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.15rem, 3.4vw, 1.6rem);
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
    margin-top: .5rem;
}

.wf-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin: 1.4rem auto;
    max-width: 200px;
}
.wf-rule span {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .55);
}
.wf-rule i {
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    background: rgba(255, 255, 255, .9);
}

.wf-hero__date {
    display: inline-block;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50px;
    padding: .5rem 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wf-hero__venue {
    margin-top: .75rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* ── One day, two reasons band ──────────────── */
.wf-tworeasons {
    background: var(--cream);
    padding: 4.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.wf-tworeasons__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.wf-tworeasons__card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    box-shadow: var(--card-shadow-sm);
}

.wf-tworeasons__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color) 16%, var(--white));
    color: var(--clay-deep);
    margin-bottom: 1rem;
}
.wf-tworeasons__icon svg { width: 1.5rem; height: 1.5rem; }

.wf-tworeasons__title {
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: .5rem;
}

.wf-tworeasons__line {
    font-weight: 600;
    color: var(--text);
}

.wf-tworeasons__sub {
    font-size: .88rem;
    color: var(--muted);
    margin-top: .25rem;
}

/* ── Note / message ─────────────────────────── */
.wf-note {
    background: var(--white);
    padding: 4.5rem 1rem;
}
.wf-note__card {
    position: relative;
    background: var(--cream);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    text-align: center;
    box-shadow: var(--card-shadow-sm);
}
.wf-note__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    background: var(--hair-line);
}
.wf-note__text {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.7;
}
.wf-note__sig {
    margin-top: 1.1rem;
    font-weight: 600;
    color: var(--clay-deep);
}

/* ── Meet the family ────────────────────────── */
.wf-couple { text-align: center; }
.wf-couple__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
}
.wf-couple__person { display: flex; flex-direction: column; align-items: center; }
.wf-couple__photo {
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 7px var(--white), 0 0 0 8px rgba(201, 138, 99, .5), 0 18px 40px rgba(60, 55, 50, .18);
}
.wf-couple__img { width: 100%; height: 100%; object-fit: cover; }
.wf-couple__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    background: var(--sage);
}
.wf-couple__name {
    margin-top: 1rem;
    font-family: var(--ff-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ink);
}
.wf-couple__amp {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--sage-deep);
}

/* ── Countdown ─────────────────────────────── */
.wf-countdown { text-align: center; }
.wf-countdown__timer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}
.wf-countdown__unit {
    min-width: 5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.1rem .75rem;
    box-shadow: var(--card-shadow-sm);
}
.wf-countdown__number {
    display: block;
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--clay-deep);
    font-variant-numeric: lining-nums tabular-nums;
}
.wf-countdown__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Day plan timeline ─────────────────────── */
.wf-program { text-align: center; }
.wf-timeline {
    margin: 2rem auto 0;
    max-width: 23rem;
    text-align: left;
    border-left: 2px solid color-mix(in srgb, var(--accent-color) 45%, transparent);
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.wf-tl-item { position: relative; display: flex; gap: 1rem; }
.wf-tl-item::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 6px);
    top: .4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--clay);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 20%, transparent);
}
.wf-tl-time {
    flex-shrink: 0;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--clay-deep);
    font-variant-numeric: lining-nums tabular-nums;
    min-width: 3.4rem;
}
.wf-tl-label { font-weight: 600; color: var(--ink); }
.wf-tl-loc { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.wf-tl-loc a { margin-left: .35rem; font-weight: 600; }

/* ── Map ───────────────────────────────────── */
.wf-location { text-align: center; }
.wf-location__address { color: var(--text); margin-bottom: 1.25rem; }
.wf-map {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow-sm);
    margin-bottom: 1.5rem;
}
.wf-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── Album / closing ───────────────────────── */
.wf-album { text-align: center; }
.wf-album__sub { color: var(--muted); margin-bottom: 1.5rem; }
.wf-closing { text-align: center; }
.wf-closing__text {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ink);
}

/* ── Buttons ───────────────────────────────── */
.wf-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--clay), var(--clay-deep));
    color: #fff !important;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .95rem 2.4rem;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(176, 111, 74, .32);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.wf-btn:hover {
    background: linear-gradient(135deg, var(--sage), var(--sage-deep));
    box-shadow: 0 12px 28px rgba(100, 125, 107, .38);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Shape divider ─────────────────────────── */
.wf-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}
.wf-shape-top { top: -1px; }
.wf-shape-bottom { bottom: -1px; }
.wf-shape[data-negative="false"].wf-shape-bottom,
.wf-shape[data-negative="true"].wf-shape-top { transform: rotate(180deg); }
.wf-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 44px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ── Footer ────────────────────────────────── */
.wf-footer {
    background: var(--sage-deep);
    color: rgba(255, 255, 255, .9);
    text-align: center;
    padding: 4rem 1.25rem 3.25rem;
}
.wf-footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 1.5rem;
}
.wf-footer__ornament-line { width: 46px; height: 1px; background: currentColor; }
.wf-footer__ornament-mark { width: 12px; height: 12px; }
.wf-footer__names {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
}
.wf-footer__child {
    font-style: italic;
    font-size: .85em;
    color: rgba(255, 255, 255, .8);
}
.wf-footer__date {
    margin-top: .4rem;
    font-size: .9rem;
    letter-spacing: .05em;
    font-variant-numeric: lining-nums;
}
.wf-footer__signoff {
    margin-top: 1rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
}
.wf-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.75rem;
    background: rgba(255, 255, 255, .14) !important;
    box-shadow: none;
}
.wf-footer__cal:hover { background: rgba(255, 255, 255, .24) !important; transform: translateY(-2px); }
.wf-footer__cal-icon { width: 1.05rem; height: 1.05rem; }

/* ── Story: "Kako smo postali troje" ──────────
   Bespoke component (components/wedding-family-story-timeline.blade.php):
   alternating full photo / text rows joined by a soft centre connector. */
.wf-story { text-align: center; }
.wf-wedding-party { text-align: center; }
.wf-story__intro {
    max-width: 34rem;
    margin: .5rem auto 0;
    color: var(--text);
}
.wf-story__list {
    position: relative;
    margin-top: 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}
/* Dotted spine down the middle on wide screens. */
.wf-story__list::before {
    content: '';
    position: absolute;
    top: .5rem;
    bottom: .5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        color-mix(in srgb, var(--accent-color) 55%, transparent) 0 6px,
        transparent 6px 12px
    );
}
.wf-story__row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    text-align: left;
}
.wf-story__row--reverse { direction: rtl; }
.wf-story__row--reverse > * { direction: ltr; }

/* Node where each row meets the spine. */
.wf-story__row::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--clay);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-color) 18%, var(--white));
    z-index: 1;
}

.wf-story__media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow-sm);
}
.wf-story__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.wf-story__caption {
    position: absolute;
    left: .6rem;
    right: .6rem;
    bottom: .6rem;
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: rgba(30, 24, 20, .55);
    border-radius: 6px;
    padding: .25rem .4rem;
}
.wf-story__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    font-family: var(--ff-display);
    font-size: 2.5rem;
    color: #fff;
    background: linear-gradient(150deg, var(--sage), var(--clay));
}

.wf-story__period {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--clay-deep);
}
.wf-story__title {
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--ink);
    margin: .35rem 0 .5rem;
}
.wf-story__desc { color: var(--text); font-size: .95rem; }

@media (max-width: 700px) {
    .wf-story__list::before { left: 1.15rem; }
    .wf-story__row,
    .wf-story__row--reverse {
        direction: ltr;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-left: 2.75rem;
        text-align: left;
    }
    .wf-story__row::before { left: 1.15rem; top: 1.4rem; }
}

/* ── RSVP: "Potvrda dolaska" ──────────────────
   The form itself is the shared <x-rsvp-form>; this frames it as a warm
   keepsake card and tones its fields to the palette. */
.wf-rsvp { text-align: center; }
.wf-rsvp .wf-form {
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2.25rem 2rem;
    margin-top: 1.75rem;
    box-shadow: var(--card-shadow);
    position: relative;
}
.wf-rsvp .wf-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 22px 22px 0 0;
    background: var(--hair-line);
}
.wf-rsvp .form__group label {
    font-weight: 600;
    color: var(--ink);
}
.wf-rsvp .form__group input,
.wf-rsvp .form__group select,
.wf-rsvp .form__group textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--cream-alt);
}
.wf-rsvp .form__group input:focus,
.wf-rsvp .form__group select:focus,
.wf-rsvp .form__group textarea:focus {
    border-color: var(--clay);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 18%, transparent);
    background: var(--white);
}
.wf-rsvp .wf-summary-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--cream-alt);
}
.wf-rsvp .wf-badge {
    border-radius: 50px;
    background: color-mix(in srgb, var(--accent-color) 16%, var(--white));
    color: var(--clay-deep);
    font-weight: 700;
}

/* ── Guest gallery: "Podelite trenutak" ─────── */
.wf-gallery-upload { text-align: center; }
.wf-gallery-upload .gu-desc {
    text-align: center;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}
.wf-gallery-upload .gu-view-all { margin-left: auto; margin-right: auto; width: fit-content; }

/* ================================================
   ENVELOPE INTRO
   Warm cream card with a thin clay frame + wax seal, opening to the page.
   Hidden entirely with JS off (see .wf-has-envelope) so the invitation is
   always reachable.
   ================================================ */
body.wf-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.wf-envelope {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6vh 6vw;
    background: linear-gradient(165deg, #faf4ea 0%, #f1e6d6 55%, #e8d8c3 100%);
    cursor: pointer;
    transition: opacity .8s ease .3s, visibility .8s ease .3s;
}
.wf-has-envelope .wf-envelope { display: flex; }
.wf-envelope.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.wf-envelope::before {
    content: '';
    position: absolute;
    inset: 1.1rem;
    border: 1px solid color-mix(in srgb, var(--clay) 45%, transparent);
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--clay) 14%, transparent);
    pointer-events: none;
}

.wf-envelope__stage {
    position: relative;
    width: min(430px, 86vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    animation: wf-rise .8s ease both;
}

.wf-envelope__card {
    position: relative;
    width: 100%;
    aspect-ratio: 100 / 70;
    background: linear-gradient(160deg, #fffdf7 0%, #f7efe1 100%);
    border: 1px solid color-mix(in srgb, var(--clay) 32%, transparent);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.75rem 1.5rem;
    transition: transform 1s cubic-bezier(.3, 0, .2, 1), opacity .8s ease;
}
.wf-envelope__card::before {
    content: '';
    position: absolute;
    inset: .5rem;
    border: 1px solid color-mix(in srgb, var(--clay) 26%, transparent);
    pointer-events: none;
}
.wf-envelope.is-open .wf-envelope__card {
    transform: translateY(-8px) scale(1.03);
    opacity: 0;
}

.wf-envelope__kicker {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--clay-deep);
    margin-bottom: .5rem;
}
.wf-envelope__names {
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.08;
    color: var(--ink);
}
.wf-envelope__child {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--sage-deep);
    margin-top: .2rem;
}
.wf-envelope__date {
    margin-top: .55rem;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.wf-envelope__seal {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent-color) 55%, white), var(--clay) 45%, var(--clay-deep) 100%);
    box-shadow: 0 6px 16px rgba(90, 55, 30, .32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fdf3e6;
    font-family: var(--ff-display);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .7s ease, opacity .5s ease;
}
.wf-envelope__seal::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(253, 243, 230, .55);
    border-radius: 50%;
}
.wf-envelope.is-open .wf-envelope__seal {
    transform: translateX(-50%) scale(.6);
    opacity: 0;
}

.wf-envelope__prompt {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--clay-deep);
    animation: wf-pulse 2.6s ease-in-out infinite;
}

@keyframes wf-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
    .wf-tworeasons__grid { grid-template-columns: 1fr; }
    .wf-hero { min-height: 88vh; }
    .wf-couple__photo { width: 8rem; height: 8rem; }
    .wf-alt-sections .wf-couple,
    .wf-alt-sections .wf-countdown,
    .wf-alt-sections .wf-audio,
    .wf-alt-sections .wf-story,
    .wf-alt-sections .wf-gallery,
    .wf-alt-sections .wf-program,
    .wf-alt-sections .wf-dress-code,
    .wf-alt-sections .wf-good-to-know,
    .wf-alt-sections .wf-location,
    .wf-alt-sections .wf-accommodation,
    .wf-alt-sections .wf-gallery-upload,
    .wf-alt-sections .wf-guest-wall,
    .wf-alt-sections .wf-album,
    .wf-alt-sections .wf-closing,
    .wf-alt-sections .wf-rsvp {
        padding: 3.5rem 1rem;
    }
}
