/* =====================================================================
   SmartWaste MCD - BWG Operations Portal
   Hero Section - matches reference UI. Reuses color tokens (--accent-lime,
   --text-light, etc.) already declared in header.css, so both stay in sync.
   ===================================================================== */

.hero-section {
    position: relative;
    min-height: 780px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: -104px;
    /* pulls the section up under the transparent sticky header */
    padding-top: 104px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(10, 10, 10, 0.75) 0%,
            rgba(10, 10, 10, 0.55) 45%,
            rgba(10, 10, 10, 0.25) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    width: 100%;
}

.hero-content {
    max-width: 640px;
}

/* ---------- Eyebrow badge ---------- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

/* ---------- Heading ---------- */
.hero-heading {
    font-family: var(--font-body);
    font-size: 52px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 20px;
}

.hero-heading .highlight {
    color: var(--accent-lime);
}

/* ---------- Description ---------- */
.hero-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 0 32px;
}

/* ---------- Buttons ---------- */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 12px 12px 12px 22px;
    border-radius: 10px;
}

.btn-hero-primary {
    background: var(--accent-lime);
    color: var(--accent-lime-dark);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-primary .arrow-circle,
.btn-hero-secondary .arrow-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-hero-primary .arrow-circle {
    background: var(--accent-lime-dark);
    color: var(--accent-lime);
}

.btn-hero-secondary .arrow-circle {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

/* ---------- Floating video card ---------- */

.hero-video-widget .compliance-row {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}


.hero-video-card {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 320px;
    /* background: var(--text-light); */
    background: rgba(20, 30, 24, 0.35);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-video-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.hero-video-thumb img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-lime-dark);
    font-size: 20px;
    cursor: pointer;
    border: none;
}

.hero-video-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px 6px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

/* ---------- Stats bar (overlaps bottom edge of hero) ---------- */
/* .hero-stats-bar {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: -1px;
    transform: translateY(50%);
    z-index: 3;
    background: var(--text-light);
    border-radius: 14px;
    padding: 24px 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
} */
.hero-stats-bar {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 0;
    transform: translateY(50%);
    z-index: 3;
    background: var(--text-light);
    border-radius: 14px;
    padding: 24px 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-stat {
    flex: 1;
    min-width: 140px;
    padding: 0 20px;
    border-left: 1px solid rgba(20, 20, 20, 0.1);
}

.hero-stat:first-child {
    border-left: none;
    padding-left: 0;
}

.hero-stat-value {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 800;
    color: #141414;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6B6154;
    margin-top: 4px;
}

/* Give the section breathing room since the bar hangs below it */
.hero-section {
    margin-bottom: 60px;
}

@media (max-width: 1100px) {
    .hero-stats-bar {
        position: relative;
        transform: none;
        left: 0;
        right: 0;
        margin: 24px 40px 0;
    }

    .hero-section {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .hero-stats-bar {
        margin: 20px 20px 0;
        padding: 20px;
        gap: 16px;
    }

    .hero-stat {
        flex: 1 1 40%;
        border-left: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-video-card {
        display: none;
    }

    .hero-heading {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        min-height: 640px;
    }

    .hero-inner {
        padding: 40px 20px;
    }

    .hero-heading {
        font-size: 32px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 14px;
        padding: 10px 10px 10px 18px;
    }
}