:root {
    --color-primary: #283D8E;
    --color-primary-light: #3a52a8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text-main: #111827;
    --color-text-muted: #4b5563;
    --color-border: #e5e7eb;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1280px;
    --transition: all 0.3s ease-in-out;
}

/* 2. RESET & BAS-STILAR */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-body); 
    color: var(--color-text-main); 
    background-color: var(--color-bg); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 5%; }

/* 3. HEADER & NAVIGERING */
header { border-bottom: 1px solid var(--color-border); background: var(--color-bg); position: sticky; top: 0; z-index: 100; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { display: inline-flex; flex-direction: column; gap: 6px; line-height: 1; text-decoration: none; align-items: flex-start; }
.logo-img { height: 50px; width: auto; display: block; }
.logo span { display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 2px; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 40px; list-style: none; }
.main-nav a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-main); }
.main-nav a:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-select { padding: 6px 12px; border: 1px solid var(--color-border); background: transparent; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer; border-radius: 2px; }

/* 4. HERO SEKTION */
.hero { padding: 100px 0; background-color: var(--color-bg); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-title { font-family: var(--font-heading); font-size: 4.5rem; color: var(--color-primary); line-height: 1.1; margin-bottom: 30px; text-transform: uppercase; }
.hero-desc { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 40px; max-width: 90%; }

/* 5. KNAPPAR */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 36px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; cursor: pointer; border: none; }
.btn-primary { background-color: var(--color-primary); color: white; border: 1px solid var(--color-primary); }
.btn-primary:hover { background-color: transparent; color: var(--color-primary); }
.btn-white { background-color: white; color: var(--color-primary); }
.btn-white:hover { background-color: var(--color-bg-alt); }

/* 6. STATS / KPI */
.stats { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item { padding: 40px 20px; border-right: 1px solid var(--color-border); }
.stat-item:last-child { border-right: none; }
.stat-val { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-primary); margin-bottom: 10px; line-height: 1; }
.stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--color-text-muted); letter-spacing: 1px; }

/* 7. EXPERTIS & SEKTIONER */
.section-padding { padding: 120px 0; }
.bg-light { background-color: var(--color-bg-alt); }
.section-header { margin-bottom: 60px; max-width: 800px; }
.section-label { font-size: 0.8rem; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; display: block; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-text-main); margin-bottom: 20px; line-height: 1.2; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); }
.expertise-card { background: var(--color-bg); padding: 50px 40px; }
.expertise-card:hover { background: var(--color-bg-alt); }
.expertise-card h4 { font-size: 1rem; font-weight: 600; color: var(--color-text-main); text-transform: uppercase; margin-bottom: 15px; }
.expertise-card p { font-size: 0.9rem; color: var(--color-text-muted); }

/* 8. PRODUKTER (ZIG-ZAG) */
.product-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; margin-bottom: 100px; }
.product-row:last-child { margin-bottom: 0; }
.product-row:nth-child(even) .product-content { order: 2; }
.product-row:nth-child(even) .product-image { order: 1; }
.product-content h3 { font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary); margin-bottom: 20px; }
.product-content p { font-size: 1.05rem; color: var(--color-text-muted); margin-bottom: 30px; }
.product-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: grayscale(20%) contrast(110%); }

/* 9. FAQ */
.faq-section { background-color: var(--color-bg-alt); padding: 100px 0; }
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 15px; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: var(--transition); }
.faq-question { width: 100%; padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: none; border: none; text-align: left; }
.faq-question h4 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--color-primary); margin: 0; }
.faq-icon { width: 24px; height: 24px; background: #eef2f7; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-primary); font-weight: bold; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #fff; }
.faq-answer-content { padding: 0 30px 25px 30px; color: var(--color-text-muted); line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--color-primary); color: #fff; }

/* 10. KONTAKT CTA */
.contact-cta { background-color: var(--color-primary); color: white; padding: 120px 0; text-align: center; }
.contact-cta h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 15px; }

/* 11. FOOTER */
.site-footer { background: #111827; color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 60px; }
.footer-brand .logo { color: white; margin-bottom: 16px; font-size: 1.3rem; }
.footer-brand .logo span { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-contact h4, .footer-langs h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: white; margin-bottom: 16px; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; line-height: 1.6; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: white; }
.footer-langs ul { list-style: none; }
.footer-langs li { margin-bottom: 10px; }
.footer-langs a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-langs a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* 12. RESPONSIVITET */
@media (max-width: 768px) {
    .hero-grid, .stats-grid, .expertise-grid, .product-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-row:nth-child(even) .product-content { order: 1; }
    .product-row:nth-child(even) .product-image { order: 2; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--color-border); }
    .hero-title { font-size: 2.5rem; }
}



/* --- MOBILANPASSNING (Endast för skärmar under 768px) --- */
@media (max-width: 767px) {
    
    /* 1. Navigering & Logotyp - Allt på en rad */
    .nav-wrapper {
        flex-direction: column !important;
        text-align: center;
        gap: 15px !important;
        padding: 15px 5px !important;
    }

    .main-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: row !important; /* Tvinga vågrät rad */
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important; /* Tätt mellanrum för att få plats */
        flex-wrap: nowrap !important; /* Ingen radbrytning */
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .main-nav ul li a {
        font-size: 0.75rem !important; /* Lite mindre text så allt får plats */
        white-space: nowrap !important;
        padding: 2px !important;
    }

    /* Flytta in språkväljaren i slutet av raden */
    .header-actions {
        display: inline-block !important;
        margin-left: 5px !important;
        margin-top: 0 !important; /* Tar bort vertikalt mellanrum */
    }

    .lang-select {
        font-size: 0.7rem !important;
        padding: 1px !important;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: #fff;
    }

    /* 2. Hero-sektionen (Text först, sen bild) */
    .hero-grid {
        display: flex !important;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    /* 3. Statistik (2x2 rutnät istället för 4 i rad) */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        text-align: center;
    }

    /* 4. Produkt-rader (Text överst, bild underst) */
    .product-row {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 60px;
        text-align: center;
    }

    .product-content, .product-image {
        width: 100% !important;
    }

    .product-image img {
        max-height: 300px;
        object-fit: cover;
    }

    /* 5. FAQ-sektionen */
    .faq-container {
        padding: 0 10px;
    }

    .faq-question h4 {
        font-size: 1rem;
    }

    /* 6. Kontakt-CTA längst ner */
    .contact-cta .container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 30px;
    }

    .contact-cta .logo {
        border-left: none !important;
        border-bottom: 2px solid rgba(255,255,255,0.2);
        padding-left: 0 !important;
        padding-bottom: 15px;
        display: inline-block;
    }
}

/* Part of Primetek badge */
.pt-badge { display: inline-flex; align-items: center; gap: 8px; }
.pt-badge .pt-badge-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; opacity: 0.8; }
.pt-badge img.pt-badge-logo { height: 16px; width: auto; display: block; }
.site-footer .pt-badge img.pt-badge-logo,
.contact-cta .pt-badge img.pt-badge-logo { filter: brightness(0) invert(1); } /* white logo on dark bg */
}