/* ================================================
   Wedding Minimal — Standard Wedding Theme
   Palette: warm-white · ink · toffee · paper
   Fonts:   Cormorant Garamond (serif) + Outfit (sans)
   Style:   Clean · Airy · Typographic · Modern
   ================================================ */

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

:root {
    --white:        #ffffff;
    --off-white:    #fafaf8;
    --paper:        #f4f1ed;
    --ink:          #1a1715;
    --ink-muted:    #635f5b;
    --ink-faint:    #9c9690;
    --accent:       #9a7452;
    --accent-color: var(--accent);
    --accent-light: #c4a07a;
    --accent-pale:  #f0e8de;
    --border:       #e5e1db;
    --border-light: #f0ede9;
    --btn-radius:   2px;

    --ff-serif: 'Cormorant Garamond', Georgia, serif;
    --ff-sans:  'Outfit', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* ── Containers ─────────────────────────────── */
.wm-container     { max-width: 1040px; margin: 0 auto; padding: 0; }
.wm-container--sm { max-width: 560px; margin: 0 auto; padding: 0; }
.wm-container--md { max-width: 760px; margin: 0 auto; padding: 0; }

/*
 * Alternating section backgrounds, computed from what actually renders rather
 * than hardcoded per section — any of these can be hidden by plan tier, the
 * section-visibility toggle, or missing data, and the rhythm still holds
 * because :nth-child only counts DOM nodes that actually exist.
 * To pin one specific section to a fixed color regardless of position, target
 * its own class with !important (e.g. `.wm-rsvp { background: var(--paper) !important; }`).
 */
.wm-alt-sections > * {
    background: var(--off-white);
}
.wm-alt-sections > *:nth-child(even) {
    background: var(--white);
}

/* ── Section ─────────────────────────────────── */
.wm-section-title {
    font-family: var(--ff-serif);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: .02em;
    color: var(--ink);
    text-align: center;
    margin-bottom: .25rem;
}

.wm-eyebrow {
    font-size: .65rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin-bottom: .75rem;
    font-weight: 500;
}

/* ── Rule divider ────────────────────────────── */
.wm-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 200px;
    color: var(--accent-light);
}
.wm-rule::before, .wm-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--accent-light);
    opacity: .5;
}

/* ── Topbar ──────────────────────────────────── */
.wm-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}
@media (min-width: 601px) {
    .wm-topbar.scrolled {
        background: color-mix(in srgb, var(--white) 92%, transparent);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}
.wm-topbar__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.wm-topbar__nav a {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--accent-light);
    transition: color .2s;
}
.wm-topbar__nav a:hover { color: var(--ink); }

/* ── Hero ────────────────────────────────────── */
.wm-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.wm-hero--has-image {
    min-height: 100vh;
    background: var(--ink);
}
.wm-hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
}
.wm-hero__eyebrow {
    font-size: .65rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 2rem;
}
.wm-hero--has-image .wm-hero__eyebrow { color: var(--accent-light); }
.wm-hero__line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--accent-light);
    margin: 0 auto 2rem;
    opacity: .6;
}
.wm-hero__names {
    font-family: var(--ff-serif);
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: .02em;
    color: var(--ink);
    margin-bottom: .5rem;
}
.wm-hero--has-image .wm-hero__names { color: #fff; }
.wm-hero__amp {
    font-style: italic;
    font-weight: 300;
    color: var(--accent-light);
    font-size: .85em;
    display: block;
    margin: .2em 0;
}
.wm-hero--has-image .wm-hero__amp { color: rgba(255,255,255,.7); }
.wm-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-top: 2.5rem;
    color: var(--ink-muted);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.wm-hero--has-image .wm-hero__meta { color: rgba(255,255,255,.75); }
.wm-hero__meta-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    flex-shrink: 0;
}
.wm-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    animation: wm-bounce 2.5s ease-in-out infinite;
}
.wm-hero--has-image .wm-hero__scroll { color: rgba(255,255,255,.5); }
.wm-hero__scroll svg { width: 16px; height: 16px; }
@keyframes wm-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Countdown ───────────────────────────────── */
/* ── Meet the Couple ────────────────────────── */
.wm-couple {
    padding: 5rem 1.5rem;
    text-align: center;
}

.wm-couple__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.wm-couple__person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}

.wm-couple__photo {
    width: clamp(9rem, 15vw, 13.5rem);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--border);
}

.wm-couple__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-couple__placeholder {
    width: 100%;
    height: 100%;
    background: var(--paper);
}

.wm-couple__role {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: .9rem;
}

.wm-couple__name {
    font-family: var(--ff-serif);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--ink);
}

.wm-couple__amp {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--accent-light);
    align-self: center;
    margin: 0 .25rem;
    padding-bottom: 2.5rem;
}

@media (max-width: 560px) {
    .wm-couple__grid { flex-direction: column; gap: 2.5rem; }
    .wm-couple__amp { display: none; }
}

.wm-countdown {
    padding: 5rem 1.5rem;
    background: var(--paper);
    text-align: center;
}

.wm-audio {
    padding: 5rem 1.5rem;
}
.wm-countdown__timer {
    display: flex;
    justify-content: center;
    gap: clamp(.75rem, 3vw, 3rem);
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.wm-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}
.wm-countdown__number {
    font-family: var(--ff-serif);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--ink);
    letter-spacing: .04em;
}
.wm-countdown__label {
    font-size: .6rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: .5rem;
    font-weight: 500;
}

/* nowrap + scroll fallback guarantees all 4 units stay on one row down to
   360px, instead of flex-wrap letting them fall to a 2x2 block once their
   min-width no longer fits. */
@media (max-width: 500px) {
    .wm-countdown__timer {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .wm-countdown__timer::-webkit-scrollbar { display: none; }
    .wm-countdown__unit { flex-shrink: 0; }
}

/* ── Description / Poem ──────────────────────── */
.wm-poem {
    padding: 5rem 1.5rem;
    text-align: center;
}
.wm-poem__text {
    font-family: var(--ff-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.75;
    color: var(--ink-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Our Story / Gallery / Guest Wall ─────────── */
.wm-story {
    padding: 5rem 1.5rem;
    text-align: center;
}
.wm-gallery {
    padding: 5rem 1.5rem;
    text-align: center;
}
.wm-guest-wall {
    padding: 5rem 1.5rem;
    text-align: center;
}
.wm-gallery-upload {
    padding: 5rem 1.5rem;
    text-align: center;
}

/* No card here — same borderless layout as RSVP in this theme, same width. */
.wm-gallery-upload .gu-form {
    max-width: 620px;
    padding: 0 1.5rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ── Program ─────────────────────────────────── */
.wm-program {
    padding: 5rem 1.5rem;
}
.wm-timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 520px;
    margin: 2.5rem auto 0;
}
.wm-timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: var(--border);
}
.wm-timeline__item {
    display: grid;
    grid-template-columns: 56px auto;
    gap: .75rem 1rem;
    align-items: start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.wm-timeline__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.wm-timeline__item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: .45rem;
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: var(--white);
    transform: translateX(-3px);
}
.wm-timeline__time {
    font-size: .7rem;
    letter-spacing: .1em;
    color: var(--accent);
    font-weight: 600;
    padding-top: .15rem;
    text-align: right;
}
.wm-timeline__label {
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
}
.wm-timeline__location {
    font-size: .8rem;
    color: var(--ink-faint);
    margin-top: .2rem;
    grid-column: 2;
}

/* ── Dress Code / Good to Know ───────────────── */
.wm-dress-code {
    padding: 5rem 1.5rem;
    text-align: center;
}
.wm-good-to-know {
    padding: 5rem 1.5rem;
    text-align: center;
}

/* ── Location ────────────────────────────────── */
.wm-location {
    padding: 5rem 1.5rem 0;
    text-align: center;
}
.wm-location__address {
    font-size: .88rem;
    color: var(--ink-muted);
    margin: .75rem 0 2rem;
    letter-spacing: .04em;
}
.wm-map {
    width: 100%;
    height: 380px;
    overflow: hidden;
}
.wm-map iframe {
    width: 100%; height: 100%;
    border: 0; display: block;
    filter: grayscale(25%);
}
.wm-location__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 2rem;
    margin: 1.5rem auto;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-muted);
    transition: all .2s;
}
.wm-location__btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.wm-map__cta { text-align: center; padding: 1.5rem 1.5rem 4rem; }
.wm-timeline__location a { margin-left: .4em; opacity: .7; font-size: .85em; color: inherit; }

/* ── Closing ─────────────────────────────────── */
.wm-closing {
    padding: 4rem 1.5rem;
    text-align: center;
}
.wm-closing p {
    font-family: var(--ff-serif);
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    color: var(--ink-muted);
}

/* ── RSVP form ───────────────────────────────── */
/* Pinned to match the countdown bookend rather than joining the alternation. */
.wm-rsvp {
    padding: 5rem 1.5rem;
    background: var(--paper) !important;
}
.wm-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.wm-form label {
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-faint);
    display: block;
    margin-bottom: .35rem;
}
.wm-form input,
.wm-form select,
.wm-form textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: var(--ff-sans);
    font-size: .9rem;
    color: var(--ink);
    border-radius: 2px;
    transition: border-color .2s;
    appearance: none;
}
.wm-form input:focus,
.wm-form select:focus,
.wm-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.wm-btn {
    display: inline-block;
    padding: .85rem 2.5rem;
    background: var(--ink);
    color: var(--white);
    font-family: var(--ff-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-align: center;
}
.wm-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
}
.wm-btn:active { transform: translateY(0); }

.wm-summary-card {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    font-size: .9rem;
    color: var(--ink-muted);
}
.wm-badge {
    display: inline-block;
    padding: .3rem .75rem;
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
}
.wm-badge--going   { background: #d1fae5; color: #065f46; }
.wm-badge--declined { background: #fee2e2; color: #991b1b; }
.wm-badge--maybe   { background: #fef3c7; color: #92400e; }

/* ── Photo Album ─────────────────────────────── */
.wm-album {
    padding: 5rem 1.5rem;
    text-align: center;
}
.wm-album__text { color: var(--ink-faint); font-size: .88rem; margin: 1rem 0 2rem; }

/* ── Footer ──────────────────────────────────── */
.wm-footer {
    padding: 3rem 1.5rem;
    background: var(--ink);
    color: rgba(255,255,255,.5);
    text-align: center;
    font-size: .75rem;
    letter-spacing: .1em;
}
.wm-footer a { color: rgba(255,255,255,.5); }
.wm-footer a:hover { color: rgba(255,255,255,.85); }
.wm-footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    max-width: 12rem;
    margin: 0 auto 1.1rem;
    color: rgba(255,255,255,.35);
}
.wm-footer__ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, currentColor);
}
.wm-footer__ornament-line:last-child {
    background: linear-gradient(to left, transparent, currentColor);
}
.wm-footer__ornament-mark {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
}
.wm-footer__signoff {
    margin: .75rem auto 0;
    max-width: 20rem;
    letter-spacing: .04em;
    text-transform: none;
    color: rgba(255,255,255,.62);
}
/* Not .wm-btn — its background is --ink, identical to the footer; an outlined
   pill (keeping this theme's sharp 2px corner) reads on the dark ground. */
.wm-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: .7rem 1.4rem;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 2px;
    color: rgba(255,255,255,.8) !important;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: border-color .2s, color .2s, background .2s;
}
.wm-footer__cal:hover {
    border-color: rgba(255,255,255,.6);
    color: #fff !important;
    background: rgba(255,255,255,.06);
}
.wm-footer__cal-icon {
    width: .95rem;
    height: .95rem;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 640px) {
    .wm-timeline { padding-left: 1.5rem; }
    .wm-timeline__item { grid-template-columns: 48px auto; }
    .wm-timeline__item::before { left: -1.5rem; }
}

.wm-topbar__toggle { display: none; }

/* Demo-only Basic/Standard switch + close + cart badge — shared look defined
   globally in layouts/theme.blade.php, just positioned here at opposite bottom
   corners, at every screen width. */
.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;
}

/* Mobile: consolidated to a single 600px breakpoint (previously this theme had
   an odd 640px shrink + a separate 400px full-hide — replaced with the
   standard hamburger + dropdown pattern used everywhere else). Always the
   same dark-translucent treatment — .wm-topbar is white/opaque always, so a
   light-colored hamburger would never have contrast against it. .wm-topbar is
   space-between on desktop — pin the toggle to the left instead on mobile,
   matching every other theme. */
@media (max-width: 600px) {
    .wm-topbar { justify-content: flex-start; }
    .wm-topbar__toggle { order: -1; }

    .wm-topbar__toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border: 1.5px solid rgba(255,255,255,.25);
        border-radius: 50%;
        background: rgba(26,23,21,.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
        transition: background .2s;
    }
    .wm-topbar__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .wm-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .wm-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .wm-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .wm-topbar__nav {
        display: flex;
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: rgba(255,255,255,.98);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(26,23,21,.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .wm-topbar__nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .wm-topbar__nav a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
    }
    .wm-topbar__nav a:hover { background: var(--border-light); color: var(--ink); }

}

/* Standardized horizontal gutter across every content section on mobile
   (padding-x: 1rem), matching wedding-romantic-bloom's convention — several
   sections here otherwise use a wider desktop-only gutter (1.25rem/1.5rem)
   that just eats into already-limited mobile width. Appended at the very end
   of the file (not folded into an earlier @media block) so equal-specificity
   source order guarantees this wins over each section's own base padding
   rule, which is declared later in the file than this file's other,
   topbar-only 600px media query. */
@media (max-width: 600px) {
.wm-hero,
.wm-countdown,
.wm-poem,
.wm-story,
.wm-gallery,
.wm-guest-wall,
.wm-gallery-upload,
.wm-program,
.wm-dress-code,
.wm-good-to-know,
.wm-location,
.wm-closing,
.wm-rsvp,
.wm-album,
.wm-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
