/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #1E90FF;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #F5F8FB;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container-padding: 2rem;
}

body, textarea, input {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 40px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: bold;
    text-align: center;
    min-width: 200px;
    margin: 0 auto;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 5px;
    transition: var(--transition);
    font-weight: bold;
    text-align: center;
    min-width: 200px;
}

.secondary-button:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    text-align: center;
}

.h3 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-align: center;   
}

/* Services */
.service-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.service-boxes p {
    font-size: 1rem;
}

.service {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    width: 100%;
    max-width: 300px;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Values */
.values {
    background-color: #f0f4f8;
    padding: 4rem 0;
    text-align: center;
}

.values h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.values ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}



.values i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.values li span {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.values li p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Contact Form */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Service Details */
.service-detail {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.8rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.service-detail h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.service-detail i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.service-detail p {
    font-size: 1rem;
}

.services-detail .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .service-boxes {
        grid-template-columns: 1fr;
    }

    .service {
        max-width: 100%;
    }

    .service-detail {
        padding: 1.5rem;
    }
}

#ydelser .cta-button {
    display: block;
    margin: 0 auto;
}

/* Fordele */
.values ul {
    list-style: none;
    display: flex;
    justify-content: center;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.values li {
    padding: 0 2rem;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

.values li.center {
    position: relative;
}

.values li.center::after, .values li.center::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 1px;
    height: 200px;
    background-color: transparent;
    
}

.values li.center::before {
    left: 100%;
}

.values i {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    background-color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.values li span {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.values li p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Intro Section */
.intro {
    background-color: #f9f9f9;
    padding: 4rem 0;
    text-align: center;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 1s ease-out;
}

.intro-image {
    width: 600px;
    height: auto;
    animation: fadeIn 1s ease-out;
}

.intro-text {
    max-width: 600px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.intro-text p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

#ydelser-detaljer p {
    margin-bottom: 1.8rem;
}

.fas {
    color: var(--secondary-color) !important;
}

sl-carousel {
    height: 450px;
    width: 1050px;
    margin: 0 auto;
}

.card-carousel {
    display: flex;
    gap: 70px;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 900px;
    font-size: 1rem;
}

.card-carousel .card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 auto;
    margin-bottom: 0.5rem;
}

.card-title h4 {
    font-size: 1.2rem;
    text-align: center;
}

.card-carousel .info {
    width: 450px;
    margin: auto 0;
}

.card-carousel img {
    object-fit: cover;
    width: 350px;
    height: 250px;
    border-radius: 15px;
}

@media (max-width:1100px) {
    sl-carousel {
        width: 100%;
    }

    .card-carousel {
        width: 95%;
        height: auto;
    }
}

@media (max-width: 940px) {
    sl-carousel {
        height: 500px;
    }

    .card-carousel {
        gap: 30px;
    }

    .card-carousel .info {
        width: 50%;
    }

    .card-carousel .img {
        height: 100%;
        width: 50%;
    }

    .card-carousel img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 680px) {
    .card-carousel {
        flex-direction: column;
        justify-content: start;
    }

    .card-carousel .info {
        width: 100%;
        margin: 0;
    }

    .card-carousel .img {
        width: 100%;
        height: 300px;
    }

    sl-carousel {
        height: 800px;
    }
}

@media (max-width: 500px) {
    .card-carousel .img {
        height: 200px;
    }
}

.persons {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-top: 25px;
}

.person {
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 600px;
}

.person img {
    width: 350px;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
}

.person .text {
    padding: 20px 15px 10px 15px;
    font-size: 500;
    font-size: 1rem;
}

.person h3 {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 7px;
}

.person .info {
    font-size: 1rem;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .person {
        width: 250px;
        height: auto;
    }

    .person img {
        width: 250px;
        height: 300px;
    }
}


@media (max-width: 680px) {
    .person {
        width: 350px;
    }

    .person img {
        width: 350px;
        height: 400px;
    }

    .persons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width:440px) {
    .person {
        width: 250px;
    }

    .person img {
        width: 250px;
        height: 300px;
    }
}

.kontakt-container {
    display: flex;
    justify-content: space-between;
}

.kontakt-container-item { 
    width: 45%;
}

.contact-info h3 {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.2rem;
}

.contact-info p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--white);
    border-radius: 5px;
    outline: none;
    border: none;
    width: 100%;
    height: 50px;
    color: var(--text-color);
    text-indent: 10px;
    resize: none;
    font-size: 1rem;
    font-weight: 400;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-color);
    line-height: 1;
    font-size: 1rem;
    font-weight: 500;
}

.contact-form textarea {
    height: 100px;
    padding: 15px 10px 15px 10px;
    text-indent: 0;
}

.contact-form .cta-button {
    width: 100%;
    border: none;
    font-size: 1rem;
    min-width: 0;
}

footer p {
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 680px) {
    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    } 

    .intro-image {
        width: 300px;
    }
}

@media (max-width: 600px) {
    .kontakt-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }   

    .kontakt-container-item { 
        width: 100%;
    }
}

#status {
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

#status.error {
    color: #EF302B;
}

#status.success {
    color: #59D88F;
}