/* --- Base Styles --- */
:root {
    /* Deep, professional Navy Blue */
    --primary-color: #0B2D5C; 
    --secondary-color: #000000;
    --text-color: #333;
    --light-bg: #f4f7f6;
    --white: #fff;
    --container-width: 1100px;
}

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

body {
 
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-weight: 400; /* Standardtjocklek */
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 90px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul { list-style: none; }

h1, h2, h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    /* Lägg till Roboto Slab på rubrikerna för den industriella betongkänslan! */
    font-family: 'Roboto Slab', serif; 
}

h1 { font-size: 3rem; line-height: 1.2; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 900; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 5px; margin-bottom: 30px; }
h3 { font-size: 1.5rem; font-weight: 900; color: var(--primary-color); }
p { margin-bottom: 15px; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--white);
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    background-color: rgba(26, 73, 113, 0.8); 
}

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

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 100;
    color: var(--text-color);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}



.logo-img {
    height: 70px;
    width: auto;
}

/* --- Hamburger Menu Base --- */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.9;
}

.main-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Hero Section with Image --- */
.hero {
    position: relative;
    background-image: url('image1.jpeg'); 
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0 120px;
    text-align: center;
    z-index: 1;
}

/* Dark overlay to make text pop */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: -1;
}

.hero h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- Services --- */
.services { padding: 80px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- Referensprojekt --- */
.projects {
    padding: 80px 0;
    background-color: var(--white); /* Håller bakgrunden ren */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    background: var(--light-bg);
 
   
}



.project-image {
    width: 100%;
    height: 250px; /* Bestämmer höjden på bilderna */
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 25px;
    text-align: center;
}

.project-info h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.project-info .desc {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.project-info .client {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-color);
    background-color: rgba(11, 45, 92, 0.08); /* Minimal blue tint background */
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.project-info .client strong {
    font-weight: 700;
    margin-right: 4px;
}

/* --- About --- */
.about {
    background-color: var(--light-bg);
    padding: 80px 0;
    
}
.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image {
    background-color: #ddd; 
     width: 100%;
    height: 250px; 
    background-size: cover;
    background-position: center;

}

/* --- Contact --- */
.contact { padding: 80px 0; text-align: center;}
.contact-methods {
    display: grid;

    gap: 50px;
    margin-top: 40px;
    text-align: center;
}
.contact-info a:hover { color: var(--primary-color); }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
      text-align: center;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}
.contact-form .btn {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
}
/* --- Team --- */
.team {
    text-align: center;
    padding-top: 20px;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
}

.team-member {

    border-radius: 8px;
    text-align: center;
}



.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.75rem;
    margin: 0;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Media Queries (This handles the Mobile-Friendliness!) --- */
/* --- Media Queries (Responsiveness & Mobile Fixes) --- */
@media (max-width: 768px) {
    h1 { 
        font-size: 2.2rem; 
    }
    
    .hero { 
        padding: 80px 0 80px; 
    }

    /* 1. Center all text inside the main sections on mobile */
    section { 
        text-align: center; 
    }

    /* 2. Ensure the underlines on H2 headings stay centered */
    h2 { 
        margin-left: auto; 
        margin-right: auto; 
    }

.logo-img {
    height: 60px;
    width: auto;
}

    .main-header { 
        padding: 10px 0; 
        background-color: var(--white);
        position: sticky; 
    }
    
    .main-header .container { 
        flex-direction: row; 
        justify-content: center;
        align-items: center;
        position: relative;
    } 

    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Dropdown Menu */
    .main-nav ul {
        position: absolute;
        left: -100%;
        top: 70px; 
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 10px;
    }

    .main-nav ul.active {
        left: 0;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    .about .container, .contact-methods {
        grid-template-columns: 1fr; /* Stacks the columns on mobile */
        gap: 30px;
    }
    
    .about-image { 
        order: -1; /* Pushes the image above the text on mobile */
    } 

    /* Make the form inputs full width on mobile for easier tapping */
    .contact-form input, .contact-form textarea {
        width: 100%;
    }
    .team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
    flex-direction: column;
}
}