/* ═══════════════════════════════════════════════════════════
   Hero Slider for Elementor v4 — Fully Responsive Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Reset / Base ────────────────────────────────────────── */
.hse-slider *,
.hse-slider *::before,
.hse-slider *::after {
    box-sizing: border-box;
}

/* ── Slider wrapper ──────────────────────────────────────── */
.hse-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    display: block;
    line-height: 1;
}

/* ── Track ───────────────────────────────────────────────── */
.hse-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ════════════════════════════════════════════════════════════
   TRANSITION EFFECTS
   ════════════════════════════════════════════════════════════ */
.hse-effect-fade .hse-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--hse-speed, 700ms) ease;
    pointer-events: none;
    z-index: 1;
}
.hse-effect-fade .hse-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.hse-effect-slide {
    display: flex;
    will-change: transform;
    transition: transform var(--hse-speed, 700ms) cubic-bezier(.25,.46,.45,.94);
}
.hse-effect-slide .hse-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ── Slide ───────────────────────────────────────────────── */
.hse-slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;
    width: 100%;
    position: relative;
}

/* ── Overlay ─────────────────────────────────────────────── */
.hse-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ════════════════════════════════════════════════════════════
   SLIDE CONTENT — scrollable inner column on small screens
   ════════════════════════════════════════════════════════════ */
.hse-slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    /* Scrollable so nothing gets clipped on very small screens */
    overflow-y: auto;
    overflow-x: hidden;

    padding: 48px 64px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hse-slide-content::-webkit-scrollbar { display: none; }

/* ── Text wrap ───────────────────────────────────────────── */
.hse-text-wrap {
    width: 100%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   TYPOGRAPHY — fluid scaling with clamp()
   ════════════════════════════════════════════════════════════ */

/* Line 1 */
.hse-pretitle {
    font-size: clamp(1.35rem, 3.2vw, 2.8rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 6px;
    text-shadow: 0 2px 14px rgba(0,0,0,.4);
    word-break: break-word;
    hyphens: auto;
}

/* Line 2 wrapper */
.hse-title-line2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.25;
    margin-bottom: 6px;
}

/* Highlight badge */
.hse-highlight {
    display: inline-block;
    background: #f5c400;
    color: #fff;
    font-size: clamp(1.35rem, 3.2vw, 2.8rem);
    font-weight: 700;
    padding: 2px 10px 4px;
    border-radius: 2px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Suffix */
.hse-suffix {
    font-size: clamp(1.35rem, 3.2vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
    word-break: break-word;
    hyphens: auto;
}

/* Subtitle */
.hse-subtitle {
    font-size: clamp(0.78rem, 1.4vw, 1rem);
    color: #eee;
    line-height: 1.6;
    margin: 10px 0 0;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
    word-break: break-word;
}

/* ════════════════════════════════════════════════════════════
   CTA BUTTON
   ════════════════════════════════════════════════════════════ */
.hse-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 30px;
    background: #f5c400;
    color: #fff;
    font-weight: 700;
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 4px;
    transition: filter .22s ease, transform .22s ease;
    align-self: flex-start;
    line-height: 1.4;
    white-space: nowrap;
}
.hse-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   SERVICE CARDS — horizontal row that wraps gracefully
   ════════════════════════════════════════════════════════════ */
.hse-cards {
    display: flex;
    flex-direction: row;       /* always horizontal */
    flex-wrap: wrap;           /* wrap to next line if needed */
    gap: 10px;
    margin-top: 22px;
    width: 100%;
}

.hse-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    padding: 14px 18px;
    border-radius: 6px;
    text-align: center;
    gap: 7px;
    transition: transform .22s ease, box-shadow .22s ease;
    cursor: default;

    /* Fluid card width — never stack alone vertically */
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 130px;
}
.hse-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

/* Linked card — anchor tag variant */
a.hse-card-link {
    cursor: pointer;
}
a.hse-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    opacity: .92;
}

.hse-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.hse-card-icon i   { font-size: 36px; color: #222; line-height: 1; display: block; }
.hse-card-icon svg { width: 36px; height: 36px; display: block; }
.hse-card-icon img { width: 36px; height: 36px; object-fit: contain; display: block; }

.hse-card-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: .07em;
    color: #222;
    text-transform: uppercase;
    line-height: 1.3;
    display: block;
    word-break: break-word;
}

/* ════════════════════════════════════════════════════════════
   ARROWS — fixed perfect vertical + horizontal centre
   ════════════════════════════════════════════════════════════ */
.hse-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 48px;
    height: 48px;
    box-sizing: border-box;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 26px;
    font-weight: 300;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0;
    text-align: center;
    vertical-align: middle;

    background: rgba(0,0,0,.38);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: background .2s ease;
    flex-shrink: 0;
}
.hse-arrow:hover  { background: rgba(0,0,0,.7); }
.hse-arrow *      { pointer-events: none; }
.hse-prev { left: 16px; }
.hse-next { right: 16px; }
.hse-arrow:focus-visible { outline: 2px solid #f5c400; outline-offset: 2px; }

/* ════════════════════════════════════════════════════════════
   DOTS
   ════════════════════════════════════════════════════════════ */
.hse-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.hse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    padding: 0;
    display: block;
    transition: background .25s ease, transform .25s ease;
    outline: none;
    flex-shrink: 0;
}
.hse-dot.active  { background: #f5c400; transform: scale(1.4); }
.hse-dot:focus-visible { outline: 2px solid #f5c400; }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes hse-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hse-slide.active .hse-pretitle                       { animation: hse-fade-up .5s ease both 0s; }
.hse-slide.active .hse-title-line2                    { animation: hse-fade-up .5s ease both .10s; }
.hse-slide.active .hse-subtitle                       { animation: hse-fade-up .5s ease both .20s; }
.hse-slide.active .hse-btn                            { animation: hse-fade-up .5s ease both .28s; }
.hse-slide.active .hse-cards .hse-card:nth-child(1)   { animation: hse-fade-up .5s ease both .32s; }
.hse-slide.active .hse-cards .hse-card:nth-child(2)   { animation: hse-fade-up .5s ease both .40s; }
.hse-slide.active .hse-cards .hse-card:nth-child(3)   { animation: hse-fade-up .5s ease both .48s; }
.hse-slide.active .hse-cards .hse-card:nth-child(4)   { animation: hse-fade-up .5s ease both .56s; }
.hse-slide.active .hse-cards .hse-card:nth-child(5)   { animation: hse-fade-up .5s ease both .64s; }
.hse-slide.active .hse-cards a.hse-card-link:nth-child(1) { animation: hse-fade-up .5s ease both .32s; }
.hse-slide.active .hse-cards a.hse-card-link:nth-child(2) { animation: hse-fade-up .5s ease both .40s; }
.hse-slide.active .hse-cards a.hse-card-link:nth-child(3) { animation: hse-fade-up .5s ease both .48s; }
.hse-slide.active .hse-cards a.hse-card-link:nth-child(4) { animation: hse-fade-up .5s ease both .56s; }
.hse-slide.active .hse-cards a.hse-card-link:nth-child(5) { animation: hse-fade-up .5s ease both .64s; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* ── Large desktop (≥ 1280px) ── */
@media (min-width: 1280px) {
    .hse-slider         { height: 560px; }
    .hse-slide-content  { padding: 56px 80px; }
    .hse-text-wrap      { max-width: 52%; }
    .hse-card           { padding: 16px 22px; min-width: 100px; max-width: 150px; }
    .hse-card-icon i    { font-size: 42px; }
    .hse-card-label     { font-size: 0.68rem; }
}

/* ── Standard desktop (1024 – 1279px) ── already default ── */

/* ── Tablet landscape (768 – 1023px) ── */
@media (max-width: 1023px) {
    .hse-slider        { height: 480px; }
    .hse-slide-content { padding: 40px 44px; }
    .hse-text-wrap     { max-width: 65%; }
    .hse-card          { min-width: 80px; max-width: 115px; padding: 12px 14px; }
    .hse-card-icon i   { font-size: 34px; }
    .hse-card-label    { font-size: 0.60rem; }
    .hse-arrow         { width: 44px; height: 44px; font-size: 24px; }
}

/* ── Tablet portrait (600 – 767px) ── */
@media (max-width: 767px) {
    .hse-slider        { height: auto; min-height: 480px; }
    .hse-slide-content {
        position: relative;  /* break out of absolute so content can grow */
        inset: auto;
        min-height: 480px;
        padding: 36px 28px 52px;
        justify-content: flex-start;
        padding-top: 44px;
    }
    /* Overlay needs re-absolute when content is relative */
    .hse-slide { position: relative; }
    .hse-overlay { position: absolute; }

    .hse-text-wrap  { max-width: 100%; }

    .hse-pretitle,
    .hse-suffix,
    .hse-highlight { font-size: clamp(1.4rem, 5.5vw, 2rem); }

    .hse-subtitle   { font-size: 0.85rem; }

    /* Cards: 3 per row max, stay horizontal */
    .hse-cards {
        gap: 8px;
        margin-top: 18px;
    }
    .hse-card {
        flex: 1 1 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        min-width: 0;
        padding: 12px 8px;
    }
    .hse-card-icon i { font-size: 30px; }
    .hse-card-label  { font-size: 0.58rem; }

    .hse-arrow { width: 38px; height: 38px; font-size: 20px; }
    .hse-prev  { left: 8px; }
    .hse-next  { right: 8px; }

    /* Dots: push below content */
    .hse-dots  { bottom: 14px; }
}

/* ── Mobile (480 – 599px) ── */
@media (max-width: 599px) {
    .hse-slide-content {
        min-height: 440px;
        padding: 30px 20px 52px;
    }

    .hse-pretitle,
    .hse-suffix,
    .hse-highlight { font-size: clamp(1.25rem, 6vw, 1.7rem); }

    .hse-subtitle  { font-size: 0.82rem; line-height: 1.55; }

    /* 3 cards per row still, smaller */
    .hse-card {
        flex: 1 1 calc(33.333% - 6px);
        max-width: calc(33.333% - 6px);
        padding: 10px 6px;
        gap: 5px;
    }
    .hse-cards     { gap: 6px; }
    .hse-card-icon i { font-size: 26px; }
    .hse-card-label  { font-size: 0.55rem; letter-spacing: .05em; }

    .hse-arrow { width: 34px; height: 34px; font-size: 18px; }
    .hse-btn   { padding: 11px 22px; font-size: 0.82rem; }
}

/* ── Small mobile (≤ 479px) ── */
@media (max-width: 479px) {
    .hse-slide-content {
        min-height: 400px;
        padding: 26px 16px 50px;
    }

    .hse-pretitle,
    .hse-suffix,
    .hse-highlight { font-size: clamp(1.1rem, 6.5vw, 1.5rem); }

    .hse-subtitle   { font-size: 0.78rem; }
    .hse-title-line2 { gap: 4px; }

    /* 3 cards per row — ultra compact */
    .hse-cards {
        gap: 5px;
        margin-top: 14px;
    }
    .hse-card {
        flex: 1 1 calc(33.333% - 5px);
        max-width: calc(33.333% - 5px);
        min-width: 0;
        padding: 9px 4px;
        border-radius: 4px;
        gap: 4px;
    }
    .hse-card-icon i { font-size: 22px; }
    .hse-card-icon svg,
    .hse-card-icon img { width: 22px; height: 22px; }
    .hse-card-label { font-size: 0.5rem; letter-spacing: .03em; }

    /* Hide arrows — too cramped, swipe works */
    .hse-arrow { display: none !important; }

    .hse-btn   { padding: 10px 18px; font-size: 0.78rem; margin-top: 14px; }
    .hse-dots  { bottom: 10px; }
    .hse-dot   { width: 7px; height: 7px; }
}

/* ── Extra small (≤ 360px) ── */
@media (max-width: 360px) {
    .hse-slide-content { padding: 20px 12px 46px; }
    .hse-pretitle,
    .hse-suffix,
    .hse-highlight { font-size: 1rem; }
    .hse-card-icon i { font-size: 18px; }
    .hse-card-label  { font-size: 0.46rem; }
}
