/* ======================================
   1. Reset & Grundinställningar
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #4a6132;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: #f9f8ea;
}

/* ======================================
   2. Typografi & Länkar
====================================== */
h1, h2, h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #2F4635; /* mörkgrön rubrik */
}

a {
    text-decoration: none;
    color: #4A6651; /* harmonisk grön */
    transition: color 0.2s ease-in-out;
    font-size: 1.2rem;
}

a:hover {
    color: #2F4635;
    text-decoration: underline;
}

/* ======================================
   3. Layout & Container
====================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

section h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    text-align: center;
    color: #4a6132;
}

section p,
section ul {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

ul {
    list-style: disc;
    text-align: left;
    padding-left: 20px;
}

/* ======================================
   4. Header & Navigation
====================================== */
header {
    background-color: #4a6132;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

header h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

nav ul li a {
    font-weight: bold;
    color: #fff;
}

nav a:hover {
    color: #D4C9B6;
}

/* ======================================
   5. Om mig
====================================== */
figure {
    margin: 20px auto;
    text-align: center;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 70px auto 0 auto;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

figcaption {
    font-size: 1.2rem;
    color: #4a6132;
    margin-top: 10px;
}

/* ======================================
   6. Tjänster
====================================== */
.services-grid {
    display: block;
    gap: 30px;
}

.service {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.service h3 {
    text-align: center;
    font-size: 1.6rem;
    margin-top: 29px;
    margin-bottom: 50px;
    color: #4a6132;
}

#service-company ul {
    margin-bottom: 105px;
}

.service ul {
    margin-left: -5px;
}

/* ======================================
   7. Kontakt
====================================== */
#contact address,
#contact p,
#contact a {
    text-align: left;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.contact-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}

/* ======================================
   8. Footer
====================================== */
footer {
    background-color: #4a6132;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
}

/* ======================================
   9. Media Queries
====================================== */
@media (min-width: 768px) {
    section p,
    section ul {
        text-align: left;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-container {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 40px;
    }

    .contact-info {
        text-align: left;
        flex: 1;
        max-width: 450px;
        margin-left: 30px;
    }

    .contact-info p {
        margin-left: 0;
    }

    #contact-title {
        text-align: left;
    }

    .map-container {
        flex: 2;
        max-width: 600px;
    }

    .service ul {
        margin-top: 45px;
        margin-bottom: 80px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    section h2 h3 {
        font-size: 2rem;
    }

    .container {
        padding: 10px 0;
    }

    .contact-info {
        text-align: center;
        flex: 1;
        max-width: 450px;

    }

    .service h3 {
        margin: 10px 0 20px 0;
    }

    #service-company ul {
        margin-bottom: 15px;
    }

    figure img {
        max-width: 300px;
    }

    section ul {
        text-align: left;
    }

    .service p {
        text-align: left;
    }

    #maps-link {
        margin: 10px 0 10px 0;
    }
}
