/* ═══════════════════════════════════════════════
   Woolmers Hero Banner – c-hero-banner
   ═══════════════════════════════════════════════ */

/* ─── Tokens ─── */
/* ─── Section ─── */
.c-hero-banner {
    --chb-primary: #544638;           /* heritage chocolate  hsl(26,16%,25%) */
    --chb-primary-fg: #FAF8F5;        /* off-white           hsl(40,33%,97%) */
    --chb-accent: #B89E6C;            /* aged brass           hsl(33,36%,57%) */
    --chb-blue: #7A9DBF;              /* heritage blue        hsl(210,33%,60%) */
    --chb-slide-duration: 7s;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 6rem;
}

@media (min-width: 1024px) {
    .c-hero-banner {
        padding-top: 7rem;
    }
}

/* ─── Backgrounds ─── */
.c-hero-banner__backgrounds {
    position: absolute;
    inset: 0;
}

.c-hero-banner__bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c-hero-banner__bg--active {
    opacity: 1;
    transform: scale(1);
}

.c-hero-banner__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

/* Gradient overlays */
.c-hero-banner__overlay-v {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            var(--chb-primary) 0%,
            hsla(26, 16%, 25%, 0.4) 50%,
            hsla(26, 16%, 25%, 0.1) 100%
    );
}

.c-hero-banner__overlay-h {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to right,
            hsla(26, 16%, 25%, 0.4) 0%,
            transparent 50%,
            transparent 100%
    );
}

/* ─── Container ─── */
.c-hero-banner__container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

@media (min-width: 1024px) {
    .c-hero-banner__container {
        padding: 0 3rem 6rem;
    }
}

/* ─── Content / Slides ─── */
.c-hero-banner__content {
    max-width: 48rem;
    position: relative;
}

.c-hero-banner__slide {
    display: none;
    animation: chbFadeUp 0.6s ease-out;
}

.c-hero-banner__slide--active {
    display: block;
}

@keyframes chbFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.c-hero-banner__badge {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--chb-primary-fg);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsla(40, 33%, 97%, 0.4);
}

/* Heading */
.c-hero-banner__heading {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    color: #fff !important;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    font-weight: 700;
}

.c-hero-banner__heading-accent {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: var(--chb-accent);
    font-weight: 400;
}

.c-hero-banner__heading-accent--block {
    display: block;
    margin-top: 0.5rem;
}

/* Subtitle */
.c-hero-banner__sub {
    font-size: 1.125rem;
    color: hsla(40, 33%, 97%, 0.85);
    line-height: 1.65;
    max-width: 36rem;
    margin: 0 0 2.5rem;
}

@media (min-width: 1024px) {
    .c-hero-banner__sub {
        font-size: 1.25rem;
    }
}

/* ─── CTAs ─── */
.c-hero-banner__ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .c-hero-banner__ctas {
        flex-direction: row;
    }
}

.c-hero-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px !important;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s, color 0.25s;
    cursor: pointer;
    border: none;
    line-height: 1.5;
}

.c-hero-banner__btn--primary {
    background: #7799bb !important;
    color: #fff !important;
}

.c-hero-banner__btn--primary:hover {
    background: rgba(119, 153, 187, 0.9) !important;
}

.c-hero-banner__btn--secondary {
    background: #b9956a !important;
    color: #4a3e36 !important;
}

.c-hero-banner__btn--secondary:hover {
    background: rgba(185, 149, 106, 0.9) !important;
}

.c-hero-banner__btn-arrow {
    transition: transform 0.25s;
}

.c-hero-banner__btn:hover .c-hero-banner__btn-arrow {
    transform: translateX(4px);
}

/* ─── Quick Info Bar (desktop only) ─── */
.c-hero-banner__info-bar {
    display: none;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid hsla(40, 33%, 97%, 0.2);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .c-hero-banner__info-bar {
        display: flex;
    }
}

.c-hero-banner__info-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (min-width: 1280px) {
    .c-hero-banner__info-items {
        gap: 4rem;
    }
}

.c-hero-banner__info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsla(40, 33%, 97%, 0.8);
    font-size: 1rem;
}

.c-hero-banner__info-icon {
    color: var(--chb-accent);
    flex-shrink: 0;
}

/* ─── Controls (shared) ─── */
.c-hero-banner__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.c-hero-banner__controls--mobile {
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .c-hero-banner__controls--mobile {
        display: none;
    }
}

/* Play / Pause */
.c-hero-banner__play-pause {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 50% !important;
    border: 1px solid hsla(40, 33%, 97%, 0.4) !important;
    background: none !important;
    color: hsla(40, 33%, 97%, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: color 0.25s, border-color 0.25s !important;
    padding: 0 !important;
}

.c-hero-banner__play-pause:hover {
    color: var(--chb-primary-fg) !important;
    border-color: hsla(40, 33%, 97%, 0.6) !important;
}

/* Icon toggle: show pause by default, play when paused */
.c-hero-banner__icon-play {
    display: none;
}

.c-hero-banner--paused .c-hero-banner__icon-pause {
    display: none;
}

.c-hero-banner--paused .c-hero-banner__icon-play {
    display: block;
}

/* ─── Dots ─── */
.c-hero-banner__dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.c-hero-banner__dot {
    position: relative;
    height: 0.25rem !important;
    border-radius: 9999px !important;
    border: none !important;
    background: hsla(40, 33%, 97%, 0.3) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    transition: width 0.5s, background 0.5s !important;
    width: 1rem !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.c-hero-banner__dot--active {
    width: 2.5rem !important;
    background: var(--chb-accent) !important;
}

.c-hero-banner__dot:not(.c-hero-banner__dot--active):hover {
    background: hsla(40, 33%, 97%, 0.5) !important;
}

/* Progress bar inside active dot */
.c-hero-banner__dot-progress {
    position: absolute;
    inset: 0;
    background: hsla(33, 36%, 57%, 0.5);
    border-radius: 9999px;
    transform-origin: left;
    transform: scaleX(0);
}

.c-hero-banner__dot--active .c-hero-banner__dot-progress {
    animation: chbDotProgress var(--chb-slide-duration) linear forwards;
}

.c-hero-banner--paused .c-hero-banner__dot-progress {
    animation-play-state: paused;
}

@keyframes chbDotProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ─── Scroll Indicator ─── */
.c-hero-banner__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: chbBounce 2s ease-in-out infinite;
}

.c-hero-banner__scroll-track {
    width: 1.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid hsla(40, 33%, 97%, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 0;
}

.c-hero-banner__scroll-thumb {
    width: 0.25rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--chb-accent);
    animation: chbScrollThumb 2s ease-in-out infinite;
}

@keyframes chbBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

@keyframes chbScrollThumb {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(12px); }
}
