/* ============================================================
   BalancedMental — Modern design system
   Built on container queries, color-mix(), scroll-driven motion,
   logical properties, and fluid type. Palette is from the logo.
   ============================================================ */

/* ───────────────────  Design tokens  ─────────────────── */
:root {
    /* Logo palette */
    --bm-cream-50:   #FBF6E9;
    --bm-cream-100:  #F0E5C5;
    --bm-cream-200:  #E5D49E;
    --bm-tan:        #D4A574;

    --bm-leaf-50:    #EFF6DC;
    --bm-leaf-100:   #D3E69E;
    --bm-leaf-300:   #A4D55E;  /* bright lime */
    --bm-leaf-500:   #7BAA3F;
    --bm-forest-600: #5A7A2E;
    --bm-forest-700: #44621F;  /* deep olive */
    --bm-forest-800: #3D2817;  /* chocolate (logo bg) */
    --bm-forest-900: #2A1B0F;

    --bm-ink:        #2C1E11;
    --bm-ink-soft:   #5C4733;
    --bm-muted:      #8A7563;
    --bm-line:       rgb(61 40 23 / 12%);

    --bm-bg:         #ffffff;
    --bm-surface:    #ffffff;
    --bm-surface-2:  var(--bm-cream-50);

    /* Derived tokens (modern color-mix for subtle variations) */
    --bm-leaf-tint:  color-mix(in oklab, var(--bm-leaf-300) 18%, transparent);
    --bm-leaf-tint-strong: color-mix(in oklab, var(--bm-leaf-300) 32%, transparent);
    --bm-brown-tint: color-mix(in oklab, var(--bm-forest-800) 7%, transparent);
    --bm-glow:       color-mix(in oklab, var(--bm-leaf-300) 45%, transparent);

    /* Typography (Fraunces serif display + Inter sans body) */
    --bm-font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --bm-font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Fluid type scale (clamp-based) */
    --fs-xs:   clamp(0.75rem, 0.72rem + 0.1vw, 0.82rem);
    --fs-sm:   clamp(0.85rem, 0.82rem + 0.15vw, 0.92rem);
    --fs-base: clamp(0.98rem, 0.95rem + 0.2vw, 1.05rem);
    --fs-lg:   clamp(1.1rem,  1.05rem + 0.4vw, 1.25rem);
    --fs-xl:   clamp(1.35rem, 1.25rem + 0.5vw, 1.65rem);
    --fs-2xl:  clamp(1.6rem,  1.4rem + 1vw,    2.1rem);
    --fs-3xl:  clamp(2rem,    1.7rem + 1.5vw,  2.75rem);
    --fs-4xl:  clamp(2.4rem,  2rem + 2.2vw,    3.75rem);

    /* Layered, modern shadows */
    --bm-shadow-xs: 0 1px 2px rgb(61 40 23 / 4%);
    --bm-shadow-sm: 0 2px 4px rgb(61 40 23 / 5%),
                    0 1px 2px rgb(61 40 23 / 4%);
    --bm-shadow:    0 4px 8px rgb(61 40 23 / 4%),
                    0 12px 24px rgb(61 40 23 / 6%),
                    0 24px 48px rgb(61 40 23 / 4%);
    --bm-shadow-lg: 0 8px 16px rgb(61 40 23 / 6%),
                    0 24px 48px rgb(61 40 23 / 10%),
                    0 40px 80px rgb(61 40 23 / 8%);
    --bm-shadow-glow: 0 0 0 1px var(--bm-leaf-tint),
                     0 12px 28px color-mix(in oklab, var(--bm-leaf-500) 22%, transparent);

    /* Geometry */
    --bm-radius-sm: 8px;
    --bm-radius:    12px;
    --bm-radius-lg: 18px;
    --bm-radius-xl: 28px;

    /* Motion */
    --bm-ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --bm-ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --bm-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --bm-dur-fast:  150ms;
    --bm-dur:       280ms;
    --bm-dur-slow:  500ms;

    /* Sticky offsets */
    --nav-height: 96px;

    color-scheme: light;
}

/* ───────────────────  Reset / base  ─────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    font-family: var(--bm-font-sans);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--bm-ink);
    background: var(--bm-bg);
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bm-font-display);
    color: var(--bm-forest-800);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
    font-weight: 500;
}
h1 { font-size: var(--fs-4xl); font-variation-settings: 'opsz' 96; }
h2 { font-size: var(--fs-3xl); font-variation-settings: 'opsz' 48; }
h3 { font-size: var(--fs-xl); }

p {
    margin-block: 0 1rem;
    text-wrap: pretty;
    max-width: 70ch;
}

a {
    color: var(--bm-forest-700);
    text-decoration: none;
    transition: color var(--bm-dur) var(--bm-ease);
}
a:hover { color: var(--bm-leaf-500); }

::selection {
    background: var(--bm-leaf-300);
    color: var(--bm-forest-900);
}

/* Focus rings — visible & on-brand */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 2px solid var(--bm-leaf-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ───────────────────  Utility bar  ─────────────────── */
/* Slightly deeper brown than the header so the two stack with a
   subtle hierarchy — utility info on top, main brand block below. */
.utility-bar {
    background: var(--bm-forest-900);
    color: #fff;
    font-size: var(--fs-sm);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    position: relative;
    isolation: isolate;
}
.utility-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 90% 50%,
        color-mix(in oklab, var(--bm-leaf-300) 22%, transparent),
        transparent 60%
    );
    pointer-events: none;
    z-index: -1;
}
.utility-bar a {
    color: rgb(255 255 255 / 88%);
    transition: color var(--bm-dur-fast) var(--bm-ease);
}
.utility-bar a:hover { color: var(--bm-leaf-300); }

.utility-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-block: 0.6rem;
    flex-wrap: wrap;
}

.utility-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.utility-divider { color: rgb(255 255 255 / 30%); user-select: none; }

.utility-actions { display: flex; align-items: center; gap: 0.75rem; }
.utility-link {
    font-weight: 500;
    padding-block: 0.15rem;
    position: relative;
}
.utility-link::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-end: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--bm-dur) var(--bm-ease);
}
.utility-link:hover::after { transform: scaleX(1); }

.utility-book {
    background: var(--bm-leaf-300);
    color: var(--bm-forest-900) !important;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    transition: background var(--bm-dur) var(--bm-ease),
                transform var(--bm-dur) var(--bm-ease),
                box-shadow var(--bm-dur) var(--bm-ease);
    box-shadow: 0 2px 8px color-mix(in oklab, var(--bm-leaf-500) 30%, transparent);
}
.utility-book:hover {
    background: var(--bm-leaf-100);
    color: var(--bm-forest-900) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px color-mix(in oklab, var(--bm-leaf-500) 40%, transparent);
}

@media (max-width: 575.98px) {
    .utility-bar-inner { font-size: 0.78rem; }
    .utility-contact { gap: 0.5rem; }
}

/* ───────────────────  Navbar (chocolate, on-brand)  ─────────────────── */
header {
    position: sticky;
    inset-block-start: 0;
    z-index: 1030;
    /* Same chocolate brown as the logo background */
    background: var(--bm-forest-800);
    color: #fff;
    box-shadow: 0 8px 24px rgb(61 40 23 / 22%);
    isolation: isolate;
}
/* Soft glow that hints at the leaf-green from the logo */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 50%, color-mix(in oklab, var(--bm-leaf-500) 14%, transparent), transparent 55%),
        radial-gradient(circle at 10% 120%, color-mix(in oklab, var(--bm-leaf-300) 10%, transparent), transparent 50%);
    pointer-events: none;
    z-index: -1;
}
/* Slim leaf-green hairline along the bottom — matches the logo accent */
header::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 1px;
    background: linear-gradient(90deg,
        transparent,
        color-mix(in oklab, var(--bm-leaf-300) 60%, transparent) 50%,
        transparent);
    pointer-events: none;
}

.site-nav {
    background: transparent !important;
    border-bottom: none;
    box-shadow: none;
    padding-block: 0.85rem;
    transition: padding var(--bm-dur) var(--bm-ease);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--bm-font-display);
    color: #fff !important;
    font-weight: 600;
    font-size: 1.4rem;
    padding: 0;
    text-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}
.navbar-brand .brand-mark {
    inline-size: 48px;
    block-size: 48px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform var(--bm-dur-slow) var(--bm-spring);
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / 25%));
}
.navbar-brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.navbar-brand .brand-mark-text { line-height: 1.1; }
.navbar-brand .brand-mark-text small {
    display: block;
    font-family: var(--bm-font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--bm-leaf-300);
    margin-block-start: 3px;
    text-shadow: none;
}

/* ── Link styles (refined for dark brown bg) ──────────────────── */
.site-nav .navbar-nav { gap: 0.15rem; }

.site-nav .nav-link {
    color: rgb(255 255 255 / 75%) !important;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.65rem 0.85rem !important;
    border-radius: 10px;
    position: relative;
    isolation: isolate;
    transition: color var(--bm-dur) var(--bm-ease),
                transform var(--bm-dur) var(--bm-ease);
}
/* Soft hover pill (drawn via ::before so it doesn't fight content) */
.site-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgb(255 255 255 / 8%);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity var(--bm-dur) var(--bm-ease),
                transform var(--bm-dur) var(--bm-spring);
    z-index: -1;
}
/* Animated underline (grows from center) */
.site-nav .nav-link::after {
    content: '';
    position: absolute;
    inset-inline: 50%;
    inset-block-end: 0.3rem;
    block-size: 2px;
    background: var(--bm-leaf-300);
    border-radius: 2px;
    inline-size: 60%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform var(--bm-dur) var(--bm-ease);
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: #fff !important;
    transform: translateY(-1px);
}
.site-nav .nav-link:hover::before,
.site-nav .nav-link:focus::before {
    opacity: 1;
    transform: scale(1);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus::after {
    transform: translateX(-50%) scaleX(1);
}

/* Active page — persistent lime underline + faint pill */
.site-nav .nav-link.active {
    color: #fff !important;
}
.site-nav .nav-link.active::before {
    opacity: 1;
    transform: scale(1);
    background: rgb(255 255 255 / 6%);
}
.site-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    background: var(--bm-leaf-300);
    box-shadow: 0 0 8px color-mix(in oklab, var(--bm-leaf-300) 60%, transparent);
}

/* Toggler reskinned for dark bg */
.navbar-toggler {
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
    background: rgb(255 255 255 / 4%);
    transition: background var(--bm-dur) var(--bm-ease),
                border-color var(--bm-dur) var(--bm-ease);
}
.navbar-toggler:hover {
    background: rgb(255 255 255 / 10%);
    border-color: var(--bm-leaf-300);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--bm-glow); }
/* Invert Bootstrap's dark toggler icon to be visible on chocolate */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .site-nav .navbar-nav {
        margin-block-start: 1rem;
        padding-block-start: 1rem;
        border-block-start: 1px solid rgb(255 255 255 / 12%);
        width: 100%;
        gap: 0.2rem;
    }
    .site-nav .nav-link {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem;
    }
    /* On mobile, swap the centered underline for a left-anchored accent bar */
    .site-nav .nav-link::after {
        inset-inline: 1rem auto;
        inset-block: 50% auto;
        inline-size: 3px;
        block-size: 0;
        transform: translateY(-50%);
        border-radius: 3px;
        transition: block-size var(--bm-dur) var(--bm-ease);
    }
    .site-nav .nav-link:hover::after,
    .site-nav .nav-link.active::after {
        transform: translateY(-50%);
        block-size: 18px;
    }
}

/* ───────────────────  Section helpers  ─────────────────── */
.page-section {
    padding-block: clamp(2.75rem, 5.5vw, 5rem);
    position: relative;
}
.section-heading {
    text-align: center;
    margin-inline: auto;
    margin-block-end: clamp(2rem, 4vw, 3rem);
    max-inline-size: 720px;
}
.section-heading h2 { font-size: var(--fs-3xl); margin-block-end: 0.65rem; }
.section-heading p {
    color: var(--bm-ink-soft);
    margin: 0 auto;
    font-size: var(--fs-lg);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bm-leaf-500);
    margin-block-end: 0.75rem;
}
.eyebrow::before {
    content: '';
    inline-size: 18px;
    block-size: 1.5px;
    background: currentColor;
    border-radius: 1px;
}

.section-soft   { background: var(--bm-cream-50); }
.section-forest {
    background:
        radial-gradient(circle at 8% 8%,  color-mix(in oklab, var(--bm-leaf-300) 22%, transparent), transparent 50%),
        radial-gradient(circle at 92% 92%, color-mix(in oklab, var(--bm-leaf-500) 14%, transparent), transparent 55%),
        linear-gradient(135deg, var(--bm-forest-700), var(--bm-forest-800));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.section-forest h1,
.section-forest h2,
.section-forest h3 { color: #fff; }
.section-forest .eyebrow { color: var(--bm-leaf-300); }
.section-forest p { color: rgb(255 255 255 / 86%); }

/* ───────────────────  Buttons  ─────────────────── */
.btn-bm-primary,
.btn-bm-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background var(--bm-dur) var(--bm-ease),
                color var(--bm-dur) var(--bm-ease),
                transform var(--bm-dur) var(--bm-ease),
                box-shadow var(--bm-dur) var(--bm-ease);
}
.btn-bm-primary {
    background: linear-gradient(135deg, var(--bm-forest-700) 0%, var(--bm-forest-800) 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 14%),
        0 6px 18px rgb(61 40 23 / 22%);
}
.btn-bm-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgb(255 255 255 / 14%) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform var(--bm-dur-slow) var(--bm-ease);
}
.btn-bm-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 18%),
        0 12px 28px rgb(61 40 23 / 30%);
}
.btn-bm-primary:hover::after { transform: translateX(100%); }
.btn-bm-primary:active { transform: translateY(0); }

.btn-bm-outline {
    background: transparent;
    color: var(--bm-forest-700);
    border-color: var(--bm-forest-700);
}
.btn-bm-outline:hover {
    background: var(--bm-forest-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(61 40 23 / 18%);
}

/* ───────────────────  Hero  ─────────────────── */
.hero {
    padding-block: clamp(3rem, 6vw, 5.5rem);
    border-bottom: 1px solid var(--bm-line);
    background:
        radial-gradient(circle at 85% 15%, var(--bm-leaf-tint) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, var(--bm-brown-tint) 0%, transparent 50%),
        linear-gradient(135deg, var(--bm-cream-50) 0%, #fff 70%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset-block-end: -1px;
    inset-inline: 0;
    block-size: 1px;
    background: linear-gradient(90deg, transparent, var(--bm-line), transparent);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
@container (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-block-end: 1.1rem; }
.hero-lede {
    font-size: var(--fs-lg);
    color: var(--bm-ink-soft);
    margin-block-end: 1.5rem;
    max-inline-size: 36rem;
}
.hero-meta { color: var(--bm-ink-soft); margin-block-end: 1.5rem; line-height: 1.8; }
.hero-meta a { font-weight: 600; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-image {
    background:
        radial-gradient(circle at 30% 30%, var(--bm-cream-100), var(--bm-cream-200));
    border-radius: var(--bm-radius-xl);
    aspect-ratio: 4 / 3;
    box-shadow: var(--bm-shadow-lg);
    display: grid;
    place-items: center;
    color: var(--bm-forest-700);
    font-family: var(--bm-font-display);
    font-size: 1.2rem;
    overflow: hidden;
    position: relative;
    animation: bm-float 8s ease-in-out infinite;
}
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--bm-leaf-300) 18%, transparent), transparent 60%);
    pointer-events: none;
}
.hero-image img { position: relative; z-index: 1; }

@keyframes bm-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-image { animation: none; }
}

/* ───────────────────  Card grids  ─────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
    container-type: inline-size;
}

.bm-card {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-lg);
    padding: 1.85rem;
    box-shadow: var(--bm-shadow-sm);
    position: relative;
    isolation: isolate;
    transition: transform var(--bm-dur) var(--bm-ease),
                box-shadow var(--bm-dur) var(--bm-ease),
                border-color var(--bm-dur) var(--bm-ease);
}
.bm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--bm-leaf-tint), transparent 60%);
    opacity: 0;
    transition: opacity var(--bm-dur) var(--bm-ease);
    z-index: -1;
}
.bm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bm-shadow);
    border-color: color-mix(in oklab, var(--bm-leaf-500) 35%, var(--bm-line));
}
.bm-card:hover::before { opacity: 1; }

.bm-card-icon {
    inline-size: 52px;
    block-size: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bm-leaf-50), var(--bm-leaf-100));
    color: var(--bm-forest-700);
    display: inline-grid;
    place-items: center;
    margin-block-end: 1.1rem;
    box-shadow:
        inset 0 -2px 4px rgb(61 40 23 / 6%),
        0 4px 10px color-mix(in oklab, var(--bm-leaf-500) 16%, transparent);
    transition: transform var(--bm-dur) var(--bm-spring);
}
.bm-card:hover .bm-card-icon { transform: scale(1.06) rotate(-3deg); }

.bm-card h3 { font-size: var(--fs-xl); margin-block-end: 0.5rem; }
.bm-card p { margin-block-end: 1rem; color: var(--bm-ink-soft); }

.bm-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: gap var(--bm-dur) var(--bm-ease);
}
.bm-card-link:hover { gap: 0.65rem; }

/* ───────────────────  Tag list (pills)  ─────────────────── */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.tag-list li {
    background: var(--bm-cream-50);
    color: var(--bm-forest-800);
    border: 1px solid var(--bm-line);
    border-radius: 999px;
    padding: 0.6rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background var(--bm-dur) var(--bm-ease),
                border-color var(--bm-dur) var(--bm-ease),
                transform var(--bm-dur) var(--bm-ease);
    cursor: default;
}
.tag-list li:hover {
    background: var(--bm-leaf-tint);
    border-color: color-mix(in oklab, var(--bm-leaf-500) 40%, var(--bm-line));
    transform: translateY(-2px);
}

/* ───────────────────  Logo stripe  ─────────────────── */
.logo-stripe {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2.5rem;
    margin-block-start: 1.5rem;
    color: var(--bm-muted);
    font-family: var(--bm-font-display);
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.02em;
    opacity: 0.85;
}
.logo-stripe span:not(:has-text("·")) {
    transition: color var(--bm-dur) var(--bm-ease);
}

/* ───────────────────  Contact + form  ─────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.6rem 1.25rem;
    margin: 0 0 1.25rem;
}
.contact-info dt { font-weight: 600; color: var(--bm-forest-800); }
.contact-info dd { margin: 0; color: var(--bm-ink-soft); }

.contact-form {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--bm-shadow-sm);
    container-type: inline-size;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@container (max-width: 480px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
}
.contact-form input,
.contact-form textarea {
    inline-size: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    font: inherit;
    background: var(--bm-bg);
    color: var(--bm-ink);
    transition: border-color var(--bm-dur) var(--bm-ease),
                box-shadow var(--bm-dur) var(--bm-ease),
                background var(--bm-dur) var(--bm-ease);
    margin-block-end: 1rem;
}
.contact-form textarea { min-block-size: 140px; resize: vertical; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: color-mix(in oklab, var(--bm-leaf-500) 35%, var(--bm-line)); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--bm-leaf-500);
    box-shadow: 0 0 0 4px var(--bm-glow);
}
.contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bm-forest-800);
    margin-block-end: 0.4rem;
    letter-spacing: 0.02em;
}

/* ───────────────────  Footer  ─────────────────── */
.site-footer {
    background:
        radial-gradient(circle at 0% 0%, color-mix(in oklab, var(--bm-leaf-500) 8%, transparent), transparent 50%),
        var(--bm-forest-900);
    color: rgb(255 255 255 / 78%);
    padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
    margin-block-start: 4rem;
    position: relative;
}
.site-footer a {
    color: rgb(255 255 255 / 84%);
    transition: color var(--bm-dur-fast) var(--bm-ease);
}
.site-footer a:hover { color: var(--bm-leaf-300); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-block-end: 2rem;
    border-block-end: 1px solid rgb(255 255 255 / 10%);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h5 {
    color: #fff;
    font-family: var(--bm-font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-block-end: 1.1rem;
    font-weight: 700;
}
.footer-col p,
.footer-col address {
    color: rgb(255 255 255 / 78%);
    margin: 0 0 0.75rem;
    line-height: 1.75;
    font-style: normal;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff !important;
    font-family: var(--bm-font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-block-end: 1rem;
}
.footer-brand img { inline-size: 38px; block-size: 38px; object-fit: contain; }

.footer-socials {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    gap: 0.55rem;
}
.footer-socials a {
    inline-size: 38px;
    block-size: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50%;
    transition: background var(--bm-dur) var(--bm-ease),
                border-color var(--bm-dur) var(--bm-ease),
                color var(--bm-dur) var(--bm-ease),
                transform var(--bm-dur) var(--bm-ease);
}
.footer-socials a:hover {
    background: var(--bm-leaf-300);
    border-color: var(--bm-leaf-300);
    color: var(--bm-forest-900) !important;
    transform: translateY(-3px) scale(1.05);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-block-end: 0.55rem; }
.footer-links a {
    position: relative;
    display: inline-block;
}
.footer-links a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-end: -2px;
    block-size: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--bm-dur) var(--bm-ease);
}
.footer-links a:hover::after { transform: scaleX(1); }

.footer-disclaimers {
    margin-block: 2rem 1rem;
    padding-block-start: 1.5rem;
    font-size: 0.85rem;
    color: rgb(255 255 255 / 62%);
}
.footer-disclaimers p { margin-block-end: 0.65rem; }
.footer-emergency {
    background: rgb(255 255 255 / 6%);
    border-inline-start: 3px solid var(--bm-leaf-300);
    padding: 0.95rem 1.1rem;
    border-radius: 0 8px 8px 0;
    color: rgb(255 255 255 / 88%) !important;
}
.footer-disclaimer { font-style: italic; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding-block-start: 1.5rem;
    font-size: 0.82rem;
    color: rgb(255 255 255 / 50%);
}

/* ───────────────────  Accordion (FAQs)  ─────────────────── */
.accordion-button:not(.collapsed) {
    background: var(--bm-leaf-tint) !important;
    color: var(--bm-forest-800) !important;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 4px var(--bm-glow) !important;
    border-color: transparent;
}

/* ============================================================
   Scroll-driven effects  (modern + fallback)
   ============================================================ */

/* ── Top scroll-progress bar (CSS-only via scroll() timeline) ── */
body::before {
    content: '';
    position: fixed;
    inset: 0 0 auto 0;
    block-size: 3px;
    background: linear-gradient(90deg, var(--bm-leaf-300), var(--bm-leaf-500), var(--bm-forest-700));
    transform-origin: left center;
    transform: scaleX(var(--scroll-progress, 0));
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 1px 6px color-mix(in oklab, var(--bm-leaf-500) 40%, transparent);
    transition: transform 90ms linear;
}
@supports (animation-timeline: scroll()) {
    body::before {
        animation: bm-scroll-progress linear both;
        animation-timeline: scroll(root);
        transition: none;
    }
    @keyframes bm-scroll-progress {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }
}

/* ── IntersectionObserver fallback hooks ───────────────────────
   JS adds [data-bm-reveal] + .is-in-view to anything we want to
   animate when it enters the viewport. CSS handles the visuals. */
[data-bm-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.85s var(--bm-ease-out),
        transform 0.85s var(--bm-ease-out);
    will-change: transform, opacity;
}
[data-bm-reveal].is-in-view {
    opacity: 1;
    transform: translateY(0);
}
[data-bm-reveal][data-delay="1"] { transition-delay: 80ms;  }
[data-bm-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-bm-reveal][data-delay="3"] { transition-delay: 240ms; }
[data-bm-reveal][data-delay="4"] { transition-delay: 320ms; }
[data-bm-reveal][data-delay="5"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
    [data-bm-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Native scroll-driven reveals (modern browsers) ─────────── */
@supports (animation-timeline: view()) {

    /* Sections fade-rise-scale as they cross the viewport */
    .provider-hero-card,
    .provider-section,
    .aside-card,
    .bm-card,
    .section-heading,
    .tag-list,
    .logo-stripe,
    .contact-grid > * {
        animation: bm-section-in linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 22%;
    }
    @keyframes bm-section-in {
        from {
            opacity: 0;
            transform: translateY(50px) scale(0.97);
            filter: blur(2px);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }
    }

    /* Hero card parallax-fade as user scrolls past the hero */
    .provider-hero-card {
        animation:
            bm-section-in linear both,
            bm-hero-exit linear both;
        animation-timeline:
            view(),
            view();
        animation-range:
            entry 0% cover 22%,
            exit -20% exit 80%;
    }
    @keyframes bm-hero-exit {
        from { opacity: 1; transform: translateY(0) scale(1); }
        to   { opacity: 0.55; transform: translateY(-80px) scale(0.96); }
    }

    /* Headshot zoom-in as it enters view */
    .provider-headshot img {
        animation: bm-headshot-zoom linear both;
        animation-timeline: view(--root);
        animation-range: entry 0% cover 50%;
    }
    @keyframes bm-headshot-zoom {
        from { transform: scale(1.15); filter: saturate(0.85); }
        to   { transform: scale(1);    filter: saturate(1);    }
    }

    /* Cards inside grids stagger via nth-child timing */
    .card-grid > .bm-card:nth-child(2) { animation-range: entry 4%  cover 22%; }
    .card-grid > .bm-card:nth-child(3) { animation-range: entry 8%  cover 22%; }
    .card-grid > .bm-card:nth-child(4) { animation-range: entry 12% cover 22%; }
    .card-grid > .bm-card:nth-child(5) { animation-range: entry 16% cover 22%; }
    .card-grid > .bm-card:nth-child(6) { animation-range: entry 20% cover 22%; }

    /* Sidebar cards stagger similarly */
    .provider-aside > .aside-card:nth-child(2) { animation-range: entry 6%  cover 22%; }
    .provider-aside > .aside-card:nth-child(3) { animation-range: entry 12% cover 22%; }

    @media (prefers-reduced-motion: reduce) {
        .provider-hero-card,
        .provider-section,
        .aside-card,
        .bm-card,
        .section-heading,
        .tag-list,
        .logo-stripe,
        .contact-grid > *,
        .provider-headshot img { animation: none; }
    }
}

/* ============================================================
   Provider profile (Home/Index)
   ============================================================ */

/* Hero override: less padding so the header card breathes */
.provider-hero { padding-block: clamp(2rem, 4vw, 3.5rem); }

.provider-hero-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--bm-shadow);
    background-image:
        radial-gradient(380px 200px at 100% 0%, var(--bm-leaf-tint), transparent 70%),
        radial-gradient(280px 160px at 0% 100%, var(--bm-brown-tint), transparent 70%);
}
@media (max-width: 720px) {
    .provider-hero-card { grid-template-columns: 1fr; text-align: left; }
}

.provider-headshot {
    margin: 0;
    width: clamp(140px, 17vw, 200px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow:
        0 0 0 1px var(--bm-line),
        0 16px 32px rgb(61 40 23 / 14%);
    background: var(--bm-cream-100);
}
.provider-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.provider-name {
    margin: 0 0 0.3rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.08;
}
.provider-title {
    margin: 0 0 0.25rem;
    font-family: var(--bm-font-display);
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--bm-forest-700);
}
.provider-pronouns {
    margin-inline-start: 0.5rem;
    font-size: 0.85rem;
    color: var(--bm-muted);
    font-style: normal;
}
.provider-experience {
    margin: 0 0 1.1rem;
    color: var(--bm-ink-soft);
    font-weight: 500;
}

.provider-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.provider-quick-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    background: var(--bm-cream-50);
    border: 1px solid var(--bm-line);
    border-radius: 999px;
    color: var(--bm-forest-800);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    transition: background var(--bm-dur) var(--bm-ease),
                border-color var(--bm-dur) var(--bm-ease);
}
.provider-quick-list li:hover {
    background: var(--bm-leaf-tint);
    border-color: color-mix(in oklab, var(--bm-leaf-500) 35%, var(--bm-line));
}
.provider-quick-list svg {
    flex-shrink: 0;
    color: var(--bm-leaf-500);
    margin-block-start: 2px;
}

/* ── Layout: main + sidebar ─────────────────────────────────── */
.provider-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}
@media (max-width: 960px) {
    .provider-layout { grid-template-columns: 1fr; }
}

.provider-main { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Main column: bio sections ─────────────────────────────── */
.provider-section {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--bm-shadow-sm);
    transition: box-shadow var(--bm-dur) var(--bm-ease);
}
.provider-section:hover { box-shadow: var(--bm-shadow); }
.provider-section h2 {
    font-size: var(--fs-xl);
    margin: 0 0 1rem;
    color: var(--bm-forest-800);
}

.provider-prose {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.provider-prose li {
    color: var(--bm-ink-soft);
    line-height: 1.7;
}

.provider-show-more {
    margin-block-start: 1.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bm-forest-700);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: color-mix(in oklab, var(--bm-leaf-500) 50%, transparent);
    transition: color var(--bm-dur) var(--bm-ease),
                text-decoration-color var(--bm-dur) var(--bm-ease);
}
.provider-show-more:hover {
    color: var(--bm-leaf-500);
    text-decoration-color: var(--bm-leaf-500);
}

/* Definition rows (About me / Qualification / Care details) */
.provider-defs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.provider-defs li {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 1.25rem;
    padding-block: 0.9rem;
    border-block-start: 1px solid var(--bm-line);
}
.provider-defs li:first-child { border-block-start: 0; padding-block-start: 0.25rem; }
.provider-defs strong {
    color: var(--bm-forest-800);
    font-weight: 600;
    font-size: 0.95rem;
}
.provider-defs span {
    color: var(--bm-ink-soft);
    line-height: 1.6;
}
@media (max-width: 600px) {
    .provider-defs li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ── Right sidebar ─────────────────────────────────────────── */
.provider-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    inset-block-start: calc(var(--nav-height) + 1rem);
}
@media (max-width: 960px) { .provider-aside { position: static; } }

.aside-card {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-lg);
    padding: 1.4rem;
    box-shadow: var(--bm-shadow-sm);
}

.aside-providers { display: flex; flex-direction: column; gap: 0.75rem; }
.aside-link {
    color: var(--bm-forest-700);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: color-mix(in oklab, var(--bm-leaf-500) 50%, transparent);
    transition: color var(--bm-dur) var(--bm-ease),
                text-decoration-color var(--bm-dur) var(--bm-ease);
}
.aside-link:hover { color: var(--bm-leaf-500); text-decoration-color: var(--bm-leaf-500); }

.aside-quiz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.05rem;
    background: linear-gradient(135deg, var(--bm-leaf-50), color-mix(in oklab, var(--bm-leaf-300) 22%, var(--bm-cream-50)));
    border: 1px solid color-mix(in oklab, var(--bm-leaf-500) 30%, var(--bm-line));
    border-radius: var(--bm-radius);
    color: var(--bm-forest-800);
    font-weight: 600;
    line-height: 1.35;
    transition: transform var(--bm-dur) var(--bm-ease),
                box-shadow var(--bm-dur) var(--bm-ease),
                border-color var(--bm-dur) var(--bm-ease);
}
.aside-quiz:hover {
    color: var(--bm-forest-800);
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-glow);
    border-color: var(--bm-leaf-500);
}
.aside-quiz svg {
    flex-shrink: 0;
    color: var(--bm-forest-700);
    transition: transform var(--bm-dur) var(--bm-ease);
}
.aside-quiz:hover svg { transform: translateX(3px); }

/* Booking widget */
.booking-card { padding: 1.6rem; }
.booking-header h3 {
    margin: 0;
    font-size: var(--fs-xl);
    color: var(--bm-forest-800);
}
.booking-meta {
    margin: 0.3rem 0 1.25rem;
    color: var(--bm-muted);
    font-size: 0.88rem;
}
.booking-meta span { margin-inline: 0.2rem; color: var(--bm-leaf-500); }

.booking-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-block-end: 1.1rem;
}
.booking-day {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.4rem;
    background: var(--bm-cream-50);
    border: 1.5px solid var(--bm-line);
    border-radius: var(--bm-radius);
    text-align: center;
    transition: border-color var(--bm-dur) var(--bm-ease),
                background var(--bm-dur) var(--bm-ease),
                transform var(--bm-dur) var(--bm-ease);
}
.booking-day input { position: absolute; opacity: 0; pointer-events: none; }
.booking-day:hover {
    border-color: color-mix(in oklab, var(--bm-leaf-500) 50%, var(--bm-line));
    transform: translateY(-2px);
}
.booking-day:has(input:checked),
.booking-day.is-selected {
    background: linear-gradient(135deg, var(--bm-forest-700), var(--bm-forest-800));
    border-color: var(--bm-forest-800);
    color: #fff;
    box-shadow: 0 8px 18px rgb(61 40 23 / 22%);
}
.booking-day .day-name {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: inherit;
    opacity: 0.78;
}
.booking-day .day-date {
    font-family: var(--bm-font-display);
    font-size: 1.15rem;
    margin-block-start: 0.15rem;
    color: inherit;
}
.booking-day .day-duration {
    margin-block-start: 0.3rem;
    font-size: 0.68rem;
    color: var(--bm-leaf-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.booking-day:not(:has(input:checked)):not(.is-selected) .day-duration {
    display: none;
}

.booking-submit {
    width: 100%;
    justify-content: center;
}

/* Insurance estimate */
.insurance-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--bm-forest-800);
}
.insurance-card p {
    margin: 0 0 1rem;
    color: var(--bm-ink-soft);
    font-size: 0.92rem;
}
.insurance-card .btn-bm-outline {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
    padding-block: 0.7rem;
}

/* ============================================================
   Appointment booking page
   ============================================================ */
.booking-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: start;
    max-inline-size: 1000px;
    margin-inline: auto;
}
@media (max-width: 960px) { .booking-shell { grid-template-columns: 1fr; max-inline-size: 640px; } }

.booking-form {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-lg);
    padding: clamp(1.1rem, 2vw, 1.5rem);
    box-shadow: var(--bm-shadow-sm);
    container-type: inline-size;
}

.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@container (max-width: 520px) {
    .booking-form .form-row { grid-template-columns: 1fr; }
}

.booking-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bm-forest-800);
    margin-block-end: 0.4rem;
    letter-spacing: 0.02em;
}
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form textarea {
    inline-size: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    font: inherit;
    font-size: 0.95rem;
    background: var(--bm-bg);
    color: var(--bm-ink);
    transition: border-color var(--bm-dur) var(--bm-ease),
                box-shadow var(--bm-dur) var(--bm-ease);
    margin-block-end: 0.85rem;
}
.booking-form textarea { min-block-size: 90px; resize: vertical; }
.booking-form label { margin-block-end: 0.3rem; font-size: 0.78rem; }
.booking-form input:hover,
.booking-form textarea:hover { border-color: color-mix(in oklab, var(--bm-leaf-500) 35%, var(--bm-line)); }
.booking-form input:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--bm-leaf-500);
    box-shadow: 0 0 0 4px var(--bm-glow);
}

.field-error {
    display: block;
    color: #b1453a;
    font-size: 0.82rem;
    margin-block: -0.5rem 0.75rem;
}
.booking-errors {
    background: color-mix(in oklab, #b1453a 12%, transparent);
    border: 1px solid color-mix(in oklab, #b1453a 35%, transparent);
    color: #6a2a23;
    padding: 0.85rem 1.1rem;
    border-radius: var(--bm-radius);
    margin-block-end: 1.25rem;
    font-size: 0.9rem;
}
.booking-errors ul { margin: 0; padding-inline-start: 1.2rem; }

/* ── Schedule picker (date + slot grid) ────────────────────── */
.schedule-picker {
    margin: 1rem 0;
    padding: 1rem 1.05rem 1.15rem;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-lg);
    background:
        radial-gradient(280px 140px at 0% 0%, var(--bm-leaf-tint), transparent 60%),
        var(--bm-cream-50);
}
.schedule-picker legend {
    font-family: var(--bm-font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--bm-forest-800);
    padding-inline: 0.4rem;
    margin-inline-start: -0.4rem;
}

.schedule-date {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    gap: 0.6rem;
    margin-block-end: 0.75rem;
}
.schedule-date label { margin: 0; font-size: 0.82rem; }
.schedule-date input[type="date"] {
    margin: 0;
    max-inline-size: 200px;
    padding: 0.45rem 0.7rem;
}

.schedule-slots-wrap { display: flex; flex-direction: column; gap: 0.55rem; }
.schedule-helper {
    margin: 0;
    color: var(--bm-ink-soft);
    font-size: 0.82rem;
}
.schedule-helper[data-state="loading"] { color: var(--bm-muted); font-style: italic; }
.schedule-helper[data-state="empty"]   { color: var(--bm-muted); }
.schedule-helper[data-state="error"]   { color: #b1453a; }
.schedule-helper[data-state="ready"]   { color: var(--bm-forest-700); font-weight: 600; }

.schedule-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 0.4rem;
}
.schedule-slot {
    appearance: none;
    border: 1.5px solid var(--bm-line);
    background: #fff;
    color: var(--bm-forest-800);
    border-radius: var(--bm-radius-sm);
    padding: 0.5rem 0.4rem;
    font-family: var(--bm-font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color var(--bm-dur) var(--bm-ease),
                background var(--bm-dur) var(--bm-ease),
                color var(--bm-dur) var(--bm-ease),
                transform var(--bm-dur) var(--bm-ease);
}
.schedule-slot:hover:not(:disabled) {
    border-color: var(--bm-leaf-500);
    transform: translateY(-2px);
}
.schedule-slot.is-selected {
    background: linear-gradient(135deg, var(--bm-forest-700), var(--bm-forest-800));
    border-color: var(--bm-forest-800);
    color: #fff;
    box-shadow: 0 6px 16px rgb(61 40 23 / 22%);
}
.schedule-slot.is-unavailable {
    background: var(--bm-cream-50);
    color: var(--bm-muted);
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-color: color-mix(in oklab, var(--bm-muted) 60%, transparent);
    opacity: 0.7;
}

/* ── Submit row ───────────────────────────────────────────── */
.booking-submit-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-block-start: 0.9rem;
}
.booking-fineprint {
    margin: 0;
    color: var(--bm-muted);
    font-size: 0.78rem;
    max-inline-size: 26rem;
}

/* ── Side cards ──────────────────────────────────────────── */
.booking-side {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: sticky;
    inset-block-start: calc(var(--nav-height) + 1rem);
}
@media (max-width: 960px) { .booking-side { position: static; } }
.booking-side .aside-card { padding: 1.1rem 1.15rem; }
.booking-side .aside-card h3 { font-size: 1rem; margin-block-end: 0.5rem; }
.booking-side .aside-card p,
.booking-side .aside-card ol { font-size: 0.9rem; }

.booking-steps {
    padding-inline-start: 1rem;
    margin: 0;
    color: var(--bm-ink-soft);
    line-height: 1.6;
}
.booking-steps li::marker { color: var(--bm-leaf-500); font-weight: 700; }

/* ── Confirmation page ────────────────────────────────────── */
.booking-confirmation {
    text-align: center;
    max-inline-size: 44rem;
    margin-inline: auto;
}
.confirmation-icon {
    inline-size: 76px;
    block-size: 76px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bm-leaf-300), var(--bm-leaf-500));
    color: var(--bm-forest-900);
    margin-block-end: 1.5rem;
    box-shadow:
        0 0 0 8px color-mix(in oklab, var(--bm-leaf-300) 22%, transparent),
        0 12px 28px color-mix(in oklab, var(--bm-leaf-500) 35%, transparent);
    animation: bm-tick 700ms var(--bm-spring);
}
@keyframes bm-tick {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.booking-confirmation .hero-cta { justify-content: center; }

/* ============================================================
   Payment verify / cancelled pages
   ============================================================ */
.verify-hero {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.verify-card {
    max-inline-size: 38rem;
    margin-inline: auto;
    text-align: center;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--bm-shadow);
    background-image:
        radial-gradient(420px 220px at 50% -20%, var(--bm-leaf-tint), transparent 70%),
        radial-gradient(360px 200px at 50% 120%, var(--bm-brown-tint), transparent 70%);
}
.verify-card h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    margin-block: 0.85rem 1rem;
    text-wrap: balance;
}
.verify-card .hero-lede {
    margin-inline: auto;
    text-wrap: pretty;
}

/* ── Animated state icon (success / pending / failed / neutral) ── */
.verify-icon {
    inline-size: 84px;
    block-size: 84px;
    margin-inline: auto;
    margin-block-end: 1.25rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    position: relative;
    animation: verify-pop 700ms var(--bm-spring);
}
@keyframes verify-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .verify-icon { animation: none; }
}

.verify-icon-success {
    background: linear-gradient(135deg, var(--bm-leaf-300), var(--bm-leaf-500));
    color: var(--bm-forest-900);
    box-shadow:
        0 0 0 8px color-mix(in oklab, var(--bm-leaf-300) 22%, transparent),
        0 14px 32px color-mix(in oklab, var(--bm-leaf-500) 38%, transparent);
}
.verify-icon-success .verify-icon-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid color-mix(in oklab, var(--bm-leaf-500) 40%, transparent);
    animation: verify-ripple 1.6s ease-out infinite;
    pointer-events: none;
}
@keyframes verify-ripple {
    0%   { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .verify-icon-success .verify-icon-ring { animation: none; }
}

.verify-icon-pending {
    background: var(--bm-cream-100);
    color: var(--bm-forest-700);
    border: 1px solid var(--bm-line);
    box-shadow: 0 10px 24px rgb(61 40 23 / 12%);
}
.verify-icon-pending svg {
    animation: spin-slow 3s linear infinite;
    transform-origin: center;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .verify-icon-pending svg { animation: none; }
}

.verify-icon-failed {
    background: color-mix(in oklab, #b1453a 14%, white);
    color: #b1453a;
    border: 1px solid color-mix(in oklab, #b1453a 30%, transparent);
    box-shadow: 0 10px 24px color-mix(in oklab, #b1453a 20%, transparent);
}

.verify-icon-neutral {
    background: var(--bm-cream-100);
    color: var(--bm-forest-700);
    border: 1px solid var(--bm-line);
}

/* ── Eyebrow color variants ────────────────────────────────── */
.eyebrow-pending { color: var(--bm-tan); }
.eyebrow-failed  { color: #b1453a; }
.eyebrow-neutral { color: var(--bm-muted); }

/* ── Receipt block ─────────────────────────────────────────── */
.receipt {
    margin-block: 1.75rem;
    padding: 1.1rem 1.25rem;
    background: var(--bm-cream-50);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    text-align: start;
    display: grid;
    gap: 0;
}
.receipt-row {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.25rem;
    padding-block: 0.55rem;
    border-block-start: 1px dashed var(--bm-line);
    align-items: baseline;
}
.receipt-row:first-child { border-block-start: 0; }
.receipt-row dt {
    color: var(--bm-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.receipt-row dd {
    margin: 0;
    color: var(--bm-forest-800);
    font-weight: 500;
    word-break: break-word;
}
.receipt-row dd code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    color: var(--bm-forest-700);
    background: #fff;
    border: 1px solid var(--bm-line);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}
.receipt-meta { color: var(--bm-muted); font-weight: 400; }

/* Payment status pill */
.payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--bm-cream-100);
    color: var(--bm-forest-800);
    border: 1px solid var(--bm-line);
}
.payment-pill::before {
    content: '';
    inline-size: 7px;
    block-size: 7px;
    border-radius: 50%;
    background: currentColor;
}
.payment-pill-paid {
    background: color-mix(in oklab, var(--bm-leaf-300) 28%, white);
    border-color: var(--bm-leaf-500);
    color: var(--bm-forest-800);
}
.payment-pill-unpaid {
    background: color-mix(in oklab, var(--bm-tan) 22%, white);
    border-color: var(--bm-tan);
    color: #6a4a23;
}
.payment-pill-no_payment_required {
    background: var(--bm-cream-100);
    border-color: var(--bm-line);
}

/* ── "What's next" block on the success page ──────────────── */
.verify-next {
    margin-block: 1.75rem 1.25rem;
    text-align: start;
    background: linear-gradient(180deg, #fff, var(--bm-cream-50));
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    padding: 1.25rem 1.4rem;
}
.verify-next h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    color: var(--bm-forest-800);
}

/* ── Action buttons row ────────────────────────────────────── */
.verify-actions {
    margin-block-start: 1.75rem;
    justify-content: center;
}

/* ── Reassurance list on the cancelled page ────────────────── */
.reassurance-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto;
    max-inline-size: 28rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: start;
}
.reassurance-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bm-ink-soft);
    font-size: 0.95rem;
}
.reassurance-icon {
    flex-shrink: 0;
    inline-size: 32px;
    block-size: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bm-leaf-50);
    color: var(--bm-forest-700);
    border: 1px solid color-mix(in oklab, var(--bm-leaf-500) 25%, var(--bm-line));
}

.verify-footnote {
    margin-block: 1.5rem 0;
    color: var(--bm-muted);
    font-size: 0.88rem;
}

/* ============================================================
   Clinic intro hero (homepage brand block)
   Background photograph + cream-green overlay + ken-burns pan
   ============================================================ */
.clinic-intro {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
    /* Fallback background in case the photo fails to load */
    background: linear-gradient(180deg, var(--bm-cream-50) 0%, #fff 75%);
    border-block-end: 1px solid var(--bm-line);
}

/* ── Deepest layer: the background photograph (slow ken-burns pan) ── */
.clinic-intro::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Relative to this CSS file (/css/site.css) — works under any app root */
    background: url('/images/indexbackground-top.jpeg') center 35% / cover no-repeat;
    z-index: -3;
    will-change: transform;
    animation: clinic-bg-pan 32s ease-in-out infinite alternate;
}
@keyframes clinic-bg-pan {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.10) translate3d(-1%, -2.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .clinic-intro::after { animation: none; transform: scale(1.04); }
}

/* ── Spotlight overlay: cream center → leaf-green/brown edges ── */
.clinic-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Bright cream spotlight where the text sits — keeps headings crisp */
        radial-gradient(820px 440px at 50% 42%,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(251, 246, 233, 0.55) 55%,
            rgba(251, 246, 233, 0.30) 100%),
        /* Leaf-green wash from the top corners (on-brand) */
        radial-gradient(900px 440px at 50% -10%, var(--bm-leaf-tint), transparent 60%),
        /* Warm-brown wash from the bottom */
        radial-gradient(620px 320px at 50% 120%, var(--bm-brown-tint), transparent 65%),
        /* Final integrating film so the photo never overwhelms the palette */
        linear-gradient(180deg,
            color-mix(in oklab, var(--bm-cream-50) 30%, transparent) 0%,
            color-mix(in oklab, #ffffff 22%, transparent) 100%);
    z-index: -2;
    pointer-events: none;
}

/* ── Floating leaf accents — now blended into the photo via mix-blend-mode ── */
.clinic-intro-leaf {
    position: absolute;
    inline-size: clamp(180px, 24vw, 320px);
    aspect-ratio: 1;
    background: radial-gradient(circle at 30% 30%, var(--bm-leaf-300), transparent 60%);
    opacity: 0.45;
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: soft-light;
    animation: clinic-float 14s ease-in-out infinite;
}
.clinic-intro-leaf-1 {
    top: -12%;
    inset-inline-start: -8%;
}
.clinic-intro-leaf-2 {
    bottom: -16%;
    inset-inline-end: -10%;
    animation-delay: -7s;
    background: radial-gradient(circle at 70% 70%, var(--bm-leaf-500), transparent 65%);
    opacity: 0.3;
}
@keyframes clinic-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(2%, -3%, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .clinic-intro-leaf { animation: none; }
}

.clinic-intro-inner {
    max-inline-size: 760px;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* ── "Mindsense Serenity LLC" — small caps wordmark above the title ── */
.clinic-intro-brand {
    margin: 0 0 0.4rem;
    font-family: var(--bm-font-display);
    font-weight: 700;
    color: var(--bm-forest-800);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgb(255 255 255 / 70%);
}

/* ── Main title with a chunky 3D monogram "M" ── */
.clinic-intro-title {
    font-family: var(--bm-font-display);
    font-weight: 500;
    color: var(--bm-forest-800);
    margin: 0.4rem 0 1.4rem;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    line-height: 1.1;
    text-wrap: balance;
}
.clinic-intro-title-rest {
    color: var(--bm-forest-800);
}

/* Decorative drop-cap "M" — same family, taller, with a layered drop shadow
   built from brand colors so it reads as intentional, not Wix-default grey. */
.clinic-intro-monogram {
    display: inline-block;
    font-family: var(--bm-font-display);
    font-weight: 700;
    color: var(--bm-leaf-500);
    font-size: 1.45em;
    line-height: 0.9;
    margin-inline-end: 0.04em;
    transform: translateY(0.08em);
    text-shadow:
        1px 1px 0 color-mix(in oklab, var(--bm-forest-700) 98%, transparent),
        2px 2px 0 color-mix(in oklab, var(--bm-forest-700) 92%, transparent),
        3px 3px 0 color-mix(in oklab, var(--bm-forest-700) 82%, transparent),
        4px 4px 0 color-mix(in oklab, var(--bm-forest-800) 68%, transparent),
        5px 5px 0 color-mix(in oklab, var(--bm-forest-800) 52%, transparent),
        6px 6px 0 color-mix(in oklab, var(--bm-forest-800) 38%, transparent),
        /* Halo glow against the photo */
        0 0 28px rgb(255 255 255 / 55%),
        6px 10px 22px rgb(61 40 23 / 38%);
    background: linear-gradient(180deg, var(--bm-leaf-300), var(--bm-leaf-500) 70%, var(--bm-forest-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Screen-reader only — pairs with the aria-hidden monogram to give SRs
   the clean text without "M ental Health Services" being misread. */
.visually-hidden {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ── Subtitle + description ── */
.clinic-intro-lede {
    font-family: var(--bm-font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--bm-forest-700);
    margin: 0 0 0.65rem;
    text-wrap: balance;
    text-shadow: 0 1px 2px rgb(255 255 255 / 65%);
}
.clinic-intro-desc {
    color: var(--bm-ink);
    line-height: 1.75;
    max-inline-size: 58ch;
    margin: 0 auto 2rem;
    text-wrap: pretty;
    text-shadow: 0 1px 1px rgb(255 255 255 / 55%);
}

/* ── Centered meta lines: Contact / Email / Hours ── */
.clinic-intro-meta {
    list-style: none;
    padding: 1.2rem 1.75rem;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    /* Stronger glass against the photo */
    background: rgb(255 255 255 / 72%);
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: var(--bm-radius-lg);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 70%) inset,
        0 12px 28px rgb(61 40 23 / 14%);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    max-inline-size: max-content;
}
.clinic-intro-meta li {
    font-size: 0.98rem;
    color: var(--bm-ink-soft);
    line-height: 1.6;
}
.clinic-intro-meta strong {
    font-weight: 700;
    color: var(--bm-forest-800);
    margin-inline-end: 0.35rem;
}
.clinic-intro-meta a {
    color: var(--bm-forest-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in oklab, var(--bm-leaf-500) 50%, transparent);
    transition: text-decoration-color var(--bm-dur) var(--bm-ease),
                color var(--bm-dur) var(--bm-ease);
}
.clinic-intro-meta a:hover {
    color: var(--bm-leaf-500);
    text-decoration-color: var(--bm-leaf-500);
}

/* ── CTA ── */
.clinic-intro-cta {
    margin-inline: auto;
}

/* ============================================================
   Status pills (used in appointments listing & similar tables)
   Vivid, color-coded badges with a leading status dot.
   ============================================================ */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgb(61 40 23 / 8%);
}
.status-pill::before {
    content: '';
    inline-size: 7px;
    block-size: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 28%, transparent);
}

.status-pill--paid {
    background: color-mix(in oklab, var(--bm-leaf-300) 28%, white);
    color: #2c5a17;
    border-color: color-mix(in oklab, var(--bm-leaf-500) 55%, transparent);
}
.status-pill--pending {
    background: color-mix(in oklab, var(--bm-tan) 32%, white);
    color: #7a4a14;
    border-color: color-mix(in oklab, var(--bm-tan) 65%, transparent);
}
.status-pill--unpaid {
    background: color-mix(in oklab, var(--bm-muted) 22%, white);
    color: #5a4b3d;
    border-color: color-mix(in oklab, var(--bm-muted) 50%, transparent);
}
.status-pill--cancelled {
    background: color-mix(in oklab, #d04a4a 22%, white);
    color: #8a1f1f;
    border-color: color-mix(in oklab, #d04a4a 50%, transparent);
}
.status-pill--default {
    background: var(--bm-cream-50);
    color: var(--bm-forest-700);
    border-color: var(--bm-line);
}

/* ============================================================
   Compact search-row button (matches form-control height,
   on-brand forest gradient, full-width inside `d-grid`).
   ============================================================ */
.btn-bm-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    inline-size: 100%;
    block-size: calc(2.5rem + 2px);   /* matches Bootstrap .form-control */
    padding-inline: 1rem;
    border-radius: var(--bm-radius);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bm-forest-700) 0%, var(--bm-forest-800) 100%);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 14%),
        0 4px 12px rgb(61 40 23 / 22%);
    transition: transform var(--bm-dur) var(--bm-ease),
                box-shadow var(--bm-dur) var(--bm-ease),
                background var(--bm-dur) var(--bm-ease);
}
.btn-bm-search::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgb(255 255 255 / 16%) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.55s var(--bm-ease);
}
.btn-bm-search:hover,
.btn-bm-search:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 18%),
        0 8px 18px rgb(61 40 23 / 30%);
}
.btn-bm-search:hover::after,
.btn-bm-search:focus-visible::after { transform: translateX(100%); }
.btn-bm-search:active { transform: translateY(0); }
.btn-bm-search:focus-visible {
    outline: 2px solid var(--bm-leaf-500);
    outline-offset: 2px;
}
.btn-bm-search svg { flex-shrink: 0; }

/* Compact variant — matches Bootstrap .form-control-sm / .form-select-sm
   so the filter row sits perfectly on one line. */
.btn-bm-search--sm {
    block-size: calc(1.875rem + 2px); /* ≈ 32px, same as form-control-sm */
    padding-inline: 0.75rem;
    font-size: 0.85rem;
    border-radius: var(--bm-radius-sm);
}

/* ───────────────────  Container helpers  ─────────────────── */
.container { container-type: inline-size; }

/* ───────────────────  Print hardening  ─────────────────── */
@media print {
    .utility-bar, .site-footer, header { display: none; }
    body { background: #fff; color: #000; }
}
