/* Variabler */
:root {
    --primary-color: #8b5e3c;
    --primary-hover: #a67850;
    --bg-color: #f8f5f0;
    --text-color: #333;
}

/* Grunnleggende */
body {
    font-family: "Georgia", serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, lightblue, white);
}

/* Hero */
.hero {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

/* Hero container */
.hero-img-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Hero-bilde med zoom ut → pan → zoom inn, uten å kutte høyre kant */
.hero-img {
    width: 250%; /* større bredde for å dekke hele pan */
    height: 120%;
    object-fit: cover;
    filter:brightness(1,2);
    object-position: left center;
    transform-origin: center center;
    will-change: transform;

    animation: zoomOutPanFixed 20s ease-in-out infinite;
}

@keyframes zoomOutPanFixed {
    0% {
        transform: scale(3.25) translateX(17%); /* start zoomet inn */
    }
    10% {
        transform: scale(1) translateX(0%); /* zoom ut */
    }
    50% {
        transform: scale(1) translateX(-60%); /* pan til høyre */
    }
    90% {
        transform: scale(1) translateX(0%); /* pan tilbake + zoom inn */
    }
    100% {
        transform: scale(3.25) translateX(17%); /* loop */
    }
}
/* Hero-tekst */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
}

.hero p {
    font-size: 1.8rem;
}

/* Desktop - bildet står stille */
@media (min-width: 1201px) {
    .hero-img-container {
        height: auto;
    }

    .hero-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
        transform: none;
        animation: none;
    }
}

/* Mobil - høyde på hero */
@media (max-width: 1200px) {
    .hero-img-container {
        height: 600px;
    }
}

/* Redusert bevegelse for tilgjengelighet */
@media (prefers-reduced-motion: reduce) {
    .hero-img {
        animation: none;
    }
}

/* Seksjoner */
section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: auto;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
}

.slide {
    opacity: 0;
    transition: opacity 0.8s ease;
    position: absolute;
    width: 100%;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    border-radius: 8px;
}

/* Kart / Plantegning */
.map img {
    width: 100%;
    border-radius: 8px;
}

/* Kontakt */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact input,
.contact textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
}

.contact button {
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background-color: var(--primary-hover);
}



/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f2f2f2;
}

/* Små skjermer */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }
}