
/* =========================================================
   THE ADS AND FUNNEL — HOMEPAGE HERO
   Full-width hero, edge-aligned navbar and rounded buttons
========================================================= */

.bcc-hero {
    --hero-transition: 650ms;

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;

    width: calc(100% - 18px);
    max-width: none;
    min-width: 0;
    min-height: clamp(680px, calc(100svh - 120px), 860px);

    margin: 9px auto;
    padding: 0;
    overflow: hidden;

    border-radius: 28px;
    color: var(--bcc-color-surface);
    background: var(--bcc-color-primary-dark);
}

.bcc-hero,
.bcc-hero * {
    box-sizing: border-box;
}

/* =========================================================
   BACKGROUND
========================================================= */

.bcc-hero__background {
    position: absolute;
    z-index: 0;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;

    overflow: hidden;
    background: var(--bcc-color-primary-dark);
    pointer-events: none;
}

.bcc-hero__background-image {
    position: absolute;
    inset: -2%;

    display: block;
    width: 104%;
    height: 104%;
    max-width: none;
    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;

    filter: blur(7px);
    transform: scale(1.045);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity var(--hero-transition) cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear var(--hero-transition);

    will-change: opacity;
}

.bcc-hero__background-image.is-visible {
    opacity: 1;
    visibility: visible;

    transition:
        opacity var(--hero-transition) cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s;
}

.bcc-hero__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(12, 13, 17, 0.48) 0%,
            rgba(12, 13, 17, 0.30) 40%,
            rgba(12, 13, 17, 0.48) 75%,
            rgba(12, 13, 17, 0.66) 100%
        );

    pointer-events: none;
}

/* =========================================================
   NAVBAR — EDGE-TO-EDGE ALIGNMENT
========================================================= */

.bcc-hero .bcc-header {
    position: absolute !important;
    z-index: 10;

    top: 0 !important;
    right: 0 !important;
    left: 0 !important;

    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 14px 22px !important;

    color: var(--bcc-color-surface);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    opacity: 1;
    visibility: visible;
}

.bcc-hero .bcc-header .bcc-header__shell {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

.bcc-hero .bcc-header .bcc-header__capsule {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;
    gap: 20px;

    color: var(--bcc-color-surface);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Logo — far left */

.bcc-hero .bcc-header .bcc-header__logo {
    grid-column: 1;
    justify-self: start;

    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;

    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--bcc-color-surface) !important;
}

.bcc-hero .bcc-header .bcc-header__logo img,
.bcc-hero .bcc-header .bcc-header__logo svg {
    display: block;

    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: 40px;

    margin: 0;
    object-fit: contain;
}

/* Navigation — centered */

.bcc-hero .bcc-header .bcc-header__nav {
    grid-column: 2;
    justify-self: center;

    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: none;

    margin: 0 !important;
    padding: 0 !important;
}

/* Navbar CTA — compact pill */

.bcc-hero .bcc-header .bcc-header__cta {
    grid-column: 3;
    justify-self: end;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    margin: 0 !important;
    padding: 0 20px !important;
    gap: 9px;

    color: var(--bcc-color-primary) !important;
    background: var(--bcc-color-accent-light) !important;
    border: 1px solid var(--bcc-color-accent-light) !important;
    border-radius: 999px !important;
    box-shadow: none !important;

    font-family: var(--bcc-font-body);
    font-size: 14px !important;
    font-weight: var(--bcc-weight-semibold);
    line-height: 1 !important;

    white-space: nowrap;

    transition:
        color var(--bcc-transition-base),
        background-color var(--bcc-transition-base),
        border-color var(--bcc-transition-base);
}

.bcc-hero .bcc-header .bcc-header__cta:hover,
.bcc-hero .bcc-header .bcc-header__cta:focus-visible {
    color: var(--bcc-color-primary) !important;
    background: var(--bcc-color-accent) !important;
    border-color: var(--bcc-color-accent) !important;
}

.bcc-hero .bcc-header .bcc-header__cta-icon-box {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    height: auto !important;
    padding: 0 !important;

    color: currentColor;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Navbar links */

.bcc-hero .bcc-header .bcc-header__logo-trademark,
.bcc-hero .bcc-header .bcc-header__nav-link {
    color: var(--bcc-color-surface) !important;
}

.bcc-hero .bcc-header .bcc-header__nav-link:hover,
.bcc-hero .bcc-header .bcc-header__nav-link:focus-visible {
    color: var(--bcc-color-accent) !important;
}

.bcc-hero .bcc-header .bcc-header__chevron {
    border-color: currentColor;
}

.bcc-hero .bcc-header .bcc-header__dropdown {
    color: var(--bcc-color-primary);
}

/* =========================================================
   HERO CONTENT
========================================================= */

.bcc-hero__content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 1800px;
    min-width: 0;

    margin: 0 auto;
    padding: 150px clamp(24px, 5vw, 80px) 100px;

    text-align: center;
}

.bcc-hero__eyebrow {
    width: 100%;
    max-width: 700px;

    margin: 0 auto 30px;

    color: var(--bcc-color-surface);

    font-family: var(--bcc-font-body);
    font-size: clamp(11px, 0.85vw, 14px);
    font-weight: var(--bcc-weight-semibold);
    line-height: 1.5;
    letter-spacing: 0.04em;

    text-align: center;
    text-transform: uppercase;
}

.bcc-hero__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 1600px;
    min-width: 0;

    margin: 0 auto;

    color: var(--bcc-color-surface);

    font-family: var(--bcc-font-heading);
    font-size: clamp(64px, 6.5vw, 112px);
    font-weight: var(--bcc-weight-medium);
    line-height: 1.02;
    letter-spacing: -0.065em;

    text-align: center;
    text-wrap: balance;
}

.bcc-hero__heading-top {
    display: block;
    width: 100%;
    text-align: center;
}

.bcc-hero__heading-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0.04em auto 0;
    gap: 0.12em;

    text-align: center;
    white-space: nowrap;
}

.bcc-hero__heading-prefix,
.bcc-hero__heading-suffix {
    display: inline-block;
    flex: 0 1 auto;
    min-width: 0;
}

.bcc-hero__category {
    display: inline-block;
    flex: 0 1 auto;

    width: auto;
    min-width: 0;
    max-width: 100%;

    color: var(--bcc-color-surface);

    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;

    text-align: center;
    white-space: nowrap;

    transition: opacity var(--bcc-transition-base);
}

.bcc-hero__category.is-changing {
    opacity: 0;
}

/* Inline image — after "Your" */

.bcc-hero__inline-image {
    position: relative;

    display: inline-block;
    flex: 0 0 auto;

    width: 0.88em;
    height: 1.08em;

    margin: 0 0.025em;

    overflow: hidden;

    background: var(--bcc-color-surface-muted);
    border-radius: var(--bcc-radius-md);

    vertical-align: middle;
}

.bcc-hero__inline-image img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;

    object-fit: cover;
    object-position: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity var(--hero-transition) cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear var(--hero-transition);
}

.bcc-hero__inline-image img.is-visible {
    opacity: 1;
    visibility: visible;

    transition:
        opacity var(--hero-transition) cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s;
}

.bcc-hero__description {
    width: 100%;
    max-width: 580px;

    margin: 30px auto 0;

    color: rgba(255, 255, 255, 0.88);

    font-family: var(--bcc-font-body);
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: var(--bcc-weight-regular);
    line-height: 1.6;
    letter-spacing: -0.02em;

    text-align: center;
    text-wrap: balance;
}

/* =========================================================
   HERO BUTTONS — PILL SHAPE
========================================================= */

.bcc-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    width: 100%;
    gap: 14px;

    margin: 34px auto 0;
}

.bcc-hero__primary-action,
.bcc-hero__secondary-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 50px !important;
    height: 50px;
    padding: 0 24px !important;
    gap: 8px;

    appearance: none;
    -webkit-appearance: none;

    border: 1px solid transparent !important;
    border-radius: 999px !important;
    overflow: hidden;

    box-shadow: none !important;

    font-family: var(--bcc-font-body);
    font-size: 14px;
    font-weight: var(--bcc-weight-semibold);
    line-height: 1.4;

    text-decoration: none !important;
    white-space: nowrap;

    cursor: pointer;

    transition:
        color var(--bcc-transition-base),
        background-color var(--bcc-transition-base),
        border-color var(--bcc-transition-base);
}

/* Primary button */

.bcc-hero__primary-action {
    color: var(--bcc-color-primary) !important;
    background: var(--bcc-color-accent-light) !important;
    border-color: var(--bcc-color-accent-light) !important;
}

.bcc-hero__primary-action:hover {
    color: var(--bcc-color-primary) !important;
    background: var(--bcc-color-accent) !important;
    border-color: var(--bcc-color-accent) !important;
}

/* Secondary button */

.bcc-hero__secondary-action {
    color: var(--bcc-color-accent-light) !important;
    background: transparent !important;
    border-color: var(--bcc-color-accent-light) !important;
}

.bcc-hero__secondary-action:hover {
    color: var(--bcc-color-primary) !important;
    background: var(--bcc-color-accent-light) !important;
    border-color: var(--bcc-color-accent-light) !important;
}

.bcc-hero__action-text {
    display: inline-block;
}

.bcc-hero__action-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    color: currentColor;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.bcc-hero__action-icon-box svg {
    display: block;
    width: 14px;
    height: 14px;

    transition: transform var(--bcc-transition-base);
}

/* Upward arrow for "See How We Work" */

.bcc-hero__secondary-action .bcc-hero__action-icon-box svg {
    transform: rotate(-90deg);
}

.bcc-hero__secondary-action:hover .bcc-hero__action-icon-box svg {
    transform: rotate(-90deg) translateX(2px);
}

/* Button focus */

.bcc-hero__primary-action:focus-visible,
.bcc-hero__secondary-action:focus-visible {
    outline: 2px solid var(--bcc-color-accent);
    outline-offset: 4px;
}

/* =========================================================
   HIDE SLIDE CONTROLS
========================================================= */

.bcc-hero__bottom,
.bcc-hero__slide-count,
.bcc-hero__count-divider,
.bcc-hero__slide-controls {
    display: none !important;
}

/* =========================================================
   SHORT DESKTOP VIEWPORTS
========================================================= */

@media (min-width: 1001px) and (max-height: 760px) {
    .bcc-hero {
        min-height: 680px;
    }

    .bcc-hero__content {
        padding-top: 120px;
        padding-bottom: 65px;
    }

    .bcc-hero__heading {
        font-size: clamp(60px, 5.8vw, 88px);
    }

    .bcc-hero__description {
        margin-top: 22px;
    }

    .bcc-hero__actions {
        margin-top: 24px;
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
    .bcc-hero {
        min-height: clamp(600px, calc(88svh - 80px), 800px);
        border-radius: 24px;
    }

    .bcc-hero__content {
        padding: 125px 28px 75px;
    }

    .bcc-hero__heading {
        max-width: 900px;
        font-size: clamp(46px, 6.5vw, 68px);
        line-height: 1.05;
    }

    .bcc-hero__heading-main {
        gap: 0.1em;
    }

    .bcc-hero__inline-image {
        width: 0.82em;
        height: 1.02em;
    }

    .bcc-hero__description {
        max-width: 480px;
        margin-top: 24px;
        font-size: 17px;
    }

    .bcc-hero__actions {
        margin-top: 28px;
    }

    .bcc-hero .bcc-header {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    .bcc-hero .bcc-header .bcc-header__capsule {
        gap: 14px;
    }

    .bcc-hero .bcc-header .bcc-header__cta {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
    }
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 820px) {
    .bcc-hero .bcc-header {
        padding: 10px 16px !important;
    }

    .bcc-hero .bcc-header .bcc-header__capsule {
        display: flex !important;
        justify-content: space-between !important;
        min-height: 42px !important;
    }

    .bcc-hero .bcc-header .bcc-header__logo {
        margin-right: auto !important;
    }

    .bcc-hero .bcc-header .bcc-header__logo img,
    .bcc-hero .bcc-header .bcc-header__logo svg {
        max-height: 36px;
    }

    .bcc-hero .bcc-header .bcc-header__cta {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }

    .bcc-hero .bcc-header .bcc-header__menu-toggle {
        color: var(--bcc-color-accent-light);
        border-color: var(--bcc-color-accent-light);
    }

    .bcc-hero .bcc-header .bcc-header__menu-toggle span {
        background: var(--bcc-color-accent-light);
    }
}

/* =========================================================
   MOBILE CONTENT
========================================================= */

@media (max-width: 640px) {
    .bcc-hero {
        width: calc(100% - 12px);
        min-height: min(740px, calc(88svh - 60px));
        margin: 6px auto;
        border-radius: 18px;
    }

    .bcc-hero__background-image {
        filter: blur(5px);
        transform: scale(1.04);
    }

    .bcc-hero__content {
        padding: 110px 18px 55px;
    }

    .bcc-hero__eyebrow {
        max-width: 330px;
        margin-bottom: 22px;
        font-size: 10px;
    }

    .bcc-hero__heading {
        max-width: 520px;
        font-size: clamp(34px, 7.5vw, 48px);
        line-height: 1.07;
        letter-spacing: -0.06em;
    }

    .bcc-hero__heading-main {
        flex-wrap: wrap;
        gap: 0.06em 0.1em;
        margin-top: 0.08em;
        white-space: normal;
    }

    .bcc-hero__heading-prefix,
    .bcc-hero__heading-suffix {
        flex: 0 1 auto;
    }

    .bcc-hero__category {
        flex: 0 1 auto;
        white-space: normal;
        font-size: 0.9em;
    }

    .bcc-hero__inline-image {
        width: 0.8em;
        height: 0.98em;
        border-radius: var(--bcc-radius-sm);
    }

    .bcc-hero__description {
        max-width: 340px;
        margin-top: 22px;
        font-size: 14px;
        line-height: 1.6;
    }

    .bcc-hero__actions {
        gap: 10px;
        margin-top: 24px;
    }

    .bcc-hero__primary-action,
    .bcc-hero__secondary-action {
        min-height: 46px !important;
        height: 46px;
        padding: 0 18px !important;
        font-size: 12px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .bcc-hero__content {
        padding-right: 12px;
        padding-left: 12px;
    }

    .bcc-hero__heading {
        font-size: clamp(29px, 7.4vw, 34px);
    }

    .bcc-hero__heading-main {
        gap: 0.05em;
    }

    .bcc-hero__category {
        font-size: 0.86em;
    }

    .bcc-hero__inline-image {
        width: 0.76em;
        height: 0.94em;
    }

    .bcc-hero__description {
        max-width: 290px;
        font-size: 13px;
    }

    .bcc-hero__primary-action,
    .bcc-hero__secondary-action {
        min-height: 43px !important;
        height: 43px;
        padding: 0 14px !important;
        font-size: 11px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .bcc-hero__background-image,
    .bcc-hero__category,
    .bcc-hero__inline-image img,
    .bcc-hero__primary-action,
    .bcc-hero__secondary-action,
    .bcc-hero__action-icon-box svg {
        transition: none !important;
    }
}
