/* HERO / BANNER SLIDER  —  sleeker navy + continuous Ken Burns */
.hero-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: #05070f;
}

/* EACH SLIDE */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* IMAGE */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    will-change: transform;
}

/* CONTINUOUS "BREATHING" KEN BURNS — alternating direction per slide.
   The .kb-out class is toggled by hero.js on odd slides so the motion
   bounces between zoom-in and zoom-out instead of freezing. */
.hero-slide.active img {
    animation: kbIn 8s ease-in-out both;
}

.hero-slide.active.kb-out img {
    animation: kbOut 8s ease-in-out both;
}

@keyframes kbIn {
    0%   { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.16) translate(-1.6%, -1.2%); }
}

@keyframes kbOut {
    0%   { transform: scale(1.16) translate(1.6%, 1.2%); }
    100% { transform: scale(1.05) translate(0, 0); }
}

/* DARK OVERLAY — softer gradient for a more premium feel */
.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 9, 20, 0.35) 0%,
        rgba(6, 9, 20, 0.50) 55%,
        rgba(6, 9, 20, 0.68) 100%
    );
    z-index: 1;
}

/* CENTERED CONTENT */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 3;
    max-width: 640px;
    width: 90%;

    color: #ffffff;
    text-align: center;
}

.hero-small-title {
    display: inline-block;
    margin-bottom: 12px;

    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin-bottom: 18px;

    font-size: 66px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 470px;
    margin: 0 auto 32px;

    font-size: 23px;
    line-height: 1.35;
    font-weight: 500;
}

/* HERO BUTTON AREA */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* BUTTON */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 152px;
    height: 54px;
    padding: 0 30px;

    text-decoration: none;
    border-radius: 50px;

    font-size: 15px;
    font-weight: 700;

    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #c20d12 0%, #a3060a 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 10px 26px rgba(180, 7, 11, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(180, 7, 11, 0.5);
}

.hero-btn.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
}

.hero-btn.hero-btn-secondary:hover {
    background: #ffffff;
    color: #0c1c44;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ARROWS */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;

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

    font-size: 19px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(3px);
}

.hero-arrow:hover {
    background: #b4070b;
    transform: translateY(-50%) scale(1.06);
}

.hero-prev { left: 22px; }
.hero-next { right: 22px; }

/* DOTS */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;

    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);

    cursor: pointer;
    transition: 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    width: 30px;
    border-radius: 20px;
    background: #d61f26;
}

/* TABLET */
@media (max-width: 1000px) {
    .hero-slider { height: 560px; }
    .hero-content { max-width: 560px; }
    .hero-content h1 { font-size: 52px; }
    .hero-content p { font-size: 20px; }
}

/* MOBILE */
@media (max-width: 700px) {
    .hero-slider { height: 520px; }

    .hero-dark-overlay {
        background: linear-gradient(
            180deg,
            rgba(6, 9, 20, 0.4) 0%,
            rgba(6, 9, 20, 0.62) 100%
        );
    }

    .hero-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 88%;
        max-width: 420px;
        text-align: center;
    }

    .hero-small-title { font-size: 12px; margin-bottom: 10px; }
    .hero-content h1 { font-size: 40px; margin-bottom: 12px; }
    .hero-content p { font-size: 17px; margin-bottom: 24px; }
    .hero-actions { gap: 10px; }

    .hero-btn {
        height: 48px;
        min-width: 135px;
        font-size: 14px;
        padding: 0 22px;
    }

    .hero-arrow { width: 36px; height: 36px; font-size: 16px; }
    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }
    .hero-dots { bottom: 24px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-slide.active img,
    .hero-slide.active.kb-out img {
        animation: none;
        transform: scale(1.04);
    }
}
