/* ==========================================================
   Home hero slider (photo arc + brown info panel)
   ========================================================== */
.jz-hero {
    --jz-brown: #582f03;
    --jz-brown-dark: #3f2102;
    --jz-ring-1: #ffffff;
    --jz-ring-2: #8c8c8c;
    position: relative;
    background: var(--jz-brown);
    color: #fff;
    overflow: hidden;
}

.jz-hero__track {
    display: grid;               /* all slides share one cell; height = tallest */
}

.jz-slide {
    grid-area: 1 / 1;
    position: relative;
    height: clamp(420px, 40vw, 760px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility 0s linear .8s;
}

.jz-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .8s ease, visibility 0s;
}

/* ---- photo with curved right edge and white/grey rings ---- */
.jz-slide__photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 52%;
    overflow: hidden;
    border-radius: 0 34% 34% 0 / 0 50% 50% 0;
    box-shadow: 0 0 0 10px var(--jz-ring-1), 0 0 0 20px var(--jz-ring-2);
    z-index: 1;
}

.jz-slide__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}

.jz-slide.is-active .jz-slide__photo img {
    transform: scale(1);
}

/* ---- text panel ---- */
.jz-slide__content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48%;
    padding: 40px 5% 70px 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.jz-slide__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.15;
    font-size: clamp(28px, 3.1vw, 60px);
    color: #fff;
    margin: 0 0 .35em;
}

.jz-slide__tagline {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: clamp(13px, 1.35vw, 26px);
    color: #fff;
    margin: 0 0 1.6em;
}

.jz-slide__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 2vw, 40px);
}

.jz-slide__features li {
    flex: 0 0 auto;
    width: clamp(92px, 8.6vw, 168px);
    height: clamp(92px, 8.6vw, 168px);
    border-radius: 50%;
    background: #fff;
    color: var(--jz-brown);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35em;
    padding: 8%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.jz-slide__features .fa {
    font-size: clamp(26px, 2.5vw, 50px);
    line-height: 1;
}

.jz-slide__features span {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: clamp(9px, .72vw, 14px);
    line-height: 1.2;
}

.jz-slide__link {
    margin-top: 1.8em;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 30px;
    padding: 10px 26px;
    transition: background .3s, color .3s;
}

.jz-slide__link:hover,
.jz-slide__link:focus {
    background: #fff;
    color: var(--jz-brown);
    text-decoration: none;
}

/* ---- controls ---- */
.jz-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background .3s;
}

.jz-hero__arrow:hover,
.jz-hero__arrow:focus-visible {
    background: rgba(255, 255, 255, .5);
    outline: none;
}

.jz-hero__arrow--prev { left: 24px; }
.jz-hero__arrow--next { right: 24px; }

.jz-hero__dots {
    position: absolute;
    left: 74%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.jz-hero__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background .3s, transform .3s;
}

.jz-hero__dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

/* ---- tablet ---- */
@media (max-width: 1024px) {
    .jz-slide__photo { width: 50%; }
    .jz-slide__content { width: 50%; padding: 30px 76px 60px 5%; }
    .jz-slide__features { gap: 10px; }
    .jz-slide__features li { width: clamp(84px, 10vw, 110px); height: clamp(84px, 10vw, 110px); }
    .jz-slide__features span { font-size: clamp(8px, 1vw, 11px); }
    .jz-slide__link { display: none; }
    .jz-hero__arrow { width: 44px; height: 44px; font-size: 18px; }
    .jz-hero__arrow--prev { left: 14px; }
    .jz-hero__arrow--next { right: 14px; }
}

/* ---- mobile: photo on top, text below ---- */
@media (max-width: 820px) {
    .jz-slide { height: auto; }

    .jz-slide__photo {
        position: relative;
        width: 100%;
        height: 62vw;
        border-radius: 0 0 50% 50% / 0 0 16% 16%;
        box-shadow: 0 0 0 6px var(--jz-ring-1), 0 0 0 12px var(--jz-ring-2);
    }

    .jz-slide__content {
        position: relative;
        width: 100%;
        padding: 30px 16px 56px;
    }

    .jz-slide__title { font-size: clamp(22px, 6.6vw, 34px); }
    .jz-slide__tagline { font-size: clamp(11px, 3.2vw, 15px); letter-spacing: .08em; margin-bottom: 1.3em; }

    .jz-slide__features { gap: 8px; }
    .jz-slide__features li { width: clamp(84px, 27vw, 110px); height: clamp(84px, 27vw, 110px); padding: 6%; }
    .jz-slide__features .fa { font-size: clamp(22px, 7vw, 30px); }
    .jz-slide__features span { font-size: clamp(8px, 2.5vw, 11px); }

    .jz-hero__arrow {
        top: 31vw;              /* centre of the photo */
        width: 40px;
        height: 40px;
        font-size: 16px;
        background: rgba(0, 0, 0, .35);
    }
    .jz-hero__arrow--prev { left: 10px; }
    .jz-hero__arrow--next { right: 10px; }

    .jz-hero__dots { left: 50%; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .jz-slide,
    .jz-slide.is-active,
    .jz-slide__photo img { transition: none; }
    .jz-slide__photo img { transform: none; }
}
