* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background-color: #efe5d2;
    color: #2c2c2c;
}

/* HEADER */

header {
    background: #efe5d2;
    text-align: center;

    padding-top: 10px;
    padding-bottom: 10px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.logo {
    width: 260px;
    max-width: 90%;
    border-radius: 20px;
}

nav {
    margin-top: 20px;
}

nav a {
    text-decoration: none;
    color: #b5672a;
    font-weight: 600;
    margin: 0 25px;
    font-size: 20px;
    transition: 0.3s;
}

nav a:hover {
    color: #8f4d18;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;

    padding: 30px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/Hytte1.png");
    background-size: cover;
    background-position: center;
    filter: contrast(1.18) saturate(1.2) brightness(0.92);
    transform: scale(1.06);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 90px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 24px;
    max-width: 750px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.button {
    text-decoration: none;
    color: white;
    background: #b5672a;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

.button:hover {
    background: #8f4d18;
    transform: translateY(-2px);
}

/* SEKSJONER */

section {
    padding: 100px 30px;
}

section h2 {
    text-align: center;
    color: #b5672a;
    font-size: 40px;
    margin-bottom: 50px;
}

/* TJENESTER */

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;

    max-width: 1300px;
    margin: auto;
}

.card {
    width: 300px;
    min-height: 220px;

    background: white;

    padding: 35px 25px;

    border-radius: 16px;

    text-align: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: all 0.3s ease;

    text-decoration: none;

    color: #2c2c2c;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h3 {
    color: #2c2c2c;
    font-size: 22px;

    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}

.card p {
    color: #555;
    line-height: 1.5;

    min-height: 55px;
}

.card:hover {
    transform: translateY(-8px);
}

.card:hover h3 {
    color: #b5672a;
}


.card h3 {
    color: #2c2c2c;
    font-size: 22px;

    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}

/* OM OSS */

#om {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

#om p {
    font-size: 22px;
    line-height: 1.8;
}

/* KONTAKT */

#kontakt {
    background: white;
    text-align: center;
}

#kontakt p {
    font-size: 22px;
    margin: 12px 0;
}

/* FOOTER */

footer {
    background: #b5672a;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 16px;
}

/* MOBIL */

@media (max-width: 768px) {

    .hero h1 {
        font-size: 55px;
    }

    .hero p {
        font-size: 18px;
    }

    nav a {
        display: block;
        margin: 12px 0;
    }

    section h2 {
        font-size: 32px;
    }
}

.slideshow-section {
    text-align: center;
    padding: 100px 20px;
}

.slideshow-image {
    width: 90%;
    max-width: 1000px;
    height: 600px;

    object-fit: cover;

    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    transition: opacity 0.5s;
}

.gallery-image {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 12px;

    box-shadow: 0 10px 20px rgba(0,0,0,0.1);

    transition: 0.3s;

    cursor: pointer;
}

.gallery-image:hover {

    transform: scale(1.02);

}

.card h3,
.card p {
    color: #2c2c2c;
    text-decoration: none;
}

.card:visited {
    color: #2c2c2c;
}

.social-links {
    margin-top: 20px;

    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    padding: 12px 20px;

    border-radius: 10px;

    text-decoration: none;

    color: white !important;

    font-weight: bold;

    transition: 0.3s;
}

.social-btn:visited {
    color: white !important;
}

.facebook {
    background: #1877f2;
}

.instagram {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
}

.social-btn:hover {
    transform: translateY(-3px);
}

.contact-link {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:visited {
    color: #2c2c2c;
}

.contact-link:hover {
    color: #b5672a;
}
