/* ================================================
   Baptism Minimal — Standard Baptism Theme
   Palette: linen · charcoal ink · terracotta
   Fonts:   Spectral (serif) + Work Sans (sans)
   Style:   Clean · Airy · Typographic · Understated
   ================================================ */

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

:root {
    --white:        #ffffff;
    --linen:        #faf7f1;
    --paper:        #f0ebe0;
    --ink:          #2b2825;
    --ink-muted:    #6b655d;
    --ink-faint:    #a39b8f;
    --accent:       #c1633d;
    --accent-color: var(--accent);
    --accent-light: #d98f6c;
    --accent-pale:  #f1dccf;
    --border:       #e4dccb;
    --border-light: #efe9dc;
    --btn-radius:   2px;

    --ff-serif: 'Spectral', Georgia, serif;
    --ff-sans:  'Work Sans', 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 ─────────────────────────────── */
.bp-container     { max-width: 1040px; margin: 0 auto; padding: 0; }
.bp-container--sm { max-width: 560px; margin: 0 auto; padding: 0; }
.bp-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.
 */
.bp-alt-sections > * {
    background: var(--linen);
}
.bp-alt-sections > *:nth-child(even) {
    background: var(--white);
}

/* ── Section ─────────────────────────────────── */
.bp-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;
}

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

/* ── Rule divider ────────────────────────────── */
.bp-rule {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--accent-light);
    margin: 1rem auto 1.75rem;
    opacity: .6;
}

/* ── Topbar ──────────────────────────────────── */
.bp-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) {
    .bp-topbar.scrolled {
        background: color-mix(in srgb, var(--white) 92%, transparent);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}
.bp-topbar__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.bp-topbar__nav a {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--accent-light);
    transition: color .2s;
}
.bp-topbar__nav a:hover { color: var(--ink); }

/* ── Hero ────────────────────────────────────── */
.bp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.bp-hero--has-image {
    min-height: 100vh;
    background: var(--ink);
}
.bp-hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
}
.bp-hero__eyebrow {
    font-size: .65rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
}
/* On a photo, plain semi-transparent text isn't safe against an arbitrary
   uploaded image — white + a soft shadow keeps every line readable regardless
   of what's behind it (see hero-swiper's graduated overlay, darkest at the
   bottom where this text sits). */
.bp-hero--has-image .bp-hero__eyebrow { color: rgba(255,255,255,.85); text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.bp-hero__drop {
    display: block;
    width: 20px;
    height: 26px;
    margin: 0 auto 1.5rem;
    color: var(--accent-light);
    opacity: .8;
}
.bp-hero--has-image .bp-hero__drop { color: rgba(255,255,255,.8); filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.bp-hero__drop svg { width: 100%; height: 100%; }
.bp-hero__name {
    font-family: var(--ff-serif);
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: .01em;
    color: var(--ink);
    margin-bottom: .75rem;
}
.bp-hero--has-image .bp-hero__name { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.bp-hero__godparent {
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
}
.bp-hero--has-image .bp-hero__godparent { color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.bp-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-top: 1.5rem;
    color: var(--ink-muted);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
/* A frosted pill instead of plain translucent text — text alone over an
   arbitrary photo can lose contrast entirely depending on what's behind it,
   the pill's own background guarantees a readable base no matter the photo. */
.bp-hero--has-image .bp-hero__meta {
    color: rgba(255,255,255,.95);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: .6rem 1.5rem;
    gap: .5rem 1rem;
}
.bp-hero__meta-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    flex-shrink: 0;
}
.bp-hero--has-image .bp-hero__meta-dot { background: rgba(255,255,255,.6); }
.bp-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: bp-bounce 2.5s ease-in-out infinite;
}
.bp-hero--has-image .bp-hero__scroll { color: rgba(255,255,255,.6); }
.bp-hero__scroll svg { width: 16px; height: 16px; }
@keyframes bp-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Countdown ───────────────────────────────── */
.bp-countdown {
    padding: 5rem 1.5rem;
    background: var(--paper);
    text-align: center;
}
.bp-audio {
    padding: 5rem 1.5rem;
}
.bp-countdown__timer {
    display: flex;
    justify-content: center;
    gap: clamp(.75rem, 3vw, 3rem);
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.bp-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}
.bp-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;
}
.bp-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) {
    .bp-countdown__timer {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bp-countdown__timer::-webkit-scrollbar { display: none; }
    .bp-countdown__unit { flex-shrink: 0; }
}

/* ── Message / Poem ──────────────────────────── */
.bp-poem {
    padding: 5rem 1.5rem;
    text-align: center;
}
.bp-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;
}

/* ── The Godparents ──────────────────────────── */
.bp-godparents {
    padding: 5rem 1.5rem;
    text-align: center;
}
.bp-godparents__names {
    font-family: var(--ff-serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--ink);
}

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

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

/* ── Program ─────────────────────────────────── */
.bp-program {
    padding: 5rem 1.5rem;
}
.bp-timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 520px;
    margin: 2.5rem auto 0;
}
.bp-timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: var(--border);
}
.bp-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;
}
.bp-timeline__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.bp-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);
}
.bp-timeline__time {
    font-size: .7rem;
    letter-spacing: .1em;
    color: var(--accent);
    font-weight: 600;
    padding-top: .15rem;
    text-align: right;
}
.bp-timeline__label {
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
}
.bp-timeline__location {
    font-size: .8rem;
    color: var(--ink-faint);
    margin-top: .2rem;
    grid-column: 2;
}
.bp-timeline__location a { margin-left: .4em; opacity: .7; font-size: .85em; color: inherit; }

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

/* ── Location ────────────────────────────────── */
.bp-location {
    padding: 5rem 1.5rem 0;
    text-align: center;
}
.bp-location__address {
    font-size: .88rem;
    color: var(--ink-muted);
    margin: .75rem 0 2rem;
    letter-spacing: .04em;
}
.bp-map {
    width: 100%;
    height: 380px;
    overflow: hidden;
}
.bp-map iframe {
    width: 100%; height: 100%;
    border: 0; display: block;
    filter: grayscale(15%);
}
.bp-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;
}
.bp-location__btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.bp-map__cta { text-align: center; padding: 1.5rem 1.5rem 4rem; }

/* ── Closing ─────────────────────────────────── */
.bp-closing {
    padding: 4rem 1.5rem;
    text-align: center;
}
.bp-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. */
.bp-rsvp {
    padding: 5rem 1.5rem;
    background: var(--paper) !important;
}
.bp-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.bp-form label {
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-faint);
    display: block;
    margin-bottom: .35rem;
}
.bp-form input,
.bp-form select,
.bp-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;
}
.bp-form input:focus,
.bp-form select:focus,
.bp-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.bp-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;
}
.bp-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
}
.bp-btn:active { transform: translateY(0); }

.bp-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);
}
.bp-badge {
    display: inline-block;
    padding: .3rem .75rem;
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
}
.bp-badge--going   { background: #d1fae5; color: #065f46; }
.bp-badge--declined { background: #fee2e2; color: #991b1b; }
.bp-badge--maybe   { background: #fef3c7; color: #92400e; }

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

/* ── Footer ──────────────────────────────────── */
.bp-footer {
    padding: 3rem 1.5rem;
    background: var(--ink);
    color: rgba(255,255,255,.5);
    text-align: center;
    font-size: .75rem;
    letter-spacing: .1em;
}
.bp-footer a { color: rgba(255,255,255,.5); }
.bp-footer a:hover { color: rgba(255,255,255,.85); }
.bp-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);
}
.bp-footer__ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, currentColor);
}
.bp-footer__ornament-line:last-child {
    background: linear-gradient(to left, transparent, currentColor);
}
.bp-footer__ornament-mark {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
}
.bp-footer__signoff {
    margin: .75rem auto 0;
    max-width: 20rem;
    letter-spacing: .04em;
    color: rgba(255,255,255,.62);
}
/* Not .bp-btn — its background is --ink, identical to the footer; an outlined
   pill (keeping this theme's sharp 2px corner) reads on the dark ground. */
.bp-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;
}
.bp-footer__cal:hover {
    border-color: rgba(255,255,255,.6);
    color: #fff !important;
    background: rgba(255,255,255,.06);
}
.bp-footer__cal-icon {
    width: .95rem;
    height: .95rem;
    flex-shrink: 0;
}

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

.bp-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: hamburger + dropdown, matching the pattern used everywhere else.
   Always the same dark-translucent treatment — .bp-topbar is white/opaque
   always, so a light-colored hamburger would never have contrast against it.
   .bp-topbar is space-between on desktop — pin the toggle to the left instead
   on mobile, matching every other theme. */
@media (max-width: 600px) {
    .bp-topbar { justify-content: flex-start; }
    .bp-topbar__toggle { order: -1; }

    .bp-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(43,40,37,.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
        transition: background .2s;
    }
    .bp-topbar__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .bp-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .bp-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .bp-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .bp-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(43,40,37,.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .bp-topbar__nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .bp-topbar__nav a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
    }
    .bp-topbar__nav a:hover { background: var(--border-light); color: var(--ink); }
}

/* Standardized horizontal gutter across every content section on mobile
   (padding-x: 1rem) — 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 so equal-specificity
   source order guarantees this wins over each section's own base padding
   rule declared earlier. */
@media (max-width: 600px) {
.bp-hero,
.bp-countdown,
.bp-poem,
.bp-godparents,
.bp-story,
.bp-gallery,
.bp-guest-wall,
.bp-gallery-upload,
.bp-program,
.bp-dress-code,
.bp-good-to-know,
.bp-location,
.bp-closing,
.bp-rsvp,
.bp-album,
.bp-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
