/* El Jarro homepage slider */

.hero {
    --hero-accent: #f2a93b;
    --hero-accent-hover: #ffc15e;
    --hero-ink: #2a1305;
    --hero-bg: #1b100b;
    --hero-ease: cubic-bezier(0.77, 0, 0.18, 1);
    position: relative;
    width: 100%;
    background: var(--hero-bg);
    overflow: hidden;
}

/* Undo the site's general button styling inside the slider */
.hero button {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    text-shadow: none;
    background-image: none;
    min-height: 0;
    line-height: normal;
}

.hero .swiper {
    width: 100%;
    aspect-ratio: 5 / 2; /* matches 2000 x 800 slide pictures */
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero.is-ready .swiper {
    opacity: 1;
}

/* Smooth, weighted movement for the slide transitions */
.hero.fx-reveal .swiper-slide,
.hero.fx-reveal .hero-media,
.hero.fx-zoom .swiper-slide {
    transition-timing-function: var(--hero-ease) !important;
}

.hero .swiper-slide {
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
}

.hero-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero.fx-reveal .hero-media {
    transition-property: transform;
    will-change: transform;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: 50% 50%;
}

/* Slow "Ken Burns" zoom, turned on per slide in the admin */
.hero-slide.is-zooming .hero-img {
    transform: scale(1.08);
    transition: transform var(--hero-zoom-time, 8s) linear;
}

/* ---------- Text over the picture ---------- */

.hero-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.text-left .hero-shade {
    background: linear-gradient(90deg, rgba(18, 9, 4, 0.78) 0%, rgba(18, 9, 4, 0.5) 38%, rgba(18, 9, 4, 0) 68%);
}

.text-right .hero-shade {
    background: linear-gradient(270deg, rgba(18, 9, 4, 0.78) 0%, rgba(18, 9, 4, 0.5) 38%, rgba(18, 9, 4, 0) 68%);
}

.text-center .hero-shade {
    background: radial-gradient(ellipse 60% 85% at 50% 50%, rgba(18, 9, 4, 0.66) 0%, rgba(18, 9, 4, 0.3) 60%, rgba(18, 9, 4, 0.1) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 7%;
    box-sizing: border-box;
    pointer-events: none;
}

.text-center .hero-overlay { justify-content: center; text-align: center; }
.text-right .hero-overlay { justify-content: flex-end; text-align: right; }
.text-left .hero-overlay { justify-content: flex-start; text-align: left; }

.hero-text {
    max-width: 46%;
    color: #fff;
}

.text-center .hero-text { max-width: 70%; }

.hero-eyebrow {
    margin: 0 0 0.5em;
    font-family: 'Droid Sans', Helvetica, Arial, sans-serif;
    font-size: clamp(11px, 1.15vw, 18px);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hero-accent);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero .hero-heading {
    margin: 0 0 0.18em;
    padding: 0;
    font-family: 'Oleo Script', Georgia, serif;
    font-weight: 400;
    font-size: clamp(26px, 5vw, 84px);
    line-height: 1.02;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
    letter-spacing: 0;
    text-transform: none;
    background: none;
    border: 0;
}

.hero-sub {
    margin: 0 0 1.1em;
    font-family: 'Droid Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(13px, 1.55vw, 24px);
    line-height: 1.4;
    color: #f7e9d7;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hero-button {
    display: inline-block;
    pointer-events: auto;
    padding: 0.85em 1.8em;
    border-radius: 999px;
    background: var(--hero-accent);
    color: var(--hero-ink) !important;
    font-family: 'Droid Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(11px, 1.05vw, 16px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
    background: var(--hero-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

/* Text arrives line by line after the picture settles */
.hero-text > * {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.hero-slide.is-current .hero-text > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease;
}

.hero-slide.is-current .hero-text > :nth-child(1) { transition-delay: 0.7s; }
.hero-slide.is-current .hero-text > :nth-child(2) { transition-delay: 0.85s; }
.hero-slide.is-current .hero-text > :nth-child(3) { transition-delay: 1.05s; }
.hero-slide.is-current .hero-text > :nth-child(4) { transition-delay: 1.25s; }

/* ---------- Arrows ---------- */

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(20, 10, 5, 0.35);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.35s ease, background 0.25s ease, border-color 0.25s ease, transform 0.35s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
}

.hero-prev { left: 24px; transform: translateX(-8px); }
.hero-next { right: 24px; transform: translateX(8px); }

.hero:hover .hero-arrow,
.hero-arrow:focus-visible {
    opacity: 1;
    transform: none;
}

.hero-arrow:hover {
    background: var(--hero-accent);
    border-color: var(--hero-accent);
    color: var(--hero-ink);
}

/* ---------- Progress bars ---------- */

.hero-progress {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-seg {
    position: relative;
    width: 48px;
    height: 18px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hero-seg::before,
.hero-seg-fill {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
}

.hero-seg::before {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-seg-fill {
    display: block;
    background: var(--hero-accent);
    transform: scaleX(0);
    transform-origin: left center;
}

.hero-seg:hover::before {
    background: rgba(255, 255, 255, 0.6);
}

.hero.is-single .hero-arrow,
.hero.is-single .hero-progress {
    display: none;
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
    /* Admin setting: taller slides on phones (sides of the picture are trimmed) */
    .hero.mobile-tall .swiper { aspect-ratio: 4 / 3; }
    .hero.mobile-tall .hero-text { max-width: 88%; }
    .hero.mobile-tall .text-left .hero-shade,
    .hero.mobile-tall .text-right .hero-shade {
        background: linear-gradient(0deg, rgba(18, 9, 4, 0.8) 0%, rgba(18, 9, 4, 0.35) 55%, rgba(18, 9, 4, 0.1) 100%);
    }
    .hero.mobile-tall .hero-overlay { align-items: flex-end; padding-bottom: 12%; }

    .hero-arrow { display: none; }
    .hero-progress { bottom: 6px; gap: 5px; }
    .hero-seg { width: 26px; }
    .hero-overlay { padding: 0 5%; }
    .hero-text { max-width: 62%; }
    .hero:not(.mobile-tall) .hero-sub { display: none; }
    .hero-button { padding: 0.6em 1.2em; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-zooming .hero-img { transform: none; transition: none; }
    .hero-text > *,
    .hero-slide.is-current .hero-text > * { transition: none; filter: none; transform: none; }
    .hero .swiper { transition: none; }
}
