/* ═══════════════════════════════════════════════════════
   HERO.CSS — Full-Viewport Hero Slider
   ═══════════════════════════════════════════════════════ */

/* ── Section Wrapper ──────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--charcoal);
}

/* ── Slide Track ──────────────────────────────────────── */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Individual Slide ─────────────────────────────────── */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    will-change: opacity;
}

.slide.is-active {
    opacity: 1;
    animation: kenBurns 8s ease-out both;
}

@keyframes kenBurns {
    from { transform: scale(1.06); }
    to   { transform: scale(1.0); }
}

/* ── Overlay Gradient ─────────────────────────────────── */
.slider-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(31, 139, 79, 0.55) 0%,
            rgba(31, 139, 79, 0.30) 50%,
            rgba(44, 62, 80, 0.60) 100%
        );
    z-index: 2;
}

/* ── Hero Content ─────────────────────────────────────── */
/*
   KEY FIX: fadeInUp was overwriting transform: translate(-50%, -50%)
   which destroyed the centering. We now keep the positioning transform
   on .hero-content untouched, and animate only opacity + margin on
   the inner .hero-content-inner wrapper.
*/
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 860px;
    padding: 0 40px;
}

/* Fade-in lives here — margin-top trick avoids touching transform */
.hero-content-inner {
    animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        margin-top: 20px;
    }
    to {
        opacity: 1;
        margin-top: 0;
    }
}

/* ── Headline ─────────────────────────────────────────── */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 62px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    color: white;
}

/* ── Subheadline ──────────────────────────────────────── */
.hero-subheadline {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.95;
    margin-bottom: 44px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

/* ── CTA Buttons ──────────────────────────────────────── */
.hero-cta-wrap {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta-wrap .btn {
    font-size: 14px;
    padding: 15px 38px;
    border-radius: 8px;
}

/* ── Prev / Next Arrows ───────────────────────────────── */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: white;
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow--prev { left: 28px; }
.slider-arrow--next { right: 28px; }

/* ── Dot Indicators ───────────────────────────────────── */
.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    align-items: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.slider-dot.is-active,
.slider-dot:hover {
    background: white;
    transform: scale(1.3);
    border-color: white;
}

/* ── Scroll Hint ──────────────────────────────────────── */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    right: 32px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
    0%   { left: -100%; }
    100% { left: 100%; }
}