/* ═══════════════════════════════════════════════════════════
   Hero Banner — Full-width horizontal cinematic
   Blue gradient overlay · white typography · enterprise UX
   ═══════════════════════════════════════════════════════════ */

:root {
    --hero-banner-h: clamp(420px, 48vw, 560px);
    --hero-banner-h-total: calc(var(--hero-banner-h) + var(--header-h, 80px));
}

/* ── Banner layout (overrides enterprise 92vh) ── */
.hero.hero--banner {
    background: #0B1D3A;
    min-height: var(--hero-banner-h-total);
    padding-top: var(--header-h, 80px);
}

.hero.hero--banner .hero-slider,
.hero.hero--banner .hero-slide {
    min-height: var(--hero-banner-h);
}

.hero.hero--banner .hero-slide {
    align-items: stretch;
}

.hero.hero--banner .hero-decor {
    z-index: 0;
}

.hero.hero--banner .hero-decor .orb {
    opacity: 0.25;
}

.hero.hero--banner .hero-grid-pattern {
    opacity: 0.35;
    mask-image: linear-gradient(90deg, black 30%, transparent 80%);
}

/* ── Full-bleed horizontal cover image ── */
.hero.hero--banner .hero-slide.has-image .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    z-index: 0;
}

/* Blue cinematic overlay — text zone left */
.hero.hero--banner .hero-overlay {
    background: linear-gradient(
        105deg,
        rgba(11, 29, 58, 0.92) 0%,
        rgba(15, 40, 85, 0.78) 32%,
        rgba(30, 64, 175, 0.45) 55%,
        rgba(37, 99, 235, 0.15) 72%,
        rgba(37, 99, 235, 0.05) 100%
    ) !important;
    z-index: 1;
}

/* Slide variants — alternate blue tones */
.hero.hero--banner .hero-slide:nth-child(2) .hero-overlay {
    background: linear-gradient(
        105deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(30, 58, 138, 0.7) 40%,
        rgba(59, 130, 246, 0.2) 70%,
        transparent 100%
    ) !important;
}

.hero.hero--banner .hero-slide:nth-child(3) .hero-overlay {
    background: linear-gradient(
        105deg,
        rgba(11, 29, 58, 0.88) 0%,
        rgba(37, 99, 235, 0.55) 50%,
        rgba(96, 165, 250, 0.15) 80%,
        transparent 100%
    ) !important;
}

/* No-image slides — pure blue gradient banner */
.hero.hero--banner .hero-slide:not(.has-image) .hero-bg {
    background: linear-gradient(
        135deg,
        #0B1D3A 0%,
        #1E3A8A 45%,
        #2563EB 100%
    ) !important;
}

.hero.hero--banner .hero-slide:nth-child(2):not(.has-image) .hero-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1E40AF 50%, #3B82F6 100%) !important;
}

.hero.hero--banner .hero-slide:nth-child(3):not(.has-image) .hero-bg {
    background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 60%, #60A5FA 100%) !important;
}

/* ── Content on banner ── */
.hero.hero--banner .hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--hero-banner-h);
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(72px, 10vw, 96px);
    padding-left: clamp(4px, 1vw, 12px);
}

.hero.hero--banner .hero-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero.hero--banner .hero-badge::before {
    color: #60A5FA !important;
}

.hero.hero--banner h1,
.hero.hero--banner .hero-slide.has-image h1,
.hero.hero--banner .hero-slide:not(.has-image) h1 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero.hero--banner h1 .highlight {
    background: linear-gradient(135deg, #93C5FD, #FFFFFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero.hero--banner p,
.hero.hero--banner .hero-slide.has-image p,
.hero.hero--banner .hero-slide:not(.has-image) p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 28px;
}

.hero.hero--banner .btn-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45) !important;
}

.hero.hero--banner .btn-primary:hover {
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.55) !important;
}

.hero.hero--banner .btn-outline {
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}

.hero.hero--banner .btn-outline:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

/* ── Controls bar ── */
.hero.hero--banner .hero-dots {
    bottom: clamp(20px, 3vw, 32px);
    z-index: 10;
    background: rgba(11, 29, 58, 0.5);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero.hero--banner .hero-dot {
    background: rgba(255, 255, 255, 0.35) !important;
    height: 4px;
    width: 36px;
    border-radius: 4px;
}

.hero.hero--banner .hero-dot.active {
    background: linear-gradient(90deg, #60A5FA, #FFFFFF) !important;
    width: 52px;
}

.hero.hero--banner .hero-scroll {
    bottom: clamp(20px, 3vw, 32px);
    z-index: 10;
}

.hero.hero--banner .hero-scroll span {
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.hero.hero--banner .hero-scroll span::after {
    background: #FFFFFF !important;
}

/* ── Header transparent over banner ── */
.hero.hero--banner ~ *,
body:has(.hero--banner) .header:not(.scrolled) {
    /* fallback below */
}

body .header:not(.scrolled) {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

body .header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
}

body .header:not(.scrolled) .nav-link:hover,
body .header:not(.scrolled) .nav-link.active {
    color: #FFFFFF !important;
}

body .header:not(.scrolled) .nav-link::before {
    background: linear-gradient(90deg, #60A5FA, #FFFFFF) !important;
}

body .header:not(.scrolled) .menu-toggle span {
    background: #FFFFFF !important;
}

body .header:not(.scrolled) .lang-switch {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body .header:not(.scrolled) .lang-switch a {
    color: rgba(255, 255, 255, 0.75) !important;
}

body .header:not(.scrolled) .lang-switch a.active {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1E40AF !important;
}

body .header:not(.scrolled) .theme-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
}

body .header.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom-color: #BFDBFE !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
}

body .header.scrolled .nav-link {
    color: #1E293B !important;
}

body .header.scrolled .nav-link:hover,
body .header.scrolled .nav-link.active {
    color: #2563EB !important;
}

/* ── Stats overlap banner bottom ── */
.hero.hero--banner + .stats {
    margin-top: 0;
    padding-top: 0;
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%) !important;
    padding-bottom: clamp(48px, 6vw, 72px);
}

.hero.hero--banner + .stats .stats-grid {
    margin-top: clamp(-40px, -4vw, -24px);
    position: relative;
    z-index: 5;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    :root {
        --hero-banner-h: clamp(480px, 85vw, 560px);
    }

    .hero.hero--banner .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(11, 29, 58, 0.88) 0%,
            rgba(15, 40, 85, 0.75) 45%,
            rgba(37, 99, 235, 0.35) 100%
        ) !important;
    }

    .hero.hero--banner .hero-content {
        padding-bottom: clamp(88px, 14vw, 110px);
        justify-content: flex-end;
    }

    .hero.hero--banner h1 {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
    }

    .hero.hero--banner .hero-scroll {
        display: none;
    }
}

[data-theme="night"] .hero.hero--banner .hero-overlay {
    background: linear-gradient(
        105deg,
        rgba(2, 6, 23, 0.95) 0%,
        rgba(11, 29, 58, 0.85) 50%,
        rgba(37, 99, 235, 0.25) 100%
    ) !important;
}

[data-theme="night"] body .header:not(.scrolled) {
    background: rgba(2, 6, 23, 0.6) !important;
}
