/* Global Styling - SKARP & PROFESSIONELL DESIGN */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

:root {
    /* Ny färgpalett: Blå + Guld/Gul */
    --primary-blue: #004e92; /* Mörk kungsblå */
    --secondary-blue: #1976d2; /* Standardblå */
    --accent-gold: #d9ab02; /* Skarp guld/gul - Mer prominent */
    --background-white: #ffffff;
    --section-light: #f1f3f4; /* Lättare bakgrund */
    --text-dark: #212529;
    --text-light: #fff;
    --max-width: 1300px;
    --transition-speed: 0.35s; /* Lite långsammare för mjukare effekt */
    --border-radius-lg: 12px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7; /* Ökad radhöjd för bättre läsbarhet */
    color: var(--text-dark);
    background-color: var(--background-white);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--primary-blue); /* Ändrat till primary-blue för kontrast */
}

.link-group ul li a:hover {
    text-decoration: underline; /* Valfritt: lägg till understreck vid hover */
}

/* Header & Navigation - Clean & Sharp */
header {
    background: var(--background-white);
    border-bottom: 1px solid var(--section-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Skarpare skugga */
}

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

.logo {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--accent-gold);
    font-weight: 900;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 35px; /* Ökat avstånd */
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    letter-spacing: 0.5px;
}

/* Förstärk navigationsindikatorn */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -8px; 
    left: 50%;
    width: 0;
    height: 4px; /* Tjockare linje */
    background-color: var(--accent-gold);
    transition: width var(--transition-speed) ease-out, left var(--transition-speed) ease-out;
    border-radius: 2px;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0; 
}

/* Mobil Meny Ikon */
.menu-toggle {
    display: none; 
    cursor: pointer;
    font-size: 2em;
    color: var(--primary-blue);
    z-index: 1001;
    transition: transform 0.3s;
}
.menu-toggle:hover {
    transform: scale(1.1);
}

/* Knappar - Mer 3D-känsla */
.btn {
    display: inline-block;
    padding: 14px 35px; /* Större knappar */
    margin-top: 30px;
    border-radius: 8px; /* Mer rundade hörn */
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn.primary {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    border: none;
    box-shadow: 0 6px 15px rgba(0, 78, 146, 0.3);
}

.btn.primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 78, 146, 0.5);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: none;
}
.btn.secondary:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Hero Section - Split Layout med modern bakgrund */
.hero {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, var(--section-light) 0%, var(--background-white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Innehållet prioriteras */
    gap: 80px;
    align-items: center;
}

.hero-content {
    animation: fadeInSlideUp 0.8s ease-out forwards;
}

.hero-content h2 {
    font-size: 4em;
    margin-bottom: 25px;
    color: var(--primary-blue);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
}

.container .text-block p {
    font-size: 1.05em;
    font-weight: 400;
}

.container .info-block p {
    font-size: 1.05em;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2em;
    color: var(--text-dark);
    font-weight: 400;
}



.hero-images {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    position: relative;
    /* Lägger till en abstrakt form som bakgrund */
    &::before {
        content: '';
        position: absolute;
        width: 90%;
        height: 90%;
        background: var(--accent-gold);
        top: 20%;
        left: 0;
        z-index: -1;
        border-radius: 50% 10% 50% 10%;
        opacity: 0.1;
    }
}

.hero-images img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Djupare skugga */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: fadeInSlideIn 0.8s ease-out forwards;
    border: 3px solid var(--background-white);
}
.hero-images img:nth-child(1) {
    animation-delay: 0.2s;
    transform: rotate(-3deg);
}
.hero-images img:nth-child(2) {
    margin-left: 15%; 
    animation-delay: 0.4s;
    height: 320px; 
    transform: rotate(2deg);
    z-index: 1;
}
.hero-images img:hover {
    transform: scale(1.05) rotate(0deg); /* Roterar tillbaka vid hover */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 2;
}


/* Section Styling */
.section-padding {
    padding: 100px 0; /* Mer luft */
}

.section-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px; /* Bredare linje */
    height: 5px; /* Tjockare linje */
    background-color: var(--accent-gold);
    margin: 18px auto 50px;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 70px; /* Mer avstånd */
    font-size: 1.2em;
    color: #6c757d;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.bg-blue-section {
    background-color: var(--primary-blue);
    color: var(--text-light);
}
.bg-blue-section .section-title, .bg-blue-section .section-subtitle, .bg-blue-section h3 {
    color: var(--text-light);
}
.bg-blue-section .section-title::after {
    background-color: var(--accent-gold);
}
.bg-blue-section a {
    color: var(--primary-blue);
}


/* Tjänster/Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--background-white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--secondary-blue);
    transition: all var(--transition-speed) ease;
    text-align: left;
}
.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 700;
}
.service-card:hover {
    transform: translateY(-7px); /* Mer framträdande lyft */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-gold);
}
.bg-blue-section .service-card {
    background: rgba(255, 255, 255, 0.15); /* Lättare transparent bakgrund */
    color: var(--text-light);
    border: none;
    box-shadow: none;
    border-left: 6px solid var(--accent-gold); /* Ändrat till vänster-border */
}
.bg-blue-section .service-card h3 {
    color: var(--accent-gold);
}

/* Detaljerade Info Block */
.info-block {
    margin: 60px auto 0;
    max-width: 950px;
    background: var(--section-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border-left: 6px solid var(--accent-gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.bg-blue-section .info-block {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--accent-gold);
    border-left-color: var(--accent-gold);
    box-shadow: none;
}
.info-block h4 {
    color: var(--primary-blue);
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.bg-blue-section .info-block h4 {
    color: var(--accent-gold);
}

/* Referenslista & Kurser - Mer elegant listning */
.list-columns {
    list-style: none;
    columns: 2; /* Ändrat till 2 kolumner för bättre mobilrespons */
    column-gap: 50px;
    max-width: 1100px;
    margin: 40px auto;
    font-size: 1.05em;
}

.list-columns li {
    margin-bottom: 15px;
    position: relative;
    break-inside: avoid;
    padding-left: 0;
    font-weight: 500;
    transition: color 0.3s;
}

.list-columns li::before {
    content: '→';
    color: var(--accent-gold);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2em;
    transition: transform 0.3s;
}

.list-columns li:hover {
    color: var(--primary-blue);
}
.list-columns li:hover::before {
    transform: translateX(5px);
}
.bg-blue-section .list-columns li:hover {
    color: var(--text-light); /* Behåll vit vid hover på blå sektion */
}

/* Partners & Länkar Grid - Flexibel och snygg */
.link-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.partner-card a:hover {
    text-decoration: underline; /* Valfritt: lägg till understreck vid hover */
}

.link-group, .partner-card {
    flex-basis: 300px;
    background: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border-bottom: 6px solid var(--secondary-blue);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed);
    text-align: center;
    height: 100%; /* Säkrar lika höjd i flexbox */
}
.link-group:hover, .partner-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.link-group h3, .partner-card h3 {
    color: var(--primary-blue);
    font-size: 1.4em;
    border-bottom: 1px solid #dee2e6;
    font-weight: 700;
}

.link-group ul {
    list-style: none;
    text-align: left;
}

.link-group ul li a {
    display: block;
    padding: 5px 0;
}

.link-group .link-logo {
    max-width: 80%;
    height: auto;
    max-height: 70px;
    margin: 10px auto 15px;
    display: block;
    object-fit: contain;
}

/* Partner Grid (för partner-sektionen) */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.partner-card {
    background: var(--section-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.partner-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}
.partner-card h3 {
    border-bottom: none;
    font-size: 1.2em;
}


/* Justera Företagarna loggan för mörk bakgrund i footer */
footer .foretagarna-logo {
    max-width: 180px;
    margin: 25px auto 15px;
    display: block;
    opacity: 0.9;
    filter: brightness(1.5) grayscale(0.2); /* Lättar upp den för bättre synlighet */
}

/* Footer & Contact */
footer {
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 50px 0 25px;
    text-align: center;
}
.contact-info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 25px;
    margin-bottom: 25px;
}
footer p {
    line-height: 1.5;
}
footer a {
    color: var(--accent-gold);
    font-weight: 600;
}
footer a:hover {
    color: var(--secondary-blue);
}

/* =================================== */
/* ANIMATIONER */
/* =================================== */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =================================== */
/* MOBILANPASSNING */
/* =================================== */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    .hero {
        padding: 60px 0 80px;
    }
    /* Stapla Hero-sektionen */
    .hero .container {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 40px;
    }
    .hero-content h2 {
        font-size: 2.8em;
        letter-spacing: -1px;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .hero-images {
        margin-top: 20px;
    }
    .hero-images img:nth-child(1), .hero-images img:nth-child(2) {
        margin-left: 0; 
        height: 200px;
        transform: none;
    }
    .hero-images img:nth-child(1) {
        margin-bottom: 15px;
    }
    .hero-images img:hover {
        transform: scale(1.02) rotate(0deg);
    }
    .hero-images::before {
        display: none;
    }


    /* Mobil Navigation */
    nav {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: var(--background-white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: translateY(0); /* Tar bort transform för att förenkla */
        transition: none;
    }
    .nav-open nav { 
        display: block;
    }
    nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }
    nav ul li {
        margin: 0;
        border-bottom: 1px solid var(--section-light);
    }
    nav ul li a {
        display: block;
        padding: 15px 20px;
        color: var(--primary-blue);
        text-align: center;
    }
    nav ul li a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    
    .list-columns {
        columns: 1;
        max-width: 100%;
        padding: 0 10px;
    }
    .section-title {
        font-size: 2.2em;
    }
    .info-block {
        margin-top: 30px;
        padding: 25px;
    }
    .link-group, .partner-card {
        flex-basis: 100%;
    }
    .partner-grid {
        grid-template-columns: 1fr;
    }
}