/* hero-slider.css
   ─────────────────────────────────────────────────────────────────
   Slides are stacked via position:absolute — ALL images load on
   page load (no lazy-reveal flash). Active slide fades/slides in.
   16:9 image ratio. 3-D lifted image with scattered shadow.
   Mobile: image on top, text + button below, everything centred.
   Timing: 600 ms — matches ANIM_MS in hero-slider.js
   ───────────────────────────────────────────────────────────────── */

/* ── wrapper ──────────────────────────────────────────────── */
.hero-slider-wrap {
    background: linear-gradient(135deg,
        rgba(26, 106, 72, 0.10) 0%,
        rgba(193, 154, 107, 0.13) 100%);
    overflow: hidden;
    position: relative;
    min-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .hero-slider-wrap {
        min-height: unset;
        padding-bottom: 24px;
    }
}

/* ── slide track — all slides stacked, container sized by active ── */
.hero-slides-track {
    position: relative;
}

/* Every slide sits on top of each other */
.hero-slide {
    position: absolute;
    inset: 0;
    padding: 48px 0 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    /* No transform on the slide itself — we animate the inner pieces */
}

/* Active slide is fully visible and interactive */
.hero-slide.active {
    position: relative; /* takes up space — defines track height */
    opacity: 1;
    pointer-events: auto;
}

/* Content animates in from left */
.hero-slide .hero-content {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.55s ease 0.05s, transform 0.55s ease 0.05s;
}

/* Image animates in from right / scale */
.hero-slide .hero-img-wrap {
    opacity: 0;
    transform: scale(0.93) translateX(20px);
    transition: opacity 0.55s ease 0.1s, transform 0.55s cubic-bezier(0.22,1,0.36,1) 0.1s,
                box-shadow 0.5s ease;
}

/* When active, animate children in */
.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateX(0);
}

.hero-slide.active .hero-img-wrap {
    opacity: 1;
    transform: rotateY(-6deg) rotateX(2deg) scale(1.01) translateX(0);
}

/* Leaving slide — fade out content quickly */
.hero-slide.leaving {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero-slide.leaving .hero-content,
.hero-slide.leaving .hero-img-wrap {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* ── content side ─────────────────────────────────────────── */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-right: 32px;
}

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: #4a5568;
    max-width: 460px;
    margin-bottom: 34px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.97rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
    box-shadow: 0 4px 18px rgba(26, 106, 72, 0.32);
    align-self: flex-start;
}

.hero-cta:hover {
    background: var(--brand-primary-hover, #155a3c);
    color: #fff;
    box-shadow: 0 10px 30px rgba(26, 106, 72, 0.42);
    transform: translateY(-3px);
}

/* ── image side — 16:9 with 3-D lift ─────────────────────── */
.hero-img-col {
    perspective: 1200px;
}

.hero-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;

    /* Scattered multi-layer shadow */
    box-shadow:
        0  8px  20px  rgba(0, 0, 0, 0.08),
        0 20px  48px  rgba(0, 0, 0, 0.14),
        0 48px 100px  rgba(0, 0, 0, 0.18),
        0 80px 160px  rgba(26, 106, 72, 0.12),
       -8px 32px 80px rgba(0, 0, 0, 0.10);
}

.hero-img-wrap:hover {
    transform: rotateY(-3deg) rotateX(1deg) scale(1.03) translateY(-6px) !important;
    box-shadow:
        0 16px  40px  rgba(0, 0, 0, 0.10),
        0 40px  80px  rgba(0, 0, 0, 0.18),
        0 80px 140px  rgba(0, 0, 0, 0.22),
        0 120px 220px rgba(26, 106, 72, 0.14),
       -12px 60px 120px rgba(0, 0, 0, 0.12) !important;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(1.03) saturate(1.05);
    transition: filter 0.4s ease;
}

.hero-img-wrap:hover img {
    filter: brightness(1.06) saturate(1.08);
}

/* Gloss sheen */
.hero-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0.05) 40%,
        transparent 60%
    );
    pointer-events: none;
    border-radius: inherit;
}

/* Color overlay from banner_bg_color */
.hero-img-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    pointer-events: none;
    border-radius: inherit;
}

/* ── controls ─────────────────────────────────────────────── */
.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0 32px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid rgba(26, 26, 26, 0.12);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-arrow:hover {
    background: var(--brand-tint-light, #e8f5ee);
    border-color: var(--brand-primary, #1a6a48);
    box-shadow: 0 4px 14px rgba(26,106,72,0.2);
    transform: scale(1.08);
}

.hero-arrow svg {
    width: 18px;
    height: 18px;
    stroke: #333;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-dots { display: flex; align-items: center; gap: 8px; }

.hero-dot {
    height: 8px;
    border-radius: 4px;
    background: rgba(26, 26, 26, 0.18);
    cursor: pointer;
    transition: width 0.35s ease, background 0.35s ease;
    width: 8px;
    padding: 0;
    border: none;
}

.hero-dot.active {
    width: 28px;
    background: var(--brand-primary, #1a6a48);
}

/* ── MOBILE — image on top, text below, centred ─────────── */
@media (max-width: 991px) {
    .hero-slide { padding: 16px 0 8px; }

    .hero-slide .row {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-img-col {
        perspective: none;
        width: 100%;
        margin-bottom: 24px;
    }

    /* No 3D on mobile */
    .hero-slide.active .hero-img-wrap {
        transform: none !important;
        box-shadow:
            0 12px 32px rgba(0,0,0,0.14),
            0 32px 64px rgba(0,0,0,0.12),
            0  4px 12px rgba(0,0,0,0.08);
        border-radius: 16px;
    }

    .hero-img-wrap:hover { transform: none !important; }

    .hero-content {
        padding-right: 0;
        align-items: center;
        text-align: center;
    }

    .hero-desc { font-size: 0.9rem; margin-bottom: 22px; max-width: 100%; }

    .hero-cta { align-self: center; padding: 13px 28px; }

    .hero-arrow { display: none; }

    .hero-controls { gap: 0; padding: 16px 0 20px; }
}

@media (max-width: 480px) {
    .hero-title  { font-size: 1.6rem; }
    .hero-desc   { font-size: 0.85rem; }
}