* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background-color: #f4f4f4;
}

/* =========================
   HEADER
   ========================= */

header {
    background-color: #000000;
    color: white;
    padding: 8px 20px 12px;
    text-align: center;
}

header img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    margin: 0 auto;
}

header p {
    margin: 8px 0 0;
    color: white;
    font-size: 18px;
}

/* =========================
   NAVIGATION
   ========================= */

nav {
    background-color: #2b2b2b;
    padding: 15px;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    color: #f5a623;
}

/* =========================
   MAIN
   ========================= */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    background-color: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
}

section h2 {
    margin-top: 0;
    font-size: 32px;
}

/* =========================
   HERO
   ========================= */

.hero {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url("images/hero.jpg");

    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;

    color: white;
    padding: 100px 40px;
    text-align: center;
    min-height: 480px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.hero-label {
    color: #f5a623;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 56px;
    margin: 0 0 20px;
}

.hero-text {
    font-size: 21px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.hero-button {
    display: inline-block;
    background-color: #f5a623;
    color: #1c1c1c;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.hero-button:hover {
    background-color: #ffbe55;
}

/* =========================
   SERVICES
   ========================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background-color: #f4f4f4;
    padding: 0 0 30px;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.service-card h3 {
    font-size: 22px;
    margin: 25px 20px 10px;
}

.service-card p {
    line-height: 1.6;
    margin: 0 20px;
}


/* Transport-bilde */
.transport-image {
    object-position: right center;
}

/* =========================
   ABOUT
   ========================= */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.about-content {
    padding: 20px;
}

.about-label {
    color: #f5a623;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.about-content h2 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 25px;
}

.about-content p {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* =========================
   CRANE SPECS
   ========================= */

.specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.spec {
    background-color: #f4f4f4;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.spec strong {
    display: block;
    font-size: 28px;
    color: #f5a623;
    margin-bottom: 8px;
}

.spec span {
    color: #555;
}

.spec-note {
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

/* =========================
   FOOTER
   ========================= */

footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    header img {
        width: 95%;
        max-width: 500px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    header p {
        font-size: 16px;
    }

    nav {
        padding: 12px 5px;
    }

    nav a {
        margin: 0 8px;
        font-size: 14px;
    }

    main {
        padding: 25px 15px;
    }

    section {
        padding: 25px;
    }

    section h2 {
        font-size: 28px;
    }

    /* Hero */

    .hero {
        padding: 70px 20px;
        min-height: 480px;
        background-position: center 65%;
    }

    .hero h2 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 18px;
    }

    /* Services */

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    /* About */

    .about-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .about-content {
        padding: 10px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    /* Specs */

    .specs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* =========================
   MIDLERTIDIG UNDER UTVIKLING
========================= */

.coming-soon-image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}


/* =========================
   UNDER UTVIKLING - MOBIL
========================= */

@media (max-width: 768px) {

    .coming-soon-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 6px;
    }

}