/* Wildwood Hero Slider — Frontend Styles */

.ww-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    height: clamp(320px, 56vw, 700px);
}

.ww-slides-track { position: relative; width: 100%; height: 100%; }

/* ── Slide ─────────────────────────────────────────────────── */
.ww-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.ww-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Top Gradient Overlay ────────────────────────────────────── */
.ww-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ww-gradient-depth, 40%);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, var(--ww-overlay-alpha, 0.7)) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* ── Header Box (solid band) ─────────────────────────────────── */
.ww-header-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: rgba(0, 0, 0, var(--ww-box-alpha, 0.7));
    z-index: 5;
    pointer-events: none;
}

/* ── Background Image ───────────────────────────────────────── */
.ww-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Ken Burns controlled via JS adding/removing class */
    transition: transform 8s ease;
    transform: scale(1);
}
.ww-slide-bg.ww-ken-burns-active {
    transform: scale(1.04);
}

/* ── Overlay ────────────────────────────────────────────────── */
.ww-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* ── Content ─────────────────────────────────────────────────── */
.ww-slide-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    color: #fff;
    z-index: 6;
    max-width: 55%;
    box-sizing: border-box;
}

.ww-headline {
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    letter-spacing: -.5px;
    white-space: nowrap;
}

.ww-tagline {
    line-height: 1.4;
    margin: 0 0 20px;
    opacity: .95;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
    white-space: nowrap;
}

.ww-cta-btn {
    display: inline-block;
    padding: 13px 28px;
    background: #e07b00;
    color: #fff !important;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 4px;
    letter-spacing: .3px;
    align-self: flex-start;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.ww-cta-btn:hover {
    opacity: .88;
    transform: translateY(-2px);
}

/* ── Navigation Arrows ──────────────────────────────────────── */
.ww-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.ww-nav:hover { background: rgba(255,255,255,.35); }
.ww-prev { left: 16px; }
.ww-next { right: 16px; }

/* ── Dots ───────────────────────────────────────────────────── */
.ww-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.ww-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s, border-color .2s;
}
.ww-dot.active {
    background: #fff;
    border-color: #fff;
}

/* ── Mobile font scaling ─────────────────────────────────────── */
@media (max-width: 768px) {
    .ww-headline { font-size: calc(var(--ww-hl, 48px) * 0.65) !important; white-space: normal; }
    .ww-tagline  { font-size: calc(var(--ww-tl, 18px) * 0.75) !important; white-space: normal; }
}

@media (max-width: 640px) {
    .ww-hero-slider { height: clamp(280px, 75vw, 420px); }
    .ww-slide-overlay {
        background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.05) 100%);
    }
    /* On mobile, override zone positioning — always bottom-left, full width */
    .ww-slide-content {
        top: auto !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
        max-width: 100% !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .ww-cta-btn { padding: 10px 20px; font-size: .85rem; align-self: flex-start !important; }
    .ww-nav { width: 38px; height: 38px; font-size: 1.8rem; }
    .ww-prev { left: 8px; }
    .ww-next { right: 8px; }
}
