:root {
    --accent: #e10600;
    --dark: #0e0e0e;
    --light: #ffffff;
    --gray: #cfcfcf;
}
/* STOPPA HORIZONTAL SCROLL */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #000; /* svart mellan hero-sektioner */
    color: var(--light);
    scroll-behavior: smooth;
}

/* ===== HERO SEKTIONER ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65); /* dimma över bilden */
    z-index: 1;
}

/* ===== HERO OVERLAY ===== */
.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 5%;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Avstånd mellan hero-sektioner */
.hero-separator {
    height: 50px;
    background: #000; /* svart mellanrum */
}

/* Hero text */
.hero h1, .hero h2 {
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero h1 {
    font-size: clamp(1.8rem, 6vw, 3rem); /* responsiv */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: var(--gray);
}

/* Hero Services */
.hero-services {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.hero-services li {
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-left: 4px solid var(--accent);
    font-size: 1rem;
}

/* Hero References */
.hero-references {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ref-card {
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 8px;
}

.ref-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Hero Kontaktformulär */
.hero-contact {
    width: 100%;
    max-width: 500px;
    background: rgba(0,0,0,0.8);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.hero-contact input,
.hero-contact textarea,
.hero-contact button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.hero-contact input,
.hero-contact textarea {
    background: #222;
    color: white;
}

.hero-contact button {
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hero-contact button:hover {
    background: #b10400;
}

/* Hero 4 knappar */
.hero-services-btn {
    display: inline-block;
    width: 250px;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.25s ease;

    background: #000;
    color: #fff;
    border: 2px solid #cc0000;

    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;   /* mellanrum mellan knappar */
}
.hero-services-btn:hover {
    background: #111;
    border-color: #ff0000;
}

.btn-red { background: var(--accent); }
.btn-red:hover { background: #b10400; }

.btn-black { background: var(--dark); }
.btn-black:hover { background: #333; }

.btn-gray { background: var(--gray); color: var(--dark); }
.btn-gray:hover { background: #bbb; }

/* Footer knappar */
.footer-btn {
    display: inline-block;
    margin: 5px 10px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    border-left: 4px solid var(--accent);
    background: rgba(0,0,0,0.7);
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.footer-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* ===== MOBILANPASSNING ===== */
@media (max-width: 768px) {
 html, body {
        overflow-x: hidden;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        align-items: flex-start;
    }

    .hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 1200px;
    margin: 80px auto;

    padding: 25px 16x; /* ändra från 10% till px */
}

    .hero-overlay img {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-services-btn {
        width: 100%; /* knappar fyller hela mobilbredd */
    }
}

.hero {
    background-position: center;
    background-attachment: scroll;
}

