/**
 * RRBB Industries stylesheet
 * Scoped styles for the `industry` post type singles and the Industries hub (services post 105).
 * Enqueued in functions.php on is_singular('industry') || is_single(105), next to the calculators rule.
 * Uses theme tokens: --rrbb-primary, --rrbb-secondary, --rrbb-accent, --rrbb-light, --rrbb-lime.
 */

/* ==========================================================================
   Hero
   ========================================================================== */

.rrbb-industry-hero--image {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.rrbb-industry-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.rrbb-industry-hero--image > .container {
    position: relative;
}

.rrbb-industry-hero .rrbb-industry-cta {
    min-width: 220px;
}

/* Industry CTAs (hero and asset) use the dark brand tokens instead of the global
   white-on-green .rrbb-btn-accent, which measures ~2.2:1. Scoped to this component;
   global buttons are unchanged. White on --rrbb-secondary = 11.4:1, on --rrbb-primary = 15.4:1.
   Focus ring: white inner + navy outer so it reads on the lime band and on the image hero. */
.rrbb-industry-hero .rrbb-industry-cta,
.rrbb-industry-asset .btn {
    color: #fff;
    background-color: var(--rrbb-secondary);
    border-color: var(--rrbb-secondary);
}

.rrbb-industry-hero .rrbb-industry-cta:hover,
.rrbb-industry-asset .btn:hover,
.rrbb-industry-hero .rrbb-industry-cta:active,
.rrbb-industry-asset .btn:active {
    color: #fff;
    background-color: var(--rrbb-primary);
    border-color: var(--rrbb-primary);
}

.rrbb-industry-hero .rrbb-industry-cta:focus,
.rrbb-industry-hero .rrbb-industry-cta:focus-visible,
.rrbb-industry-asset .btn:focus,
.rrbb-industry-asset .btn:focus-visible {
    color: #fff;
    background-color: var(--rrbb-primary);
    border-color: var(--rrbb-primary);
    /* !important is scoped to this component: the theme/Bootstrap strip .btn focus rings later in the cascade. */
    outline: 3px solid #fff !important;
    outline-offset: 0 !important;
    box-shadow: 0 0 0 6px var(--rrbb-secondary) !important;
}

/* ==========================================================================
   Pain points, services, tiles
   ========================================================================== */

.rrbb-industry-pain {
    border-top: 4px solid var(--rrbb-accent);
}

.rrbb-industry-service,
.rrbb-industry-tile {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rrbb-industry-service:hover,
.rrbb-industry-service:focus-visible,
.rrbb-industry-tile:hover,
.rrbb-industry-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.rrbb-industry-tile__media img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ==========================================================================
   Proof
   ========================================================================== */

.rrbb-industry-proof__body blockquote {
    border: 0;
    margin: 0;
    padding: 0;
    font-style: italic;
}

.rrbb-industry-proof__body cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ==========================================================================
   FAQ accordion (Bootstrap 5)
   ========================================================================== */

.rrbb-industry-faq__accordion .accordion-item {
    border-color: rgba(0, 0, 0, 0.08);
}

.rrbb-industry-faq__accordion .accordion-button {
    background: #fff;
    box-shadow: none;
}

.rrbb-industry-faq__accordion .accordion-button:not(.collapsed) {
    color: var(--rrbb-accent);
    background: var(--rrbb-light);
}

.rrbb-industry-faq__accordion .accordion-button:focus {
    box-shadow: 0 0 0 2px var(--rrbb-accent);
}

/* ==========================================================================
   HubSpot form
   ========================================================================== */

.rrbb-industry-form__target {
    min-height: 320px;
}

/* ==========================================================================
   Paid mode: body.rrbb-paid-mode (from ?mode=paid or the paid_mode field)
   Hides the main nav links, aux nav buttons, the pre-footer CTA band, and footer
   link lists. Keeps the logo, phone number, and the hero CTA. Canonical is untouched.
   Verify visually on the draft; footer selectors are conservative.
   ========================================================================== */

body.rrbb-paid-mode #bcb-main-navbar .navbar-nav,
body.rrbb-paid-mode #bcb-main-navbar .navbar-toggler,
body.rrbb-paid-mode #rrbb-top-navbar,
body.rrbb-paid-mode #rrbb-center-navbar .btn,
body.rrbb-paid-mode #rrbb-center-navbar .rrbb-social-icons,
body.rrbb-paid-mode #rrbb-common-quote,
body.rrbb-paid-mode footer .menu,
body.rrbb-paid-mode footer nav,
body.rrbb-paid-mode footer .widget ul,
body.rrbb-paid-mode footer .rrbb-social-icons,
body.rrbb-paid-mode #rrbb-industry-services .btn,
body.rrbb-paid-mode #rrbb-industry-related {
    display: none !important;
}

body.rrbb-paid-mode #bcb-main-navbar {
    min-height: 0;
}

/* Mobile header chrome (< lg): hamburger toggler in the logo bar and the
   Contact Us / Client Portal / share / search band under the nav. Found on the
   390px QA pass 2026-09-16; desktop selectors above did not cover them. */
body.rrbb-paid-mode #toggler,
body.rrbb-paid-mode #rrbb-center-navbar .navbar-toggler,
body.rrbb-paid-mode #navbar-main-menu,
body.rrbb-paid-mode section.rrbb-bg-primary.d-block.d-lg-none.p-2 {
    display: none !important;
}

/* ==========================================================================
   Campaign layout (body.rrbb-industry-campaign) — Waste & Recycling, 2026-09
   Theme tokens only: --rrbb-primary (navy), --rrbb-secondary, --rrbb-accent,
   --rrbb-light, --rrbb-lime (cream). Agency palette (teal/gold, DM Sans) not
   applied: pending the client's call on campaign look vs. site theme.
   ========================================================================== */

.rrbb-campaign-h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.rrbb-campaign-hero .rrbb-campaign-sub b,
.rrbb-campaign-hero .rrbb-campaign-sub strong {
    color: #fff;
}

.rrbb-campaign-hero .rrbb-campaign-micro,
.rrbb-campaign-hero .rrbb-campaign-vcap {
    opacity: 0.85;
}

.rrbb-campaign-vslot {
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.rrbb-campaign-vslot__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rrbb-campaign-vslot__ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.rrbb-campaign-vplay {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.rrbb-campaign-vplay span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin: -12px 0 0 -8px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}

.rrbb-campaign-vplay:focus-visible {
    outline: 3px solid var(--rrbb-accent);
    outline-offset: 3px;
}

.rrbb-campaign-card {
    border-top: 4px solid var(--rrbb-accent);
}

.rrbb-campaign-card--dark {
    background: rgba(255, 255, 255, 0.06);
    border-top-color: var(--rrbb-accent);
}

.rrbb-campaign-list {
    padding-left: 1.25rem;
}

.rrbb-campaign-list li {
    margin-bottom: 0.5rem;
}

.rrbb-campaign-list li::marker {
    color: var(--rrbb-accent);
}

.rrbb-campaign-converge {
    border-left: 6px solid var(--rrbb-accent);
}

.rrbb-campaign-col {
    border-top: 4px solid var(--rrbb-secondary);
}

.rrbb-campaign-quote {
    border-left: 4px solid var(--rrbb-accent);
    padding-left: 1rem;
}

.rrbb-campaign-headshot {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.rrbb-campaign-headshot--ph {
    aspect-ratio: 1 / 1;
    border: 1px dashed var(--rrbb-secondary);
}

.rrbb-campaign-form .form-control,
.rrbb-campaign-form .form-select {
    border-color: var(--rrbb-secondary);
    border-radius: 0;
    min-height: 48px;
}

.rrbb-campaign-form .form-control:focus,
.rrbb-campaign-form .form-select:focus {
    border-color: var(--rrbb-secondary);
    box-shadow: 0 0 0 3px rgba(0, 61, 99, 0.25);
}

.rrbb-campaign-err {
    color: #b3261e;
}

.rrbb-campaign-submit {
    min-height: 48px;
}

/* Hero buttons on navy: white fill / white outline (theme styles); focus ring for both. */
.rrbb-campaign-hero .btn:focus,
.rrbb-campaign-hero .btn:focus-visible {
    outline: 3px solid var(--rrbb-accent) !important;
    outline-offset: 3px !important;
}

/* Paid mode on a campaign page: keep the primary CTA and the form; hide the secondary anchor. */
body.rrbb-paid-mode .rrbb-campaign-btn-secondary {
    display: none !important;
}
