/* ============ HERO SLIDER ============ */
:root { --hero-duration: 6000ms; }

.hero {
    position: relative;
    height: 100%;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s, visibility 0s .8s;
    display: flex;
    align-items: center;
}
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity .8s, visibility 0s 0s;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    transform: scale(1.1);
    transition: transform var(--hero-duration) linear;
}
.slide.active .slide-bg { transform: scale(1); }

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-text { max-width: 520px; }
.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #ffffff22;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 18px;
    color: #fff;
}
.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,.9);
    margin-bottom: 28px;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-btn {
    padding: 14px 26px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
}
.hero-btn-primary { background: #3b82f6; color: #fff; }
.hero-btn-primary:hover { background: #2563eb; color: #fff; }
.hero-btn-outline { background: transparent; border: 1px solid #fff; color: #fff; }
.hero-btn-outline:hover { background: #ffffff22; color: #fff; }

.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.hero-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff55;
    cursor: pointer;
    padding: 0;
    border: 0;
    appearance: none;
    transition: background .2s;
}
.hero-dot::after { content: ''; position: absolute; inset: -8px; }
.hero-dot:hover { background: #ffffffaa; }
.hero-dot.active { background: #fff; }
.hero-dot:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    cursor: pointer;
    background: #00000055;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    padding: 0;
    appearance: none;
    z-index: 10;
    color: #fff;
    transition: background .2s;
}
.hero-arrow:hover { background: #00000088; }
.hero-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero-prev { left: 30px; }
.hero-next { right: 30px; }

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #3b82f6;
    width: 0%;
    z-index: 12;
}

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text { margin: auto; }
    .hero-title { font-size: clamp(28px, 7vw, 40px); }
    .hero-buttons { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .slide-bg { transform: none; transition: none; }
    .slide { transition: opacity .2s, visibility 0s 0s; }
    .hero-progress { transition: none !important; }
}