/* ============================================================
   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: #EBEBEB;
    border-top: 5px solid var(--color-primary, #FDBA31);
    padding: 1.25rem 0;
    text-align: center;
    margin-top: -30px;
}

/* When heading row follows the video hero or static image hero, the hero already handles the -30px pullup */
.bell-about-video-hero + .bell-about-heading-row,
.hero + .bell-about-heading-row {
    margin-top: 0;
}

.bell-about-heading-row h2 {
    font-family: var(--font-heading, sans-serif);
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* ── Who We Are intro (full-width, centred) ───────────────── */
.bell-about-intro {
    background-color: #fff;
    padding: 2rem 0 1rem;
    text-align: center;
}

.bell-about-intro__subheading {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: none;
    margin: 0 0 0.75rem;
}

.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: 0.5rem;
}

/* ── Nav buttons wrapper ──────────────────────────────────── */
.bell-about-nav-wrapper {
    background-color: #fff;
    padding: 1.25rem 0 1.75rem;
}

/* ── Nav buttons (4-in-a-row matching live site) ──────────── */
.bell-about-nav-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bell-about-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: var(--color-primary, #1a1a1a);
    color: #fff !important;
    font-family: var(--font-heading, sans-serif);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid var(--color-primary, #1a1a1a);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.34);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bell-about-nav-btn:hover,
.bell-about-nav-btn:focus {
    background: #fff;
    color: var(--color-primary, #1a1a1a) !important;
    border-color: var(--color-primary, #1a1a1a);
    text-decoration: none;
}

/* ── CEO video ────────────────────────────────────────────── */
.bell-about-ceo-video {
    background-color: #fff;
    padding: 0 0 1.5rem;
}

.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: #EBEBEB;
    margin: 30px 0 0;
}

.bell-about-section-header .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.bell-about-section-header h2 {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: none;
    text-align: left;
    margin: 0;
}

/* ── Section body (white) ─────────────────────────────────── */
.bell-about-section-body {
    background-color: #fff;
    padding: 0;
}

.bell-about-section-body__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 20px 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;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0.75rem;
}

.bell-about-section-body__text p:last-child {
    margin-bottom: 0;
}

/* Images with shadow matching live site */
.bell-about-section-body__img {
    width: 100%;
    height: 100%;
    display: block;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

/* ── CTA buttons — flat text-link, caret + text, yellow on hover */
.bell-about-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.bell-about-cta-btn {
    display: inline-block;
    padding: 0;
    background-color: transparent;
    color: #1a1a1a;
    font-family: var(--font-body, sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bell-about-cta-btn:hover,
.bell-about-cta-btn:focus {
    color: var(--color-primary, #FFC200);
    text-decoration: none;
}

/* ── Back to top — styled like the section CTA links ─────── */
.bell-about-back-top-row {
    background: #fff;
    padding: 0.75rem 0;
    text-align: center;
}

.bell-about-back-top-row--alt {
    background: #f5f5f5;
}

.bell-about-back-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    background: transparent;
    color: #1a1a1a;
    font-family: var(--font-body, sans-serif);
    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);
    text-decoration: none;
}

.bell-about-back-top svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ── Mobile responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .bell-about-nav-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .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 {
        grid-template-columns: 1fr;
    }

    .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;
    gap: 1rem;
}
.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;
}

/* Article title */
.na-title {
    background: #fff;
    padding: 1.5rem 0 0.5rem;
}
.na-title__heading {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* Subscribe button — matches pd-quote pill style, site-branded via CSS vars */
.na-subscribe-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    background-color: var(--color-btn, #fff);
    color: 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;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.na-subscribe-btn:hover,
.na-subscribe-btn:focus {
    background-color: var(--color-btn-hover, #FDBA31);
    color: var(--color-btn-text, #1a1a1a) !important;
    text-decoration: none;
}

/* Meta row */
.na-meta {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.na-meta__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    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 1rem;
}
.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 2rem;
}
.na-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Body: two-column grid */
.na-body {
    background: #fff;
    padding: 2rem 0 3.5rem;
}
.na-body__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    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;
}

/* Gallery column */
.na-body__gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.na-body__gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}
.na-gallery-figure {
    margin: 0;
}
.na-gallery-figure figcaption {
    font-size: 0.78rem;
    color: #666;
    padding: 0.3rem 0.1rem 0;
    line-height: 1.3;
}

/* Back to news */
.na-back {
    background: #f0f0f0;
    padding: 1.5rem 0;
}
.na-back__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    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: 768px) {
    .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);
        height: 160px;
    }
}

/* ── 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 .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 { margin-top: 0; }
