/* ============================================================
   STIDES HERO SLIDER — stides-slider.css
   Brand: Navy #1A1A2E · Gold #C9952A · White #FFFFFF
   Fonts: Playfair Display (headings) · Lato (body)
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Lato:wght@300;400;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
    --ss-navy:       #1A1A2E;
    --ss-navy-deep:  #0F0F1E;
    --ss-gold:       #C9952A;
    --ss-gold-light: #E8B547;
    --ss-gold-dark:  #A67820;
    --ss-white:      #FFFFFF;
    --ss-offwhite:   #FAF8F5;
    --ss-text-light: rgba(255,255,255,0.88);
    --ss-text-muted: rgba(255,255,255,0.65);
    --ss-slider-h:   620px;
    --ss-slider-h-md: 520px;
    --ss-slider-h-sm: 420px;
    --ss-transition:  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Wrapper ── */
.stides-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Ensure it sits ABOVE all other page content */
    z-index: 10;
    margin: 0;
    padding: 0;
    /* Remove any Elementor/theme margin that might gap-push it */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Swiper base ── */
.stides-swiper {
    width: 100%;
    height: var(--ss-slider-h);
    background: var(--ss-navy-deep);
}

/* ── Individual slide ── */
.stides-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* ── Background image ── */
.stides-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease-out;
    will-change: transform;
}

/* Ken Burns zoom-in when slide is active */
.swiper-slide-active .stides-slide-bg {
    transform: scale(1.0);
}

/* Fallback gradient when no image is uploaded yet */
.stides-slide-bg-fallback {
    background: linear-gradient(135deg, #1A1A2E 0%, #2d2d5a 40%, #1a1a2e 100%);
}

/* ── Gradient overlay ── */
.stides-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.stides-overlay-dark {
    background: linear-gradient(
        105deg,
        rgba(15, 15, 30, 0.82) 0%,
        rgba(15, 15, 30, 0.65) 45%,
        rgba(15, 15, 30, 0.30) 75%,
        rgba(15, 15, 30, 0.10) 100%
    );
}

/* ── Slide content container ── */
.stides-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 6vw;
}

/* Alignment variants */
.stides-align-left  .stides-content-inner { margin-right: auto; text-align: left; }
.stides-align-center .stides-content-inner { margin: 0 auto; text-align: center; }
.stides-align-right .stides-content-inner { margin-left: auto; text-align: right; }

.stides-content-inner {
    max-width: 600px;
}

/* ── Badge ── */
.stides-badge {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ss-gold);
    background: rgba(201, 149, 42, 0.15);
    border: 1px solid rgba(201, 149, 42, 0.4);
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 18px;

    /* Entrance animation */
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease 0.1s, transform 0.55s ease 0.1s;
}
.swiper-slide-active .stides-badge {
    opacity: 1;
    transform: translateY(0);
}

/* ── Headline ── */
.stides-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ss-white);
    margin: 0 0 18px;

    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}
.swiper-slide-active .stides-headline {
    opacity: 1;
    transform: translateY(0);
}

/* ── Sub-line ── */
.stides-subline {
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--ss-text-light);
    margin: 0 0 32px;
    max-width: 520px;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}
.stides-align-center .stides-subline { margin: 0 auto 32px; }
.swiper-slide-active .stides-subline {
    opacity: 1;
    transform: translateY(0);
}

/* ── CTA buttons ── */
.stides-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;

    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease 0.55s, transform 0.6s ease 0.55s;
}
.stides-align-center .stides-cta-group { justify-content: center; }
.stides-align-right  .stides-cta-group { justify-content: flex-end; }
.swiper-slide-active .stides-cta-group {
    opacity: 1;
    transform: translateY(0);
}

/* Primary (Gold) button */
.stides-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    padding: 14px 28px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.stides-btn-primary {
    background: var(--ss-gold);
    color: var(--ss-navy);
    border-color: var(--ss-gold);
}
.stides-btn-primary:hover,
.stides-btn-primary:focus {
    background: var(--ss-gold-light);
    border-color: var(--ss-gold-light);
    color: var(--ss-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 149, 42, 0.4);
    text-decoration: none;
}
.stides-btn-primary svg {
    transition: transform 0.3s ease;
}
.stides-btn-primary:hover svg {
    transform: translateX(4px);
}

/* Outline (Ghost) button */
.stides-btn-outline {
    background: transparent;
    color: var(--ss-white);
    border-color: rgba(255, 255, 255, 0.6);
}
.stides-btn-outline:hover,
.stides-btn-outline:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ss-white);
    color: var(--ss-white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Navigation arrows ── */
.stides-swiper .swiper-button-prev,
.stides-swiper .swiper-button-next {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.10);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.stides-swiper .swiper-button-prev::after,
.stides-swiper .swiper-button-next::after {
    display: none; /* hide default Swiper arrows, we use SVGs */
}
.stides-swiper .swiper-button-prev svg,
.stides-swiper .swiper-button-next svg {
    width: 22px;
    height: 22px;
    color: var(--ss-white);
    stroke: var(--ss-white);
}
.stides-swiper .swiper-button-prev:hover,
.stides-swiper .swiper-button-next:hover {
    background: var(--ss-gold);
    border-color: var(--ss-gold);
    transform: scale(1.05);
}
.stides-swiper .swiper-button-prev:hover svg,
.stides-swiper .swiper-button-next:hover svg {
    color: var(--ss-navy);
    stroke: var(--ss-navy);
}

/* Arrow positioning */
.stides-nav-prev { left: 28px; }
.stides-nav-next { right: 28px; }

/* ── Pagination dots ── */
.stides-swiper .swiper-pagination {
    bottom: 28px;
}
.stides-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.35s ease;
    margin: 0 5px !important;
}
.stides-swiper .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: var(--ss-gold);
}

/* ── Scroll indicator ── */
.stides-scroll-indicator {
    position: absolute;
    bottom: 28px;
    right: 36px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}
.stides-scroll-text {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.stides-scroll-arrow {
    animation: stidesBounce 2s infinite;
}
.stides-scroll-arrow svg {
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.45);
    stroke: rgba(255,255,255,0.45);
}

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

/* ── Progress bar (optional visual) ── */
.stides-swiper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--ss-gold);
    z-index: 10;
    width: 0%;
    animation: none;
}

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

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .stides-swiper {
        height: var(--ss-slider-h-md);
    }
    .stides-slide-content {
        padding: 0 5vw;
    }
    .stides-content-inner {
        max-width: 520px;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .stides-swiper {
        height: var(--ss-slider-h-sm);
    }
    .stides-slide-content {
        padding: 0 5vw;
    }

    /* All slides center-align on mobile */
    .stides-align-left .stides-content-inner,
    .stides-align-right .stides-content-inner {
        margin: 0 auto;
        text-align: center;
    }
    .stides-align-left .stides-cta-group,
    .stides-align-right .stides-cta-group {
        justify-content: center;
    }
    .stides-align-left .stides-subline,
    .stides-align-right .stides-subline {
        margin: 0 auto 28px;
    }

    /* Bigger overlay for readability */
    .stides-overlay-dark {
        background: rgba(15, 15, 30, 0.72);
    }

    /* Adjust navigation arrows */
    .stides-swiper .swiper-button-prev,
    .stides-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    .stides-swiper .swiper-button-prev svg,
    .stides-swiper .swiper-button-next svg {
        width: 18px;
        height: 18px;
    }
    .stides-nav-prev { left: 14px; }
    .stides-nav-next { right: 14px; }

    /* Hide scroll indicator on mobile */
    .stides-scroll-indicator {
        display: none;
    }

    .stides-btn {
        padding: 12px 20px;
        font-size: 12px;
    }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
    .stides-swiper {
        height: 380px;
    }
    .stides-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .stides-btn {
        width: 100%;
        justify-content: center;
        max-width: 260px;
    }
}

/* ── Ensure slider sits right below the sticky header ── */
body.stides-has-slider .elementor-location-header,
body.stides-has-slider header {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Remove default margin/padding Elementor might add before the slider */
body.stides-has-slider .elementor-section:first-of-type,
body.stides-has-slider .e-con:first-of-type {
    margin-top: 0;
}
