/* Prima El – gemensam stil för alla sidor */
:root {
    --ink: #1d211f;
    --ink-soft: #454b47;
    --muted: #6f7571;
    --line: #dcdedb;
    --bg: #ffffff;
    --bg-soft: #f3f3f1;
    --dark: #1d211f;
    --green: #14783a;
    --green-dark: #0e5c2c;
    --radius: 6px;
    --wrap: 1200px;
    --header-h: 78px;
    --head-font: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head-font); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 520px; }
.text-link { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--green-dark); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Knappar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.4rem;
    border-radius: var(--radius);
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn i.fa-arrow-right, .more i { transition: transform .2s; }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 54px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink); }
.main-nav a:hover { color: var(--green); }
.main-nav .nav-phone { color: var(--green); white-space: nowrap; }
.main-nav .btn { color: #fff; padding: .6rem 1.1rem; font-size: .98rem; }
.menu-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-size: 1.2rem;
    color: var(--ink);
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: min(78vh, 700px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero picture, .hero picture img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(12,16,14,.85) 0%, rgba(12,16,14,.6) 50%, rgba(12,16,14,.2) 100%);
}
.hero-content { max-width: 720px; padding: 4rem 0; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1rem; }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .95rem; color: rgba(255,255,255,.85); margin: 0 0 2rem; }
.hero-meta .stars { color: #f2b705; letter-spacing: 1px; margin-right: .3rem; }
.hero-picks { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.25rem; }
.hero-picks p { font-size: .9rem; color: rgba(255,255,255,.7); margin: 0 0 .7rem; }
.hero-picks div { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-picks a {
    text-decoration: none; color: #fff; font-size: .92rem; font-weight: 500;
    padding: .45rem .85rem; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
    background: rgba(255,255,255,.06); transition: background .2s, border-color .2s;
}
.hero-picks a:hover { background: rgba(255,255,255,.18); border-color: #fff; }

/* Faktarad */
.facts { background: var(--dark); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.5rem 1.5rem 1.5rem 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.15); }
.fact strong { display: block; font-family: var(--head-font); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.fact span { font-size: .95rem; color: rgba(255,255,255,.65); }

/* Tjänster */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.service { text-decoration: none; display: block; }
.service-media { overflow: hidden; border-radius: var(--radius); margin-bottom: 1.1rem; }
.service img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.service:hover img { transform: scale(1.04); }
.service:hover .more i { transform: translateX(3px); }
.service h3 { margin-bottom: .35rem; }
.service:hover h3 { color: var(--green); }
.service p { color: var(--ink-soft); margin-bottom: .6rem; }
.service .more, .case .more { font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: .4rem; }
.after-grid { margin: 2.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* Så går det till */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.step-no { font-family: var(--head-font); font-weight: 700; font-size: 1.1rem; color: var(--green); display: block; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* Om oss */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about p { color: var(--ink-soft); }
.plain-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.plain-list li { padding: .55rem 0 .55rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .7rem; height: 2px; background: var(--green); }

/* Personal */
.team-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.5rem 1.1rem; }
.member-photo { aspect-ratio: 4 / 5; background: #e6e6e3; border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo--empty { display: grid; place-items: center; }
.member-photo--empty img { width: 38%; height: auto; object-fit: contain; filter: grayscale(1); opacity: .35; }
.member h3 { font-size: 1rem; margin: 0; line-height: 1.3; }
.member p { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; }

/* Referenser */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
.gallery figure { margin: 0; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery-open:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 92vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10,12,11,.88); }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: #fff; text-align: center; margin: .8rem 0 0; }
.lightbox button {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-prev { left: 1.5rem; }
.lightbox .lb-next { right: 1.5rem; }
.lightbox .lb-close { top: 1.5rem; right: 1.5rem; transform: none; }
.gallery figcaption { margin-top: .6rem; font-size: .95rem; color: var(--ink-soft); }

/* Omdömen */
.rating { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.rating strong { font-family: var(--head-font); font-size: 1.4rem; }
.rating .stars { color: #e7a400; letter-spacing: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.review { margin: 0; border-left: 3px solid var(--green); padding-left: 1.25rem; }
.review blockquote { margin: 0 0 .9rem; font-size: 1.08rem; color: var(--ink); }
.review figcaption { color: var(--muted); font-size: .95rem; }
.review figcaption b { color: var(--ink); }

/* Kunder */
.case {
    display: grid; grid-template-columns: 200px 1fr auto; gap: 2rem; align-items: center;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 1.5rem 0; margin-bottom: 3rem; text-decoration: none;
}
.case img { width: 100%; height: 70px; object-fit: contain; object-position: left; }
.case h3 { margin-bottom: .2rem; }
.case p { margin: 0; color: var(--ink-soft); }
.case:hover h3 { color: var(--green); }
.case .more { font-weight: 600; color: var(--green); white-space: nowrap; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 2.5rem; }
.logos img { height: 42px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s; }
.logos img:hover { filter: none; opacity: 1; }
.logos--small img { height: 50px; }
.logos-label { font-weight: 600; font-size: 1rem; color: var(--muted); margin: 3.5rem 0 1.5rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.2rem 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--green); line-height: 1; transition: transform .2s; }
.faq summary:hover { color: var(--green); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.2rem; margin: 0; }
.faq details[open] p { animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Mjuk inladdning vid scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Kontaktband */
.cta-band { background: var(--dark); color: #fff; padding: clamp(3rem, 6vw, 4rem) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.75); }
.cta-band .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #151816; color: rgba(255,255,255,.7); padding: 3.5rem 0 0; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { background: #fff; padding: .45rem .7rem; display: inline-block; margin-bottom: 1rem; border-radius: var(--radius); }
.footer-logo img { height: 40px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 1.1rem; margin-top: 1rem; font-size: 1.25rem; }
.footer-bottom {
    margin-top: 3rem; padding: 1.3rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-size: .9rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* Fast kontaktfält på mobil */
.mobile-cta { display: none; }

/* Responsivt */
@media (max-width: 1024px) {
    .services-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logos { justify-content: flex-start; }
}
@media (max-width: 960px) {
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: .25rem 1.25rem 1.5rem;
        background: #fff;
        box-shadow: 0 20px 30px rgba(0,0,0,.08);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; }
    .main-nav .btn { margin-top: 1rem; border-bottom: 0; }
    .menu-toggle { display: grid; place-items: center; }
    .about { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .reviews-grid {
        display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: -1.25rem; padding: 0 1.25rem .5rem; scrollbar-width: none;
    }
    .reviews-grid::-webkit-scrollbar { display: none; }
    .review { flex: 0 0 85%; scroll-snap-align: start; background: #fff; padding: 1.25rem; }
    .case { grid-template-columns: 1fr; gap: .75rem; }
    .case img { width: 180px; height: 60px; }
}
@media (max-width: 768px) {
    body { font-size: 17px; padding-bottom: 70px; }
    :root { --header-h: 68px; }
    .brand img { height: 46px; }
    .hero { min-height: 0; }
    .hero::after { background: linear-gradient(180deg, rgba(14,18,16,.35) 0%, rgba(14,18,16,.8) 55%); }
    .hero-content { padding: 9rem 0 2.5rem; }
    .lightbox .lb-prev { left: .5rem; } .lightbox .lb-next { right: .5rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .services-grid, .gallery { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem .75rem; }
    .member h3 { font-size: .9rem; }
    .member p { font-size: .8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .logos { gap: 1.5rem 2rem; }
    .logos img { height: 34px; max-width: 110px; }
    .cta-band .actions, .cta-band .btn { width: 100%; }
    .mobile-cta {
        display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--line);
    }
    .mobile-cta .btn { padding: .7rem 1rem; }
}
@media (max-width: 480px) {
    .facts-grid { grid-template-columns: 1fr; }
    .fact, .fact + .fact { padding-left: 0; border-left: 0; }
    .fact + .fact { border-top: 1px solid rgba(255,255,255,.15); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ===================== Undersidor ===================== */

/* Sidtopp */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--dark); color: #fff;
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-hero > img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.page-hero:has(> img)::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(12,16,14,.88) 0%, rgba(12,16,14,.66) 55%, rgba(12,16,14,.3) 100%);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; max-width: 820px; margin-bottom: 1rem; }
.page-hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.88); max-width: 640px; margin-bottom: 1.75rem; }
.page-hero .hero-actions { margin-bottom: 0; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .95rem; color: rgba(255,255,255,.8); margin: 1.5rem 0 0; }
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 1.1rem; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 .45rem; }

/* Text och tvåspaltigt */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--center { align-items: center; }
.split h2, .prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.split p, .prose p, .prose li { color: var(--ink-soft); }
.split img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.meta { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.section--soft .card { border-color: #e4e5e2; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card .plain-list { margin: auto 0 0; padding-top: .5rem; }
.card .plain-list li { font-size: .97rem; }
.card-icon { width: 44px; height: 44px; border-radius: var(--radius); background: #e8f3ec; color: var(--green); display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 1rem; }

/* Listor i två spalter */
.check-columns { columns: 2; column-gap: 3rem; }
.check-columns.plain-list { margin-top: 0; }
.check-columns li { break-inside: avoid; }
.check-columns li:nth-child(2) { border-top: 1px solid var(--line); }

/* Fler steg */
.steps--auto { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Notis */
.note { background: var(--bg-soft); border-left: 3px solid var(--green); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft); }
.section--soft .note { background: #fff; }

/* Formulär */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label, .field-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
    padding: .75rem .9rem; background: #fff;
    border: 1px solid #c9ccc8; border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,120,58,.15); }
.form input[type="file"] { width: 100%; font: inherit; font-size: .95rem; padding: .8rem; background: var(--bg-soft); border: 1px dashed #b9bdb8; border-radius: var(--radius); cursor: pointer; }
.form .hint { font-size: .88rem; color: var(--muted); margin: .35rem 0 0; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.form .btn { justify-self: start; }
.form-extra { display: grid; gap: 1.15rem; padding: 1.25rem; background: var(--bg-soft); border-radius: var(--radius); }
.form-extra[hidden] { display: none; }
.choices { display: grid; gap: .5rem; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #aeb3ad; }
.choice:has(input:checked) { border-color: var(--green); background: #f3faf5; }
.choice input { margin-top: .3rem; accent-color: var(--green); }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: var(--muted); font-size: .88rem; }
.form-msg { display: none; padding: .85rem 1rem; border-radius: var(--radius); font-size: .97rem; }
.form-msg.is-error { display: block; background: #fdecea; color: #8a1c12; }
.form-msg.is-ok { display: block; background: #e8f5ec; color: var(--green-dark); }
.file-list { display: grid; gap: .3rem; margin-top: .5rem; font-size: .9rem; }
.file-list .bad { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent-line { font-size: .9rem; color: var(--muted); margin: 0; }
.consent-line a { color: var(--green); }

/* Sidoruta */
.aside-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1.75rem; }
.aside-box + .aside-box { margin-top: 1.25rem; }
.aside-box h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.aside-box p { color: var(--ink-soft); font-size: .97rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .75rem; align-items: baseline; }
.contact-list i { color: var(--green); width: 1.1rem; text-align: center; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--green); }

/* Tacksidor */
.thanks { text-align: center; max-width: 620px; margin: 0 auto; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: #e8f3ec; color: var(--green); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1.5rem; }
.thanks p { color: var(--ink-soft); }
.thanks .hero-actions { justify-content: center; margin-top: 2rem; }

/* Aktiv sida i menyn */
.main-nav a[aria-current="page"] { color: var(--green); }

@media (max-width: 960px) {
    .split, .form-layout { grid-template-columns: 1fr; }
    .cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .page-hero { padding-top: 2.75rem; }
    .page-hero .hero-actions .btn { flex: 1 1 100%; }
    .check-columns { columns: 1; }
    .check-columns li:nth-child(2) { border-top: 0; }
    .form-row { grid-template-columns: 1fr; }
    .form .btn { justify-self: stretch; }
}
.section:has(.thanks) { min-height: 60vh; display: flex; align-items: center; }
.section:has(.thanks) > .wrap { width: min(var(--wrap), 100% - 2.5rem); }
.field .choice { display: flex; margin: 0; font-weight: 400; font-size: 1rem; }
.field .choice[hidden] { display: none; }
.choices { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }

/* ===================== Laddboxkalkyl ===================== */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.calc-inputs { display: grid; gap: 1.25rem; }
.calc-group { background: #fff; border: 1px solid #e4e5e2; border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 0; display: grid; gap: 1.25rem; min-width: 0; }
.calc-group legend { float: left; width: 100%; padding: 0; margin-bottom: .25rem; font-family: var(--head-font); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.calc-group legend + * { clear: both; }
.calc-no { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.calc .field label, .calc .field-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.calc select { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid #c9ccc8; border-radius: var(--radius); background: #fff; color: var(--ink); }
.calc select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,120,58,.15); }
.calc input[type="range"] { width: 100%; accent-color: var(--green); height: 28px; cursor: pointer; }
.calc-range { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.calc-range output { font-weight: 700; color: var(--ink); font-size: 1rem; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { margin: 0 !important; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: .55rem .9rem; border: 1px solid #c9ccc8; border-radius: var(--radius); font-weight: 500; font-size: .95rem; background: #fff; transition: border-color .15s, background .15s, color .15s; }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.calc-result { position: sticky; top: calc(var(--header-h) + 16px); background: var(--dark); color: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.calc-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fd49b; margin: 0 0 1rem; }
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.calc-stats > div { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 1rem 1.1rem; }
.calc-stats span { display: block; font-size: .88rem; color: rgba(255,255,255,.7); }
.calc-stats strong { display: block; font-family: var(--head-font); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin: .2rem 0; }
.calc-stats small { font-size: .85rem; color: rgba(255,255,255,.6); }
.calc-sub { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.75); margin: 0 0 .7rem; }
.calc-bars { display: grid; gap: .6rem; margin-bottom: 1rem; }
.calc-bar { display: grid; grid-template-columns: 9.5rem 1fr 6.5rem; align-items: center; gap: .75rem; font-size: .9rem; }
.calc-bar > span { color: rgba(255,255,255,.8); }
.calc-bar > div { height: 12px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; }
.calc-bar i { display: block; height: 100%; background: rgba(255,255,255,.35); border-radius: 6px; transition: width .4s ease; }
.calc-bar i.is-home { background: #3ccf6e; }
.calc-bar b { text-align: right; font-weight: 600; white-space: nowrap; }
.calc-save { font-size: .97rem; color: rgba(255,255,255,.85); margin: 0 0 1.5rem; }
.calc-save strong { color: #7fd49b; }
.calc-price { border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; margin-bottom: 1.4rem; display: grid; gap: .8rem; }
.calc-price > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.calc-price span { color: rgba(255,255,255,.75); font-size: .95rem; }
.calc-price .is-big strong { font-family: var(--head-font); font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: #fff; }
.calc-price .is-big small { width: 100%; text-align: right; color: #7fd49b; font-size: .88rem; margin-top: -.4rem; }
.calc-price p { margin: 0; color: rgba(255,255,255,.85); }
.calc-tips { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.calc-tips li { position: relative; padding-left: 1.6rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.calc-tips li::before { content: "\f0eb"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1rem; color: #f2c94c; font-size: .9rem; }
.calc-tips b { color: #fff; }
.calc-meta { font-size: .88rem; color: rgba(255,255,255,.6); margin: 0 0 1.4rem; }
.calc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.calc-note { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }

@media (max-width: 960px) {
    .calc { grid-template-columns: 1fr; }
    .calc-result { position: static; }
}
@media (max-width: 520px) {
    .calc-stats { grid-template-columns: 1fr; }
    .calc-bar { grid-template-columns: 1fr auto; }
    .calc-bar > div { grid-column: 1 / -1; grid-row: 2; }
    .calc-actions .btn { flex: 1 1 100%; }
}
.calc-price[hidden] { display: none; }
.calc-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.calc-box { cursor: pointer; margin: 0; }
.calc-box input { position: absolute; opacity: 0; pointer-events: none; }
.calc-box > span { display: flex; flex-direction: column; height: 100%; padding: .85rem 1rem; border: 1px solid #c9ccc8; border-radius: var(--radius); background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.calc-box:hover > span { border-color: var(--ink); }
.calc-box input:checked + span { border-color: var(--green); background: #f3faf5; box-shadow: inset 0 0 0 1px var(--green); }
.calc-box input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.calc-box b { font-weight: 700; font-size: .98rem; }
.calc-box small { color: var(--muted); font-size: .85rem; line-height: 1.4; margin: .2rem 0 .5rem; }
.calc-box em { font-style: normal; font-weight: 600; font-size: .88rem; color: var(--green); margin-top: auto; }
.calc-price .is-sum { padding-top: .7rem; border-top: 1px dashed rgba(255,255,255,.18); }
@media (max-width: 520px) { .calc-boxes { grid-template-columns: 1fr; } }

/* ===================== Strömbrytare: ljust/mörkt läge ===================== */
.theme-switch { display: inline-flex; align-items: center; gap: .65rem; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; font-weight: 500; font-size: .98rem; }
.theme-switch__plate {
    width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; perspective: 70px;
    background: linear-gradient(180deg, #ffffff, #ecedea); border: 1px solid #cfd2ce;
    box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 #fff; transition: border-color .2s, background .3s;
}
.theme-switch:hover .theme-switch__plate { border-color: #8f948f; }
.theme-switch__rocker {
    position: relative; width: 18px; height: 22px; border-radius: 4px; border: 1px solid #c4c7c3;
    background: linear-gradient(180deg, #fbfbfa 0%, #fbfbfa 46%, #d6d8d4 54%, #e7e8e5 100%);
    transform: rotateX(16deg); transition: transform .22s cubic-bezier(.3,1.7,.55,1), background .2s;
}
.theme-switch__rocker::after {
    content: ""; position: absolute; left: 50%; top: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
    background: #b8bcb7; transition: background .2s, box-shadow .2s, top .2s;
}
.theme-switch[aria-checked="true"] .theme-switch__rocker {
    transform: rotateX(-16deg);
    background: linear-gradient(0deg, #3a403c 0%, #3a403c 46%, #2a2f2c 54%, #222624 100%); border-color: #4a514c;
}
.theme-switch[aria-checked="true"] .theme-switch__rocker::after { top: 14px; background: #3ccf6e; box-shadow: 0 0 6px 1px rgba(60,207,110,.8); }
.theme-switch__label { display: none; }
@media (max-width: 960px) {
    .main-nav .theme-switch { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 600; justify-content: space-between; flex-direction: row-reverse; }
    .main-nav .theme-switch__label { display: inline; }
}

/* Logga: vit text i mörkt läge */
.brand .logo-dark { display: none; }

/* ===================== Mörkt läge ===================== */
html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8ebe8; --ink-soft: #c2c7c3; --muted: #959c97; --line: #2e3430;
    --bg: #121513; --bg-soft: #191d1a; --dark: #0b0d0c;
    --green: #3fc172; --green-dark: #5ad08a;
}
html[data-theme="dark"] .brand .logo-light { display: none; }
html[data-theme="dark"] .brand .logo-dark { display: block; }
html[data-theme="dark"] .site-header { background: rgba(18,21,19,.9); }
html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.4); }
html[data-theme="dark"] .menu-toggle { background: var(--bg-soft); }
html[data-theme="dark"] .btn--primary { background: #178a43; border-color: #178a43; color: #fff; }
html[data-theme="dark"] .btn--primary:hover { background: #1c9d4d; border-color: #1c9d4d; }
html[data-theme="dark"] .main-nav .btn { color: #fff; }
html[data-theme="dark"] .btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
html[data-theme="dark"] .btn--outline:hover { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .theme-switch__plate { background: linear-gradient(180deg, #2b302d, #222624); border-color: #3a403c; box-shadow: 0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .calc-group,
html[data-theme="dark"] .section--soft .card { background: #1e2320; border-color: var(--line); }
html[data-theme="dark"] .card-icon,
html[data-theme="dark"] .thanks-icon { background: rgba(63,193,114,.14); }
html[data-theme="dark"] .aside-box { background: var(--bg-soft) !important; }
html[data-theme="dark"] .section--soft .aside-box { background: #1e2320 !important; }
html[data-theme="dark"] .note, html[data-theme="dark"] .section--soft .note { background: #1e2320; }
html[data-theme="dark"] .form input[type="text"], html[data-theme="dark"] .form input[type="email"], html[data-theme="dark"] .form input[type="tel"],
html[data-theme="dark"] .form select, html[data-theme="dark"] .form textarea, html[data-theme="dark"] .calc select {
    background: #1a1e1b; border-color: #3a403c; color: var(--ink);
}
html[data-theme="dark"] .form input[type="file"] { background: #1a1e1b; border-color: #3a403c; }
html[data-theme="dark"] .form-extra { background: #1e2320; }
html[data-theme="dark"] .choice, html[data-theme="dark"] .seg span, html[data-theme="dark"] .calc-box > span { background: #1a1e1b; border-color: #3a403c; }
html[data-theme="dark"] .choice:has(input:checked), html[data-theme="dark"] .calc-box input:checked + span { background: rgba(63,193,114,.1); border-color: var(--green); }
html[data-theme="dark"] .seg input:checked + span { background: #178a43; border-color: #178a43; color: #fff; }
html[data-theme="dark"] .calc-result { background: #0b0d0c; border: 1px solid var(--line); }
html[data-theme="dark"] .member-photo { background: #232825; }
html[data-theme="dark"] .member-photo--empty img { filter: grayscale(1) invert(1); opacity: .3; }
html[data-theme="dark"] .review { background: transparent; }
html[data-theme="dark"] .mobile-cta { background: var(--bg); }
html[data-theme="dark"] .main-nav { background: var(--bg); }
@media (max-width: 960px) { html[data-theme="dark"] .main-nav { background: var(--bg); box-shadow: 0 20px 30px rgba(0,0,0,.5); } }
html[data-theme="dark"] .case img { background: #f3f3f1; border-radius: var(--radius); padding: .4rem .6rem; }
html[data-theme="dark"] .logos--small { background: #f3f3f1; border-radius: var(--radius); padding: 1.25rem 1.5rem; }
html[data-theme="dark"] .marquee { background: #f3f3f1; border-radius: var(--radius); }
html[data-theme="dark"] .form-msg.is-error { background: rgba(179,38,30,.18); color: #ff9a8f; }
html[data-theme="dark"] .form-msg.is-ok { background: rgba(63,193,114,.14); color: var(--green); }
html[data-theme="dark"] .hero-picks a { background: rgba(0,0,0,.2); }
html[data-theme="dark"] img.about-img, html[data-theme="dark"] .about img, html[data-theme="dark"] .service img { filter: brightness(.92); }

/* Mjuk övergång när man slår om (inte vid sidladdning) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color .35s ease, border-color .35s ease, color .25s ease !important;
}

/* ===================== Rullande kundloggor ===================== */
.marquee { overflow: hidden; padding: 1.25rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 4.5rem; padding-right: 4.5rem; flex: none; }
.marquee-set img { height: 42px; width: auto; max-width: 140px; object-fit: contain; flex: none; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s; }
.marquee-set img:hover { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 768px) { .marquee-set { gap: 3rem; padding-right: 3rem; } .marquee-set img { height: 34px; max-width: 110px; } .marquee-track { animation-duration: 28s; } }

/* ===================== "Så går det till" med strömkabel ===================== */
.steps.has-cable { position: relative; }
.steps.has-cable .step { border-top: 0; padding-top: 0; position: relative; }
.steps.has-cable .step-no {
    position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; margin-bottom: 1rem; font-size: 1rem;
    background: var(--bg); border: 2px solid var(--line); color: var(--muted);
    transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.section--soft .steps.has-cable .step-no { background: var(--bg-soft); }
.steps.has-cable .step.is-lit .step-no { background: var(--green); border-color: var(--green); color: #fff; animation: stepPulse .9s ease-out; }
html[data-theme="dark"] .steps.has-cable .step.is-lit .step-no { background: #178a43; border-color: #3fc172; }
@keyframes stepPulse { 0% { box-shadow: 0 0 0 0 rgba(60,207,110,.55); } 100% { box-shadow: 0 0 0 14px rgba(60,207,110,0); } }
.steps-cable { position: absolute; z-index: 0; pointer-events: none; background: var(--line); border-radius: 2px; }
.steps-cable i {
    position: absolute; left: 0; top: 0; border-radius: 2px;
    background: linear-gradient(90deg, #14783a, #3ccf6e); box-shadow: 0 0 8px rgba(60,207,110,.55);
}
.steps-cable i::after {
    content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: #eafff1; box-shadow: 0 0 6px 3px rgba(60,207,110,.9), 0 0 16px 6px rgba(60,207,110,.4);
}
/* Vågrät kabel */
.steps-cable.is-h { height: 3px; top: 18px; }
.steps-cable.is-h i { height: 100%; width: 0; }
.steps-cable.is-h i::after { right: -5px; top: -3.5px; }
/* Lodrät kabel (mobil) */
.steps-cable.is-v { width: 3px; left: 18px; top: 19px; }
.steps-cable.is-v i { width: 100%; height: 0; background: linear-gradient(180deg, #14783a, #3ccf6e); }
.steps-cable.is-v i::after { bottom: -5px; left: -3.5px; }
.steps-cable.is-done i::after { opacity: 0; transition: opacity .4s; }
@media (max-width: 960px) {
    .steps.steps--auto { grid-template-columns: 1fr; }
    .steps.has-cable { gap: 1.5rem; }
    .steps.has-cable .step { padding-left: 3.4rem; min-height: 38px; }
    .steps.has-cable .step-no { position: absolute; left: 0; top: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; width: auto; }
    .marquee-set { flex-wrap: wrap; gap: 2rem 3rem; padding: 0 1rem; }
    .marquee-set[aria-hidden="true"] { display: none; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .steps-cable i::after { display: none; }
}
