/* =============================================================================
   GASTROLINE — HOME HEADER / HERO / SLICK (home-new-may-2026.php)
   Split from header-b2b.css. Enqueued only on the home template.
   Depends on CSS variables from header-b2b.css (:root).
   ============================================================================= */

/* ─── HERO SLIDER (home-new-may-2026.php) ────────────────────────────────────── */

/* ── Wrapper ── */
.hero-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
    line-height: 0;
    height: 350px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

/* Force Slick internals to fill the wrapper exactly */
.hero-slider,
.hero-slider .slick-list,
.hero-slider .slick-track,
.hero-slider .slick-slide,
.hero-slider .slick-slide > div {
    height: 350px !important;
}

/* Each slide */
.hero-slide {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    line-height: normal;
}

/* Background image — fills slide completely */
.hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform;
}

.hero-slide__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Deferred slides (home perf): only first hero image is eager; others load after idle */
.hero-slide__bg.hero-slide__bg--defer {
    background-color: #0c1c2e;
    background-image: none !important;
}

/* ── Per-slide cinematic keyframe animations ── */
@keyframes kb-zoom-in {
    from { transform: scale(1.14); }
    to   { transform: scale(1.0);  }
}
@keyframes kb-zoom-out {
    from { transform: scale(1.0);  }
    to   { transform: scale(1.12); }
}
@keyframes kb-pan-left {
    from { transform: scale(1.08) translateX(4%); }
    to   { transform: scale(1.08) translateX(-4%); }
}
@keyframes kb-pan-right {
    from { transform: scale(1.08) translateX(-4%); }
    to   { transform: scale(1.08) translateX(4%); }
}

.hero-slide__bg--zoom-in.is-animating  { animation: kb-zoom-in   7s cubic-bezier(0.25,0.1,0.25,1) forwards; }
.hero-slide__bg--zoom-out.is-animating { animation: kb-zoom-out  7s cubic-bezier(0.25,0.1,0.25,1) forwards; }
.hero-slide__bg--pan-left.is-animating { animation: kb-pan-left  7s cubic-bezier(0.25,0.1,0.25,1) forwards; }
.hero-slide__bg--pan-right.is-animating { animation: kb-pan-right 7s cubic-bezier(0.25,0.1,0.25,1) forwards; }

/* ── Cinematic light-sweep shimmer over the photo ── */
.hero-slide__bg::after {
    display: none;
}
@keyframes light-sweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

/* Overlay removed — photo shows fully */
.hero-slide__overlay { display: none; }

/* Left-side overlay — improves white text on left-aligned slides */
.hero-slide:not(.hero-slide--reverse)::after {
    display: block;
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.48) 0%,
        rgba(0, 0, 0, 0.30) 36%,
        rgba(0, 0, 0, 0.10) 56%,
        transparent 72%
    );
}

.hero-slide--reverse::after {
    display: none;
}

/* Content panel — no solid box, sits above the gradient layer */
.hero-slide__content {
    position: absolute;
    top: 0;
    /* align left edge with .wrapper content (max-width:1280px, width:95%) */
    left: max(2.5vw, calc((100vw - 1280px) / 2));
    bottom: 0;
    z-index: 2;
    width: clamp(320px, 44%, 520px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(28px, 4vw, 56px);
    padding-left: clamp(16px, 2vw, 28px);
    padding-right: clamp(16px, 2vw, 28px);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    max-width: none;
}

/* Accent line removed — was appearing at hero edges on ~1280px screens */
.hero-slide__content::before {
    display: none;
}

/* Eyebrow label */
.hero-slide__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--hdr-red);
    border: 1px solid var(--hdr-red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 16px;
    width: fit-content;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s 0.25s ease, transform 0.4s 0.25s ease;
}
.slick-active .hero-slide__label {
    opacity: 1;
    transform: translateX(0);
}

/* Main title */
.hero-slide__title {
    font-size: clamp(22px, 2.6vw, 38px);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 14px;
    text-shadow: none;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.5s 0.42s ease, transform 0.5s 0.42s ease;
}
.slick-active .hero-slide__title {
    opacity: 1;
    transform: translateX(0);
}

/* Subtitle */
.hero-slide__sub {
    font-size: clamp(13px, 1.3vw, 16px);
    color: rgba(200, 220, 240, 0.90);
    line-height: 1.6;
    margin: 0 0 28px;
    font-weight: 400;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.45s 0.58s ease, transform 0.45s 0.58s ease;
}
.slick-active .hero-slide__sub {
    opacity: 1;
    transform: translateX(0);
}

/* Action buttons row */
.hero-slide__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.45s 0.74s ease, transform 0.45s 0.74s ease;
}
.slick-active .hero-slide__actions {
    opacity: 1;
    transform: translateX(0);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.18s;
}
.hero-btn:hover { transform: translateY(-2px); }

.hero-btn--primary {
    background: var(--hdr-red);
    color: #fff;
    border: 2px solid var(--hdr-red);
}
.hero-btn--primary:hover { background: #9a0000; border-color: #9a0000; color: #fff; }

.hero-btn--outline {
    background: transparent;
    color: rgba(200, 220, 240, 0.92);
    border: 2px solid rgba(200, 220, 240, 0.45);
}
.hero-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(200,220,240,0.80);
    color: #fff;
}

/* ── Navy text variant (.hero-slide--navy) ── */
.hero-slide--navy .hero-slide__label {
    color: var(--hdr-navy, #003b6b);
    border-color: var(--hdr-navy, #003b6b);
}
.hero-slide--navy .hero-slide__title {
    color: var(--hdr-navy, #003b6b);
    text-shadow: none;
}
.hero-slide--navy .hero-slide__sub {
    color: rgba(0, 59, 107, 0.80);
}
.hero-slide--navy .hero-btn--outline {
    color: var(--hdr-navy, #003b6b);
    border-color: rgba(0, 59, 107, 0.55);
}
.hero-slide--navy .hero-btn--outline:hover {
    background: rgba(0, 59, 107, 0.08);
    border-color: var(--hdr-navy, #003b6b);
    color: var(--hdr-navy, #003b6b);
}

/* ── Reverse layout: content panel on RIGHT ── */
.hero-slide--reverse .hero-slide__content {
    left: auto;
    right: max(2.5vw, calc((100vw - 1280px) / 2));
    border: none;
    align-items: flex-end;   /* right-align children (label, buttons) */
    text-align: right;
}
/* Accent bar removed for reverse slides too */
.hero-slide--reverse .hero-slide__content::before {
    display: none;
}
/* Label: right-aligned, enter from right */
.hero-slide--reverse .hero-slide__label {
    transform: translateX(10px);
}
.hero-slide--reverse.slick-active .hero-slide__label,
.slick-active .hero-slide--reverse .hero-slide__label {
    transform: translateX(0);
}
/* Title: enter from right */
.hero-slide--reverse .hero-slide__title {
    transform: translateX(14px);
}
.hero-slide--reverse.slick-active .hero-slide__title,
.slick-active .hero-slide--reverse .hero-slide__title {
    transform: translateX(0);
}
/* Sub: enter from right */
.hero-slide--reverse .hero-slide__sub {
    transform: translateX(10px);
}
.hero-slide--reverse.slick-active .hero-slide__sub,
.slick-active .hero-slide--reverse .hero-slide__sub {
    transform: translateX(0);
}
/* Buttons row: enter from right, right-aligned */
.hero-slide--reverse .hero-slide__actions {
    transform: translateX(8px);
    justify-content: flex-end;
}
.hero-slide--reverse.slick-active .hero-slide__actions,
.slick-active .hero-slide--reverse .hero-slide__actions {
    transform: translateX(0);
}

/* ── Arrows — hidden ── */
.hero-arrow { display: none !important; }

/* ── Dot navigation ── */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 6px 14px;
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 10;
}
.hero-dots li { display: flex; align-items: center; }
.hero-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background 0.25s, width 0.3s ease, border-radius 0.3s ease, border-color 0.25s;
}
/* Active dot expands into a pill */
.hero-dots li.slick-active button {
    width: 28px;
    border-radius: 5px;
    background: var(--hdr-red);
    border-color: var(--hdr-red);
}

/* ── Progress bar ── */
.hero-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.18);
    z-index: 11;
}
.hero-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--hdr-red);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide__bg--zoom-in.is-animating,
    .hero-slide__bg--zoom-out.is-animating,
    .hero-slide__bg--pan-left.is-animating,
    .hero-slide__bg--pan-right.is-animating { animation: none; }
    .hero-slide__bg::after { animation: none; }
}
/* ── Bottom info block: slider + text (home template) ───────────────────── */
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    gap: clamp(22px, 3.4vw, 42px);
    align-items: stretch;
    margin: clamp(34px, 4.5vw, 64px) 0 0;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 14px;
    border: 1px solid var(--hdr-border, #e2e6ea);
    background: #fff;
    box-shadow: var(--hdr-shadow, 0 2px 12px rgba(0,0,0,0.07));
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box-left {
    width: 100%;
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box-right {
    width: 100%;
    min-width: 0;
}

body.page-template-home-new-may-2026 .bottom-info-slider {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hdr-border, #e2e6ea);
    background: #f9fafb;
}
body.page-template-home-new-may-2026 .bottom-info-gallery__frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}
body.page-template-home-new-may-2026 .bottom-info-slide {
    aspect-ratio: 5 / 4;
    position: relative;
    overflow: hidden;
}
body.page-template-home-new-may-2026 .bottom-info-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

body.page-template-home-new-may-2026 .bottom-info-slider__dots {
    margin-top: 12px;
}
body.page-template-home-new-may-2026 .bottom-info-slider__dots .slick-dots {
    position: static !important;
    bottom: auto !important;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
    list-style: none;
}
body.page-template-home-new-may-2026 .bottom-info-slider__dots .slick-dots li {
    position: static;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
}
body.page-template-home-new-may-2026 .bottom-info-slider__dots .slick-dots li button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d5dbe3;
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
}
body.page-template-home-new-may-2026 .bottom-info-slider__dots .slick-dots li button:before {
    display: none !important;
    content: none !important;
}
body.page-template-home-new-may-2026 .bottom-info-slider__dots .slick-dots li.slick-active button {
    width: 24px;
    border-radius: 8px;
    background: var(--hdr-red, #b80000);
}

body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box__title {
    margin: 0 0 12px;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.25;
    color: var(--hdr-navy, #003b6b);
    font-weight: 700;
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box__subtitle {
    margin: -2px 0 16px;
    font-size: 0.96rem;
    line-height: 1.4;
    color: var(--hdr-muted, #5d6b7a);
    font-weight: 600;
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box-right p {
    margin: 0 0 12px;
    font-size: 0.98rem;
    line-height: 1.72;
    color: #334155;
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box-right p strong {
    color: #132338;
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box-right p:last-child {
    margin-bottom: 0;
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box__map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 12px 22px;
    border-radius: 6px;
    border: 2px solid var(--hdr-navy, #003b6b);
    background: var(--hdr-navy, #003b6b);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box__map-btn:hover {
    background: #002a4f;
    border-color: #002a4f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,59,107,0.24);
}
body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box__map-btn:focus-visible {
    outline: 2px solid var(--hdr-red, #b80000);
    outline-offset: 3px;
}
@media (max-width: 980px) {
    body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box {
        grid-template-columns: 1fr;
    }
    /* Aspect ratio + max-height handled in home-bottom-info-responsive.css */
}
@media (max-width: 560px) {
    body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box {
        padding: 16px;
        border-radius: 10px;
    }
    body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box__title {
        font-size: 1.1rem;
    }
    body.page-template-home-new-may-2026 .preveda-page-content .info-bottom-box-right p {
        font-size: 0.93rem;
        line-height: 1.62;
    }
}
@media (max-width: 900px) {
    .hero-slider-wrap,
    .hero-slider,
    .hero-slider .slick-list,
    .hero-slider .slick-track,
    .hero-slider .slick-slide,
    .hero-slider .slick-slide > div,
    .hero-slide { height: 350px !important; }
    .hero-slide__content {
        width: 60%;
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media (max-width: 600px) {
    .hero-slider-wrap,
    .hero-slider,
    .hero-slider .slick-list,
    .hero-slider .slick-track,
    .hero-slider .slick-slide,
    .hero-slider .slick-slide > div,
    .hero-slide { height: 340px !important; }
    /* On mobile — bottom gradient for left-text slides */
    .hero-slide:not(.hero-slide--reverse)::after {
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.48) 42%,
            rgba(0, 0, 0, 0.14) 68%,
            transparent 85%
        ) !important;
    }
    .hero-slide--reverse::after { display: none; }
    .hero-slide__content {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        border: none;
        padding-left: 16px;
        padding-right: 16px;
        padding: 18px 20px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
    }
    .hero-slide--reverse .hero-slide__content {
        align-items: flex-start;
        text-align: left;
    }
    .hero-slide__content::before { display: none; }
    .hero-slide__sub { display: none; }
    .hero-btn { padding: 9px 16px; font-size: 12px; }
}
/* ══════════════════════════════════════════════════════════════
   HOMEPAGE FULL-BLEED HERO — header overlays hero from the top
   Body class on this page template: .page-template-home-new-may-2026
   Effect: hero fills 100 vh from y=0; header floats above it with
   semi-transparent / frosted-glass tint.
   margin-top: 0 !important blocks the JS sticky-header compensation
   that would otherwise shift the absolute-position header down.
══════════════════════════════════════════════════════════════ */

/* Body anchor: absolute children are positioned relative to body,
   so they respect the 32 px html margin WordPress adds for admin bar. */
body.page-template-home-new-may-2026 {
    position: relative;
}

/* Float the entire header above the hero */
body.page-template-home-new-may-2026 .site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    margin-top: 0 !important; /* block JS .css('margin-top','110px') */
}

/* Topbar: same navy gradient site-wide (#003b6b family). */
body.page-template-home-new-may-2026 .hdr-topbar {
    background: var(--hdr-topbar-gradient);
    border-bottom: 2px solid var(--hdr-navy-dk);
}

/* Logo box: frosted white so logo stays readable */
body.page-template-home-new-may-2026 .logo-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0,0,0,0.08);
}

/* Nav bar: dark navy */
body.page-template-home-new-may-2026 .header-nav-bg {
    background: var(--hdr-nav-bg, #0c1c2e);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ── Hero sizing: taller aspect so banners show more product ── */
body.page-template-home-new-may-2026 .hero-slider-wrap {
    width: 100%;
    height: min(clamp(620px, calc(100vw * 1050 / 1983), 1100px), 96vh) !important;
    margin-top: 0;
    margin-bottom: 0;
}

body.page-template-home-new-may-2026 .hero-slider,
body.page-template-home-new-may-2026 .hero-slider .slick-list,
body.page-template-home-new-may-2026 .hero-slider .slick-track,
body.page-template-home-new-may-2026 .hero-slider .slick-slide,
body.page-template-home-new-may-2026 .hero-slider .slick-slide > div,
body.page-template-home-new-may-2026 .hero-slide {
    height: 100% !important;
    min-height: inherit;
    max-height: inherit;
}

body.page-template-home-new-may-2026 .hero-slide__img {
    object-fit: cover;
    /* Bias slightly toward top so product tops stay in frame under the overlay header */
    object-position: center 30%;
}

/* Softer Ken Burns — less zoom = less crop + sharper image */
body.page-template-home-new-may-2026 .hero-slide__bg--zoom-in.is-animating  { animation: kb-home-zoom-in   7s cubic-bezier(0.25,0.1,0.25,1) forwards; }
body.page-template-home-new-may-2026 .hero-slide__bg--zoom-out.is-animating { animation: kb-home-zoom-out  7s cubic-bezier(0.25,0.1,0.25,1) forwards; }
body.page-template-home-new-may-2026 .hero-slide__bg--pan-left.is-animating { animation: kb-home-pan-left  7s cubic-bezier(0.25,0.1,0.25,1) forwards; }
body.page-template-home-new-may-2026 .hero-slide__bg--pan-right.is-animating { animation: kb-home-pan-right 7s cubic-bezier(0.25,0.1,0.25,1) forwards; }

@keyframes kb-home-zoom-in {
    from { transform: scale(1.04); }
    to   { transform: scale(1.0);  }
}
@keyframes kb-home-zoom-out {
    from { transform: scale(1.0);  }
    to   { transform: scale(1.04); }
}
@keyframes kb-home-pan-left {
    from { transform: scale(1.03) translateX(2%); }
    to   { transform: scale(1.03) translateX(-2%); }
}
@keyframes kb-home-pan-right {
    from { transform: scale(1.03) translateX(-2%); }
    to   { transform: scale(1.03) translateX(2%); }
}

/* ── Content panel position for the overlay header ──
   Desktop header height ≈ 38 (topbar) + 80 (logo) + 52 (nav) = 170 px.
   Use flex-start so text anchors just below the header band, in the
   naturally blank lower portion of the photo. */
body.page-template-home-new-may-2026 .hero-slide__content {
    justify-content: center;
    padding-top: calc(170px + 20px);
    padding-bottom: clamp(36px, 5vw, 64px);
    /* inherit left/right alignment from base rule — no override needed */
}

/* ── Tablet ≤ 900 px ── */
@media (max-width: 900px) {
    body.page-template-home-new-may-2026 .site-header {
        position: relative !important;
    }

    body.page-template-home-new-may-2026 .hero-slider-wrap {
        height: min(clamp(340px, calc(100vw * 0.75), 480px), 58vh) !important;
    }
    body.page-template-home-new-may-2026 .hero-slider-wrap,
    body.page-template-home-new-may-2026 .hero-slider,
    body.page-template-home-new-may-2026 .hero-slider .slick-list,
    body.page-template-home-new-may-2026 .hero-slider .slick-track,
    body.page-template-home-new-may-2026 .hero-slider .slick-slide,
    body.page-template-home-new-may-2026 .hero-slider .slick-slide > div,
    body.page-template-home-new-may-2026 .hero-slide {
        height: 100% !important;
    }
    body.page-template-home-new-may-2026 .hero-slide__content {
        justify-content: center;
        padding-bottom: clamp(40px, 5vw, 64px);
    }
}

/* ── Mobile ≤ 767 px ── */
@media (max-width: 767px) {
    body.page-template-home-new-may-2026 .site-header {
        position: relative !important;
    }

    body.page-template-home-new-may-2026 .hero-slider-wrap {
        height: min(clamp(300px, calc(100vw * 0.85), 420px), 56vh) !important;
    }
    body.page-template-home-new-may-2026 .hero-slider-wrap,
    body.page-template-home-new-may-2026 .hero-slider,
    body.page-template-home-new-may-2026 .hero-slider .slick-list,
    body.page-template-home-new-may-2026 .hero-slider .slick-track,
    body.page-template-home-new-may-2026 .hero-slider .slick-slide,
    body.page-template-home-new-may-2026 .hero-slider .slick-slide > div,
    body.page-template-home-new-may-2026 .hero-slide {
        height: 100% !important;
    }
    body.page-template-home-new-may-2026 .hero-slide__content {
        justify-content: center;
        padding-bottom: clamp(32px, 4vw, 52px);
    }
}

/* ── Mobile ≤ 600 px: full-width bottom overlay ── */
@media (max-width: 600px) {
    body.page-template-home-new-may-2026 .hero-slide__content {
        padding-bottom: 24px;
        padding-top: 0;
        justify-content: flex-end;
    }
    body.page-template-home-new-may-2026 .hero-slider-wrap {
        height: min(clamp(280px, calc(100vw * 0.9), 380px), 52vh) !important;
    }
    body.page-template-home-new-may-2026 .hero-slider-wrap,
    body.page-template-home-new-may-2026 .hero-slider,
    body.page-template-home-new-may-2026 .hero-slider .slick-list,
    body.page-template-home-new-may-2026 .hero-slider .slick-track,
    body.page-template-home-new-may-2026 .hero-slider .slick-slide,
    body.page-template-home-new-may-2026 .hero-slider .slick-slide > div,
    body.page-template-home-new-may-2026 .hero-slide {
        height: 100% !important;
    }
}

/* ── Counter new-home.css legacy hero rules that conflict with Slick ────
   new-home.css (loaded for posts-slider) has:
     .preveda-page-content .hero-slide { display: none; }   ← hides all slides
     .preveda-page-content .hero-slider { background: #fff; } ← white bg
   These overrides use body-class + !important to win the specificity war.
──────────────────────────────────────────────────────────────────────── */
body.page-template-home-new-may-2026 .hero-slider {
    background: transparent !important;
    border-radius: 0 !important;
}
body.page-template-home-new-may-2026 .hero-slide {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
    animation: none !important;
    flex-direction: unset !important;
}
/* Slick uses .slick-active on the wrapper, not .active on the slide.
   Ensure the slide itself stays visible regardless of .active class. */
body.page-template-home-new-may-2026 .hero-slide.active {
    display: block !important;
}
/* ═══════════════════════════════════════════════════════════════
   TRUST SECTION — stat counters + brand logos
════════════════════════════════════════════════════════════════ */

/* Stats bar */
.trust-stats {
    background: #0c1c2e;
    padding: 16px 0;
}
.trust-stats__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
}
.trust-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 8px 14px;
    flex: 1 1 0;
    min-width: 0;
    border-right: 1px solid rgba(255,255,255,0.08);
    gap: 8px;
    white-space: nowrap;
}
.trust-stat:last-child { border-right: none; }

/* Number + suffix block */
.trust-stat__figure {
    display: flex;
    align-items: baseline;
    gap: 1px;
    flex-shrink: 0;
}
.trust-stat__num {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-family: var(--hdr-font, "Inter", system-ui, sans-serif);
    white-space: nowrap;
}
.trust-stat__suffix {
    font-size: 17px;
    font-weight: 700;
    color: var(--hdr-red, #b80000);
    line-height: 1;
    margin-left: 1px;
    vertical-align: super;
}
.trust-stat__num,
.trust-stat__suffix { display: inline; }
.trust-stat > span:nth-child(-n+2) { display: block; line-height: 1; }
.trust-stat__label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
}
/* Icon-only stat (certification) */
.trust-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(184,0,0,0.15);
    color: var(--hdr-red, #b80000);
    flex-shrink: 0;
}
.trust-stat__icon svg { width: 18px; height: 18px; }
.trust-stat__num--ce { letter-spacing: 0.04em; }
.trust-stat__suffix svg { width: 16px; height: 16px; vertical-align: middle; }

/* Brand logos strip — static grid, all logos visible */
.trust-brands {
    background: #f4f6f9;
    border-top: 1px solid #e2e6ea;
    border-bottom: 1px solid #e2e6ea;
    padding: clamp(32px, 4vw, 48px) 0 clamp(28px, 3.5vw, 40px);
}

.trust-brands__header {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    text-align: center;
}

.trust-brands__title.single-header {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    color: #013b6b;
}

.trust-brands__eyebrow {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5d6b7a;
    margin: 0 0 16px;
}

.trust-brands__logos {
    display: grid;
    /* 16 brands → 8 × 2 neat rows on desktop */
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: clamp(8px, 1.2vw, 12px);
    align-items: stretch;
    max-width: 1280px;
    margin-inline: auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

.trust-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    padding: 6px 8px;
    border: 1.5px solid #e2e6ea;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.trust-brand-item:hover {
    border-color: #003b6b;
    box-shadow: 0 4px 14px rgba(0,59,107,0.10);
    transform: translateY(-2px);
}
.trust-brand-item img {
    max-height: 96px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.trust-brand-item__text {
    font-size: 12px;
    font-weight: 700;
    color: #5d6b7a;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
}
.trust-brand-item:hover .trust-brand-item__text { color: #003b6b; }

/* Responsive — keep 2-row intent on tablet; stack further on small screens */
@media (max-width: 1100px) {
    .trust-brands__logos {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
    }
    .trust-brand-item { height: 100px; padding: 6px 8px; }
    .trust-brand-item img { max-height: 84px; }
    .trust-stat { padding: 7px 10px; gap: 6px; }
    .trust-stat__num { font-size: 22px; }
    .trust-stat__suffix { font-size: 15px; }
    .trust-stat__label { font-size: 11px; letter-spacing: 0.03em; }
}
@media (max-width: 900px) {
    .trust-stat { padding: 6px 8px; gap: 5px; }
    .trust-stat__num { font-size: 20px; }
    .trust-stat__suffix { font-size: 14px; }
    .trust-stat__label { font-size: 10px; letter-spacing: 0.02em; }
    .trust-brands__logos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: none;
    }
    .trust-brand-item { height: 100px; padding: 6px 8px; }
    .trust-brand-item img { max-height: 84px; }
}
@media (max-width: 600px) {
    .trust-stats__inner { justify-content: center; flex-wrap: wrap; }
    .trust-stat { flex: 1 1 48%; white-space: normal; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); flex-direction: row; text-align: left; }
    .trust-stat__label { white-space: normal; }
    .trust-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
    .trust-stat:last-child { border-bottom: none; }
    .trust-brands__logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 8px;
    }
    .trust-brand-item { height: 88px; padding: 4px 6px; }
    .trust-brand-item img { max-height: 72px; }
}
/*
 * Legacy style.css defines .home-desc-con { border: 1px solid …; margin-bottom: 40px; }.
 * That bottom border stacks with .home-split-band { border-top } → two grey lines + gap.
 */
body.page-template-home-new-may-2026 .preveda-page-content .about-section.home-desc-con {
    border: none !important;
    border-top: 1px solid var(--hdr-border, #e2e6ea) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
