/* Högboms El – formspråk byggt på installationskabelns färger:
   brun = fas (privat), blå = neutral (företag), gulgrön = skyddsjord (energi & laddning) */
:root {
  --paper: #f6f8f7;
  --white: #ffffff;
  --brand: #0b148d;      /* logotypens blå */
  --brand-dark: #070d5e;
  --ink: #151a3d;
  --ink-soft: #4a5068;
  --line: #d9dfe3;
  --fas: #7b4a2b;
  --neutral: #0b148d;
  --jord-y: #d9c22e;
  --jord-g: #3c8c46;
  --focus: #0b148d;
  --wide: "Archivo", system-ui, sans-serif;
  --max: 1160px;
  --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--wide); font-variation-settings: "wdth" 100;
  font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--neutral); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Typografi: rubriker i bred variant, brödtext i normal bredd */
h1, h2 { color: var(--brand); }
h1, h2, h3 { font-variation-settings: "wdth" 125; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }

/* Sidhuvud */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.2rem; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--fas); }
.top-call { font-weight: 700; color: var(--white); background: var(--brand); text-decoration: none;
  padding: 9px 16px; border-radius: 6px; white-space: nowrap; }
.top-call:hover { background: var(--brand-dark); color: var(--white); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--white);
    flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .top-call { display: none; }
}

/* Hjälte */
.hero { background: var(--white); padding: clamp(40px, 7vw, 88px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-text { padding-bottom: clamp(32px, 5vw, 56px); }
.hero-img { border-radius: 8px 8px 0 0; overflow: hidden; aspect-ratio: 4 / 5; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .98rem; }
.facts li strong { color: var(--ink); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 16 / 10; border-radius: 8px; margin-bottom: 0; }
}

/* Signaturen: tre ledare som slutar i en kopplingsplint med telefonnumret */
.wires { display: flex; align-items: center; gap: 0; margin: 0; }
.wires .cable { flex: 1; display: grid; gap: 5px; min-width: 40px; }
.wires .cable span { height: 6px; border-radius: 3px 0 0 3px; }
.wires .cable span:nth-child(1) { background: var(--fas); }
.wires .cable span:nth-child(2) { background: var(--neutral); }
.wires .cable span:nth-child(3) { background: repeating-linear-gradient(90deg, var(--jord-y) 0 22px, var(--jord-g) 22px 44px); }
.terminal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--brand); color: var(--white);
  padding: 12px; border-radius: 10px; }
.terminal a { text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 6px; }
.terminal .call { background: var(--white); color: var(--ink); font-variation-settings: "wdth" 115; font-size: 1.1rem; }
.terminal .call:hover { background: var(--jord-y); }
.terminal .mail { color: var(--white); border: 1px solid #ffffff55; }
.terminal .mail:hover { border-color: var(--white); color: var(--white); }
.wires.in-hero { margin-top: 30px; }
@media (max-width: 560px) { .wires .cable { display: none; } .terminal { width: 100%; flex-direction: column; align-items: stretch; } .terminal a { text-align: center; white-space: nowrap; } }

/* Sektioner */
.sec { padding: clamp(48px, 7vw, 88px) 0; }
.sec.white { background: var(--white); }
.sec-head { margin-bottom: 28px; max-width: 720px; }

/* Tjänsterader: färgad ledare till vänster visar kundgrupp */
.rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.row { display: block; padding: 22px 0 22px 22px; border-bottom: 1px solid var(--line); position: relative;
  text-decoration: none; color: var(--ink); }
.row::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 5px; border-radius: 3px; background: var(--c); }
.row h3 { margin-bottom: 4px; }
.row p { margin: 0; color: var(--ink-soft); }
a.row:hover h3 { color: var(--neutral); text-decoration: underline; text-underline-offset: 4px; }
.c-privat { --c: var(--fas); }
.c-foretag { --c: var(--neutral); }
.c-energi { --c: repeating-linear-gradient(180deg, var(--jord-y) 0 12px, var(--jord-g) 12px 24px); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 5px; border-radius: 3px; background: var(--c); display: inline-block; }
@media (max-width: 760px) { .rows { grid-template-columns: 1fr; } }

/* Två spalter */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.split img { border-radius: 8px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
ul.check { padding: 0; margin: 0 0 1em; list-style: none; }
ul.check li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px solid var(--line); }
ul.check li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px;
  border-left: 3px solid var(--jord-g); border-bottom: 3px solid var(--jord-g); transform: rotate(-45deg); }

/* Arbetsgång (verklig ordningsföljd) */
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
ol.steps li { counter-increment: s; border-top: 3px solid var(--brand); padding-top: 14px; }
ol.steps li::before { content: counter(s); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.6rem; display: block; margin-bottom: 4px; color: var(--neutral); }
ol.steps h3 { font-size: 1.05rem; }
ol.steps p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { ol.steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { ol.steps { grid-template-columns: 1fr; } }

/* Omdömen */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.quotes figure { margin: 0; padding-left: 20px; border-left: 3px solid var(--fas); }
.quotes blockquote { margin: 0 0 10px; font-size: 1.12rem; }
.quotes figcaption { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Vanliga frågor */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 650; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Kontaktruta */
.cta-band { background: var(--brand); color: var(--white); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d5d8f2; }
.cta-band .terminal { background: var(--brand-dark); }
.cta-band .wires { margin-top: 24px; }

/* Brödsmulor */
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.page-hero { background: var(--white); padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero .wire-tag { display: block; width: 64px; height: 6px; border-radius: 3px; background: var(--c); margin-bottom: 18px; }

/* Sidfot */
.foot { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .96rem; color: var(--ink-soft); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 1rem; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 3px 0; }
.foot a { color: var(--ink-soft); }
.foot address { font-style: normal; }
.members { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Förfrågningsformulär: tre ledare kopplas in i formulärets överkant */
.hero-grid { align-items: start; }
.page-hero .hero-text { padding-bottom: 0; }
.lead-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px 22px;
  position: relative; box-shadow: 0 18px 40px -24px rgba(11, 20, 141, .45); }
.lead-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 15px; border-radius: 10px 10px 0 0;
  background:
    linear-gradient(var(--fas), var(--fas)) 0 0 / 100% 5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 5px / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--jord-y) 0 22px, var(--jord-g) 22px 44px) 0 10px / 100% 5px no-repeat; }
.lead-form h2 { font-size: 1.45rem; margin: 6px 0 4px; }
.lead-form .sub { color: var(--ink-soft); margin: 0 0 16px; font-size: .98rem; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 4px; }
.field span small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #c3cad3; border-radius: 6px; padding: 12px 12px; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #0b148d33; border-color: var(--brand); background: var(--white); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.send { width: 100%; font: inherit; font-weight: 750; font-size: 1.1rem; font-variation-settings: "wdth" 112; color: var(--white);
  background: var(--brand); border: 0; border-radius: 7px; padding: 15px; cursor: pointer; margin-top: 4px; }
.send:hover { background: var(--brand-dark); }
.fine { font-size: .85rem; color: var(--ink-soft); margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { display: none; background: #fdecea; color: #8a1c12; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; font-size: .95rem; }
.form-err.show { display: block; }
.callline { margin: 18px 0 0; font-size: 1.05rem; }
.callline a { font-weight: 750; color: var(--brand); text-decoration: none; font-variation-settings: "wdth" 115; }
.callline a:hover { text-decoration: underline; }
.hero { padding-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }

/* Mobil: fast list längst ner */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .mbar a { text-align: center; font-weight: 750; text-decoration: none; padding: 13px 8px; border-radius: 7px; }
  .mbar .m-call { border: 2px solid var(--brand); color: var(--brand); }
  .mbar .m-form { background: var(--brand); color: var(--white); }
  body { padding-bottom: 76px; }
}
.cta-band .wires .cable span:nth-child(2) { background: #ffffff; }
