/* =============================================================================
   PAGE: BADAR ENGINEERING COMPANY - ENGINEERING LEGACY (badar-engineering.css)
   Scope: prefixed .bec-* only. Consumes global tokens.css. Adds no global
   rules and overrides nothing in navbar.css / footer.css / page-hero.css.

   This page represents a SEPARATE company under the Badar group, so it gets a
   distinct editorial rhythm while staying inside the BXSS visual identity
   (Inter, --primary-red, token spacing, existing button language).

   Section rhythm is deliberately varied so no two consecutive sections share
   a layout: statband -> split -> image cards -> zig-zag rows -> feature split
   -> dark technical -> large feature cards -> CTA.
   ============================================================================= */

.bec-page {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

.bec-page *,
.bec-page *::before,
.bec-page *::after {
    box-sizing: border-box;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

.bec-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.bec-section {
    padding: 45px 0;
}

/* =============================================================================
   SHARED TYPOGRAPHY
   ============================================================================= */
.bec-eyebrow {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bec-eyebrow::before {
    display: none !important;
    content: none !important;
}

.bec-display {
    margin: 0 0 20px;
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.bec-lead {
    margin: 0;
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 62ch;
}

.bec-lead + .bec-lead {
    margin-top: 18px;
}

.bec-section-head {
    max-width: 760px;
    margin-bottom: var(--space-8);
}

.bec-section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.bec-section-head--center .bec-eyebrow {
    justify-content: center;
}

.bec-section-head--center .bec-lead {
    margin-left: auto;
    margin-right: auto;
}

.bec-dark {
    background: var(--ink);
    color: var(--white);
}

.bec-dark .bec-lead {
    color: rgba(255, 255, 255, 0.66);
}

/* =============================================================================
   BUTTONS (mirrors the global BXSS button language)
   ============================================================================= */
.bec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.bec-btn--red {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: var(--shadow-red-sm);
}

.bec-btn--red:hover {
    background: var(--primary-red-hover);
    box-shadow: var(--shadow-red-md);
    transform: translateY(-2px);
}

.bec-btn--outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.bec-btn--outline:hover {
    background: var(--white);
    color: var(--ink);
    transform: translateY(-2px);
}

.bec-page a:focus-visible,
.bec-page button:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 3px;
}

/* =============================================================================
   TECHNICAL MOTIFS
   ============================================================================= */
.bec-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 70% 30%, rgba(0, 0, 0, 0.9), transparent 78%);
    pointer-events: none;
}

.bec-frame {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.bec-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.03);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bec-frame:hover img {
    transform: scale(1.04);
}

.bec-blueprint {
    position: absolute;
    inset: -24px -24px auto auto;
    width: 64%;
    height: 64%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
    background-size: 34px 34px;
    z-index: 0;
    pointer-events: none;
}

.bec-decor-number {
    position: absolute;
    top: -48px;
    left: -10px;
    font-size: clamp(5rem, 11vw, 9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    user-select: none;
}

/* =============================================================================
   1. HERO
   ============================================================================= */
.bec-hero {
    position: relative;
    background: var(--ink);
    color: var(--white);
    padding: 45px 0 0;
    overflow: hidden;
}

.bec-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: var(--space-12);
    align-items: center;
    padding-bottom: 30px;
}

/* Group affiliation badge - this is a separate company under Badar Expo */
.bec-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 8px 18px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.bec-badge i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    font-size: 10px;
}

.bec-hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 4.9vw, 4.1rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.bec-hero-copy h1 em {
    font-style: normal;
    color: var(--primary-red);
}

.bec-hero-company {
    position: relative;
    margin: 0 0 20px;
    padding-left: 18px;
    font-size: clamp(0.92rem, 1.15vw, 1rem);
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.bec-hero-company::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--primary-red);
}

.bec-hero-desc {
    margin: 0 0 var(--space-4);
    max-width: 54ch;
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.66);
}

.bec-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* HERO VISUAL */
.bec-hero-visual {
    position: relative;
}

.bec-frame--hero {
    aspect-ratio: 4 / 3.2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

/* "EST. 1965" plate anchored to the hero image */
.bec-est-plate {
    position: absolute;
    left: -26px;
    bottom: -26px;
    padding: 20px 26px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-red-lg);
}

.bec-est-plate strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.bec-est-plate span {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* HERO STAT BAND: heritage indicator (1965 -> 60+ Years -> Engineering Excellence) */
.bec-statband {
    list-style: none;
    margin: 0;
    padding: var(--space-6) 0 var(--space-8);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bec-stat {
    position: relative;
    padding-left: var(--space-3);
}

.bec-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.14);
}

.bec-stat:first-child::before {
    background: var(--primary-red);
}

.bec-stat-value {
    display: block;
    font-size: clamp(1.8rem, 2.9vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.bec-stat-label {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

/* =============================================================================
   2. ENGINEERING HERITAGE (split)
   ============================================================================= */
.bec-heritage {
    background: var(--cream);
}

.bec-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.bec-split-visual {
    position: relative;
}

.bec-split-visual .bec-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
}

.bec-markers {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.bec-marker {
    position: relative;
    padding-left: 18px;
}

.bec-marker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--primary-red);
}

.bec-marker-value {
    display: block;
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.bec-marker-label {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* =============================================================================
   3. CORE CAPABILITIES - image cards
   ============================================================================= */
.bec-cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.bec-cap-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bec-cap-card:hover,
.bec-cap-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.bec-cap-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink);
}

.bec-cap-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.03) brightness(0.95);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bec-cap-card:hover .bec-cap-media img {
    transform: scale(1.06);
}

.bec-cap-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0) 58%);
}

.bec-cap-index {
    position: absolute;
    z-index: 2;
    left: 18px;
    top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    background: var(--primary-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.bec-cap-icon {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 16px;
    font-size: 22px;
    color: var(--white);
    opacity: 0.9;
}

.bec-cap-body {
    padding: var(--space-3) var(--space-3) var(--space-4);
}

.bec-cap-body h3 {
    margin: 0 0 12px;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bec-cap-body p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.bec-cap-accent {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
    margin-bottom: 16px;
    transition: width var(--transition-smooth);
}

.bec-cap-card:hover .bec-cap-accent {
    width: 64px;
}

/* =============================================================================
   4. ZIG-ZAG FEATURE ROWS (Civil & MEP)
   ============================================================================= */
.bec-rows {
    display: grid;
    gap: var(--space-12);
}

.bec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.bec-row--reverse .bec-row-visual {
    order: -1;
}

.bec-row-visual {
    position: relative;
}

.bec-row-visual .bec-frame {
    aspect-ratio: 5 / 4;
    box-shadow: var(--shadow-lg);
}

.bec-row-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(228, 31, 38, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-red);
}

.bec-row-copy h3 {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bec-sub {
    margin: var(--space-4) 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* Technical spec list */
.bec-speclist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.bec-speclist li {
    position: relative;
    padding-left: 26px;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.bec-speclist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-red);
    border-radius: 2px;
}

.bec-speclist--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px var(--space-3);
}

/* =============================================================================
   5. POWER & CONTROL SYSTEMS - image + stacked blocks
   ============================================================================= */
.bec-power {
    background: var(--bg-light);
}

.bec-power-inner {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: var(--space-12);
    align-items: center;
}

.bec-power-visual {
    position: relative;
}

.bec-power-visual .bec-frame {
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
}

.bec-power-plate {
    position: absolute;
    right: -22px;
    bottom: -22px;
    padding: 18px 24px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.bec-power-plate strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.bec-power-plate span {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.bec-blocks {
    display: grid;
    gap: var(--space-3);
}

.bec-block {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bec-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bec-block h3 {
    margin: 0 0 14px;
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bec-block p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.bec-block .bec-sub {
    margin-top: var(--space-3);
}

/* =============================================================================
   6. INDUSTRIAL AUTOMATION (dark technical)
   ============================================================================= */
.bec-automation {
    position: relative;
    overflow: hidden;
}

.bec-automation .bec-container {
    position: relative;
    z-index: 1;
}

.bec-auto-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.bec-dark .bec-sub {
    color: var(--white);
}

.bec-dark .bec-speclist li {
    color: rgba(255, 255, 255, 0.66);
}

/* Dashboard-style control panel (pure CSS/SVG - no image dependency) */
.bec-panel {
    position: relative;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-4);
}

.bec-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-dark);
}

.bec-panel-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.bec-panel-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.bec-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-red);
    animation: becPulse 2.4s ease-in-out infinite;
}

@keyframes becPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.bec-panel-rows {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    display: grid;
    gap: 14px;
}

.bec-panel-rows li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.bec-meter {
    position: relative;
    grid-column: 1 / -1;
    height: 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.bec-meter span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: var(--radius-pill);
    background: var(--primary-red);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bec-panel-graph {
    display: block;
    width: 100%;
    height: 90px;
}

.bec-graph-line {
    fill: none;
    stroke: var(--primary-red);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
}

.bec-reveal.is-visible .bec-graph-line {
    animation: becDraw 1400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes becDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.bec-graph-grid {
    stroke: rgba(255, 255, 255, 0.09);
    stroke-width: 1;
}

/* =============================================================================
   7. HEAVY FABRICATION & EPC - large feature cards
   ============================================================================= */
.bec-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.bec-feat-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bec-feat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.bec-feat-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}

.bec-feat-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.03) brightness(0.96);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bec-feat-card:hover .bec-feat-media img {
    transform: scale(1.05);
}

.bec-feat-tag {
    position: absolute;
    left: 20px;
    bottom: 18px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: var(--primary-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bec-feat-body {
    padding: var(--space-4);
}

.bec-feat-body h3 {
    margin: 0 0 14px;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bec-feat-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.bec-feat-body p + p {
    margin-top: 16px;
}

/* =============================================================================
   8. FAQ
   -----------------------------------------------------------------------------
   Mirrors the site's existing FAQ component (services.css .svc-faq-*) exactly -
   same surface, radius, padding, type scale, rotate-on-open plus icon and
   max-height accordion transition. Re-prefixed to bec- because services.css is
   not loaded on this page, per the page-scoped prefix rule (rules.txt Sec. 2).
   ============================================================================= */
.bec-faq {
    padding: 45px 0;
    background: #f7f7f8;
}

.bec-faq-head {
    text-align: center;
}

.bec-faq-head .bec-eyebrow {
    justify-content: center;
}

.bec-faq-wrap {
    max-width: 860px;
    margin: 46px auto 0;
}

.bec-faq-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}

.bec-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 26px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15.5px;
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    text-align: left;
}

.bec-faq-q:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: -2px;
}

.bec-faq-q i {
    color: var(--primary-red);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.bec-faq-item.active .bec-faq-q i {
    transform: rotate(45deg);
}

.bec-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bec-faq-a p {
    padding: 0 26px 22px;
    margin: 0;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

/* =============================================================================
   9. CLOSING / CTA
   -----------------------------------------------------------------------------
   Mirrors services.css .svc-cta-card: a centered dark card on a white section,
   NOT a full-bleed band.
   ============================================================================= */
.bec-cta {
    padding: 35px 0 45px;
    background: var(--white);
}

.bec-cta-card {
    position: relative;
    background: var(--ink);
    color: var(--white);
    text-align: center;
    padding: 45px 30px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    max-width: 820px;
    margin: 0 auto;
    overflow: hidden;
    isolation: isolate;
}

.bec-cta-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 31, 38, 0.4), transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.bec-cta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at center, black, transparent 75%);
    z-index: -1;
    pointer-events: none;
}

.bec-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
}

.bec-cta-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.bec-cta-card h2 span {
    color: var(--primary-red);
}

.bec-cta-card p {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto 28px;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.bec-cta-btns {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.bec-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.bec-cta-btn--primary {
    background: var(--primary-red);
    color: var(--white);
}

.bec-cta-btn--primary:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red-md);
}

.bec-cta-btn--outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.bec-cta-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.bec-cta-contacts {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.03);
}

.bec-cta-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-smooth);
}

.bec-cta-contact-item:last-child {
    border-right: none;
}

.bec-cta-contact-item:hover {
    color: var(--primary-red);
}

.bec-cta-contact-item i {
    color: var(--primary-red);
    font-size: 12px;
}

/* =============================================================================
   SCROLL REVEAL
   ============================================================================= */
.bec-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bec-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media screen and (max-width: 1280px) {
    .bec-container {
        padding: 0 40px;
    }

    .bec-hero-inner,
    .bec-split,
    .bec-row,
    .bec-power-inner,
    .bec-auto-inner,
    .bec-rows {
        gap: var(--space-8);
    }
}

@media screen and (max-width: 1100px) {
    .bec-cap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bec-statband {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6) var(--space-4);
    }
}

@media screen and (max-width: 1024px) {
    .bec-container {
        padding: 0 30px;
    }

    .bec-section {
        padding: 35px 0;
    }

    .bec-hero {
        padding-top: 30px;
    }

    .bec-hero-inner,
    .bec-split,
    .bec-row,
    .bec-power-inner,
    .bec-auto-inner,
    .bec-feat-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* On one column the image should always lead the copy */
    .bec-row--reverse .bec-row-visual {
        order: 0;
    }

    .bec-split-visual .bec-frame,
    .bec-power-visual .bec-frame {
        max-width: 520px;
    }

    .bec-hero-visual {
        max-width: 620px;
    }

    .bec-decor-number {
        top: -34px;
        left: 0;
    }

    /* Core Capabilities touch slider on tablet & mobile */
    .bec-cap-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bec-cap-grid::-webkit-scrollbar {
        display: none;
    }

    .bec-cap-card {
        flex: 0 0 84%;
        max-width: 320px;
        scroll-snap-align: start;
    }
}

/* FAQ responsive - mirrors services.css FAQ enhancements */
@media screen and (max-width: 768px) {
    .bec-faq {
        padding: 60px 0;
    }

    .bec-faq-wrap {
        margin-top: 30px;
    }

    .bec-faq-item {
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    .bec-faq-q {
        padding: 18px 16px;
        font-size: 14.5px;
        line-height: 1.4;
        gap: 14px;
    }

    .bec-faq-q i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(228, 31, 38, 0.08);
        font-size: 12px;
        flex-shrink: 0;
    }

    .bec-faq-item.active .bec-faq-q i {
        background: var(--primary-red);
        color: var(--white);
    }

    .bec-faq-a p {
        padding: 0 16px 18px;
        font-size: 13.5px;
        line-height: 1.65;
    }
}

@media screen and (max-width: 640px) {
    .bec-cta-card {
        padding: 50px 24px;
    }

    .bec-cta-contacts {
        flex-direction: column;
        border-radius: 16px;
        width: 100%;
    }

    .bec-cta-contact-item {
        width: 100%;
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .bec-cta-contact-item:last-child {
        border-bottom: none;
    }
}

@media screen and (max-width: 720px) {
    .bec-container {
        padding: 0 20px;
    }

    .bec-cap-grid {
        grid-template-columns: 1fr;
    }

    .bec-statband {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .bec-speclist--split {
        grid-template-columns: 1fr;
    }

    .bec-markers {
        gap: var(--space-4);
    }

    .bec-est-plate {
        left: 0;
        bottom: -20px;
        padding: 16px 20px;
    }

    .bec-power-plate {
        right: 0;
        bottom: -18px;
    }

    .bec-block,
    .bec-feat-body,
    .bec-panel {
        padding: var(--space-3);
    }

    .bec-hero-actions .bec-btn {
        flex: 1 1 100%;
    }

    .bec-cta-card {
        padding: 36px 18px;
    }

    .bec-cta-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .bec-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 420px) {
    .bec-faq {
        padding: 46px 0;
    }

    .bec-faq-wrap {
        margin-top: 22px;
    }

    .bec-faq-q {
        padding: 15px 14px;
        font-size: 14px;
        gap: 10px;
    }

    .bec-faq-a p {
        padding: 0 14px 16px;
        font-size: 13px;
        line-height: 1.6;
    }

    .bec-cta-card h2 {
        font-size: 21px;
    }

    .bec-cta-card p {
        font-size: 13px;
    }
}

/* =============================================================================
   REDUCED MOTION
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {

    .bec-page *,
    .bec-reveal {
        animation: none !important;
        transition: none !important;
    }

    .bec-reveal {
        opacity: 1;
        transform: none;
    }

    .bec-graph-line {
        stroke-dashoffset: 0;
    }
}
