/* ================================================
   Byzantine Blessing Baptism Theme – Digital Invitation
   Orthodox icon motif, gold leaf on parchment, deep Byzantine blue,
   restrained sacred iconography. All artwork is CSS/SVG — no photo assets.
   ================================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --parchment:     #FAF4E6;
    --parchment-alt: #F1E6CB;
    --white:         #FFFFFF;
    --ink:           #2A2118;
    --body:          #5C5340;
    --muted:         #8C8368;
    --indigo:        #1B2A56;
    --indigo-light:  #3D5188;
    --indigo-pale:   #E3E7F2;
    --gold:          #C9A227;
    --gold-light:    #E4C766;
    --gold-pale:     #F3E2AF;
    --gold-dark:     #8A6D14;
    --wine:          #7A1F2B;
    --accent-color:  var(--indigo);
    --radius:        16px;
    --btn-radius:    999px;
    --ff-display:    'Cinzel', 'Times New Roman', serif;
    --ff-body:       'Lora', serif;

    /* Gentle dome-scallop curve baked into a background-image so it can
       auto-alternate per section via nth-child without repeating markup —
       same technique as the safari/superhero themes, recolored + softened. */
    --bb-wave-parchment: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,70 Q41.5,20 83,70 T166,70 T249,70 T332,70 T415,70 T498,70 T581,70 T664,70 T747,70 T830,70 T913,70 T996,70 L1000,70 L1000,100 L0,100 Z' fill='%23FAF4E6'/%3E%3C/svg%3E");
    --bb-wave-alt:       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,70 Q41.5,20 83,70 T166,70 T249,70 T332,70 T415,70 T498,70 T581,70 T664,70 T747,70 T830,70 T913,70 T996,70 L1000,70 L1000,100 L0,100 Z' fill='%23F1E6CB'/%3E%3C/svg%3E");
    --bb-wave-indigo:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,70 Q41.5,20 83,70 T166,70 T249,70 T332,70 T415,70 T498,70 T581,70 T664,70 T747,70 T830,70 T913,70 T996,70 L1000,70 L1000,100 L0,100 Z' fill='%231B2A56'/%3E%3C/svg%3E");

    /* Palette read by the shared <x-checkerboard-gallery-grid> lightbox engine. */
    --cbg-ink:      var(--indigo);
    --cbg-accent:   var(--gold-dark);
    --cbg-backdrop: #0F1424;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 400;
    color: var(--body);
    background-color: var(--parchment);
    line-height: 1.75;
}

img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.bb-container         { max-width: 1100px; margin: 0 auto; }
.bb-container--narrow { max-width: 680px; }

/* Sections alternate a flat tint so the rhythm stays correct no matter
   which of these are hidden by plan tier, the section-visibility toggle,
   or simply missing data. */
.bb-alt-sections > * {
    position: relative;
    background: var(--parchment);
}
.bb-alt-sections > *:nth-child(even) {
    background: var(--parchment-alt);
}

.bb-poem::after,
.bb-alt-sections > *:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}
.bb-alt-sections > *:nth-child(odd):not(:last-child)::after {
    background-image: var(--bb-wave-alt);
}
.bb-poem::after,
.bb-alt-sections > *:nth-child(even):not(:last-child)::after {
    background-image: var(--bb-wave-parchment);
}

.bb-section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    color: var(--ink);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: .03em;
    position: relative;
    padding-bottom: 1rem;
}
.bb-section-title::after {
    content: '';
    position: absolute;
    top: -26px;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='none' stroke='%23C9A227' stroke-width='6' opacity='.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23C9A227' stroke-width='7' opacity='.75'/%3E%3Ccircle cx='50' cy='50' r='12' fill='%23C9A227'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

@keyframes bb-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-6px) rotate(4deg); }
}

@keyframes bb-glow {
    0%, 100% { opacity: .45; transform: scale(1); }
    50%      { opacity: .7;  transform: scale(1.06); }
}

/* ---------- Shape dividers ----------
   A full-width SVG with preserveAspectRatio="none" pinned to the section
   edge, so the dome-scallop stretches to any width without distorting height. */
.bb-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    direction: ltr;
    pointer-events: none;
    z-index: 1;
}
.bb-shape-top { top: -1px; }
.bb-shape-bottom { bottom: -1px; }
.bb-shape[data-negative="false"].bb-shape-bottom,
.bb-shape[data-negative="true"].bb-shape-top {
    transform: rotate(180deg);
}
.bb-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.bb-shape-fill {
    transform-origin: center;
}

/* ---------- Hero ---------- */
.bb-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 1.5rem 6rem;
}

.bb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 22%, rgba(201,162,39,.16), transparent 55%),
        radial-gradient(circle at 80% 78%, rgba(27,42,86,.10), transparent 50%);
    pointer-events: none;
}

/* ---------- Sacred FX background decorations (cross, dove, branch, ripple, flame) ---------- */
.bb-fx-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bb-fx-bg__item {
    position: absolute;
    height: auto;
    display: block;
    color: var(--indigo);
    opacity: .12;
}

.bb-fx-bg__item--cross  { color: var(--indigo);   opacity: .12; }
.bb-fx-bg__item--dove   { color: var(--gold);     opacity: .16; }
.bb-fx-bg__item--branch { color: var(--indigo-light); opacity: .13; }
.bb-fx-bg__item--flame  { color: var(--gold);     opacity: .2; }
.bb-fx-bg__item--ripple { color: var(--indigo);   opacity: .16; }

@media (max-width: 700px) {
    .bb-fx-bg__item--branch {
        display: none;
    }
}

.bb-hero__grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.bb-hero__grid.bb-container { max-width: 1400px; }

/* ---------- Hero media (icon-arch panel, echoes a church window / iconostasis) ---------- */
.bb-hero__media {
    position: relative;
    width: min(360px, 100%);
    margin: 0 auto;
}

.bb-hero__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.25;
    /* Rounded-arch top, small-radius base — a church-window/icon-panel silhouette
       instead of a plain rectangle or circle. */
    border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px;
    overflow: hidden;
    background: var(--indigo-pale);
    border: 10px solid var(--gold);
    box-shadow: 0 0 0 4px var(--white), 0 0 55px rgba(201,162,39,.3), 0 25px 55px rgba(27,42,86,.22);
}

.bb-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bb-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--indigo-light);
}

.bb-hero__badge {
    position: absolute;
    top: -6px;
    right: 6%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--gold-pale), 0 8px 20px rgba(27,42,86,.2);
    color: var(--indigo);
    animation: bb-float 4s ease-in-out infinite;
    z-index: 2;
}
.bb-hero__badge svg { width: 38px; height: 61px; }

/* ---------- Hero content (text column) ---------- */
.bb-hero__content {
    position: relative;
    z-index: 3;
}

.bb-hero__eyebrow {
    font-family: var(--ff-display);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--gold-dark);
    margin-bottom: .6rem;
}

.bb-hero__name {
    font-family: var(--ff-display);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.bb-hero__godparent {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    background: var(--indigo-pale);
    border: 1px solid var(--indigo-light);
    color: var(--indigo);
    border-radius: var(--btn-radius);
    padding: .4rem 1.1rem;
    margin-bottom: 1.5rem;
}

.bb-hero__date-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .02em;
    color: var(--white);
    background: var(--indigo);
    border: 3px solid var(--indigo-light);
    border-radius: var(--btn-radius);
    padding: .6rem 1.2rem;
    box-shadow: 0 4px 15px rgba(27,42,86,.3);
}

.bb-hero__meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.25rem;
}

.bb-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--white);
    border: 1px solid var(--gold-pale);
    border-radius: var(--btn-radius);
    padding: .5rem 1.15rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(27,42,86,.08);
}

@media (max-width: 820px) {
    .bb-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bb-hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .bb-hero__meta { justify-content: center; }
    .bb-hero__media {
        width: min(280px, 78%);
        margin: 5rem auto 0;
    }
    .bb-hero__badge {
        width: 60px;
        height: 60px;
        top: 4.5rem;
        right: 12%;
    }
    .bb-hero__badge svg { width: 24px; height: 38px; }
}

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

/* Desktop only (mobile hides these links behind the hamburger toggle, which
   already has its own self-contained dark-blur backdrop — the bar itself
   stays transparent unconditionally there). Give the bar a solid/blurred
   background past the scroll threshold (.scrolled toggled by data-topbar in
   theme.js) — light (not dark) since .bb-topbar__links a is dark var(--body)
   text on this theme's light parchment page. */
@media (min-width: 601px) {
    .bb-topbar.scrolled {
        background: color-mix(in srgb, var(--parchment) 92%, transparent);
        backdrop-filter: blur(10px);
    }
}

.bb-topbar__links {
    display: flex;
    gap: 1.25rem;
}
.bb-topbar__links a {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--body);
    transition: color .2s;
}
.bb-topbar__links a:hover { color: var(--gold-dark); text-decoration: none; }

.bb-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: collapse the link row behind a bordered hamburger button (replacing the
   old horizontal-scroll strip), opening a dropdown panel with the same links
   stacked. Always the same dark-translucent treatment. .bb-topbar is
   space-between on desktop — pin the toggle to the left instead on mobile,
   matching every other theme. */
@media (max-width: 600px) {
    .bb-topbar { justify-content: flex-start; }
    .bb-topbar__toggle { order: -1; }

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

    .bb-topbar__links {
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: rgba(250,244,230,.97);
        border: 1px solid var(--gold-dark);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(27,42,86,.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .bb-topbar__links.is-open {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .bb-topbar__links a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
        color: var(--body);
        flex: initial;
        white-space: normal;
    }
    .bb-topbar__links a:hover { background: rgba(201,162,39,.1); color: var(--gold-dark); }

}

/* ---------- Countdown ---------- */
.bb-countdown {
    position: relative;
    padding: 5rem 1.25rem 8rem;
    overflow: hidden;
}

.bb-audio {
    padding: 5rem 1.25rem 8rem;
}

.bb-countdown__inner {
    position: relative;
    z-index: 2;
}

.bb-countdown__intro {
    text-align: center;
    color: var(--body);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

/* A soft radiant halo behind the timer, in place of a photo — there's no
   iconography photography in the app, so this keeps the theme self-contained
   while staying restrained rather than a busy illustrated scene. */
.bb-countdown__photo-wrap {
    position: relative;
    max-width: 900px;
    margin: 2.5rem auto 0;
    aspect-ratio: 1143 / 502;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    overflow: hidden;
}

.bb-countdown__scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, var(--gold-pale) 0%, var(--indigo-pale) 100%);
}

.bb-countdown__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228,199,102,.55) 0%, rgba(228,199,102,0) 70%);
    animation: bb-glow 4s ease-in-out infinite;
}

.bb-countdown__timer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.bb-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,.88);
    border: 2px solid var(--gold);
    padding: 38px 0 24px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(27,42,86,.15);
    min-width: 100px;
}

.bb-countdown__number {
    font-family: var(--ff-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--indigo);
    line-height: 1;
}

.bb-countdown__label {
    font-family: var(--ff-display);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-top: .35rem;
}

/* ---------- Symbols of Baptism ---------- */
.bb-symbols {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
}

.bb-symbols__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
    max-width: 820px;
    margin: 2rem auto 0;
}

@media (max-width: 720px) {
    .bb-symbols__grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        gap: 2.75rem;
    }
}

.bb-symbols__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--gold);
    box-shadow: 0 8px 20px rgba(27,42,86,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--indigo);
}
.bb-symbols__icon svg { display: block; }
.bb-symbols__icon--water svg   { width: 50px; height: 50px; }
.bb-symbols__icon--candle svg  { width: 32px; height: 54px; }
.bb-symbols__icon--garment svg { width: 44px; height: 58px; }

.bb-symbols__label {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink);
    margin-bottom: .4rem;
}

.bb-symbols__desc {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--body);
    max-width: 220px;
    margin: 0 auto;
}

/* ---------- The Godparents ---------- */
.bb-godparents {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
}

.bb-godparents__card {
    max-width: 480px;
    margin: 2rem auto 0;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 40px rgba(27,42,86,.1);
}

.bb-godparents__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--indigo-pale);
    border: 3px solid var(--indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.bb-godparents__names {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .6rem;
}

.bb-godparents__note {
    font-size: .92rem;
    font-style: italic;
    color: var(--body);
}

/* ---------- Program / Order of Service ---------- */
.bb-program {
    padding: 5rem 1.25rem 8rem;
}

.bb-timeline { margin-top: 1rem; }

.bb-timeline__item {
    display: grid;
    grid-template-columns: 80px 20px 1fr;
    gap: 0 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.bb-timeline__time {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .85rem;
    color: var(--gold-dark);
    text-align: right;
    padding-top: .15rem;
}

.bb-timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--indigo);
    margin-top: .25rem;
    position: relative;
}

.bb-timeline__dot::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--indigo-pale);
    height: calc(100% + 1.5rem + 14px);
}

.bb-timeline__item:last-child .bb-timeline__dot::after { display: none; }

.bb-timeline__label {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: .01em;
    color: var(--ink);
}

.bb-timeline__location {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    margin-top: .15rem;
}
.bb-timeline__location a { margin-left: .4em; opacity: .85; font-size: .9em; color: var(--indigo); }

/* ---------- A Blessing (message / quote card) ---------- */
.bb-poem {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
    position: relative;
}

.bb-poem__card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 3rem 2rem 2.25rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(27,42,86,.1);
}

.bb-poem__quote {
    width: 38px;
    height: 38px;
    margin: 0 auto 1rem;
    color: var(--gold);
    opacity: .9;
}
.bb-poem__quote svg { width: 100%; height: 100%; }

.bb-poem__text {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.8;
    white-space: pre-line;
    color: var(--ink);
}

.bb-poem__dove {
    margin-top: 1.25rem;
    font-size: 1.4rem;
    opacity: .8;
}

/* ---------- Blessed Beginnings (Our Story) ---------- */
.bb-story {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
}

.bb-story__intro {
    max-width: 34rem;
    margin: 0 auto 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.bb-story__timeline {
    position: relative;
    max-width: 780px;
    margin: 3rem auto 0;
    text-align: left;
}

.bb-story__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        var(--accent-color) 0,
        var(--accent-color) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateX(-50%);
}

.bb-story__item {
    position: relative;
    width: 50%;
    padding-bottom: 3.5rem;
}

.bb-story__item:last-child {
    padding-bottom: 0;
}

.bb-story__item--left {
    padding-right: 3rem;
    text-align: right;
}

.bb-story__item--right {
    width: 50%;
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.bb-story__dot {
    position: absolute;
    top: .3rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--parchment);
    box-shadow: 0 0 0 3px var(--accent-color);
    z-index: 2;
}

.bb-story__item--left .bb-story__dot { right: -9px; }
.bb-story__item--right .bb-story__dot { left: -9px; }

/* Photo framed with a plain gold border instead of an overlay image. */
.bb-story__photo {
    position: relative;
    width: min(100%, 260px);
    aspect-ratio: 675 / 697;
    margin-bottom: 1rem;
    display: inline-block;
}

.bb-story__item--left .bb-story__photo { margin-left: auto; }
.bb-story__item--right .bb-story__photo { margin-right: auto; }

.bb-story__photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--gold);
    box-shadow: 0 10px 25px rgba(27,42,86,.18);
    display: block;
}

.bb-story__photo-caption {
    position: absolute;
    left: .6rem;
    right: .6rem;
    bottom: .6rem;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
    color: var(--white);
    background: rgba(27,42,86,.72);
    border-radius: var(--btn-radius);
    padding: .3rem .5rem;
    z-index: 2;
}

.bb-story__period {
    display: block;
    font-family: var(--ff-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: .25rem;
}

.bb-story__title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .35rem;
}

.bb-story__desc {
    font-size: .92rem;
    line-height: 1.65;
    color: var(--body);
}

@media (max-width: 720px) {
    .bb-story__timeline::before {
        left: 1.4rem;
        transform: none;
    }

    .bb-story__item,
    .bb-story__item--right {
        width: 100%;
        margin-left: 0;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }

    .bb-story__item--left .bb-story__dot,
    .bb-story__item--right .bb-story__dot {
        left: 1.4rem;
        right: auto;
        transform: translateX(-50%);
    }

    .bb-story__item--left .bb-story__photo,
    .bb-story__item--right .bb-story__photo {
        margin-left: 0;
        margin-right: auto;
    }
}

/* ---------- Gallery / Guest Wall ---------- */
.bb-gallery { padding: 5rem 1.25rem 8rem; text-align: center; }
.bb-guest-wall { padding: 5rem 1.25rem 8rem; text-align: center; }
.bb-gallery-upload { padding: 5rem 1.25rem 8rem; text-align: center; }

.bb-gallery-upload .gu-form {
    max-width: 620px;
    padding: 0 1.5rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ---------- Dress Code / Good to Know ---------- */
.bb-dress-code { padding: 5rem 1.25rem 8rem; text-align: center; }
.bb-good-to-know { padding: 5rem 1.25rem 8rem; text-align: center; }

/* ---------- Closing ---------- */
.bb-closing {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.bb-closing p {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    opacity: .7;
    margin: 0;
}

/* ---------- The Church (Map) ---------- */
.bb-location { padding: 5rem 1.25rem 8rem; }

.bb-location__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

@media (max-width: 820px) {
    .bb-location__grid {
        grid-template-columns: 1fr;
    }
}

.bb-location__map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(27,42,86,.18);
    filter: sepia(.1) saturate(1.05);
}

.bb-location__info {
    text-align: center;
}

.bb-location__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--indigo-pale);
    border: 3px solid var(--indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.bb-location__name {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem;
}

.bb-location__address {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ---------- Keepsakes ---------- */
.bb-album { padding: 5rem 1.25rem; text-align: center; }
.bb-album__text { opacity: .75; margin-bottom: 2rem; }

/* ---------- RSVP ---------- */
.bb-rsvp {
    position: relative;
    padding: 5rem 1.25rem 8rem;
}
.bb-rsvp .rsvp-deadline {
    background: transparent;
    margin-bottom: 10px;
}
.bb-rsvp .bb-section-title,
.bb-rsvp .rsvp-layout-wrap {
    position: relative;
    z-index: 2;
}
.bb-rsvp::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 40px;
    background-image: var(--bb-wave-indigo);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.bb-rsvp__subtitle {
    text-align: center;
    color: var(--ink);
    opacity: .8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.bb-alert--success {
    background: var(--indigo-pale);
    color: var(--ink);
    border: 2px solid var(--indigo);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.rsvp-layout-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(27,42,86,.15);
    padding: 3.5rem 2.5rem;
}

@media (max-width: 500px) {
    .rsvp-layout-wrap {
        padding: 2.5rem 1.25rem;
    }
}

.bb-rsvp .form__group label {
    display: block;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .8rem;
    color: var(--gold-dark);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.bb-rsvp .form__group input[type="text"],
.bb-rsvp .form__group input[type="email"],
.bb-rsvp .form__group input[type="tel"],
.bb-rsvp .form__group select,
.bb-rsvp .form__group textarea {
    width: 100%;
    padding: .95rem 1.25rem;
    border: 0;
    border-radius: 8px;
    font-family: var(--ff-body);
    font-weight: 400;
    font-size: .95rem;
    color: var(--ink);
    background-color: var(--parchment);
    box-shadow: 0 2px 6px rgba(27,42,86,.08);
    transition: box-shadow .2s;
    outline: none;
}
.bb-rsvp .form__group .rsvp-stepper {
    background: var(--parchment);
}

.bb-rsvp .form__group input[type="text"]:focus,
.bb-rsvp .form__group input[type="email"]:focus,
.bb-rsvp .form__group input[type="tel"]:focus,
.bb-rsvp .form__group select:focus,
.bb-rsvp .form__group textarea:focus {
    box-shadow: 0 0 0 3px rgba(201,162,39,.25), 0 0 0 5px var(--gold);
    background-color: var(--white);
}

.bb-rsvp .form__error {
    display: block;
    color: var(--wine);
    font-size: .82rem;
    margin-top: .3rem;
}

.bb-btn {
    display: block;
    width: 100%;
    padding: .9rem 2rem;
    background: var(--indigo);
    color: var(--white);
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .02em;
    border: 3px solid var(--indigo-light);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    box-shadow: 0 4px 15px rgba(27,42,86,.35);
    margin-top: .5rem;
}

.bb-btn:hover {
    background: var(--gold);
    border-color: var(--gold-light);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(201,162,39,.4);
    text-decoration: none;
}

.bb-location .bb-btn,
.bb-album .bb-btn { display: inline-block; width: auto; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.bb-footer {
    background: var(--indigo);
    color: rgba(255,255,255,.85);
    text-align: center;
    padding: 2.5rem 1.25rem;
    font-size: .9rem;
}

.bb-footer p { margin-bottom: .35rem; }
.bb-footer a { color: var(--gold-light); }
.bb-footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    max-width: 13rem;
    margin: 0 auto 1rem;
    color: var(--gold-light);
}
.bb-footer__ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, currentColor);
}
.bb-footer__ornament-line:last-child {
    background: linear-gradient(to left, transparent, currentColor);
}
.bb-footer__ornament-mark {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}
.bb-footer__signoff {
    max-width: 24rem;
    margin: 0 auto 1.5rem !important;
    font-family: var(--ff-display);
    font-style: italic;
    color: rgba(255,255,255,.9);
}
/* Not .bb-btn — its background is the same indigo as the footer; a gold-outlined
   pill reads on the dark ground. */
.bb-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    border: 1.5px solid var(--gold-light);
    border-radius: 999px;
    color: var(--gold-light) !important;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .02em;
    transition: background .2s, color .2s;
}
.bb-footer__cal:hover {
    background: var(--gold-light);
    color: var(--indigo) !important;
    text-decoration: none;
}
.bb-footer__cal-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    /* 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. */
    .bb-countdown__timer {
        gap: .5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bb-countdown__timer::-webkit-scrollbar { display: none; }
    .bb-countdown__unit {
        padding: .9rem 1rem;
        min-width: 58px;
        flex-shrink: 0;
    }
    .bb-countdown__number { font-size: 2rem; }

    .bb-poem__card { padding: 2.5rem 1.25rem 1.75rem; }
}

/* 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) {
.bb-hero,
.bb-countdown,
.bb-symbols,
.bb-godparents,
.bb-program,
.bb-poem,
.bb-story,
.bb-gallery,
.bb-guest-wall,
.bb-gallery-upload,
.bb-dress-code,
.bb-good-to-know,
.bb-closing,
.bb-location,
.bb-album,
.bb-rsvp,
.bb-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
