/* ==========================================================================
   HOMEPAGE COMPONENT: HERO BANNER (AGENCY-GRADE EDITORIAL / AWWWARDS-TIER)
   Strictly engineered per taste-skill & soft-skill guidelines:
   - Zero AI-slop (no cheesy checkmarks, no yellow star boxes, no tacky spec pills)
   - 100% full-bleed, razor-sharp photography (contain right center, uncropped)
   - Exact canvas tone (#d7cdc4) matching the uploaded banner with zero seam
   - Display Typography (Plus Jakarta Sans 800, tight tracking -0.035em, 2 lines)
   - Button-in-Button CTA architecture with kinetic tension
   - Microscopic tracked eyebrow tag
   - Fluid cubic-bezier interpolation
   ========================================================================== */

.hero-flagship-section {
    position: relative;
    width: 100%;
    min-height: 460px;
    height: clamp(460px, 36vw, 540px);
    max-height: calc(100vh - 130px);
    background-color: #ccb59b;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

/* Multi-Slide Kinetic Track Engine */
.hero-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transform: translate3d(0, 0, 0);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    touch-action: pan-y pinch-zoom;
}

.hero-slide-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--slide-bg, #ccb59b);
    overflow: hidden;
    opacity: 0.4;
    transform: scale(0.985);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.hero-slide-item.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* 1. Full-Bleed Background Imagery with Parallax Counter-Motion */
.hero-bg-layer {
    position: absolute;
    inset: 0 -40px;
    width: calc(100% + 80px);
    height: 100%;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    z-index: 1;
    transform: translate3d(var(--bg-parallax-x, 0px), 0, 0);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    filter: none !important;
    opacity: 1 !important;
}

/* 2. Architectural Content Stage */
.hero-stage-container {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.hero-lead-cluster {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    z-index: 6;
    pointer-events: auto;
    opacity: 0.25;
    transform: translate3d(-24px, 0, 0);
    transition: opacity 0.75s 0.1s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.hero-slide-item.is-active .hero-lead-cluster {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Microscopic Tracked Eyebrow Tag (Soft-skill Section 4.C) */
.hero-eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.eyebrow-accent-bar {
    width: 22px;
    height: 2.5px;
    background: #0062ff;
    border-radius: 2px;
    flex-shrink: 0;
}

.hero-eyebrow-tag .eyebrow-text {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-slide-theme-light .hero-eyebrow-tag .eyebrow-text {
    color: #475569;
}

.hero-slide-theme-dark .hero-eyebrow-tag .eyebrow-text {
    color: #94a3b8;
}

/* Massive Display Typography (Taste-skill Section 4.1 & 4.7) */
.hero-display-title {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.2rem, 3.4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 640px;
}

.hero-slide-theme-light .hero-display-title {
    color: #0a0f1d;
}

.hero-slide-theme-dark .hero-display-title {
    color: #ffffff;
}

.hero-lead-description {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-slide-theme-light .hero-lead-description {
    color: #1e293b;
    font-weight: 500;
}

.hero-slide-theme-dark .hero-lead-description {
    color: #cbd5e1;
}

/* Staggered Entrance Animations */
.hero-slide-item.is-active .hero-eyebrow-tag {
    animation: heroAgencyFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero-slide-item.is-active .hero-display-title {
    animation: heroAgencyFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.hero-slide-item.is-active .hero-lead-description {
    animation: heroAgencyFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero-slide-item.is-active .hero-action-deck {
    animation: heroAgencyFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}

@keyframes heroAgencyFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action Deck: Button-in-Button Architecture (Soft-skill Section 4.B) */
.hero-action-deck {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-pill-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 8px 7px 26px;
    border-radius: 9999px;
    text-decoration: none !important;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide-theme-light .hero-pill-cta {
    background: #0a0f1d !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px -6px rgba(10, 15, 29, 0.4);
}

.hero-slide-theme-dark .hero-pill-cta {
    background: #0062ff;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -4px rgba(0, 98, 255, 0.4);
}

.hero-pill-cta .cta-label {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff !important;
    white-space: nowrap;
}

.hero-pill-cta .cta-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide-theme-light .hero-pill-cta .cta-icon-circle {
    background: rgba(255, 255, 255, 0.16);
}

.hero-slide-theme-dark .hero-pill-cta .cta-icon-circle {
    background: rgba(255, 255, 255, 0.22);
}

/* Hover Physics */
.hero-slide-theme-light .hero-pill-cta:hover {
    background: #0062ff;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -4px rgba(0, 98, 255, 0.45);
}

.hero-slide-theme-light .hero-pill-cta:hover .cta-label {
    color: #ffffff !important;
}

.hero-slide-theme-light .hero-pill-cta:hover .cta-icon-circle {
    background: #ffffff;
    color: #0062ff !important;
    transform: translateX(4px);
}

.hero-slide-theme-dark .hero-pill-cta:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -4px rgba(29, 78, 216, 0.5);
}

.hero-slide-theme-dark .hero-pill-cta:hover .cta-label {
    color: #ffffff !important;
}

.hero-slide-theme-dark .hero-pill-cta:hover .cta-icon-circle {
    background: #ffffff;
    color: #1d4ed8 !important;
    transform: translateX(4px);
}

.hero-pill-cta:active {
    transform: scale(0.98);
}

/* ==========================================================================
   MINIMALIST NAVIGATION CONTROLS
   ========================================================================== */
.hero-nav-arrows {
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 15;
}

.hero-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    pointer-events: auto;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-arrow-btn:hover {
    background: #ffffff;
    color: #0062ff;
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(0, 98, 255, 0.25);
    border-color: #bfdbfe;
}

.hero-arrow-btn:active {
    transform: scale(0.94);
}

.hero-nav-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 15;
}

.hero-dot-indicator {
    height: 6px;
    width: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot-indicator:hover {
    background: rgba(15, 23, 42, 0.5);
}

.hero-dot-indicator.is-active {
    width: 28px;
    background: #0062ff;
    box-shadow: 0 2px 8px rgba(0, 98, 255, 0.4);
}

.hero-slide-theme-dark .hero-dot-indicator {
    background: rgba(255, 255, 255, 0.35);
}

.hero-slide-theme-dark .hero-dot-indicator.is-active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 991px) {
    .hero-flagship-section,
    .hero-slider-wrapper,
    .hero-slide-item {
        min-height: 460px;
        height: auto;
    }
    .hero-stage-container {
        width: 100%;
        padding: 45px 20px;
    }
    .hero-display-title {
        font-size: clamp(1.8rem, 5vw, 2.3rem);
    }
    .hero-nav-arrows {
        display: none;
    }
    .hero-bg-layer {
        background-position: right -60px center !important;
        background-size: cover !important;
        opacity: 0.25 !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
}

@media (max-width: 575px) {
    .hero-display-title {
        font-size: 1.85rem;
    }
    .hero-lead-description {
        font-size: 0.95rem;
    }
    .hero-pill-cta {
        width: 100%;
    }
}
