/* ========================================
   Hero Slider — Full-width carousel with transitions
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

/* ---- Slides Container ---- */
.hero-slides-track {
    position: relative;
    width: 100%;
    height: 520px;
}

/* ---- Individual Slide ---- */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide entrance / exit classes */
.hero-slide.slide-enter-right {
    opacity: 0;
    transform: translateX(60px);
    visibility: visible;
}
.hero-slide.slide-enter-left {
    opacity: 0;
    transform: translateX(-60px);
    visibility: visible;
}
.hero-slide.slide-exit-left {
    opacity: 0;
    transform: translateX(-60px);
}
.hero-slide.slide-exit-right {
    opacity: 0;
    transform: translateX(60px);
}

/* ---- Slide Background Image ---- */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
}

/* ---- Slide Photo Cards ---- */
.hero-slide-photos {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-photo {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    border: 3px solid rgba(255,255,255,0.65);
    opacity: 0;
    transform: translateY(24px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-photo.photo-animate-in {
    opacity: 1;
    transform: translateY(0) scale(1) var(--photo-rotate, rotate(0deg));
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo positions */
.hero-photo.left-1  { width: 120px; height: 150px; top: 12%; left: 4%;  --photo-rotate: rotate(-5deg); }
.hero-photo.left-2  { width: 110px; height: 140px; bottom: 18%; left: 5%; --photo-rotate: rotate(3deg); }
.hero-photo.right-1 { width: 120px; height: 150px; top: 12%; right: 4%;  --photo-rotate: rotate(5deg);  }
.hero-photo.right-2 { width: 110px; height: 140px; bottom: 18%; right: 5%; --photo-rotate: rotate(-3deg); }

/* ---- Slide Content (centered text + CTA) ---- */
.hero-slide-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 100px 0 60px;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.hero-slide-content.content-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-content h1 {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 700;
    color: #fff;
    line-height: 1.22;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-slide-content h1 .highlight {
    color: var(--accent-light, #fbbf24);
    position: relative;
    display: inline-block;
}
.hero-slide-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(251,191,36,0.28);
    border-radius: 3px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(5,150,105,0.35);
}
.hero-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(5,150,105,0.45);
    color: #fff;
}

/* ---- Navigation Arrows ---- */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* ---- Controls: Dots + Progress ---- */
.hero-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    padding: 0;
}
.hero-dot:hover {
    border-color: #fff;
    transform: scale(1.15);
}
.hero-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.hero-progress {
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,0.22);
    border-radius: 2px;
    overflow: hidden;
}
.hero-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
}

/* ---- Silhouette Bar ---- */
.hero-silhouette-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    pointer-events: none;
}
.hero-silhouette-bar svg {
    max-width: 100%;
    height: 90px;
}

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none !important;
    }
    .hero-slide-content {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-photo {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
