/* ==========================================================================
   BOULEVARD SUPER APP — CINEMATIC FULL-BACKGROUND VIDEO HERO
   Client-Approved Direction: Full-viewport background video with side-positioned
   subjects, clear white typography, and refined proportional sizing.
   ========================================================================== */

:root {
    --bvd-black: #08080a;
    --bvd-charcoal: #121216;
    --bvd-white: #ffffff;
    --bvd-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ensure smooth section scrolling with sticky navbar offset */
#home-hero,
#Boulevard_Services,
#Download_Your_App {
    scroll-margin-top: 70px;
}

/* ==========================================================================
   Hero Section Base — Exact Full Viewport
   ========================================================================== */
.home-v2-hero.bvd-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--bvd-black);
    color: var(--bvd-white);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--nav-height, 68px) var(--page-gutter, clamp(24px, 4.5vw, 72px)) 0;
    font-family: Manrope, Tajawal, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-v2-hero.bvd-hero::before {
    display: none !important;
}

html[dir="rtl"] .home-v2-hero.bvd-hero {
    font-family: Tajawal, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    direction: rtl;
}

/* ==========================================================================
   Full-Bleed Background Video Media Layer
   ========================================================================== */
.bvd-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bvd-hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background-color: var(--bvd-black);
}

html[dir="ltr"] .bvd-hero-video-bg,
html[dir="rtl"] .bvd-hero-video-bg {
    object-position: center center;
    transform: none;
}

/* Directional Gradient Scrim: Subtle ambient film overlay with gentle text-side shade */
.bvd-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(8, 8, 10, 0.25), rgba(8, 8, 10, 0.25)),
        linear-gradient(to right,
            rgba(8, 8, 10, 0.58) 0%,
            rgba(8, 8, 10, 0.3) 45%,
            transparent 80%),
        linear-gradient(to bottom,
            rgba(8, 8, 10, 0.7) 0%,
            transparent 18%,
            transparent 82%,
            rgba(8, 8, 10, 0.95) 100%);
}

html[dir="rtl"] .bvd-hero-scrim {
    background:
        linear-gradient(rgba(8, 8, 10, 0.25), rgba(8, 8, 10, 0.25)),
        linear-gradient(to left,
            rgba(8, 8, 10, 0.58) 0%,
            rgba(8, 8, 10, 0.3) 45%,
            transparent 80%),
        linear-gradient(to bottom,
            rgba(8, 8, 10, 0.7) 0%,
            transparent 18%,
            transparent 82%,
            rgba(8, 8, 10, 0.95) 100%);
}

/* ==========================================================================
   Hero Content Container
   ========================================================================== */
.bvd-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1560px;
    margin-inline: auto;
    display: flex;
    align-items: center;
}

.bvd-hero-content {
    max-width: clamp(620px, 56vw, 860px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Eyebrow (Removed per specification) */
.bvd-hero-eyebrow {
    display: none !important;
}

/* Headline — Styled exactly like Boulevard Business: slight big, one cohesive style */
.bvd-hero-headline {
    margin: 0;
    font-size: clamp(48px, 7vw, 110px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.065em;
    color: var(--bvd-white) !important;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

html[dir="rtl"] .bvd-hero-headline {
    font-size: clamp(48px, 7vw, 110px);
    letter-spacing: 0;
    line-height: 1.15;
    font-weight: 700;
}

.bvd-hero-headline-row {
    display: block;
    margin-bottom: clamp(6px, 1.2vh, 14px);
    animation: bvd-rise 800ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bvd-hero-headline-row:nth-child(2) {
    animation-delay: 260ms;
}

.bvd-hero-headline-row:nth-child(3):not(.bvd-hero-headline-sub) {
    animation-delay: 340ms;
}

.bvd-hero-headline-row:last-child {
    margin-bottom: 0;
}

/* Subtitle row — small, light, like .journey-hero p */
.bvd-hero-headline-sub {
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.55);
    text-transform: none;
    margin-top: clamp(10px, 1.2vh, 18px);
}

html[dir="rtl"] .bvd-hero-headline-sub {
    letter-spacing: 0;
}

@keyframes bvd-rise {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.bvd-hero-word,
.bvd-hero-rest {
    display: inline;
    color: var(--bvd-white) !important;
}

/* One Cohesive Style (No italic distinction) */
.bvd-hero-emphasis {
    color: var(--bvd-white) !important;
}

.bvd-hero-emphasis em {
    font-style: normal !important;
    font-weight: 700 !important;
    color: var(--bvd-white) !important;
    -webkit-text-fill-color: var(--bvd-white) !important;
    background: none !important;
    display: inline;
    text-shadow: none !important;
}

html[dir="rtl"] .bvd-hero-emphasis em {
    font-style: normal !important;
    font-weight: 700 !important;
    color: var(--bvd-white) !important;
    -webkit-text-fill-color: var(--bvd-white) !important;
    background: none !important;
}

/* CTA Buttons (Hidden / Removed from hero) */
.bvd-hero-actions {
    display: none !important;
}

.bvd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 200ms var(--bvd-ease),
                color 200ms var(--bvd-ease),
                border-color 200ms var(--bvd-ease),
                transform 200ms var(--bvd-ease),
                box-shadow 200ms var(--bvd-ease);
    cursor: pointer;
    box-sizing: border-box;
}

.bvd-btn:focus-visible {
    outline: 2px solid var(--bvd-white);
    outline-offset: 3px;
}

/* Primary Button (Download App) */
.bvd-btn-primary {
    background: var(--bvd-white);
    color: #0b0c0e;
    border: 1px solid var(--bvd-white);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.16);
}

.bvd-btn-primary:hover {
    background: #f0f1f3;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.26);
}

.bvd-btn-primary:active {
    transform: translateY(0);
    background: #e2e4e8;
}

/* Secondary Button (Explore Services) */
.bvd-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--bvd-white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bvd-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--bvd-white);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

.bvd-btn-secondary:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.1);
}

.bvd-btn-icon {
    flex-shrink: 0;
    transition: transform 200ms var(--bvd-ease);
}

.bvd-btn:hover .bvd-btn-icon {
    transform: translateX(3px);
}

html[dir="rtl"] .bvd-btn-icon {
    transform: scaleX(-1);
}

html[dir="rtl"] .bvd-btn:hover .bvd-btn-icon {
    transform: scaleX(-1) translateX(3px);
}

/* ==========================================================================
   Bottom Scroll to Discover Indicator
   ========================================================================== */
.bvd-hero-footer {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

html[dir="rtl"] .bvd-hero-footer {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.bvd-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 200ms var(--bvd-ease);
    padding: 6px 14px;
    background: rgba(8, 8, 10, 0.4);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html[dir="rtl"] .bvd-scroll-cue {
    letter-spacing: 0;
}

.bvd-scroll-cue:hover {
    color: var(--bvd-white);
    background: rgba(8, 8, 10, 0.65);
}

.bvd-scroll-cue:focus-visible {
    outline: 2px solid var(--bvd-white);
    outline-offset: 2px;
    border-radius: 9999px;
}

.bvd-scroll-mouse {
    width: 14px;
    height: 22px;
    border: 1.5px solid currentColor;
    border-radius: 9999px;
    display: inline-flex;
    justify-content: center;
    padding-top: 3px;
    box-sizing: border-box;
}

.bvd-scroll-wheel {
    width: 2px;
    height: 4px;
    background: currentColor;
    border-radius: 1px;
    animation: bvdWheel 1.8s infinite ease-in-out;
}

@keyframes bvdWheel {
    0% { transform: translateY(0); opacity: 1; }
    60% { transform: translateY(6px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.bvd-scroll-chevron {
    flex-shrink: 0;
    animation: bvdBounce 1.8s infinite ease-in-out;
}

@keyframes bvdBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Laptops / Desktops (min-height constraint for 1366x768 and 1280x720) */
@media (max-height: 768px) and (min-width: 1024px) {
    .home-v2-hero.bvd-hero {
        min-height: 520px;
    }
    .bvd-hero-headline {
        font-size: clamp(44px, 5.5vw, 80px);
        margin-bottom: 0;
    }
    .bvd-hero-footer {
        bottom: 14px;
    }
}

/* Tablets (768px – 1023px) */
@media (max-width: 1023px) {
    .home-v2-hero.bvd-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        padding-top: calc(var(--nav-height, 68px) + 24px);
        padding-bottom: 60px;
    }
    .bvd-hero-content {
        max-width: 620px;
    }
    .bvd-hero-headline {
        font-size: clamp(44px, 6vw, 76px);
        margin-bottom: 0;
    }
    .bvd-hero-video-bg {
        object-position: center center;
    }
    html[dir="ltr"] .bvd-hero-video-bg,
    html[dir="rtl"] .bvd-hero-video-bg {
        object-position: center center;
        transform: none;
    }
    .bvd-hero-scrim {
        background:
            linear-gradient(rgba(8, 8, 10, 0.25), rgba(8, 8, 10, 0.25)),
            linear-gradient(to right,
                rgba(8, 8, 10, 0.62) 0%,
                rgba(8, 8, 10, 0.35) 45%,
                transparent 80%),
            linear-gradient(to bottom,
                rgba(8, 8, 10, 0.7) 0%,
                transparent 18%,
                transparent 82%,
                rgba(8, 8, 10, 0.95) 100%);
    }
    html[dir="rtl"] .bvd-hero-scrim {
        background:
            linear-gradient(rgba(8, 8, 10, 0.25), rgba(8, 8, 10, 0.25)),
            linear-gradient(to left,
                rgba(8, 8, 10, 0.62) 0%,
                rgba(8, 8, 10, 0.35) 45%,
                transparent 80%),
            linear-gradient(to bottom,
                rgba(8, 8, 10, 0.7) 0%,
                transparent 18%,
                transparent 82%,
                rgba(8, 8, 10, 0.95) 100%);
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
    .home-v2-hero.bvd-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        padding: calc(var(--nav-height, 62px) + 20px) 20px 64px;
        justify-content: center;
    }
    .bvd-hero-content {
        max-width: 100%;
    }
    .bvd-hero-headline {
        font-size: clamp(44px, 12vw, 72px);
        line-height: 1.04;
        margin-bottom: 0;
    }
    html[dir="rtl"] .bvd-hero-headline {
        line-height: 1.2;
    }
    .bvd-hero-actions {
        display: none !important;
    }
    .bvd-btn {
        width: 100%;
        min-height: 48px;
    }
    .bvd-hero-video-bg {
        object-position: center center;
    }
    html[dir="ltr"] .bvd-hero-video-bg,
    html[dir="rtl"] .bvd-hero-video-bg {
        object-position: center center;
        transform: none;
    }
    .bvd-hero-scrim {
        background:
            linear-gradient(rgba(8, 8, 10, 0.32), rgba(8, 8, 10, 0.32)),
            linear-gradient(to top,
                rgba(8, 8, 10, 0.88) 0%,
                rgba(8, 8, 10, 0.45) 50%,
                transparent 85%),
            linear-gradient(to bottom,
                rgba(8, 8, 10, 0.7) 0%,
                transparent 18%,
                transparent 82%,
                rgba(8, 8, 10, 0.95) 100%);
    }
    .bvd-hero-footer {
        bottom: 16px;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .bvd-hero-headline-row {
        animation: none !important;
    }
    .bvd-scroll-wheel,
    .bvd-scroll-chevron {
        animation: none !important;
    }
    .bvd-btn,
    .bvd-btn-icon,
    .bvd-scroll-cue {
        transition: none !important;
    }
}
