/* ================================================================
   hero-bento.css — Bento Grid Hero (light theme, RTL)
   Layout mirrors the approved hero1 mockup:
   Row 1: main text card (right) + technician photo card (left,
          with floating ISO/SASO certification bar)
   Row 2: 4 horizontal trust cards
   Row 3: feature strip with check items
   Scope: .hero-bento + body.mta-hero-light header override ONLY.
   Loaded after main.css, so equal-specificity rules here win.
   ================================================================ */

.hero-bento {
    position: relative;
    padding: 140px 0 64px;
    background:
        radial-gradient(ellipse 50% 45% at 88% 0%, rgba(190, 54, 46, 0.05), transparent 70%),
        radial-gradient(ellipse 45% 40% at 8% 100%, rgba(38, 68, 141, 0.05), transparent 70%),
        linear-gradient(180deg, #F1F5F9 0%, #FBFCFD 100%);
}

/* Slightly wider canvas than the default container so the photo
   card keeps a generous crop, like the mockup */
.hero-bento .container {
    max-width: 1320px;
}

/* ── Grid (RTL: line 1 starts at the right edge) ── */
.hero-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

/* ── Card base ── */
.hb-card {
    background: var(--surface-color, #ffffff);
    border: 1px solid var(--mta-gray-200, #E5E9EE);
    border-radius: 22px;
    box-shadow:
        0 1px 2px rgba(30, 43, 60, 0.04),
        0 16px 40px -24px rgba(30, 43, 60, 0.12);
}

/* ── Main card ── */
.hb-main {
    grid-column: 1 / 7;
    grid-row: 1;
    padding: clamp(28px, 3.5vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid #D8E2EE;
    color: var(--mta-navy-700, #3E5A80);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px -4px rgba(30, 43, 60, 0.12);
}

.hb-badge i {
    color: #3BAA5C;
    font-size: 15px;
}

.hb-title {
    font-size: clamp(1.9rem, 3.1vw + 0.5rem, 2.9rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--mta-navy-700, #3E5A80);
    margin: 22px 0 0;
}

.hb-title-line {
    display: block;
}

.hb-title-dash {
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent-color, #BE362E);
    margin: 14px 0 18px;
}

.hb-subtitle {
    font-size: 1.02rem;
    color: #5A6575;
    line-height: 1.95;
    max-width: 56ch;
    margin-bottom: 28px;
}

/* ── CTAs (pill buttons, like the mockup) ── */
.hb-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hb-btn-primary,
.hb-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 15.5px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background-color 0.2s ease, border-color 0.2s ease;
}

.hb-btn-primary {
    background: var(--accent-color, #BE362E);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px -12px rgba(190, 54, 46, 0.55);
}

.hb-btn-primary i {
    font-size: 13px;
}

.hb-btn-primary:hover {
    background: var(--accent-color-dark, #A32D26);
    color: #ffffff;
    transform: translateY(-2px);
}

.hb-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.hb-btn-wa {
    background: #ffffff;
    color: var(--mta-navy-700, #3E5A80);
    border: 1.5px solid rgba(37, 211, 102, 0.5);
}

.hb-btn-wa i {
    color: #25D366;
    font-size: 1.3rem;
}

.hb-btn-wa:hover {
    background: #F2FBF6;
    border-color: #25D366;
    color: var(--mta-navy-700, #3E5A80);
    transform: translateY(-2px);
}

.hb-btn-wa:active {
    transform: translateY(0) scale(0.98);
}

/* ── Social proof (avatars + count) ── */
.hb-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.hb-social-proof img {
    height: 46px;
    width: auto;
}

.hb-social-proof span {
    font-size: 14px;
    color: #5A6575;
}

.hb-social-proof strong {
    color: var(--mta-navy-700, #3E5A80);
    font-weight: 700;
}

/* ── Image card ── */
.hb-image {
    grid-column: 7 / 13;
    grid-row: 1;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.hb-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Auto-rotating hero images — soft crossfade, 3 images, ~2s each (6s loop).
   Pure CSS, no arrows/controls. The first image is the static base so
   no-JS and reduced-motion users still see a clean hero. */
.hb-image .hb-slide {
    opacity: 0;
    animation: hbHeroCross 6s infinite;
}

.hb-image .hb-slide:nth-child(1) { animation-delay: 0s; }
.hb-image .hb-slide:nth-child(2) { animation-delay: 2s; }
.hb-image .hb-slide:nth-child(3) { animation-delay: 4s; }

@keyframes hbHeroCross {
    0%   { opacity: 1; }
    28%  { opacity: 1; }
    36%  { opacity: 0; }
    94%  { opacity: 0; }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hb-image .hb-slide { animation: none; opacity: 0; }
    .hb-image .hb-slide:nth-child(1) { opacity: 1; }
}

/* Floating certification bar over the photo */
.hb-cert-bar {
    position: absolute;
    bottom: 16px;
    inset-inline: 16px;
    display: flex;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 12px 10px;
    box-shadow: 0 8px 24px -12px rgba(30, 43, 60, 0.25);
}

.hb-cert-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hb-cert-item + .hb-cert-item {
    border-inline-start: 1px solid #E3E9F0;
}

.hb-cert-item strong {
    color: var(--mta-navy-700, #3E5A80);
    font-size: 15px;
    font-weight: 700;
}

.hb-cert-item small {
    color: #6B7686;
    font-size: 12px;
}

/* ── Trust cards (horizontal: icon beside title, subtitle below) ── */
.hb-trust {
    grid-column: span 3;
    grid-row: 2;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-trust:hover {
    transform: translateY(-3px);
    box-shadow:
        0 2px 4px rgba(30, 43, 60, 0.05),
        0 20px 44px -24px rgba(30, 43, 60, 0.16);
}

.hb-trust-top {
    display: flex;
    flex-direction: row-reverse; /* icon sits visually left, like the mockup */
    align-items: center;
    gap: 12px;
}

.hb-trust-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hb-ic-blue { background: rgba(38, 68, 141, 0.10); color: #26448d; }
.hb-ic-red  { background: rgba(190, 54, 46, 0.09); color: var(--accent-color, #BE362E); }
.hb-ic-navy { background: rgba(62, 90, 128, 0.08); color: var(--mta-navy-700, #3E5A80); }

.hb-trust-emblem {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.hb-trust-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--mta-navy-700, #3E5A80);
    line-height: 1.5;
}

.hb-trust p {
    font-size: 0.8rem;
    color: #6B7686;
    line-height: 1.75;
    margin: 0;
    max-width: 30ch;
}

/* ── Feature strip ── */
.hb-strip {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: stretch;
    padding: 6px 0;
}

.hb-strip-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mta-navy-700, #3E5A80);
}

.hb-strip-item + .hb-strip-item {
    border-inline-start: 1px solid #EAEEF3;
}

.hb-strip-item i {
    color: #26448d;
    font-size: 16px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-bento {
        padding: 110px 0 48px;
    }

    .hb-main,
    .hb-image {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .hb-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    /* Trust cards: 2 × 2 */
    .hb-trust {
        grid-column: span 6;
        grid-row: auto;
    }

    /* Strip: 2 × 2 */
    .hb-strip {
        grid-row: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 8px;
        gap: 2px;
    }

    .hb-strip-item + .hb-strip-item {
        border-inline-start: none;
    }
}

@media (max-width: 575px) {
    .hero-bento-grid {
        gap: 12px;
    }

    .hb-card {
        border-radius: 18px;
    }

    .hb-ctas {
        width: 100%;
    }

    .hb-btn-primary,
    .hb-btn-wa {
        flex: 1 1 auto;
        justify-content: center;
    }

    .hb-image {
        aspect-ratio: 4 / 3;
    }

    .hb-trust {
        padding: 18px 14px;
    }

    .hb-strip {
        grid-template-columns: 1fr;
    }

    .hb-strip-item {
        justify-content: flex-start;
    }
}
