/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BAKGRUND */
body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;

    background-image: url("bakgrundsbild.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    position: relative;
}

/* MÖRK OVERLAY */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* HERO */
.hero {
    min-height: 100vh; /* bättre än height på mobil */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.logo {
    width: 220px;
    max-width: 80%;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: 2px;
}

.subtitle {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.85;
}

/* INNEHÅLL */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

p {
    line-height: 1.7;
    opacity: 0.9;
    text-align: center;
}

/* GALLERI */
.gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap; /* KRITISKT för mobil */
}

/* PRODUKTKORT */
.item {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item img {
    width: 220px;
    max-width: 90vw; /* gör att den ALDRIG blir för bred */
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.item p {
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

/* HOVER (desktop) */
.item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.item:hover img {
    transform: scale(1.05);
}

/* MOBILANPASSNING */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .content {
        padding: 60px 15px;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .item img {
        width: 260px;
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    opacity: 0.7;
}
