/* BizHub Landing — Responsive layer v11
   Mobile  ≤767 · Tablet 768–991 · Desktop ≥992 · Wide ≥1200 */

:root {
    --bh-safe-top: env(safe-area-inset-top, 0px);
    --bh-safe-bottom: env(safe-area-inset-bottom, 0px);
    --bh-gutter: clamp(1rem, 3.5vw, 1.5rem);
    --bh-section-y: clamp(3rem, 8vw, 6rem);
}

html {
    scroll-padding-top: calc(var(--bh-nav-h) + var(--bh-safe-top) + 8px);
}

body.bh-landing {
    padding-bottom: var(--bh-safe-bottom);
}

/* ── Logo PNG — as-is, no frame clash ── */
.bh-brand__mark {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.bh-nav.is-scrolled .bh-brand__mark,
.bh-nav-shell.is-scrolled .bh-brand__mark {
    background: transparent;
    border: none;
    box-shadow: none;
}

.bh-nav-shell.is-scrolled .bh-brand__name {
    color: var(--bh-text);
}

.bh-nav-shell.is-scrolled .bh-brand__en {
    color: var(--bh-text-muted);
}

.bh-brand--nav .bh-brand__img {
    height: clamp(36px, 8vw, 44px);
    width: auto;
    max-width: clamp(36px, 10vw, 52px);
}

.bh-brand__frame {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 72%;
    padding: 0;
}

.bh-brand--hero .bh-brand__img {
    width: 100%;
    height: auto;
    max-width: min(220px, 70%);
    max-height: none;
    object-fit: contain;
}

/* ── Layout shell ── */
.bh-landing .container {
    padding-inline: var(--bh-gutter);
}

/* ── Desktop nav bar ── */
@media (min-width: 992px) {
    :root { --bh-nav-h: 78px; }

    .bh-nav-shell {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(0.5rem, 2vw, 1.5rem);
        max-width: min(1320px, 100%);
        margin-inline: auto;
        padding-inline: clamp(1rem, 3vw, 2rem);
        height: calc(var(--bh-nav-h) + var(--bh-safe-top));
    }

    .bh-nav {
        flex: 0 0 auto;
        width: auto;
    }

    .bh-nav__inner.container {
        width: auto;
        max-width: none;
        padding-inline: 0 !important;
        margin: 0;
    }

    .bh-nav__toggle {
        display: none !important;
    }

    .bh-nav__collapse {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
    }

    .bh-nav__links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.1rem;
    }

    .bh-nav__link {
        font-size: clamp(0.78rem, 0.9vw, 0.88rem);
        padding: 0.45rem clamp(0.5rem, 0.9vw, 0.85rem);
        white-space: nowrap;
    }

    .bh-nav__actions {
        flex-shrink: 0;
    }

    .bh-nav__actions .bh-btn {
        font-size: clamp(0.78rem, 0.85vw, 0.9rem);
        padding: 0.55rem clamp(0.85rem, 1.2vw, 1.3rem);
    }

    .bh-mobile-dock {
        display: none !important;
    }

    /* Hero desktop */
    .bh-hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: calc(var(--bh-nav-h) + 2.5rem + var(--bh-safe-top)) 0 5rem;
    }

    .bh-hero__content .row {
        align-items: center;
    }

    .bh-hero__subtitle,
    .bh-hero__lead {
        text-align: start;
        margin-inline: 0;
        max-width: 36rem;
    }

    .bh-hero__badge {
        margin-inline: 0;
    }

    .bh-hero__title {
        text-align: start;
    }

    .bh-hero__actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .bh-hero__actions .bh-btn {
        width: auto;
    }

    .bh-hero__stats {
        max-width: 420px;
        margin-inline: 0;
    }

    .bh-hero__visual {
        display: flex;
        justify-content: center;
    }

    .bh-brand--hero .bh-logo-stage {
        width: min(380px, 100%);
    }

    .bh-section__head {
        text-align: start;
    }

    .bh-footer .col-md-6:first-child {
        justify-content: flex-start;
    }
}

/* ── Tablet ── */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root { --bh-nav-h: 68px; }

    .bh-hero {
        min-height: auto;
        padding: calc(var(--bh-nav-h) + 1.75rem + var(--bh-safe-top)) 0 3.5rem;
    }

    .bh-hero__content .row {
        align-items: center;
    }

    .bh-hero__title {
        font-size: clamp(1.85rem, 4vw, 2.4rem);
        text-align: start;
    }

    .bh-hero__subtitle,
    .bh-hero__lead {
        text-align: start;
        margin-inline: 0;
        font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    }

    .bh-hero__badge {
        margin-inline: 0;
        display: inline-flex;
    }

    .bh-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bh-hero__actions .bh-btn {
        width: auto;
        flex: 1 1 auto;
        min-width: 160px;
    }

    .bh-hero__stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        margin-inline: 0;
    }

    .bh-hero__visual {
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }

    .bh-brand--hero {
        gap: 1rem;
    }

    .bh-brand--hero .bh-logo-stage {
        width: min(260px, 100%);
    }

    .bh-brand--hero .bh-brand__img {
        max-width: min(180px, 55%);
    }

    .bh-brand__copy--hero {
        text-align: center;
    }

    .bh-section {
        padding: var(--bh-section-y) 0;
    }

    .bh-section__head {
        text-align: center;
        max-width: 640px;
        margin-inline: auto;
    }

    .bh-intro-block {
        padding: clamp(1.5rem, 3vw, 2.25rem);
    }

    .bh-tech-pills {
        justify-content: center;
    }

    .bh-cta__actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .bh-cta__actions .bh-btn {
        width: auto;
        min-width: 180px;
    }

    .bh-footer {
        padding-bottom: calc(1.5rem + var(--bh-safe-bottom));
    }
}

/* ── Mobile ── */
@media (max-width: 767.98px) {
    :root { --bh-nav-h: 60px; }

    body.bh-landing.has-dock {
        padding-bottom: calc(56px + var(--bh-safe-bottom));
    }

    .bh-nav-shell {
        height: calc(var(--bh-nav-h) + var(--bh-safe-top));
    }

    .bh-nav__inner.container {
        padding-inline: max(0.85rem, var(--bh-gutter)) !important;
    }

    .bh-hero {
        min-height: auto;
        padding: calc(var(--bh-nav-h) + 1rem + var(--bh-safe-top)) 0 3.25rem;
    }

    .bh-hero__visual {
        margin-bottom: 0.25rem;
    }

    .bh-brand--hero .bh-logo-stage {
        width: min(240px, 78vw);
        margin-inline: auto;
    }

    .bh-brand--hero .bh-brand__img {
        max-width: min(160px, 62%);
    }

    .bh-brand__copy--hero .bh-brand__name {
        font-size: clamp(1.35rem, 5vw, 1.6rem);
    }

    .bh-brand__copy--hero .bh-brand__tag {
        font-size: 0.72rem;
        padding-inline: 0.5rem;
    }

    .bh-hero__title {
        font-size: clamp(1.65rem, 7vw, 2rem);
        text-align: center;
        line-height: 1.2;
    }

    .bh-hero__subtitle {
        text-align: center;
        margin-inline: auto;
        margin-bottom: 1rem;
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .bh-hero__lead {
        display: none;
    }

    .bh-hero__badge {
        display: flex;
        margin-inline: auto;
        font-size: 0.72rem;
        margin-bottom: 1rem;
    }

    .bh-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .bh-hero__actions .bh-btn {
        width: 100%;
        min-height: 48px;
    }

    .bh-hero__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
        margin-top: 1.5rem;
    }

    .bh-stat-pill {
        padding: 0.65rem 0.35rem;
        text-align: center;
    }

    .bh-stat-pill__val {
        font-size: 1.2rem;
    }

    .bh-stat-pill__label {
        font-size: 0.58rem;
        line-height: 1.25;
    }

    .bh-scroll-hint {
        display: none;
    }

    .bh-section {
        padding: clamp(2.75rem, 10vw, 3.5rem) 0;
    }

    .bh-section__head {
        text-align: center;
        margin-bottom: 1.75rem;
    }

    .bh-section__title {
        font-size: clamp(1.4rem, 5.5vw, 1.75rem);
    }

    .bh-section__desc {
        font-size: 0.92rem;
    }

    .bh-intro-block {
        padding: 1.35rem 1.25rem;
    }

    .bh-intro-block__p {
        font-size: 0.92rem;
        line-height: 1.85;
    }

    .bh-service-card,
    .bh-solution-card,
    .bh-platform-card,
    .bh-vm-card {
        padding: 1.35rem;
    }

    .bh-service-card__num {
        font-size: 2rem;
    }

    .bh-tech-block {
        padding: 1.35rem;
    }

    .bh-tech-pills {
        justify-content: center;
    }

    .bh-quote-card {
        padding: 1.35rem;
        text-align: center;
    }

    .bh-cta {
        padding: 3.25rem 0 calc(4.5rem + var(--bh-safe-bottom));
    }

    .bh-cta__title {
        font-size: clamp(1.45rem, 5vw, 1.85rem);
    }

    .bh-cta__actions {
        flex-direction: column;
        align-items: stretch;
        padding-inline: 0;
    }

    .bh-cta__actions .bh-btn {
        width: 100%;
    }

    .bh-footer {
        padding: 1.75rem 0 calc(4.75rem + var(--bh-safe-bottom));
        text-align: center;
    }

    .bh-footer .col-md-6 {
        text-align: center !important;
    }

    .bh-footer .col-md-6:first-child {
        flex-direction: column;
        align-items: center;
    }

    .bh-modal .modal-body {
        padding: 1.75rem 1.25rem !important;
    }

    .bh-orb--1 { width: 220px; height: 220px; }
    .bh-orb--2 { width: 180px; height: 180px; }
    .bh-orb--3 { display: none; }

    /* Cards: disable hover lift on touch */
    .bh-service-card:hover,
    .bh-platform-card:hover,
    .bh-vm-card:hover,
    .bh-solution-card:hover {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .bh-hero__stats {
        grid-template-columns: 1fr;
        max-width: 240px;
        margin-inline: auto;
    }

    .bh-stat-pill {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: start;
        padding: 0.75rem 1rem;
    }

    .bh-stat-pill__label {
        margin-top: 0;
    }

    .bh-brand--nav .bh-brand__name {
        font-size: 0.85rem;
    }
}

/* ── Wide screens ── */
@media (min-width: 1200px) {
    .bh-hero__title {
        font-size: clamp(2.75rem, 3.5vw, 3.6rem);
    }

    .bh-section__title {
        font-size: clamp(2rem, 2.5vw, 2.65rem);
    }

    .bh-brand--hero .bh-logo-stage {
        width: min(420px, 100%);
    }

    .bh-brand--hero .bh-brand__img {
        max-width: min(260px, 75%);
    }
}

/* ── Touch / reduced motion ── */
@media (hover: none), (pointer: coarse) {
    [data-tilt] {
        transform: none !important;
    }

    .bh-card:hover,
    .bh-service-card:hover,
    .bh-platform-card:hover {
        transform: none;
        box-shadow: inherit;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bh-hero__mesh,
    .bh-brand--hero .bh-brand__img,
    .bh-logo-stage__ring,
    .bh-orb {
        animation: none !important;
    }
}
