/* =========================================================
   HOMEPAGE HERO
   Light editorial layout: eyebrow, oversized headline,
   accent rule, two theme-style buttons, client-logo strip.
   Brand: BrainStream orange (#f78d1e) on white.
========================================================= */

.wp-site-blocks > main.wp-block-group:has(.bs-home-hero) { padding-top: 0 !important; }
.bs-home-hero { width: 100%; max-width: none; margin: 0 !important; padding: 0 !important; }
.bs-home-hero,
.bs-home-hero *,
.bs-home-hero *::before,
.bs-home-hero *::after { box-sizing: border-box; }

.bs-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: min(calc(100svh - 4.4rem), 48rem);
    margin: 0;
    padding: 0;
    background:
        radial-gradient(ellipse 42% 46% at 6% 88%, rgba(247, 141, 30, .08), transparent 72%),
        radial-gradient(ellipse 38% 44% at 94% 8%, rgba(247, 141, 30, .09), transparent 72%),
        #fffdfb;
    color: #171b20;
    border-bottom: 1px solid #eeeeee;
    font-family: var(--wp--preset--font-family--inter), "Inter", system-ui, -apple-system, sans-serif;
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.4;
}

/* ---------- Background: faint grid, warm glows, panels ---------- */
.bs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.bs-hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg,
        rgba(16, 24, 40, .035) 0 .0625rem,
        transparent .0625rem 3rem);
    opacity: .5;
}
.bs-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(.5rem);
}
.bs-hero__glow--one {
    left: -20%;
    bottom: -48%;
    width: 62rem;
    height: 62rem;
    background: radial-gradient(circle, rgba(247, 141, 30, .12), transparent 64%);
}
.bs-hero__glow--two {
    right: -14%;
    top: -34%;
    width: 48rem;
    height: 48rem;
    background: radial-gradient(circle, rgba(247, 141, 30, .1), transparent 62%);
}
.bs-hero__mark {
    position: absolute;
    top: 16%;
    right: 0;
    width: min(25rem, 30vw);
    height: auto;
    opacity: .08;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ---------- Layout ---------- */
.bs-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 82.5vw;
    margin: 0 auto;
    padding: clamp(3.5rem, 9vh, 6rem) 0 2rem;
}

.bs-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

/* ---------- Eyebrow ---------- */
.bs-hero__eyebrow {
    display: flex;
    align-items: center;
    margin: 0 0 1.5rem;
    color: var(--wp--preset--color--link);
    font-family: inherit;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ---------- Headline ---------- */
.bs-hero h1 {
    display: flex;
    flex-direction: column;
    gap: .04em;
    width: 100%;
    margin: 0 0 1.5rem;
    color: #171b20;
    font-family: inherit;
    font-size: clamp(2.5rem, 4.2vw, 3.75rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.bs-service-intro,
.bs-service-name { display: block; }
.bs-service-intro { color: #171b20; }
.bs-service-name { color: #f78d1e; }

/* Thin orange rule, as in the reference layout. */
.bs-hero__rule {
    display: block;
    width: 3.5rem;
    height: .1875rem;
    margin: 0 0 1.5rem;
    background: #f78d1e;
}

/* ---------- Description ---------- */
.bs-hero__sub {
    max-width: 41rem;
    margin: 0 0 2rem;
    color: #50565d;
    font-family: inherit;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.7;
    text-wrap: pretty;
}

/* ---------- Actions ---------- */
.bs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
    margin: 0;
}
.bs-hero .wp-block-button { margin: 0; }
.bs-hero .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    text-transform: uppercase;
    text-decoration: none;
}
.bs-hero .wp-block-button__link:hover {
    background: transparent;
}
.bs-hero .wp-block-button.is-style-outline > .wp-block-button__link {
    color: #171b20;
    background: transparent;
    border-color: #171b20;
}
.bs-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.bs-hero .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
    color: #f78d1e;
    background: transparent;
    border-color: #f78d1e;
}
.bs-hero .wp-block-button__link:focus-visible {
    outline: .125rem solid #171b20;
    outline-offset: .1875rem;
}

/* ---------- Trusted-by strip ---------- */
.bs-hero__rail {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    width: 100%;
    margin: clamp(2.75rem, 7vh, 4.5rem) 0 0;
    padding: 1.1rem 1.5rem;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: .25rem;
    box-shadow: 0 1.125rem 2.75rem rgba(16, 24, 40, .06);
}
.bs-hero__rail-label {
    flex: none;
    max-width: 11.5rem;
    margin: 0;
    padding-right: 1.75rem;
    border-right: 1px solid #e8e8e8;
    color: #667085;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .01em;
    text-transform: none;
    white-space: normal;
}
.bs-hero__rail-label strong {
    display: block;
    color: #171b20;
    font-weight: 600;
}
.bs-hero__logos {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding-block: .25rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bs-hero__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: bsHeroLogoScroll 38s linear infinite;
    will-change: transform;
}
.bs-hero__track img {
    flex: none;
    width: auto;
    height: 1.45rem;
    max-width: 6.5rem;
    margin-right: 3rem;
    object-fit: contain;
    filter: grayscale(1) brightness(.35);
    opacity: .65;
    transition: opacity .3s ease, transform .3s ease;
}
.bs-hero__track img:hover { opacity: 1; transform: scale(1.05); }
.bs-hero__logos:hover .bs-hero__track { animation-play-state: paused; }
@keyframes bsHeroLogoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Entrance ---------- */
.bs-hero__copy > *,
.bs-hero__rail {
    animation: bsHeroRise .7s cubic-bezier(.22, .61, .36, 1) both;
}
.bs-hero__copy > :nth-child(1) { animation-delay: .02s; }
.bs-hero__copy > :nth-child(2) { animation-delay: .1s; }
.bs-hero__copy > :nth-child(3) { animation-delay: .18s; }
.bs-hero__copy > :nth-child(4) { animation-delay: .24s; }
.bs-hero__copy > :nth-child(5) { animation-delay: .3s; }
.bs-hero__rail { animation-delay: .4s; }
@keyframes bsHeroRise {
    from { opacity: 0; translate: 0 .75rem; }
    to { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 82.5rem) {
    .bs-hero__inner {
        max-width: none;
        margin-inline: 0;
        padding-inline: 2rem;
    }
}
@media (max-width: 56.25rem) {
    .bs-hero__mark { display: none; }
    .bs-hero__inner { padding-top: 4rem; }
}
@media (max-width: 48.8125rem) {
    .bs-hero__inner { padding-inline: 1.25rem; }
}
@media (max-width: 43.75rem) {
    .bs-hero {
        min-height: calc(100svh - 4rem);
        font-size: 1rem;
    }
    .bs-hero__inner { justify-content: flex-start; padding: 3.25rem 1.25rem 1.75rem; }
    .bs-hero__eyebrow { margin-bottom: 1.25rem; font-size: .6875rem; letter-spacing: .14em; }
    .bs-hero h1 {
        margin-bottom: 1.25rem;
        font-size: clamp(2.05rem, 9.2vw, 2.85rem);
        line-height: 1.06;
    }
    .bs-hero__rule { margin-bottom: 1.25rem; }
    .bs-hero__sub {
        margin-bottom: 1.75rem;
        font-size: 1rem;
        line-height: 1.65;
    }
    .bs-hero__actions { width: 100%; gap: .75rem; }
    .bs-hero__actions .wp-block-button,
    .bs-hero__actions .wp-block-button__link { width: 100%; }
    .bs-hero__rail {
        display: block;
        margin-top: 2.5rem;
        padding: 1.1rem 1.15rem 1.25rem;
    }
    .bs-hero__rail-label {
        max-width: none;
        margin-bottom: .9rem;
        padding: 0 0 .9rem;
        border-right: 0;
        border-bottom: 1px solid #e8e8e8;
		text-align: center;
    }
    .bs-hero__track img { height: 1.35rem; margin-right: 2.25rem; }
}
@media (max-width: 30rem) {
    .bs-hero h1 { font-size: 1.95rem; }
    .bs-hero__track img { height: 1.25rem; margin-right: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bs-hero__copy > *,
    .bs-hero__rail { animation: none !important; opacity: 1 !important; translate: none !important; }
    .bs-hero__track { animation: none; }
    .bs-hero__track img:hover { transform: none; }
}
