/*
 * Hero CSS — Uganda Museums
 * Full-width KGM-inspired hero slider
 * Height: 600px (matching KGM.rw hero proportions)
 */

.um-hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #1A1208;
}

/* Bottom gradient fade to seamlessly blend with next section */
.um-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-section, #F5F3EF) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* ── SLIDES ── */
.um-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease-in-out;
    z-index: 0;
}

.um-hero__slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Full-bleed background image with Ken Burns */
.um-hero__bg {
    position: absolute;
    top: -6%;
    left: -6%;
    width: 112%;
    height: 112%;
    background-size: cover;
    background-position: center;
    background-color: #2C4A3E;
    transform: scale(1);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.um-hero__slide.active .um-hero__bg {
    transform: scale(1.06);
}

/* Dark overlay — refined KGM-inspired gradient */
.um-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.35) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* Subtle noise texture overlay */
.um-hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
}

/* Text content — bottom-aligned, centred */
.um-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 3.5rem 2rem 4.5rem;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}


.um-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.um-hero__desc {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1.4rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.um-hero__btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: var(--terracotta);
    padding: 0.7rem 2rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.um-hero__btn:hover {
    background: var(--terracotta-light, #b85a3a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* ── ARROWS ── */
.um-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    padding: 0;
}

.um-hero:hover .um-hero__arrow { opacity: 1; }

.um-hero__arrow:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(200,87,42,0.4);
}

.um-hero__arrow--prev { left: 1.25rem; }
.um-hero__arrow--next { right: 1.25rem; }

@media (hover: none) { .um-hero__arrow { opacity: 0.6; } }

/* ── DOTS ── */
.um-hero__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.um-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0;
    transition: all 0.35s ease;
}

.um-hero__dot.active {
    width: 26px;
    border-radius: 4px;
    background: var(--terracotta);
    transform: none;
    box-shadow: 0 0 10px rgba(200,87,42,0.4);
}

.um-hero__dot:hover {
    background: rgba(255,255,255,0.6);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .um-hero { height: 500px; }
    .um-hero__arrow { width: 38px; height: 38px; }
    .um-hero__arrow--prev { left: 1rem; }
    .um-hero__arrow--next { right: 1rem; }
    .um-hero__content { padding: 2.5rem 1.5rem 3.5rem; }
    .um-hero__title { font-size: clamp(1.4rem, 3vw, 2rem); }
    .um-hero::after { height: 80px; }
}

@media (max-width: 768px) {
    .um-hero { height: 420px; }
    .um-hero__title { font-size: 1.4rem; }
    .um-hero__desc { font-size: 0.85rem; }
    .um-hero__arrow { width: 34px; height: 34px; }
    .um-hero__arrow--prev { left: 0.5rem; }
    .um-hero__arrow--next { right: 0.5rem; }
    .um-hero__dots { bottom: 1rem; }
    .um-hero__dot { width: 7px; height: 7px; }
    .um-hero__dot.active { width: 22px; }
    .um-hero__content { padding: 2rem 1rem 2.5rem; }
    .um-hero::after { height: 60px; }
}
