/* ============================================================
   ABOUT US PAGE — bell-about-* styles
   Mirrors the live bellequipment.com About Us Elementor layout
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.bell-about-page {
    font-family: var(--font-body, sans-serif);
    color: #333;
}

/* ── Static image hero (Parts & Service, sub-pages) ──────── */
.bell-about-page .hero {
    height: var(--hero-height, 600px);
    min-height: unset;
    margin-top: -30px;
}
.bell-about-page .hero__image {
    height: 100%;
}
.bell-about-page .hero__image img {
    height: 100%;
    min-height: unset;
    object-fit: cover;
}

/* ── Video hero (top of page) ─────────────────────────────── */
.bell-about-video-hero {
    width: 100%;
    background: #000;
    overflow: hidden;
    margin-top: -30px;
}

.bell-about-video-hero__inner {
    position: relative;
    width: 100%;
    height: var(--hero-height, 600px);
    overflow: hidden;
    background: #000;
}

/* Scale the iframe to fill the fixed height without letterboxing */
.bell-about-video-hero__inner iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Minimum size to fill the container at 16:9 */
    width: max(100%, calc(var(--hero-height, 600px) * 16 / 9));
    height: max(var(--hero-height, 600px), calc(100% * 9 / 16));
    transform: translate(-50%, -50%);
    border: none;
    display: block;
    pointer-events: none; /* prevent YouTube click-through grabbing focus */
}

/* Restore pointer events once overlay is dismissed */
.bell-about-video-hero__inner iframe.is-active {
    pointer-events: auto;
}

.bell-about-video-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .4s ease;
}

.bell-about-video-hero__overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Heading band ("About Bell Equipment") ────────────────── */
.bell-about-heading-row {
    background-color: var(--color-heading-band-bg, #EBEBEB);
    border-top: 5px solid var(--color-primary, #FDBA31);
    padding: var(--space-5) 0;
    text-align: center;
    margin-top: -30px;
}

/* When heading row follows the video hero, static image hero, or hero slideshow, the hero already handles the -30px pullup */
.bell-about-video-hero + .bell-about-heading-row,
.hero + .bell-about-heading-row,
.uk-hero + .bell-about-heading-row {
    margin-top: 0;
}

/* When the heading row is the first thing in its container (e.g. a
   filtered products listing page with no hero above it), there's nothing
   for the -30px pullup to tuck under. On the group site's header, the
   -90px desktop pull-up is safe (same pattern already used by .gl-page
   in group-landing.css for the group homepage) — it bleeds the heading
   row's background up under the header without clipping the title text
   itself, since the header there sits on top with its own opaque
   background. It's only the *sticky mobile* header that's the problem
   (shorter, and the pulled-up heading would render underneath/behind
   it), so — again mirroring .gl-page — it's disabled below the 767px
   breakpoint only, not at every width. The regional/location-header
   sites (.bell-location-header) don't have that clipping problem either
   way - their header always reserves a fixed 30px below the nav that a
   hero would normally bleed into, so re-enable the -30px pullup there
   too, tucking the heading row's own padding into that same reserved
   space instead of leaving it as a dead gap. !important because .site-group
   .bell-about-heading-row (below, for the desktop hero-bleed effect)
   carries equal specificity and loads later.
   .pd-category-heading (product detail page) is called out explicitly
   because it's preceded by an empty #pd-top scroll anchor span, which
   breaks the :first-child match despite being the first visible thing
   in the page. */
.site-group .bell-about-heading-row:first-child {
    margin-top: -90px !important;
}
@media (max-width: 767px) {
    .site-group .bell-about-heading-row:first-child {
        margin-top: 0 !important;
    }
}
body:not(.site-group) .bell-about-heading-row:first-child,
body:not(.site-group) .bell-about-heading-row.pd-category-heading {
    margin-top: -30px !important;
}

.bell-about-heading-row h1,
.bell-about-heading-row h2 {
    font-family: var(--font-heading, sans-serif);
    font-size: var(--fs-h1, 2rem);
    font-weight: var(--fw-heading, 400);
    color: #1a1a1a;
    margin: 0;
}

/* ── Who We Are intro (full-width, centred) ───────────────── */
.bell-about-intro {
    background-color: #fff;
    padding: var(--space-7) 0 var(--space-4);
    text-align: center;
}

.bell-about-intro__subheading {
    font-family: var(--font-heading, sans-serif);
    font-size: var(--fs-h3, 1.75rem);
    font-weight: var(--fw-heading, 400);
    color: #1a1a1a;
    text-transform: none;
    margin: 0 0 var(--space-3);
}

.bell-about-intro__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    max-width: 720px;
    margin: 0 auto;
}

.bell-about-intro__text p {
    margin-bottom: var(--space-2);
}

/* ── Nav buttons wrapper ──────────────────────────────────── */
.bell-about-nav-wrapper {
    background-color: #fff;
    padding: var(--space-5) 0 1.75rem;
}

/* ── Nav buttons (4-in-a-row matching live site) ──────────── */
/* 4 across; a last row with fewer buttons is centred, not left-aligned */
.bell-about-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-5);
}
.bell-about-nav-buttons > * {
    flex: 0 0 calc((100% - 3 * var(--space-5)) / 4);
    min-width: 0;
}

/* Visual skin (background/border/shadow/hover) lives in the shared
   .bell-about-nav-btn rule in bell-site.css — only layout here.
   !important on font-family/font-weight/font-size: this class is used on both <a> tags (overridden by
   group.css's ".bell-kit a", class+tag specificity) and a <button> (gp-btn-dropdown__trigger, overridden
   by group.css's "button, button a, a.bell-button" !important rule) — needs !important to win either way. */
.bell-about-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px var(--space-5);
    font-family: var(--font-heading, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center;
    text-decoration: none;
}

.bell-about-nav-btn:hover,
.bell-about-nav-btn:focus {
    text-decoration: none;
}

/* ── CEO video ────────────────────────────────────────────── */
.bell-about-ceo-video {
    background-color: #fff;
    padding: 0 0 var(--space-6);
}

.bell-about-ceo-video__inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    overflow: hidden;
    background-color: #000;
}

.bell-about-ceo-video__inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Section header (grey band) ───────────────────────────── */
.bell-about-section-header {
    background-color: var(--color-heading-band-bg, #EBEBEB);
    /* No margin at all — every gap around a heading band comes from
       .bell-about-section-body__inner's own top/bottom padding (20px each)
       alone, on whichever section is adjacent. That keeps every content-to
       -band transition the same 20px, both directions, for every section.
       An earlier version of this rule kept a 32px top margin, which fixed
       the gap within a section's own header-to-content pairing but left a
       middle section's *next*-header transition still stacking that
       section's own 20px bottom padding with the next header's 32px top
       margin (52px total) — visually uneven against the now-20px gap
       above the image right next to it. */
    margin: 0;
}

.bell-about-section-header .container {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}

.bell-about-section-header h2 {
    font-family: var(--font-heading, sans-serif);
    font-size: var(--fs-h3, 1.75rem);
    font-weight: var(--fw-heading, 400);
    color: #1a1a1a;
    text-transform: none;
    text-align: center;
    margin: 0;
}

/* ── Section body (white) ─────────────────────────────────── */
.bell-about-section-body {
    background-color: #fff;
    padding: 0;
}

.bell-about-section-body__inner {
    display: grid;
    gap: var(--space-7);
    align-items: center;
    padding: var(--space-5) 0;
}

.bell-about-section-body__inner--img-text {
    grid-template-columns: 1fr 1fr;
}

.bell-about-section-body__inner--text-img {
    grid-template-columns: 1fr 1fr;
}

.bell-about-section-body__text p {
    font-size: 0.95rem;
    color: #555;
    /* line-height/margin-bottom come from .bell-prose */
}

/* Images with shadow matching live site */
.bell-about-section-body__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

/* ── CTA buttons — flat text-link, caret + text, yellow on hover */
/* Default (img-text): image is left, text is right — CTA aligns left toward the image */
.bell-about-actions {
    margin-top: var(--space-5);
    display: flex;
    justify-content: flex-start;
}

/* text-img: image is right, text is left — CTA aligns right toward the image */
.bell-about-section-body__inner--text-img .bell-about-actions {
    justify-content: flex-end;
}

/* Visual skin (background/border/shadow/hover) lives in the shared
   .bell-about-cta-btn rule in bell-site.css — only layout here.
   !important on font-family/font-weight: group.css's ".bell-kit a" rule (class+tag = higher specificity
   than this class-only selector) otherwise silently overrides the font on this <a>-based button. */
.bell-about-cta-btn {
    padding: 15px var(--space-5);
    font-family: var(--font-body, sans-serif) !important;
    font-size: 14px;
    font-weight: 600 !important;
}

/* ── Back to top — styled like the section CTA links ─────── */
.bell-about-back-top-row {
    background: #fff;
    padding: var(--space-3) 0;
    text-align: center;
}

.bell-about-back-top-row--alt {
    background: #f5f5f5;
}

/* !important on font-family/color: group.css's ".bell-kit a" rule (class+tag = higher specificity
   than this class-only selector) otherwise silently overrides the font/colour on this <a>-based link. */
.bell-about-back-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    background: transparent;
    color: #1a1a1a !important;
    font-family: var(--font-body, sans-serif) !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bell-about-back-top:hover,
.bell-about-back-top:focus {
    color: var(--color-primary, #FFC200) !important;
    text-decoration: none;
}

.bell-about-back-top svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ── Mobile responsive ────────────────────────────────────── */
@media (max-width: 1023px) {
    .bell-about-nav-buttons > * {
        flex-basis: calc((100% - var(--space-5)) / 2);
    }
}

@media (max-width: 1023px) {
    .bell-about-section-body__inner--img-text,
    .bell-about-section-body__inner--text-img {
        grid-template-columns: 1fr;
    }

    /* image always above text on mobile for text-img layout */
    .bell-about-section-body__inner--text-img > div:last-child {
        order: -1;
    }
}

@media (max-width: 767px) {
    .bell-about-nav-buttons > * {
        flex-basis: 100%;
    }

    .bell-about-heading-row h1,
    .bell-about-heading-row h2 {
        font-size: 1.5rem;
    }

    .bell-about-section-header h2 {
        font-size: 1.4rem;
    }

    .bell-about-ceo-video__inner {
        min-height: 180px;
    }
}

/* ============================================================
   NEWS ARTICLE DETAIL — na-* styles
   ============================================================ */

/* Header band */
/* News detail heading row: keeps h2 centred, button floats right */
.na-heading-row .na-heading-row__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}
.na-heading-row__spacer,
.na-heading-row__actions {
    flex: 1;
}
.na-heading-row__inner h2 {
    flex: 0 0 auto;
    text-align: center;
}
.na-heading-row__actions {
    display: flex;
    justify-content: flex-end;
    position: relative;
    /* Below the region-switcher dropdown (.sibling-switcher__dropdown, z-index: 9999)
       so the subscribe button doesn't sit on top of it when opened. */
    z-index: 1;
}

/* Article title */
.na-title {
    background: #fff;
    padding: var(--space-6) 0 var(--space-2);
}
.na-title__heading {
    font-family: var(--font-heading, sans-serif);
    font-size: var(--fs-h1, 2rem);
    font-weight: var(--fw-heading, 400);
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* News listing: subscribe button row, centred below the breadcrumbs */
.na-subscribe-row {
    background: #fff;
    padding: var(--space-6) 0 var(--space-2);
    text-align: center;
}

/* Subscribe button — pill style, site-branded via CSS vars. Inverse of the
   usual button pattern: site colour by default, white on hover. */
.na-subscribe-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem var(--space-6);
    background-color: var(--color-primary, #FFC200);
    color: var(--color-btn-hover-text, var(--color-btn-text, #1a1a1a)) !important;
    font-family: var(--font-body, sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.na-subscribe-btn:hover,
.na-subscribe-btn:focus {
    background-color: #fff;
    color: var(--color-primary, #FFC200) !important;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* Basic template body section — tighten the global .section 80px padding */
.bell-about-page .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-9);
}

/* Products / empty-state CTA button — white/border default, yellow hover */
.bell-about-intro .btn-primary {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #ccc;
}
.bell-about-intro .btn-primary:hover {
    background: var(--color-primary, #FFC200);
    border-color: var(--color-primary, #FFC200);
    color: #1a1a1a;
}

/* Meta row */
.na-meta {
    background: #fff;
    padding: var(--space-3) 0;
    border-bottom: 1px solid #eee;
}
.na-meta__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    align-items: center;
    font-size: 0.875rem;
    color: #555;
}
.na-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.na-meta__item svg { flex-shrink: 0; }
.na-meta__category {
    font-weight: 700;
    color: var(--color-primary, #1a1a1a);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* Excerpt / opening paragraph */
.na-excerpt {
    background: #fff;
    padding: 1.75rem 0 var(--space-4);
}
.na-excerpt p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* Featured image */
.na-hero-img {
    background: #fff;
    padding: 0 0 var(--space-7);
}
.na-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Portrait PDF covers (bulletins): don't stretch a portrait image to fill
   the landscape hero band — it upscales past its native resolution and
   goes blurry. Instead, show it at native size (capped) centered over a
   blurred/darkened copy of itself so the band still reads as full-width. */
.na-hero-img--portrait .container {
    padding-top: 0;
    padding-bottom: 0;
}
.na-hero-img__frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    max-height: 560px;
}
.na-hero-img__backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.65);
    transform: scale(1.15);
}
.na-hero-img__frame img {
    position: relative;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    height: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.na-hero-img__caption {
    margin: var(--space-2) 0 0;
    /* !important: group.css has a blanket "p, ul li { font-size: 16px !important }"
       rule that otherwise wins over this more specific selector on <p> elements. */
    font-size: 0.875rem !important;
    font-weight: 700;
    font-style: normal;
    color: #494949;
    line-height: 1.5;
}

/* Body: two-column grid */
.na-body {
    background: #fff;
    padding: var(--space-7) 0 3.5rem;
}
.na-body__grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: var(--space-8);
    align-items: start;
}
.na-body__grid--full {
    grid-template-columns: 1fr;
}

/* Override article-content centering inside the grid — align left with excerpt */
.na-body__text.article-content {
    max-width: none;
    margin: 0;
}
.na-body__text.article-content p {
    font-size: 1rem !important;
}

/* Gallery column */
.na-body__gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.na-body__gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}
.na-gallery-figure {
    margin: 0;
}
.na-gallery-figure figcaption {
    font-size: 0.875rem;
    font-weight: 700;
    font-style: normal;
    color: #494949;
    padding: 0.3rem 0.1rem 0;
    line-height: 1.5;
}

/* Back to news */
.na-back {
    background: #f0f0f0;
    padding: var(--space-6) 0;
}
.na-back__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading, sans-serif);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.na-back__link:hover { color: #000; }
.na-back__link svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 767px) {
    .na-heading-row__inner { flex-wrap: wrap; }
    .na-heading-row__spacer { display: none; }
    .na-heading-row__actions { flex: 0 0 100%; justify-content: center; }
    .na-title__heading { font-size: 1.4rem; }
    .na-body__grid {
        grid-template-columns: 1fr;
    }
    .na-body__gallery {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .na-body__gallery img {
        width: calc(50% - 0.5rem);
    }
}

/* ── Accordion (Basic template) ──────────────────────────────── */
.bell-accordions {
    padding: 0 0 var(--space-7);
}
.bell-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 6px;
    overflow: hidden;
}
.bell-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: #f8f8f8;
    transition: background 0.2s;
}
.bell-accordion__summary::-webkit-details-marker { display: none; }
.bell-accordion__summary::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #555;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.bell-accordion[open] > .bell-accordion__summary {
    background: var(--color-primary, #FFC200);
}
.bell-accordion[open] > .bell-accordion__summary::after {
    transform: rotate(90deg);
    border-left-color: #1a1a1a;
}
.bell-accordion__summary:hover {
    background: var(--color-primary, #FFC200);
}
.bell-accordion__body {
    padding: var(--space-4) 18px;
    border-top: 1px solid #ddd;
    background: #fff;
}
.bell-accordion__pdf {
    display: block;
    width: 100%;
    height: 700px;
    border: none;
}

/* ── Group site: deeper pull-up so content sits behind the large Bell logo ── */
.site-group .bell-about-page .hero  { margin-top: -90px; }
.site-group .bell-about-video-hero  { margin-top: -90px; }
.site-group .uk-hero                { margin-top: -90px; }
.site-group .bell-about-heading-row { margin-top: -90px; }
.site-group .bell-about-video-hero + .bell-about-heading-row,
.site-group .bell-about-page .hero  + .bell-about-heading-row,
.site-group .uk-hero + .bell-about-heading-row { margin-top: 0; }
