/* Trygg och rak – rak och saklig mall för installatörer (el, VVS). Mobil först. */

@font-face { font-family: "Inter"; src: url(../fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --marin: #1e3a5f;
  --marin-dark: #16304f;
  --marin-ljus: #e6ecf2;
  --orange: #c2410c;
  --orange-dark: #a3360a;
  --orange-ljus: #f4a27a;
  --markor: #e07a45;
  --bg: #f7f6f2;
  --white: #fff;
  --ink: #1a2433;
  --muted: #4a5565;
  --line: #dad7ce;
  --input: #b8b4a8;
  --on-dark: #b9c6d6;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --section: 56px;
}
@media (min-width: 640px) { :root { --gutter: 32px; --section: 72px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; --section: 96px; } }
@media (min-width: 1280px) { :root { --gutter: 120px; } }

/* ---------- Grund ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--muted); font: 400 1.0625rem/1.59 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }
main { min-height: 50vh; }

h1, h2, h3, .h3 { margin: 0; color: var(--marin); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); line-height: 1.11; letter-spacing: -.018em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.2; letter-spacing: -.0125em; }
h3, .h3 { font-size: 1.375rem; line-height: 1.27; }

.wrap { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { color: var(--orange); font-size: .8125rem; font-weight: 600; line-height: 1.23; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow--light { color: var(--orange-ljus); }
.lead { color: var(--ink); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.5; }
.lead--muted { color: var(--muted); }
.small { font-size: .9375rem; line-height: 1.47; }
.small--link { color: var(--marin); }
.prose { color: var(--ink); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.5; }
.prose > * + * { margin-top: .75em; }
.prose h2, .prose h3, .prose h4 { font-size: 1.375rem; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 20; padding: 10px 16px; background: var(--marin); color: #fff; font-weight: 600; }
.skip:focus { top: 8px; }

/* ---------- Knappar ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; padding: 14px 28px;
  border: 2px solid transparent; font-weight: 600; font-size: 1.0625rem; line-height: 1.41; text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--call { background: var(--orange); color: #fff; }
.btn--call:hover { background: var(--orange-dark); }
.btn--ghost { background: var(--white); color: var(--marin); border-color: var(--marin); }
.btn--ghost:hover { background: var(--marin); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* ---------- Jourrad och sidhuvud ---------- */

.jourrad { background: var(--orange); color: #fff; text-align: center; font-weight: 600; line-height: 1.41; }
.jourrad a { display: block; padding: 10px var(--gutter); text-decoration: none; }
.jourrad a:hover { text-decoration: underline; }

.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand call" "nav nav";
  align-items: center; gap: 12px 16px; padding-top: 14px;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--marin); color: #fff;
  font-size: 1.375rem; font-weight: 700; line-height: 1;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__logo { display: block; flex: 0 1 auto; min-width: 0; width: auto; height: 44px; max-width: min(240px, 55vw); object-fit: contain; object-position: left center; }
.brand__name { color: var(--marin); font-size: 1.25rem; font-weight: 600; line-height: 1.27; }
.brand__tag { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.header__call { grid-area: call; min-height: 44px; padding: 10px 18px; }
.header__call-long { display: none; }

.nav { grid-area: nav; margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; }
.nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--marin); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--marin); font-weight: 600; border-bottom-color: var(--orange); }

@media (min-width: 640px) {
  .header__call-short { display: none; }
  .header__call-long { display: inline; }
}
@media (min-width: 1024px) {
  .header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav call"; gap: 32px; padding-block: 18px; }
  .brand__name { font-size: 1.375rem; }
  .brand__tag { font-size: .9375rem; }
  .header__call { min-height: 48px; padding: 12px 20px; }
  .nav { margin: 0; overflow: visible; border: 0; justify-self: center; }
  .nav ul { gap: 32px; padding: 0; }
  .nav a { padding: 4px 0; border-bottom-width: 2px; }
  .brand__name { white-space: nowrap; }
}
/* 1024–1279 px: the header is tight. A wide logo and the company name keep
   one line; the tagline waits for more room. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav ul { gap: 24px; }
  .brand__tag { display: none; }
  .brand__logo { max-width: 200px; }
}

/* ---------- Sektioner ---------- */

.section { padding-block: var(--section); background: var(--bg); }
.section--white { background: var(--white); }
.section__head { display: grid; gap: 12px; margin-bottom: 32px; }
.section__head .lead { max-width: 720px; }
.section__head--row { align-items: end; }
@media (min-width: 1024px) {
  .section__head { margin-bottom: 48px; }
  .section__head--row { grid-template-columns: 1fr auto; gap: 24px; }
}

.split { display: grid; gap: 32px; }
.split__text { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 520fr 600fr; gap: 80px; }
  .split--media { align-items: center; }
  .split--faq { grid-template-columns: 400fr 720fr; }
  .split--contact { grid-template-columns: 1fr 1fr; }
}

.page-head { padding-block: calc(var(--section) * .75); background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head .lead a { color: var(--marin); font-weight: 600; }

/* ---------- Aktuellt meddelande ---------- */

.notice { background: var(--marin-ljus); border-bottom: 1px solid var(--line); color: var(--marin); }
.notice p { padding-block: 14px; font-weight: 600; }

/* ---------- Hero ---------- */

.hero { padding-block: var(--section); background: var(--bg); }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__text { display: grid; gap: 20px; }
.hero__text .actions { margin-top: 4px; }
.hero__media { aspect-ratio: 56 / 46; overflow: hidden; background: linear-gradient(135deg, #efe8da, #c9d4df); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media--empty { display: none; }
@media (min-width: 1024px) {
  .hero { padding-block: 88px; }
  .hero__inner { grid-template-columns: 576fr 560fr; gap: 64px; }
  .hero__text { gap: 24px; }
  .hero__media--empty { display: block; }
}

/* ---------- Trygghetsrad ---------- */

.trustbar { background: var(--marin); color: #fff; }
.trustbar__list { display: grid; gap: 10px 32px; padding-block: 22px; font-weight: 600; line-height: 1.41; }
.trustbar__list li { display: flex; align-items: center; gap: 10px; }
.trustbar__list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--markor); }
@media (min-width: 640px) { .trustbar__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .trustbar__list { display: flex; flex-wrap: wrap; justify-content: space-between; } }

/* ---------- Tjänster ---------- */

.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.card__accent { width: 32px; height: 4px; background: var(--orange); }
.card p { line-height: 1.59; }
.card__tag { margin-top: auto; color: var(--marin); font-size: .8125rem; font-weight: 600; line-height: 1.23; letter-spacing: 1.5px; text-transform: uppercase; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Behörighet ---------- */

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 20px; padding: 20px; background: var(--bg); }
.checklist__mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--marin); color: #fff; font-weight: 600; }
.checklist__text { display: grid; gap: 4px; align-content: center; font-size: .9375rem; line-height: 1.47; }
.checklist__text strong { color: var(--marin); font-size: 1.0625rem; font-weight: 600; line-height: 1.41; }
@media (min-width: 640px) { .checklist li { padding: 24px; } }

/* ---------- Därför oss ---------- */

.reasons { display: grid; gap: 32px; counter-reset: skal; }
.reason { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 3px solid var(--marin); counter-increment: skal; }
.reason::before { content: counter(skal, decimal-leading-zero); color: var(--orange); font-size: 2.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -.0125em; }
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* ---------- Jour ---------- */

.jour { padding-block: 56px; background: var(--marin); color: #fff; }
.jour h2 { color: #fff; }
.jour__inner { display: grid; gap: 32px; align-items: center; }
.jour__text { display: grid; gap: 12px; max-width: 480px; }
.jour__facts { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.jour__facts dl { display: flex; flex-wrap: wrap; gap: 20px 32px; }
.jour__facts dl div { display: grid; gap: 4px; }
.jour__facts dt { color: var(--on-dark); font-size: .9375rem; line-height: 1.47; }
.jour__facts dd { font-weight: 600; line-height: 1.41; }
@media (min-width: 1024px) {
  .jour { padding-block: 64px; }
  .jour__inner { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 48px; }
  .jour__facts { justify-self: end; }
}

/* ---------- Så går det till ---------- */

.steps { display: grid; gap: 16px; counter-reset: steg; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--bg); counter-increment: steg; }
.step::before {
  content: counter(steg); display: grid; place-items: center; width: 44px; height: 44px; background: var(--marin); color: #fff;
  font-size: 1.375rem; font-weight: 600; line-height: 1;
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* ---------- Omdömen ---------- */

.stars { color: var(--orange); font-weight: 600; letter-spacing: 1px; }
.rating { display: inline-flex; align-items: center; gap: 16px; justify-self: start; padding: 16px 24px; background: var(--white); border: 1px solid var(--line); }
.rating__value { color: var(--marin); font-size: 2.5rem; font-weight: 600; line-height: 1.2; }
.rating__text { display: grid; gap: 2px; font-size: .9375rem; line-height: 1.47; }
.reviews { display: grid; gap: 16px; }
.review figure { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.review blockquote { margin: 0; color: var(--ink); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.5; }
.review figcaption { margin-top: auto; font-size: .9375rem; line-height: 1.47; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; } }

/* ---------- Om oss ---------- */

.media { aspect-ratio: 52 / 42; overflow: hidden; background: linear-gradient(135deg, #e4dbcb, #b4c1ce); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--empty { display: none; }
@media (min-width: 1024px) { .media--empty { display: block; } }
.figures { display: flex; flex-wrap: wrap; gap: 20px 48px; padding-top: 16px; }
.figures div { display: flex; flex-direction: column-reverse; gap: 2px; }
.figures dt { font-size: .9375rem; line-height: 1.47; }
.figures dd { color: var(--marin); font-size: 2.5rem; font-weight: 600; line-height: 1.2; }

/* ---------- Serviceområde ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.chips li { padding: 12px 18px; background: var(--white); border: 1px solid var(--line); color: var(--marin); font-weight: 600; line-height: 1.41; }

/* ---------- Vanliga frågor ---------- */

.split--faq .split__text p a { color: var(--marin); font-weight: 600; white-space: nowrap; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; cursor: pointer;
  color: var(--marin); font-size: 1.25rem; font-weight: 600; line-height: 1.3; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--orange); font-size: 1.375rem; line-height: 1; }
.faq details[open] summary { padding-bottom: 12px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 24px; max-width: 65ch; }
@media (min-width: 1024px) { .faq summary { font-size: 1.375rem; } }

/* ---------- Kontakt ---------- */

.facts { padding-block: 16px; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts dd { color: var(--marin); font-weight: 600; line-height: 1.41; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }
@media (min-width: 480px) { .facts > div { grid-template-columns: 140px 1fr; align-items: start; } }
.hours { border-collapse: collapse; }
.hours th { padding: 0 16px 0 0; font-weight: 600; text-align: left; }
.hours td { padding: 0; }

.formcard { display: grid; gap: 20px; align-content: start; padding: 28px 20px; background: var(--white); border: 1px solid var(--line); }
.formcard--solo { max-width: 560px; }
@media (min-width: 640px) { .formcard { padding: 40px; } }

/* Kontaktformuläret från plattformen. */
.contact-form { display: grid; gap: 20px 16px; }
.contact-form p { display: grid; gap: 6px; }
.contact-form label { color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.47; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--input); border-radius: 0; background: var(--white);
  color: var(--ink); font: inherit; line-height: 1.59;
}
.contact-form textarea { min-height: 128px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--marin); outline-offset: 0; border-color: var(--marin); }
.contact-form button {
  width: 100%; min-height: 56px; padding: 14px 28px; border: 0; background: var(--marin); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.contact-form button:hover { background: var(--marin-dark); }
.contact-form__optional { font-weight: 400; color: var(--muted); }
.contact-form__note { color: var(--muted); font-size: .9375rem; line-height: 1.47; }
@media (min-width: 640px) {
  /* Namn och telefon bredvid varandra, som i skissen. */
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form > * { grid-column: 1 / -1; }
  .contact-form > p:has(#cf-namn) { grid-column: 1; order: -2; }
  .contact-form > p:has(#cf-telefon) { grid-column: 2; order: -1; }
}

/* ---------- Sidfot ---------- */

.footer { padding-block: 56px 32px; background: var(--marin-dark); color: #fff; font-size: .9375rem; line-height: 1.47; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__top { display: grid; gap: 32px; }
.footer__company { display: grid; gap: 8px; align-content: start; }
.footer__name { font-size: 1.375rem; font-weight: 600; line-height: 1.27; }
.footer__muted { color: var(--on-dark); }
.footer__social { display: flex; gap: 20px; margin-top: 8px; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__label { color: var(--orange-ljus); font-size: .8125rem; font-weight: 600; line-height: 1.23; letter-spacing: 1.5px; text-transform: uppercase; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); color: var(--on-dark); }
@media (min-width: 768px) { .footer__top { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
@media (min-width: 1024px) { .footer { padding-top: 64px; } .footer__top { grid-template-columns: 560fr 240fr 240fr; gap: 80px; } }
