﻿/* ==========================================================================
   Barza Fire Systems — 2026 redesign
   Font: Calibri (strictly enforced)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --navy: #001a33;
    --navy-2: #06142b;
    --red: #e63946;
    --orange: #ff6b35;
    --yellow: #ffb703;
    --accent-red: #d9381e;
    --accent-red-bright: #ff5a3c;
    --fire: linear-gradient(135deg, #e63946 0%, #ff6b35 55%, #ffb703 100%);
    --ink: #0a0a14;
    --text: #1f2937;
    --muted: #6b7280;
    --light: #f6f7fb;
    --silver: #e5e7eb;
    --silver-dark: #c0c0c0;
    --line: rgba(0, 0, 0, 0.08);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --gutter: clamp(20px, 5vw, 72px);
    --radius: 24px;
    --radius-sm: 14px;
    --hero-radius: clamp(96px, 13vw, 220px);
    --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 14px 36px rgba(16, 24, 40, 0.1);
    --shadow-lg: 0 28px 60px rgba(16, 24, 40, 0.18);
    /* ✅ FORCED CALIBRI FONT */
    --font: Calibri, "Segoe UI", Tahoma, Arial, sans-serif;
    --font-ar: Calibri, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font) !important;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

html[lang="ar"] body, html[lang="ku"] body {
    font-family: var(--font-ar) !important;
}

/* ✅ Ensure ALL elements inherit Calibri */
h1, h2, h3, h4, h5, h6, p, ul, li, a, span, div, button, input, textarea, select {
    font-family: var(--font) !important;
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit !important;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* Arabic/Kurdish: letter-spacing and forced uppercase break joined letters */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after {
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
}

.text-red {
    color: var(--accent-red) !important;
    font-weight: 800 !important;
}

/* Scroll progress */
.progress {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 3px;
    z-index: 300;
    background: var(--fire);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    pointer-events: none;
}

[dir="rtl"] .progress {
    transform-origin: right;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px var(--gutter);
    transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
    /* ✅ Header stays LTR in every language so brand + nav never swap sides */
    direction: ltr !important;
}

.brand {
    display: inline-block;
    line-height: 0;
    transition: transform 0.2s ease;
}

    .brand:hover {
        transform: scale(1.04);
    }

    .brand img {
        height: 42px;
        width: auto;
        transition: height 0.4s var(--ease);
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    }

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding-block: 10px;
}

    .site-header.is-scrolled .brand img {
        filter: none;
        height: 38px;
    }

/* ============================================================
   ✅ HEADER NAV — layout locked to LTR in every language.
   Only the *text inside each link* flips to RTL.
   This is what keeps the .sub-nav pill from jumping to the left.
   ============================================================ */
.header-nav,
[dir="rtl"] .header-nav {
    display: none;
    flex-direction: column;
    align-items: flex-end; /* pill always pinned to the right edge */
    gap: 24px;
    direction: ltr !important; /* ✅ never flips */
}

/* ============================================================
   ✅ SUB NAV — same left-to-right order in EN / KU / AR.
   Only the text inside each <a> renders RTL for Arabic/Kurdish.
   ============================================================ */
.sub-nav,
[dir="rtl"] .sub-nav {
    display: inline-flex;
    align-items: center;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 16px;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--silver);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.4s var(--ease);
    direction: ltr !important;
}

.site-header.is-scrolled .sub-nav {
    background: var(--silver-dark);
}

/* Every flex child keeps its LTR slot */
.sub-nav > a,
.sub-nav > .lang-dropdown,
[dir="rtl"] .sub-nav > a,
[dir="rtl"] .sub-nav > .lang-dropdown {
    direction: ltr !important;
    flex: 0 0 auto;
}

.sub-nav a, .primary-nav a {
    position: relative;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.sub-nav a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Only the words inside each link flip — never the row order */
[dir="rtl"] .sub-nav a,
[dir="rtl"] .primary-nav a {
    direction: rtl !important;
    unicode-bidi: isolate; /* keeps RTL text self-contained */
    text-align: center;
}

.sub-nav a:hover {
    color: var(--ink);
}

/* ============================================================
   ✅ PRIMARY NAV — layout also locked to LTR
   ============================================================ */
.primary-nav,
[dir="rtl"] .primary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 28px;
    padding-inline: 6px;
    direction: ltr !important;
}

    .primary-nav a {
        font-size: 0.85rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        padding-block: 4px 6px;
    }

        .primary-nav a::after {
            content: "";
            position: absolute;
            inset-inline: 0;
            bottom: 0;
            height: 2px;
            border-radius: 2px;
            background: var(--fire);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.25s ease;
        }

    [dir="rtl"] .primary-nav a::after {
        transform-origin: right;
    }

    .primary-nav a:hover {
        color: var(--red);
    }

        .primary-nav a:hover::after, .primary-nav a:focus-visible::after {
            transform: scaleX(1);
        }

/* ============================================================
   ✅ LANGUAGE DROPDOWN — globe + menu locked to the same spot
   in every language. Menu opens DOWN-LEFT under the globe,
   so EN · KU · AR are always fully visible.
   ============================================================ */

.lang-dropdown,
[dir="rtl"] .lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    direction: ltr !important;
}

.globe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 2px;
    cursor: pointer;
    color: var(--text);
    transition: color 0.2s ease, transform 0.4s ease;
}

    .globe-btn:hover {
        color: var(--red);
        transform: rotate(20deg);
    }

/* ✅ Menu anchored to the PHYSICAL right edge of the globe
   (uses `right: 0`, NOT `inset-inline-end`, so it never flips). */
.lang-menu,
[dir="rtl"] .lang-menu,
[dir="rtl"] .sub-nav .lang-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0; /* ✅ physical right, never flips */
    left: auto; /* ✅ physical left, never flips */
    display: flex;
    flex-direction: row; /* EN · KU · AR stays in this order */
    gap: 6px;
    padding: 6px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 5;
    direction: ltr !important;
    white-space: nowrap; /* never wrap the buttons */
}

.lang-dropdown.is-open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lang-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto; /* ✅ buttons never shrink */
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .lang-btn:hover {
        background: var(--light);
    }

    .lang-btn.active {
        background: var(--navy);
        color: #fff;
        border-color: var(--navy);
    }

/* Hamburger */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

    .hamburger-btn:hover {
        transform: scale(1.07);
    }

    .hamburger-btn span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: var(--navy);
        transition: background-color 0.3s ease;
    }

.site-header.is-scrolled .hamburger-btn {
    background: var(--navy);
}

    .site-header.is-scrolled .hamburger-btn span {
        background: #fff;
    }

/* ---------- Mobile menu ---------- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 400;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: radial-gradient(80% 50% at 100% 0%, rgba(230, 57, 70, 0.22), transparent 70%), var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), opacity 0.3s ease, visibility 0s linear 0.35s;
}

[dir="rtl"] .mobile-overlay {
    transform: translateX(-100%);
}

.mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.35s var(--ease), opacity 0.3s ease, visibility 0s;
}

.overlay-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--navy);
}

/* ✅ FIXED LOGO (Original Colors + Animation) */
.overlay-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mobile-overlay.is-open .overlay-logo img {
    opacity: 1;
    transform: scale(1);
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .close-btn:hover {
        transform: rotate(90deg);
    }

.overlay-nav {
    display: flex;
    flex-direction: column;
}

    .overlay-nav > a {
        display: block;
        padding: 16px 24px;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        translate: 28px 0;
        transition: opacity 0.4s ease, translate 0.4s var(--ease-out), background-color 0.2s ease, padding 0.2s ease;
    }

[dir="rtl"] .overlay-nav > a {
    translate: -28px 0;
}

.mobile-overlay.is-open .overlay-nav > a {
    opacity: 1;
    translate: 0 0;
    transition-delay: calc(var(--i, 0) * 45ms + 120ms), calc(var(--i, 0) * 45ms + 120ms), 0s, 0s;
}

.overlay-nav > a:hover, .overlay-nav > a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    padding-inline-start: 32px;
}

.overlay-nav > a.text-red {
    color: var(--accent-red-bright) !important;
}

/* ============================================================
   ✅ MOBILE LANGUAGE ROW — order of EN · KU · AR never flips
   ============================================================ */
.mobile-lang,
[dir="rtl"] .mobile-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: #fff;
    direction: ltr !important;
}

.mobile-lang__label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Only the label text flips, not the buttons row */
[dir="rtl"] .mobile-lang__label {
    direction: rtl !important;
    unicode-bidi: isolate;
}

.mobile-lang__buttons,
[dir="rtl"] .mobile-lang__buttons {
    display: flex;
    flex-direction: row !important;
    direction: ltr !important;
    gap: 8px;
}

.mobile-lang .lang-btn {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 8px 16px;
    flex: 0 0 auto;
}

    .mobile-lang .lang-btn.active {
        background: var(--red);
        border-color: var(--red);
    }

.overlay-footer {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 24px 20px 28px;
    text-align: center;
    background: #00101f;
    border-top: 3px solid var(--accent-red);
    border-radius: 28px 28px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.overlay-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 12px;
}

    .overlay-footer__links a {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
    }

        .overlay-footer__links a:hover {
            color: #fff;
        }

.overlay-footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    overflow: hidden;
    /* ✅ FORCE LTR so the image always stays on the left */
    direction: ltr !important;
}

/* ✅ Re-apply RTL only to the text inside the card */
[dir="rtl"] .hero__card {
    direction: rtl;
}

.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 14s ease-in-out infinite;
}

.hero::before {
    width: 520px;
    height: 520px;
    inset-block-start: -140px;
    inset-inline-end: -140px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.22), transparent 65%);
}

.hero::after {
    width: 460px;
    height: 460px;
    inset-block-end: -160px;
    inset-inline-end: 10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 65%);
    animation-delay: -6s;
}

.hero__media {
    position: relative;
    height: 58vh;
    min-height: 360px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .hero-slide.is-active {
        opacity: 1;
    }

    .hero-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-slide.is-active img {
        animation: kenburns 9s ease-out forwards;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 26, 51, 0.65) 0%, rgba(0, 26, 51, 0) 34%), linear-gradient(0deg, rgba(0, 26, 51, 0.55) 0%, rgba(0, 26, 51, 0) 40%);
    pointer-events: none;
}

.hero__chips {
    position: absolute;
    inset-inline: 20px;
    bottom: 56px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    /* ✅ Keep chips on the left */
    direction: ltr;
}

.hero__dots {
    position: absolute;
    inset-inline-start: 20px;
    bottom: 38px;
    z-index: 3;
    display: flex;
    gap: 8px;
    /* ✅ Keep dots on the left */
    direction: ltr;
}

    .hero__dots button {
        width: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: width 0.3s ease, background-color 0.3s ease;
    }

        .hero__dots button.is-active {
            width: 28px;
            background: #fff;
        }

.hero__content {
    position: relative;
    z-index: 2;
    margin-top: -32px;
    padding: 40px var(--gutter) 64px;
    background: #fff;
    border-radius: 32px 32px 0 0;
}

    .hero__content::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background-image: radial-gradient(rgba(0, 26, 51, 0.12) 1.2px, transparent 1.6px);
        background-size: 26px 26px;
        -webkit-mask-image: radial-gradient(75% 75% at 85% 15%, #000, transparent);
        mask-image: radial-gradient(75% 75% at 85% 15%, #000, transparent);
    }

.hero__card {
    max-width: 660px;
}

    .hero__card > * {
        animation: rise 0.9s var(--ease-out) both;
    }

        .hero__card > *:nth-child(2) {
            animation-delay: 0.08s;
        }

        .hero__card > *:nth-child(3) {
            animation-delay: 0.16s;
        }

        .hero__card > *:nth-child(4) {
            animation-delay: 0.24s;
        }

        .hero__card > *:nth-child(5) {
            animation-delay: 0.32s;
        }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(230, 57, 70, 0.25);
    background: rgba(230, 57, 70, 0.07);
    color: var(--red);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

    .hero-badge::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--red);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5);
        animation: pulse 2s ease-out infinite;
    }

.hero-title {
    margin-bottom: 16px;
    font-size: clamp(2.3rem, 7vw, 4.2rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.fire-text {
    background: linear-gradient(90deg, #e63946, #ff6b35, #ffb703, #ff6b35, #e63946);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 4s ease-in-out infinite alternate;
}

.hero-sub {
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--orange);
}

.hero-desc {
    margin-bottom: 32px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-fire, .btn-outline, .btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-fire {
    position: relative;
    overflow: hidden;
    background: var(--fire);
    color: #fff;
    box-shadow: 0 12px 28px rgba(230, 57, 70, 0.35);
}

    .btn-fire::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 60%;
        inset-inline-start: -80%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
        transform: skewX(-20deg);
        animation: sheen 3.6s ease-in-out infinite;
    }

    .btn-fire:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 38px rgba(230, 57, 70, 0.45);
    }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: #d1d5db;
}

    .btn-outline:hover {
        border-color: var(--ink);
        background: var(--light);
        transform: translateY(-3px);
    }

.btn-light {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

    .btn-light:hover {
        transform: translateY(-3px) scale(1.03);
    }

.scroll-cue {
    display: none;
}

/* ---------- Generic sections ---------- */
.section {
    position: relative;
    padding: clamp(72px, 9vw, 128px) var(--gutter);
    overflow: hidden;
}

    .section > .wrap {
        position: relative;
        z-index: 1;
    }

.blob {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
    animation: float 16s ease-in-out infinite;
}

.blob--red {
    inset-block-start: -160px;
    inset-inline-start: -180px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.14), transparent 65%);
}

.blob--blue {
    inset-block-start: 20%;
    inset-inline-end: -220px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 65%);
}

.blob--orange {
    inset-block-end: -200px;
    inset-inline-start: 20%;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.2), transparent 65%);
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-head--start {
    text-align: start;
    margin: 0 0 28px;
    max-width: none;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

    .kicker::before {
        content: "";
        width: 28px;
        height: 3px;
        border-radius: 3px;
        background: var(--fire);
    }

.section-title {
    margin: 12px 0 14px;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-sub {
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.75;
}

.section-line {
    width: 60px;
    height: 4px;
    margin: 0 auto;
    border-radius: 4px;
    background: var(--fire);
}

.section-head--start .section-line, .section-line--start {
    margin-inline: 0;
}

.section-head--light .section-title {
    color: #fff;
}

.section-head--light .section-sub {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Stats ---------- */
.stats {
    position: relative;
    padding: clamp(48px, 6vw, 84px) var(--gutter);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, #001a33 0%, #0a2a6b 55%, #4a0f24 100%);
}

    .stats::before {
        content: "";
        position: absolute;
        width: 440px;
        height: 440px;
        border-radius: 50%;
        inset-block-start: -200px;
        inset-inline-start: 8%;
        background: radial-gradient(circle, rgba(255, 107, 53, 0.4), transparent 65%);
        animation: float 12s ease-in-out infinite;
    }

.stats__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
    text-align: center;
}

.stat__num {
    display: block;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    background: var(--fire);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat__label {
    display: block;
    margin-top: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- About ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

[dir="rtl"] .about__grid {
    direction: ltr;
}

[dir="rtl"] .about__body {
    direction: rtl;
}

.about__media {
    position: relative;
    min-height: 420px;
}

.about__main {
    position: absolute;
    inset-block: 0 14%;
    inset-inline: 0 16%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

[dir="rtl"] .about__main {
    inset-inline: 0 16%;
}

.about__sub {
    position: absolute;
    inset-inline-end: 0;
    bottom: 0;
    width: 50%;
    height: 44%;
    border-radius: 24px;
    border: 8px solid #fff;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

[dir="rtl"] .about__sub {
    inset-inline-end: 0;
}

.about__main img, .about__sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-parallax] {
    transform: translate3d(0, var(--py, 0px), 0) scale(1.18);
    will-change: transform;
}

.about__badge {
    position: absolute;
    inset-inline-start: -8px;
    top: 28px;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    background: var(--fire);
    box-shadow: 0 16px 34px rgba(230, 57, 70, 0.4);
    animation: bob 5s ease-in-out infinite;
}

[dir="rtl"] .about__badge {
    inset-inline-start: -8px;
}

.about__badge strong {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.about__badge span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: -26px;
}

.about__text p {
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.85;
    color: #4b5563;
}

.about__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
}

.info-card {
    position: relative;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    --glow: rgba(255, 107, 53, 0.14);
}

    .info-card::after {
        content: "";
        position: absolute;
        inset-block: 0;
        inset-inline-start: 0;
        width: 4px;
        background: var(--fire);
    }

.info-card--b::after {
    background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 1.9rem;
}

.info-card h3 {
    margin: 12px 0 8px;
    font-size: 1.2rem;
    color: var(--ink);
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ---------- Why us (dark, colorful) ---------- */
.why {
    background: var(--navy-2);
    color: #fff;
}

    .why::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(60% 50% at 0% 0%, rgba(230, 57, 70, 0.3), transparent 70%), radial-gradient(55% 50% at 100% 100%, rgba(37, 99, 235, 0.32), transparent 70%), radial-gradient(40% 40% at 60% 40%, rgba(124, 58, 237, 0.16), transparent 70%);
    }

    .why::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        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: 56px 56px;
        -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
        mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
    }

.why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.why-card {
    position: relative;
    padding: 34px 26px 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
    --glow: rgba(255, 107, 53, 0.28);
}

    .why-card:hover {
        transform: translateY(-8px);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    }

    .why-card p {
        font-weight: 600;
        font-size: 1.05rem;
        line-height: 1.5;
    }

.why-num {
    position: absolute;
    top: 12px;
    inset-inline-end: 20px;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    font-size: 1.8rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s var(--ease-out);
}

.why-card:hover .why-icon {
    transform: scale(1.12) rotate(-6deg);
}

/* ---------- Services (image cards) ---------- */
.services {
    background: var(--light);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: var(--radius);
    overflow: hidden;
    --glow: rgba(255, 107, 53, 0.12);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
}

    .service-card::after {
        content: "";
        position: absolute;
        top: 0;
        inset-inline: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--c1), var(--c2));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s var(--ease);
        z-index: 3;
    }

[dir="rtl"] .service-card::after {
    transform-origin: right;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

    .service-card:hover::after {
        transform: scaleX(1);
    }

.service-media {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 210px;
    overflow: hidden;
    background: #0b1220;
    isolation: isolate;
}

    .service-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.02);
        transition: transform 0.9s var(--ease-out), filter 0.5s ease;
        will-change: transform;
        display: block;
    }

    .service-media::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(0, 26, 51, 0.35) 0%, rgba(0, 26, 51, 0) 45%), linear-gradient(0deg, rgba(0, 26, 51, 0.55) 0%, rgba(0, 26, 51, 0) 55%);
        transition: opacity 0.5s ease;
    }

.service-card:hover .service-media img {
    transform: scale(1.08);
}

.service-card:hover .service-media::after {
    opacity: 0.75;
}

.service-icon {
    position: absolute;
    inset-inline-start: 18px;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 1.55rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.25);
    transition: transform 0.5s var(--ease-out);
    animation: bob 5s ease-in-out infinite;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-6deg);
}

.service-body {
    padding: 40px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

    .service-body h3 {
        margin: 0;
        font-size: 1.06rem;
        line-height: 1.35;
        color: var(--ink);
    }

    .service-body p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.7;
        color: var(--muted);
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.why-card:nth-child(1) .why-icon, .service-card:nth-child(1) .service-icon {
    --c1: #e63946;
    --c2: #ff6b35;
}

.why-card:nth-child(2) .why-icon, .service-card:nth-child(2) .service-icon {
    --c1: #2563eb;
    --c2: #06b6d4;
}

.why-card:nth-child(3) .why-icon, .service-card:nth-child(3) .service-icon {
    --c1: #7c3aed;
    --c2: #db2777;
}

.why-card:nth-child(4) .why-icon, .service-card:nth-child(4) .service-icon {
    --c1: #0d9488;
    --c2: #22c55e;
}

.why-card:nth-child(5) .why-icon, .service-card:nth-child(5) .service-icon {
    --c1: #f59e0b;
    --c2: #ef4444;
}

.why-card:nth-child(6) .why-icon, .service-card:nth-child(6) .service-icon {
    --c1: #db2777;
    --c2: #f97316;
}

.service-card:nth-child(7) .service-icon {
    --c1: #16a34a;
    --c2: #84cc16;
}

.service-card:nth-child(8) .service-icon {
    --c1: #4f46e5;
    --c2: #0ea5e9;
}

.service-card:nth-child(9) .service-icon {
    --c1: #ff6b35;
    --c2: #ffb703;
}

.service-card:nth-child(1) {
    --c1: #e63946;
    --c2: #ff6b35;
}

.service-card:nth-child(2) {
    --c1: #2563eb;
    --c2: #06b6d4;
}

.service-card:nth-child(3) {
    --c1: #7c3aed;
    --c2: #db2777;
}

.service-card:nth-child(4) {
    --c1: #0d9488;
    --c2: #22c55e;
}

.service-card:nth-child(5) {
    --c1: #f59e0b;
    --c2: #ef4444;
}

.service-card:nth-child(6) {
    --c1: #db2777;
    --c2: #f97316;
}

.service-card:nth-child(7) {
    --c1: #16a34a;
    --c2: #84cc16;
}

.service-card:nth-child(8) {
    --c1: #4f46e5;
    --c2: #0ea5e9;
}

.service-card:nth-child(9) {
    --c1: #ff6b35;
    --c2: #ffb703;
}

/* ---------- Call to action ---------- */
.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(80px, 10vw, 140px) var(--gutter);
    text-align: center;
    color: #fff;
    direction: ltr !important;
}

[dir="rtl"] .cta__inner {
    direction: rtl;
}

.cta__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

    .cta__bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(0, 26, 51, 0.93) 0%, rgba(10, 42, 107, 0.85) 50%, rgba(217, 56, 30, 0.82) 100%);
}

.cta__inner {
    max-width: 760px;
}

.cta__title {
    font-size: clamp(1.9rem, 4.6vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta__desc {
    margin-bottom: 34px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Clients ---------- */
.clients {
    background: #fff;
    padding-inline: 0;
    direction: ltr !important;
}

    .clients > .wrap {
        padding-inline: var(--gutter);
    }

.marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollLeft 38s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 36px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .marquee__item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    .marquee__item img {
        height: 52px;
        width: auto;
        max-width: none;
        object-fit: contain;
    }

/* ---------- Founder ---------- */
.founder {
    color: #fff;
    background: radial-gradient(60% 80% at 0% 100%, rgba(230, 57, 70, 0.28), transparent 70%), radial-gradient(50% 70% at 100% 0%, rgba(37, 99, 235, 0.3), transparent 70%), var(--ink);
}

.founder__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 44px;
    text-align: center;
    direction: ltr !important;
}

[dir="rtl"] .founder__info {
    direction: rtl;
}

.founder__photo {
    position: relative;
    flex-shrink: 0;
    padding: 5px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

    .founder__photo::before {
        content: "";
        position: absolute;
        inset: -60%;
        background: conic-gradient(#e63946, #ffb703, #2563eb, #7c3aed, #e63946);
        animation: spin 7s linear infinite;
    }



.founder .kicker {
    color: var(--yellow);
}

.founder__name {
    margin: 12px 0 6px;
    font-size: clamp(2rem, 4.6vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.founder__role {
    margin-bottom: 20px;
    color: var(--orange);
    font-weight: 700;
    font-size: 1.1rem;
}

.founder__info .section-line {
    margin-inline: auto;
}

/* ---------- Contact ---------- */
.contact {
    background: var(--light);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 980px;
    margin-inline: auto;
}

.contact-card {
    position: relative;
    display: block;
    padding: 34px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    --glow: rgba(255, 107, 53, 0.14);
}

    .contact-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
    }

.contact-card__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    font-size: 1.7rem;
    border-radius: 50%;
    background: var(--fire);
    box-shadow: 0 12px 26px rgba(230, 57, 70, 0.35);
}

.contact-card:nth-child(2) .contact-card__icon {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
}

.contact-card:nth-child(3) .contact-card__icon {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    box-shadow: 0 12px 26px rgba(124, 58, 237, 0.35);
}

.contact-card h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
    color: var(--ink);
}

.contact-card p {
    color: var(--muted);
    font-weight: 600;
    word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 2;
    padding-top: 84px;
    color: rgba(255, 255, 255, 0.8);
    background: radial-gradient(50% 60% at 100% 0%, rgba(37, 99, 235, 0.14), transparent 70%), #08080f;
}

    .site-footer::before {
        content: "";
        position: absolute;
        top: 0;
        inset-inline: 0;
        height: 4px;
        background: var(--fire);
    }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 var(--gutter) 50px;
    text-align: center;
}

.footer-logo {
    height: 52px;
    width: auto;
    margin: 0 auto 18px;
}

.footer-desc {
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.05rem;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

    .footer-links a, .footer-contact a, .footer-contact li {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.93rem;
        transition: color 0.2s ease;
    }

    .footer-contact li {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .footer-links a:hover, .footer-contact a:hover {
        color: var(--orange);
    }

.footer-bottom {
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 250;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--fire);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease), transform 0.4s var(--ease);
}

    .scroll-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-top:hover {
        transform: translateY(-4px) scale(1.06);
    }

[dir="rtl"] .scroll-top {
    right: auto;
    left: 18px;
}

/* ---------- Pages without a hero (About, Jobs, Contact…) ---------- */
html:not(.has-hero) .site-header {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

html:not(.has-hero) .brand img {
    filter: none;
    height: 38px;
}

html:not(.has-hero) .sub-nav {
    background: var(--silver-dark);
}

html:not(.has-hero) .hamburger-btn {
    background: var(--navy);
}

    html:not(.has-hero) .hamburger-btn span {
        background: #fff;
    }

html:not(.has-hero) .main-content {
    padding-top: 84px;
}

/* ---------- Glow spotlight + reveal ---------- */
.glow {
    position: relative;
}

    .glow::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        border-radius: inherit;
        background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--glow, rgba(255, 107, 53, 0.15)), transparent 60%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .glow:hover::before {
        opacity: 1;
    }

    .glow > * {
        position: relative;
        z-index: 1;
    }

.glow, .service-card, .why-card, .info-card, .contact-card {
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.js [data-reveal] {
    opacity: 0;
    translate: 0 38px;
    transition: opacity 0.9s var(--ease-out) var(--d, 0s), translate 0.9s var(--ease-out) var(--d, 0s), transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.js [data-reveal="start"] {
    translate: -52px 0;
}

.js [data-reveal="end"] {
    translate: 52px 0;
}

[dir="rtl"].js [data-reveal="start"], .js[dir="rtl"] [data-reveal="start"] {
    translate: 52px 0;
}

[dir="rtl"].js [data-reveal="end"], .js[dir="rtl"] [data-reveal="end"] {
    translate: -52px 0;
}

.js [data-reveal].is-in {
    opacity: 1;
    translate: 0 0;
}

/* ---------- Keyframes ---------- */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 24px) scale(1.08);
    }
}

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        translate: 0 26px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes kenburns {
    from {
        transform: scale(1.14);
    }

    to {
        transform: scale(1);
    }
}

@keyframes shine {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5);
    }

    70%, 100% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }
}

@keyframes sheen {
    0%, 60% {
        inset-inline-start: -80%;
    }

    100% {
        inset-inline-start: 140%;
    }
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cue {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(14px);
        opacity: 0;
    }
}

/* ==========================================================================
   Breakpoints (all min-width, so later rules always win)
   ========================================================================== */

@media (min-width: 640px) {
    .stats__grid {
        gap: 36px 24px;
    }

    .about__cards {
        grid-template-columns: 1fr 1fr;
    }

    .why__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: start;
    }

    .footer-logo {
        margin-inline: 0;
    }

    .footer-links, .footer-contact {
        align-items: flex-start;
    }

    .scroll-top {
        right: 28px;
        bottom: 28px;
    }

    [dir="rtl"] .scroll-top {
        right: auto;
        left: 28px;
    }
}

@media (min-width: 900px) {
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about__grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 72px;
    }

    .about__media {
        min-height: 620px;
    }

    .about__cards {
        grid-template-columns: 1fr 1fr;
    }

    .founder__wrap {
        flex-direction: row;
        justify-content: center;
        gap: 72px;
        text-align: start;
    }

    .founder__info .section-line {
        margin-inline: 0;
    }

    .founder__frame {
        width: 420px;
        height: 350px;
    }
}

@media (min-width: 1024px) {
    .why__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .header-nav,
    [dir="rtl"] .header-nav {
        display: flex;
    }

    .hamburger-btn, .mobile-overlay {
        display: none;
    }

    .site-header {
        padding-block: 18px;
    }

        .site-header.is-scrolled {
            padding-block: 10px;
        }

    .brand img {
        height: 48px;
    }

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ✅ LOCK THE HERO GRID TO THE ORIGINAL DESIGN */
    .hero {
        grid-template-columns: 45fr 55fr !important;
        min-height: 100vh;
    }

    .hero__media {
        height: auto;
        min-height: 100vh;
        border-end-end-radius: var(--hero-radius);
    }

    .hero__chips {
        inset-inline: 40px;
        bottom: 64px;
    }

    .hero__dots {
        inset-inline-start: 40px;
        bottom: 40px;
    }

    .hero__content {
        display: flex;
        align-items: center;
        margin-top: 0;
        padding: 170px var(--gutter) 90px;
        background: transparent;
        border-radius: 0;
    }

        .hero__content::before {
            -webkit-mask-image: radial-gradient(70% 70% at 80% 20%, #000, transparent);
            mask-image: radial-gradient(70% 70% at 80% 20%, #000, transparent);
        }

    .scroll-cue {
        position: absolute;
        bottom: 28px;
        inset-inline-start: 50%;
        display: block;
        width: 26px;
        height: 42px;
        border: 2px solid rgba(0, 26, 51, 0.3);
        border-radius: 14px;
        transform: translateX(-50%);
    }

        .scroll-cue span {
            position: absolute;
            top: 8px;
            inset-inline-start: 50%;
            width: 4px;
            height: 8px;
            margin-inline-start: -2px;
            border-radius: 4px;
            background: var(--red);
            animation: cue 1.6s ease-in infinite;
        }

    html:not(.has-hero) .main-content {
        padding-top: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js [data-reveal] {
        opacity: 1;
        translate: 0 0;
    }

    [data-parallax] {
        transform: none;
    }
}

/* ✅ MODERN CHIPS DESIGN */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 10px; /* Extra padding on right for icon */
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 999px; /* Pill shape */
    /* Darker, blurrier background for high readability */
    background: rgba(10, 10, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Smooth animation */
    animation: bob 6s ease-in-out infinite;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

    /* Add a nice interactive hover effect */
    .chip:hover {
        transform: translateY(-5px) scale(1.02);
        background: rgba(10, 10, 20, 0.6);
        border-color: rgba(255, 255, 255, 0.4);
    }

.chip--b {
    animation-delay: -3s;
}

/* Give the icon a colored circular background so it stands out */
.chip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Optional: Give the first chip a red tint to match the fire theme */
.chip:nth-child(1) .chip__icon {
    background: rgba(230, 57, 70, 0.3);
}

/* Optional: Give the second chip a gold/yellow tint to match the trophy theme */
.chip:nth-child(2) .chip__icon {
    background: rgba(255, 183, 3, 0.3);
}

/* Ensure it looks good on mobile */
@media (max-width: 640px) {
    .chip {
        padding: 8px 14px 8px 8px;
        font-size: 0.8rem;
    }

    .chip__icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
}
/* ============================================================
   LIGHTHOUSE FIXES (touch targets)
   ============================================================ */
button {
    min-width: 24px;
    min-height: 24px;
}

.globe-btn {
    width: 28px;
    height: 28px;
    padding: 0;
}

/* Hero dots: same look, but the tappable area is 24px tall */
.hero__dots {
    gap: 0;
}

    .hero__dots button {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        background: transparent;
        transition: width 0.3s ease;
    }

        .hero__dots button::before {
            content: "";
            display: block;
            width: 9px;
            height: 9px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.5);
            transition: width 0.3s ease, background-color 0.3s ease;
        }

        .hero__dots button.is-active {
            width: 40px;
            background: transparent;
        }

            .hero__dots button.is-active::before {
                width: 28px;
                background: #fff;
            }

.founder__frame {
    position: relative;
    width: min(320px, calc(100vw - (var(--gutter) * 2) - 10px));
    height: 300px;
    border-radius: 27px;
    overflow: hidden;
    background: var(--ink);
}

    .founder__frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top; /* keeps the face in view */
    }