/* ─────────────────────────────────────────────
   Bariatric Hero Banner – bh-style.css v1.4
───────────────────────────────────────────── */

.bh-hero-wrap {
    --bh-bg:       #fdf6e3;
    --bh-dark:     #0d2b5e;
    --bh-green:    #2ecc71;
    --bh-gold:     #f5a623;
    --bh-whatsapp: #25d366;
    --bh-call:     #e74c3c;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

.bh-hero-wrap *, .bh-hero-wrap *::before, .bh-hero-wrap *::after {
    box-sizing: inherit;
}

/* ── SHARED ──────────────────────────────────*/
.bh-headline { margin: 0 0 14px; line-height: 1.15; }
.bh-hw { color: #1a1a2e; font-size: clamp(24px, 3vw, 42px); font-weight: 800; }
.bh-hg { color: var(--bh-green); font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; }

.bh-sub {
    color: #445;
    font-size: clamp(13px, 1.3vw, 16px);
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 520px;
}

/* Buttons */
.bh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, filter .18s;
    cursor: pointer;
    white-space: nowrap;
    border: none;
}
.bh-btn:hover        { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); filter: brightness(1.07); }
.bh-btn-dark         { background: var(--bh-dark);     color: #fff; }
.bh-btn-appt         { background: var(--bh-green);    color: #fff; }
.bh-btn-whatsapp     { background: var(--bh-whatsapp); color: #fff; }
.bh-btn-call         { background: var(--bh-call);     color: #fff; }
.bh-btns             { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.bh-btn-full         { width: 100%; justify-content: center; }
.bh-btns-inline      { display: flex; gap: 10px; }
.bh-btn-half         { flex: 0 0 auto; justify-content: center; }

/* Stat icon shells */
.bh-stat-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(13,43,94,.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bh-stat-icon svg { width: 20px; height: 20px; stroke: var(--bh-dark); fill: none; stroke-width: 2; }

/* ── DESKTOP ─────────────────────────────────*/
.bh-mobile  { display: none; }
.bh-desktop { display: block; }

.bh-desktop {
    background: var(--bh-bg);
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.bh-d-inner {
    display: grid;
    grid-template-columns: 1fr minmax(260px,320px) 200px;
    align-items: stretch;
    min-height: 420px;
    gap: 0;
}

.bh-d-left {
    padding: 44px 32px 40px 44px;
    display: flex; flex-direction: column; justify-content: center;
}

.bh-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}
.bh-feat { display: flex; align-items: flex-start; gap: 10px; }
.bh-feat-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: rgba(46,204,113,.15);
}
.bh-feat-icon svg  { width: 18px; height: 18px; stroke: var(--bh-green); fill: none; stroke-width: 2.2; }
.bh-feat div strong { display: block; font-size: 12px; font-weight: 700; color: #1a1a2e; margin-bottom: 1px; }
.bh-feat div span   { font-size: 11px; color: #667; line-height: 1.4; }

/* Doctor image centre */
.bh-d-center {
    position: relative;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
}
.bh-doc-img {
    position: relative; z-index: 2;
    max-height: 420px; max-width: 100%;
    object-fit: cover; object-position: top center;
    display: block; margin: 0 auto;
}
.bh-d-center .bh-doc-img {
    filter: drop-shadow(0 12px 28px rgba(0,0,0,.18));
}
.bh-d-center::before {
    content: '';
    position: absolute; bottom: -20px; left: 50%;
    transform: translateX(-50%);
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,.45);
    z-index: 1;
}
.bh-doc-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #8899aa; font-size: 13px; text-align: center;
    padding: 24px; height: 100%; min-height: 300px; z-index: 2; position: relative;
}
.bh-doc-placeholder svg { opacity: .5; }

/* Stats sidebar (desktop right) */
.bh-d-right {
    background: var(--bh-dark);
    padding: 32px 20px;
    display: flex; flex-direction: column; gap: 20px; justify-content: center;
    border-radius: 0;
}
.bh-stat-card { display: flex; align-items: center; gap: 12px; }
.bh-d-right .bh-stat-icon { background: rgba(255,255,255,.12); }
.bh-d-right .bh-stat-icon svg { stroke: #fff; }
.bh-stat-text { display: flex; flex-direction: column; }
.bh-stat-text strong { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.1; }
.bh-stat-text span   { color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.3; margin-top: 2px; }

/* ── TABLET (768-1024) ───────────────────────*/
@media (min-width: 768px) and (max-width: 1024px) {
    .bh-d-inner    { grid-template-columns: 1fr 220px 180px; }
    .bh-d-left     { padding: 32px 20px 32px 28px; }
    .bh-hw         { font-size: 28px; }
    .bh-hg         { font-size: 30px; }
    .bh-features   { grid-template-columns: 1fr; }
}

/* ── MOBILE (max 767px) ──────────────────────*/
@media (max-width: 767px) {

    .bh-desktop { display: none; }
    .bh-mobile  { display: block; }

    /* ── FULL-BLEED: fight any theme padding/margin ── */
    .bh-hero-wrap {
        /* pull wrapper to viewport edges regardless of theme container */
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .bh-mobile {
        background: var(--bh-bg);
        overflow: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    /* Top dark card – no side padding on outer, inner text gets its own */
    .bh-m-top {
        background: var(--bh-dark);
        padding: 28px 20px 0;
        display: flex; align-items: flex-end; gap: 10px;
        overflow: hidden; position: relative;
        min-height: 260px;
    }
    .bh-m-text { flex: 1; padding-bottom: 20px; }
    .bh-m-text .bh-hw  { color: #fff; font-size: 22px; }
    .bh-m-text .bh-hg  { font-size: 24px; }
    .bh-m-text .bh-sub { color: rgba(255,255,255,.75); font-size: 14.5px; max-width: 100%; }

    .bh-m-doc { flex-shrink: 0; width: 140px; display: flex; align-items: flex-end; overflow: hidden; }
    .bh-m-doc .bh-doc-img {
        width: 140px; max-height: 230px;
        object-fit: cover; object-position: top center;
        display: block;
        filter: none;
        border-radius: 0;
        box-shadow: none;
    }
    .bh-m-top::before {
        content: none;
    }

    /* Button strip – stays dark, same bg as top card, no gap */
    .bh-m-btns {
        display: flex; flex-direction: column; gap: 10px;
        padding: 14px 16px 18px;
        background: var(--bh-dark);
        margin: 0;
    }
    .bh-m-btns .bh-btns-inline { width: 100%; }
    .bh-m-btns .bh-btn-half    { flex: 1; }

    /* Stats – dark horizontal strip, all 4 items in one row */
    .bh-m-stats {
        display: flex;
        flex-direction: row;
        background: var(--bh-dark);
        margin: 0;
        padding: 14px 8px;
        gap: 0;
        justify-content: space-around;
        align-items: center;
    }
    .bh-m-stat {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 7px;
        flex: 1;
        padding: 6px 4px;
        position: relative;
    }
    .bh-m-stat + .bh-m-stat::before {
        content: '';
        position: absolute; left: 0; top: 10%; height: 80%;
        width: 1px; background: rgba(255,255,255,.15);
    }
    .bh-m-stat .bh-stat-icon {
        width: 30px; height: 30px;
        background: rgba(255,255,255,.12);
        flex-shrink: 0;
    }
    .bh-m-stat .bh-stat-icon svg { stroke: #fff; }
    .bh-m-stat-info {
        display: flex; flex-direction: column;
    }
    .bh-m-stat strong { color: #fff; font-size: 13px; font-weight: 800; line-height: 1.1; }
    .bh-m-stat span   { color: rgba(255,255,255,.65); font-size: 9px; line-height: 1.3; }
}
