/*
 * Header Slider Styles
 *
 * @author Fudo
 * @date   2025-05-11
 * @desc   Styles for the [header_slider] shortcode.
 *         Dark cinematic aesthetic matching Idaho state site hero banners.
 *         Place this file at: /css/header-slider.css
 */

/* ============================================================
   Wrapper
   ============================================================ */
.header-slider-wrap {
    position: relative;
    width: 60%;
    overflow: hidden;
    /* Height controlled by the .site-branding context.
       Override here if used standalone: */
    min-height: 260px;
}

/* ============================================================
   Track & Slides
   ============================================================ */
.header-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* content sits right, matching screenshot */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;

    /* Ensure the track has height when first slide is absolute */
    min-height: inherit;
}

/* First slide establishes natural document height */
.header-slide:first-child {
    position: relative;
}

.header-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* ============================================================
   Dark Overlay
   ============================================================ */
.header-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* ============================================================
   Slide Inner Layout
   ============================================================ */
.header-slide-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2.5rem 1.25rem;
}



/* Constrain to container width */
@media (min-width: 1200px) {
    .header-slide-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem 2rem;
    }
}

.header-slide-content {
    max-width: 700px;
    padding: 2rem;
}

/* ============================================================
   Slide Typography
   ============================================================ */
.header-slide-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

@media (max-width: 767px) {
    .header-slide-headline {
        font-size: 1.25rem;
        line-height: 1.25;
    }
}

.header-slide-body {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    margin: 0 0 1.5rem;
/*     text-shadow: 0 1px 3px rgba(0,0,0,0.4); */
}

/* ============================================================
   CTA Button
   ============================================================ */
.header-slide-btn {
    display: inline-block;
    padding: 8px 50px;
    border: 2px solid #ffffff;
    border-radius: 4px!important;
    color: #ffffff;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
	line-height: 1;
    transition: background 0.25s ease, color 0.25s ease;
}

.header-slide-btn:hover,
.header-slide-btn:focus {
    background: transparent;
    color: #ffffff;
    outline: none;
    text-decoration: none;
}

.header-slide-btn:focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 3px;
}

/* ============================================================
   Prev / Next Arrows
   ============================================================ */
.hs-arrow {
 	position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem!important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}
.hs-arrow:hover,
.hs-arrow:focus {
    background: none;
    opacity: 0.7;
    outline: none;
}

.hs-arrow i {
    font-size: 3.3rem!important;
}

#masthead .header-background {
    position: relative;
}

#masthead .header-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

#masthead .header-background > * {
    position: relative;
    z-index: 2;
}

.hs-arrow:focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 2px;
}

.hs-prev { left: 12px; }
.hs-next { right: 12px; }

/* ============================================================
   Dot Navigation
   ============================================================ */
/* .hs-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hs-dot.is-active {
    background: #ffffff;
    border-color: #ffffff;
}

.hs-dot:focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 2px;
} */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .header-slide-content {
        max-width: 100%;
        margin-left: 0;
        padding: 1rem;
		text-align: center;
    }

    .header-slide-inner {
        padding: 2rem 1rem;
    }

    .hs-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.6rem;
    }

    .header-slide-headline {
        font-size: 1.3rem;
    }

    .header-slide-body {
        font-size: 1.2rem;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .hs-prev { left: 6px; }
    .hs-next { right: 6px; }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .header-slide {
        transition: none;
    }
}