/* HERO SLIDER */
.hero-slider {
    position: relative;
    height: 60vh;
    overflow: hidden;
    z-index: 0;
    touch-action: pan-y; /* tillat scrolling nedover */
}

/* SLIDES */
.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* HERO CONTENT */
.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-text {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    pointer-events: none;
}

/* HOVEDTEKST */
#hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    margin-bottom: 0.5rem;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

/* UNDERTEKST */
#hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    opacity: 0.9;
    transition: opacity 0.4s ease-in-out;
}

/* HERO CLICKABLE */
.hero-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: block;
    cursor: pointer;
    touch-action: auto; /* tillat både scroll og swipe */
}

/* PILER */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    background: rgba(0,0,0,0.35);
    border: none;
    color: white;
    font-size: 2.2rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.hero-slider:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(0,0,0,0.55);
}

.hero-arrow.left {
    left: 1rem;
}

.hero-arrow.right {
    right: 1rem;
}

/* --- NEDTELLINGS-PRIKKER --- */
.hero-timer {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    display: flex;
    gap: 0.35rem;
}

.timer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.25); /* lys grønn */
    transition: background 0.3s ease;
}

.timer-dot.active {
    background: #00ff55;
    box-shadow: 0 0 6px #00ff55;
}

/* Mobil innstillinger */
@media (max-width: 768px) {
    #hero-title {
        font-size: 1.8rem;
    }

    #hero-subtitle {
        font-size: 1rem;
    }

    .hero-arrow {
        font-size: 1.6rem;
        padding: 0.3rem 0.7rem;
        opacity: 0.8;
    }

    .timer-dot {
        width: 7px;
        height: 7px;
    }

    /* Standard: tekst øverst på mobil */
    .hero-text {
        top: 1rem;
        bottom: auto;
        text-align: center;
        padding: 0 1rem;
    }

    /* Unntak: på Om oss-sliden -> tekst nederst på mobil */
    .about-slide.active ~ .hero-content .hero-text {
        top: auto;
        bottom: 1rem;
    }
}
