/* ================================================
   Superhero Birthday Theme – Digital Invitation
   Comic-book motif, bold primary palette, lightning-bolt badge,
   punchy display type. All artwork is CSS/SVG — no photo assets.
   ================================================ */

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

:root {
    --panel:        #F4F6FB;
    --panel-alt:    #E4E9F7;
    --white:        #FFFFFF;
    --ink:          #1A1F36;
    --body:         #4A5170;
    --muted:        #8890AC;
    --blue:         #274C9E;
    --blue-light:   #4E6FC7;
    --blue-pale:    #DCE4F7;
    --red:          #E63946;
    --red-pale:     #FBD3D6;
    --yellow:       #FFC93C;
    --yellow-pale:  #FFEFC2;
    --accent-color: var(--blue);
    --radius:       16px;
    --btn-radius:   10px;
    --ff-display:   'Bangers', 'Comic Sans MS', cursive, sans-serif;
    --ff-body:      'Quicksand', sans-serif;

    /* Jagged "action" zigzag baked into a background-image so it can
       auto-alternate per section via nth-child without repeating markup —
       same technique as the safari theme, recolored + resharpened. */
    --bh-zig-panel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,75 L62.5,25 L125,75 L187.5,25 L250,75 L312.5,25 L375,75 L437.5,25 L500,75 L562.5,25 L625,75 L687.5,25 L750,75 L812.5,25 L875,75 L937.5,25 L1000,75 L1000,100 L0,100 Z' fill='%23F4F6FB'/%3E%3C/svg%3E");
    --bh-zig-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,75 L62.5,25 L125,75 L187.5,25 L250,75 L312.5,25 L375,75 L437.5,25 L500,75 L562.5,25 L625,75 L687.5,25 L750,75 L812.5,25 L875,75 L937.5,25 L1000,75 L1000,100 L0,100 Z' fill='%23E4E9F7'/%3E%3C/svg%3E");
    --bh-zig-blue:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,75 L62.5,25 L125,75 L187.5,25 L250,75 L312.5,25 L375,75 L437.5,25 L500,75 L562.5,25 L625,75 L687.5,25 L750,75 L812.5,25 L875,75 L937.5,25 L1000,75 L1000,100 L0,100 Z' fill='%23274C9E'/%3E%3C/svg%3E");

    /* Shield outline reused by the hero frame layers below. */
    --bh-shield: polygon(50% 0%, 88% 13%, 100% 42%, 88% 72%, 50% 100%, 12% 72%, 0% 42%, 12% 13%);

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 500;
    color: var(--body);
    background-color: var(--panel);
    /* Faint halftone-dot texture for a comic-paper feel, fixed so it shows
       through every section regardless of scroll or alternation. */
    background-image: radial-gradient(circle, rgba(39,76,158,.10) 1.6px, transparent 1.8px);
    background-size: 22px 22px;
    background-attachment: fixed;
    line-height: 1.7;
}

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

/* ---------- Utility ---------- */
.bh-container         { max-width: 1100px; margin: 0 auto; }
.bh-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. */
.bh-alt-sections > * {
    position: relative;
    background: var(--panel);
}
.bh-alt-sections > *:nth-child(even) {
    background: var(--panel-alt);
}

.bh-poem::after,
.bh-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;
}
.bh-alt-sections > *:nth-child(odd):not(:last-child)::after {
    background-image: var(--bh-zig-alt);
}
.bh-poem::after,
.bh-alt-sections > *:nth-child(even):not(:last-child)::after {
    background-image: var(--bh-zig-panel);
}

.bh-section-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4.4vw, 2.9rem);
    color: var(--ink);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: .02em;
    position: relative;
    padding-bottom: 1rem;
}
.bh-section-title::after {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translateX(-50%);
    background: var(--yellow);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 3px 4px rgba(26,31,54,.3));
}

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

@keyframes bh-pulse {
    0%, 100% { transform: scale(1); opacity: .9; }
    50%      { transform: scale(1.08); opacity: 1; }
}

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

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

.bh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(39,76,158,.14), transparent 55%),
        radial-gradient(circle at 82% 75%, rgba(230,57,70,.12), transparent 50%);
    pointer-events: none;
}

/* ---------- Comic FX background decorations (bursts, bolts, masks, capes) ---------- */
.bh-fx-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bh-fx-bg__item {
    position: absolute;
    height: auto;
    display: block;
    color: var(--blue);
    opacity: .14;
}

.bh-fx-bg__item--cape  { color: var(--blue-light); opacity: .14; }
.bh-fx-bg__item--burst { color: var(--yellow); opacity: .5; }
.bh-fx-bg__item--bolt  { color: var(--red); opacity: .22; }
.bh-fx-bg__item--mask  { color: var(--ink); opacity: .1; }

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

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

/* ---------- Hero media (irregular "shield badge" window) ---------- */
.bh-hero__media {
    position: relative;
    width: min(420px, 100%);
    margin: 0 auto;
}

.bh-hero__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    clip-path: var(--bh-shield);
    background: var(--yellow);
    padding: 4px;
    filter: drop-shadow(0 20px 45px rgba(26,31,54,.3));
}

.bh-hero__frame-inner {
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: var(--bh-shield);
    background: var(--white);
}

.bh-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--blue-pale);
}

.bh-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: var(--blue-pale);
}

.bh-hero__badge {
    position: absolute;
    top: -4px;
    right: 4%;
    width: 116px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(26,31,54,.2);
    color: var(--red);
    animation: bh-float 3.5s ease-in-out infinite;
    z-index: 2;
}
.bh-hero__badge svg { width: 56px; height: 90px; }

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

.bh-hero__eyebrow {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: .02em;
    color: var(--blue);
    opacity: .9;
    margin-bottom: .5rem;
}

.bh-hero__name {
    font-family: var(--ff-display);
    font-size: 76px;
    font-weight: 400;
    letter-spacing: .02em;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.bh-hero__age {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: .01em;
    color: var(--red);
    margin-bottom: 1rem;
}

.bh-hero__date-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: .02em;
    color: var(--white);
    background: var(--red);
    border: 3px solid var(--red-pale);
    border-radius: var(--btn-radius);
    padding: .65rem 1.25rem;
    box-shadow: 0 4px 15px rgba(230,57,70,.35);
}

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

.bh-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--white);
    border: 1px solid var(--blue-pale);
    border-radius: var(--btn-radius);
    padding: .5rem 1.15rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(26,31,54,.08);
}

@media (max-width: 820px) {
    .bh-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bh-hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .bh-hero__meta { justify-content: center; }
    .bh-hero__name { font-size: clamp(2.2rem, 9vw, 76px); }
    .bh-hero__media {
        width: min(300px, 80%);
        margin: 5rem auto 0;
    }
    .bh-hero__badge {
        width: 60px;
        height: 60px;
        top: 5rem;
        right: 10%;
    }
    .bh-hero__badge svg { width: 30px; height: 48px; }
}

/* Floating topbar */
.bh-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 .bh-topbar__links a is mid-dark
   var(--body) text on this theme's light panel page. */
@media (min-width: 601px) {
    .bh-topbar.scrolled {
        background: color-mix(in srgb, var(--panel) 92%, transparent);
        backdrop-filter: blur(10px);
    }
}

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

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

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

    .bh-topbar__links {
        display: flex;
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: rgba(244,246,251,.97);
        border: 1px solid var(--red);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(26,31,54,.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .bh-topbar__links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .bh-topbar__links a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
        color: var(--body);
    }
    .bh-topbar__links a:hover { background: rgba(230,57,70,.1); color: var(--red); }

}

/* ---------- Audio ---------- */
.bh-audio {
    position: relative;
    padding: 5rem 1.25rem 8rem;
    overflow: hidden;
}

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

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

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

/* Illustrated CSS "scene" (city skyline + comic burst) behind the timer, in
   place of a photo — there's no superhero photography in the app, so this
   keeps the theme fully self-contained. */
.bh-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;
}

.bh-countdown__scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, var(--blue-pale) 0%, var(--blue) 130%);
}

.bh-countdown__burst {
    position: absolute;
    right: 8%;
    top: 10%;
    width: 130px;
    height: 130px;
    background: var(--yellow);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: .85;
    animation: bh-pulse 3s ease-in-out infinite;
}

.bh-countdown__building {
    position: absolute;
    bottom: -4%;
    background: var(--ink);
    opacity: .65;
}
.bh-countdown__building--1 { left: 4%;  width: 14%; height: 42%; }
.bh-countdown__building--2 { left: 20%; width: 10%; height: 60%; opacity: .8; }
.bh-countdown__building--3 { left: 32%; width: 12%; height: 34%; }
.bh-countdown__building--4 { left: 46%; width: 9%;  height: 50%; opacity: .75; }

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

.bh-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,.92);
    border: 2px solid var(--red);
    padding: 40px 0 25px;
    border-radius: var(--btn-radius);
    box-shadow: 0 5px 15px rgba(26,31,54,.2);
    min-width: 100px;
}

.bh-countdown__number {
    font-family: var(--ff-display);
    font-size: 2.7rem;
    font-weight: 400;
    color: var(--red);
    line-height: 1;
}

.bh-countdown__label {
    font-family: var(--ff-display);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .08em;
    color: var(--ink);
    text-transform: uppercase;
    margin-top: .35rem;
}

/* ---------- Program / Mission Schedule ---------- */
.bh-program {
    padding: 5rem 1.25rem 8rem;
}

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

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

.bh-timeline__time {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: .9rem;
    letter-spacing: .01em;
    color: var(--red);
    text-align: right;
    padding-top: .15rem;
}

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

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

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

.bh-timeline__label {
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: .01em;
    color: var(--ink);
}

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

/* ---------- Message from Headquarters (message / quote card) ---------- */
.bh-poem {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
    position: relative;
}

.bh-poem__card {
    position: relative;
    background: var(--white);
    border: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 3rem 2rem 2.25rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(26,31,54,.12);
}

.bh-poem__quote {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--red);
    opacity: .85;
}
.bh-poem__quote svg { width: 100%; height: 100%; }

.bh-poem__text {
    font-family: var(--ff-display);
    font-size: 1.25rem;
    letter-spacing: .01em;
    line-height: 1.7;
    white-space: pre-line;
    color: var(--ink);
}

.bh-poem__bolt {
    margin-top: 1.25rem;
    font-size: 1.4rem;
    opacity: .8;
}

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

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

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

.bh-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%);
}

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

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

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

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

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

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

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

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

.bh-story__photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--blue);
    box-shadow: 0 10px 25px rgba(26,31,54,.18);
    display: block;
}

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

.bh-story__period {
    display: block;
    font-family: var(--ff-display);
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: .25rem;
}

.bh-story__title {
    font-family: var(--ff-display);
    font-size: 1.25rem;
    letter-spacing: .01em;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: .35rem;
}

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

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

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

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

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

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

.bh-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 ---------- */
.bh-dress-code { padding: 5rem 1.25rem 8rem; text-align: center; }
.bh-good-to-know { padding: 5rem 1.25rem 8rem; text-align: center; }

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

.bh-closing p {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    letter-spacing: .01em;
    color: var(--ink);
    opacity: .65;
    margin: 0;
}

/* ---------- Headquarters (Map) ---------- */
.bh-location { padding: 5rem 1.25rem 8rem; }

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

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

.bh-location__map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(26,31,54,.18);
    filter: saturate(1.1) contrast(1.02);
}

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

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

.bh-location__name {
    font-family: var(--ff-display);
    font-size: 1.45rem;
    letter-spacing: .01em;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: .5rem;
}

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

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

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

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

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

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

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

.bh-rsvp .form__group label {
    display: block;
    font-family: var(--ff-display);
    font-weight: 400;
    letter-spacing: .02em;
    font-size: .9rem;
    color: var(--red);
    margin-bottom: .4rem;
    text-transform: uppercase;
}

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

.bh-rsvp .form__group input[type="text"]:focus,
.bh-rsvp .form__group input[type="email"]:focus,
.bh-rsvp .form__group input[type="tel"]:focus,
.bh-rsvp .form__group select:focus,
.bh-rsvp .form__group textarea:focus {
    box-shadow: 0 0 0 3px rgba(39,76,158,.2), 0 0 0 5px var(--blue);
    background-color: var(--white);
}

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

.bh-btn {
    display: block;
    width: 100%;
    padding: .9rem 2rem;
    background: var(--red);
    color: var(--white);
    font-family: var(--ff-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: .02em;
    border: 3px solid var(--ink);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    box-shadow: 0 4px 15px rgba(230,57,70,.35);
    margin-top: .5rem;
}

.bh-btn:hover {
    background: var(--blue);
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(39,76,158,.4);
    text-decoration: none;
}

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

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

.bh-footer p { margin-bottom: .35rem; }
.bh-footer a { color: var(--yellow); }
.bh-footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    max-width: 13rem;
    margin: 0 auto 1rem;
    color: rgba(255,255,255,.55);
}
.bh-footer__ornament-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, currentColor); }
.bh-footer__ornament-line:last-child { background: linear-gradient(to left, transparent, currentColor); }
.bh-footer__ornament-mark { flex-shrink: 0; font-size: 1rem; line-height: 1; }
.bh-footer__signoff { max-width: 24rem; margin: 0 auto 1.5rem; opacity: .9; }
.bh-footer__cal {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
}
.bh-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. */
    .bh-countdown__timer {
        gap: .5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bh-countdown__timer::-webkit-scrollbar { display: none; }
    .bh-countdown__unit {
        padding: .9rem 1rem;
        min-width: 58px;
        flex-shrink: 0;
    }
    .bh-countdown__number { font-size: 2rem; }

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