/* =========================
   RESET
   ========================= */

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

/* =========================
   GRUNDINSTÄLLNINGAR
   ========================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.7;
}

/* =========================
   NAVIGATION
   ========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.5rem 4rem;

    z-index: 100;
}

.logo {
    color: white;
    text-decoration: none;

    font-size: 1.2rem;
    font-weight: 600;

    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 2rem;

    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;

    font-size: 0.95rem;

    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* =========================
   HERO
   ========================= */

.hero {
    position: relative;

    min-height: 100vh;

    background-image: url("jag.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}

/* Mörk overlay */

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);
}

/* Hero-innehåll */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding-left: 8vw;
}

.hero h1 {
    color: white;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.1;
}

.hero p {
    margin-top: 1rem;

    color: rgba(255, 255, 255, 0.9);

    font-size: clamp(1rem, 2vw, 1.4rem);
}

/* =========================
   INNEHÅLL
   ========================= */

.content {
    max-width: 1000px;

    margin: 0 auto;

    padding: 6rem 2rem;
}

.content section {
    margin-bottom: 5rem;
}

.content h2 {
    margin-bottom: 1rem;

    font-size: 2rem;

    font-weight: 400;
}

.content p {
    margin-bottom: 1.5rem;
}

.bok {
display: flex;
         flex-wrap: wrap;
         margin-bottom: 3rem;
gap: 2rem;
     border-bottom: 1px solid #444;
     padding-bottom: 2rem;
}

.bok-bild {
    flex: 0 0 clamp(250px, 25vw, 450px);
}

.bok-bild img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.bok-info {
flex: 1;
      min-width: 250px;
}

.bok-info h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Varannan bok */
.bok:nth-child(odd) {
    flex-direction: row-reverse;
}

/* =========================
   FOOTER
   ========================= */

footer {
    text-align: center;

    padding: 3rem 2rem;

    color: #666;

    border-top: 1px solid #eee;
}

/* =========================
   MOBIL
   ========================= */

@media (max-width: 768px) {

    .navbar {
        padding: 1.25rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .content {
        padding: 4rem 1.5rem;
    }
    
    .bok {
        flex-direction: column;
    }

    .bok-bild {
        width: 100%;
        max-width: 350px;
    }
    
    .bok:nth-child(even) {
        flex-direction: row-reverse;
    }
}
