/* Lokal och personlig – varm mall för en ägarledd installationsfirma. Mobil först. */

@font-face { font-family: "DM Sans"; src: url(../fonts/dmsans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(../fonts/caveat.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #faf7f0;
  --sand: #f1ebdf;
  --white: #fff;
  --green: #1f3d2e;
  --green-dark: #173023;
  --green-light: #e4ece5;
  --brick: #9a3b2e;
  --brick-dark: #7f3026;
  --brick-light: #edb9a9;
  --ink: #3d3833;
  --muted: #6b635b;
  --line: #e6dfd2;
  --on-green: #cfdad2;
  --placeholder: #a39a90;
  --shadow: 0 10px 30px rgba(31, 61, 46, .08);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Snell Roundhand", "Segoe Script", cursive;
  --gutter: 20px;
  --section: 64px;
}
@media (min-width: 640px) { :root { --gutter: 32px; --section: 80px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; --section: 104px; } }
@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(--cream); color: var(--muted); font: 400 1.0625rem/1.65 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(--brick); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 16px; }
main { min-height: 50vh; }

h1, h2, h3, .h3 { margin: 0; color: var(--green); font-family: var(--serif); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); line-height: 1.09; letter-spacing: -.016em; }
h2 { font-size: clamp(1.875rem, 1.35rem + 2vw, 2.75rem); line-height: 1.18; letter-spacing: -.011em; }
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(--brick); font-size: .9375rem; font-weight: 600; line-height: 1.33; }
.eyebrow--light { color: var(--brick-light); }
.lead { color: var(--ink); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.6; }
.lead--muted { color: var(--muted); }
.lead a { color: var(--green); font-weight: 600; }
.small { font-size: .9375rem; line-height: 1.47; }
.prose { font-size: 1.0625rem; line-height: 1.65; }
.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; }
.prose a { color: var(--green); }

.signature { color: var(--green); font-family: var(--script); font-weight: 700; font-size: 2.75rem; line-height: 1.1; }

.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; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; }
.skip:focus { top: 8px; }

/* ---------- Knappar, piller och bockar ---------- */

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

.pill {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 16px 8px 14px; border-radius: 999px;
  background: var(--sand); color: var(--green); font-size: .9375rem; font-weight: 600; line-height: 1.33;
}
.pill__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brick); }

.check {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-light); color: var(--green); font-weight: 600; line-height: 1;
}
.check--sm { width: 24px; height: 24px; font-size: .875rem; }

.tag { justify-self: start; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--green-light); color: var(--green); font-size: .9375rem; line-height: 1.47; }

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

.jourrad { background: var(--brick); 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__inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand call" "nav nav";
  align-items: center; gap: 12px 16px; padding-top: 16px;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: var(--cream); font-family: var(--serif); font-size: 1.375rem; font-weight: 600; 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: 46px; max-width: min(240px, 55vw); object-fit: contain; object-position: left center; }
.brand__name { color: var(--green); font-family: var(--serif); 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); border-bottom: 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; }
.nav a:hover { color: var(--green); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 2px; }

@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: 22px; }
  .brand__name { font-size: 1.375rem; }
  .brand__tag { font-size: .9375rem; }
  .header__call { min-height: 56px; padding: 16px 28px; }
  .nav { margin: 0; overflow: visible; border: 0; justify-self: center; }
  .nav ul { gap: 32px; padding: 0; }
  .nav a { padding: 4px 0; }
  .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); }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--rounded { border-radius: 24px 24px 0 0; }
.section--green { background: var(--green); color: var(--on-green); }
.section--green h2 { color: var(--cream); }
.section--green .lead { color: var(--on-green); }
.section__head { display: grid; gap: 14px; margin-bottom: 32px; }
.section__head .lead { max-width: 680px; }
.section__head .section__head { margin: 0; }
.section__head--row { align-items: end; }
@media (min-width: 1024px) {
  .section--rounded { border-radius: 32px 32px 0 0; }
  .section__head { margin-bottom: 48px; }
  .section__head--row { grid-template-columns: 1fr auto; gap: 48px; }
}

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

.page-head { padding-block: calc(var(--section) * .6); }
.page-head .wrap { display: grid; gap: 16px; }

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

.notice { background: var(--green-light); color: var(--green); }
.notice p { padding-block: 14px; font-weight: 600; }

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

.hero { padding-block: 40px 48px; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__text { display: grid; gap: 20px; }
.hero__text .actions { margin-top: 4px; }
.hero__sign { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 8px; }
.hero__title { display: grid; padding-left: 16px; border-left: 1px solid var(--line); font-size: .9375rem; line-height: 1.4; }
.hero__title strong { color: var(--ink); font-weight: 600; }
.hero__media {
  position: relative; aspect-ratio: 52 / 60; overflow: hidden; border-radius: 24px;
  background: linear-gradient(135deg, #eadcc6, #b89a7c);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media--empty:not(:has(.ratingcard)) { display: none; }
.ratingcard {
  position: absolute; left: 20px; bottom: 20px; display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px;
  background: var(--white); box-shadow: var(--shadow); font-size: .9375rem; line-height: 1.47;
}
.ratingcard strong { color: var(--green); font-size: 1.0625rem; font-weight: 600; line-height: 1.41; }
@media (max-width: 1023px) {
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__media--empty { aspect-ratio: auto; min-height: 120px; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 56px 72px; }
  .hero__inner { grid-template-columns: 608fr 520fr; gap: 72px; }
  .hero__text { gap: 24px; }
  .hero__media--empty:not(:has(.ratingcard)) { display: block; }
}

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

.trust { padding-bottom: 56px; }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust__list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font-weight: 600; line-height: 1.41;
}
@media (min-width: 1024px) { .trust { padding-bottom: 72px; } }

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

.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 16px; background: var(--white); }
.card .tag { margin-top: auto; }
@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 ---------- */

.textlink { padding-top: 6px; color: var(--green); }
.certs { display: grid; gap: 16px; }
.cert { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 16px; background: var(--cream); font-size: .9375rem; line-height: 1.47; }
@media (min-width: 560px) { .certs { grid-template-columns: 1fr 1fr; } }

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

.reasons { display: grid; gap: 16px; counter-reset: skal; }
.reason {
  display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); counter-increment: skal;
}
.reason::before {
  content: counter(skal); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brick); color: #fff; font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1;
}
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; } }

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

.jour { padding-bottom: var(--section); }
.jour__box {
  display: grid; gap: 28px; align-items: center; padding: 36px 28px; border-radius: 24px; background: var(--green); color: var(--cream);
}
.jour__box h2 { color: var(--cream); }
.jour__text { display: grid; gap: 10px; max-width: 520px; }
.jour__box .btn { justify-self: start; }
.jour__list { display: grid; gap: 8px; font-weight: 600; line-height: 1.41; }
.jour__list li { display: flex; gap: 10px; }
.jour__list span { color: var(--brick-light); }
@media (min-width: 1024px) {
  .jour__box { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text list" "text btn"; gap: 24px 48px; padding: 48px 56px; }
  .jour__text { grid-area: text; }
  .jour__list { grid-area: list; }
  .jour__box .btn { grid-area: btn; }
}
@media (min-width: 1280px) {
  .jour__box { grid-template-columns: minmax(0, 520px) auto auto; grid-template-areas: "text list btn"; justify-content: space-between; }
}

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

.steps { display: grid; gap: 16px; counter-reset: steg; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 16px; background: var(--cream); counter-increment: steg; }
.step::before {
  content: counter(steg); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--cream); 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(--brick); font-weight: 600; letter-spacing: 1px; }
.ratingpill {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; justify-self: start; padding: 12px 22px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--green); font-weight: 600; line-height: 1.41;
}
.ratingpill a { text-decoration: none; }
.ratingpill a:hover { text-decoration: underline; }
.reviews { display: grid; gap: 16px; }
.review figure { display: flex; flex-direction: column; gap: 20px; height: 100%; padding: 32px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.review blockquote { margin: 0; color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-light); color: var(--green); font-weight: 600; text-transform: uppercase;
}
.review__who { display: grid; font-size: .9375rem; line-height: 1.47; }
.review__who strong { color: var(--green); font-size: 1.0625rem; font-weight: 600; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; } }

/* ---------- Om mig ---------- */

.media { aspect-ratio: 52 / 46; overflow: hidden; border-radius: 24px; background: linear-gradient(135deg, #e3d2ba, #a88c70); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--empty { display: none; }
@media (min-width: 1024px) { .media--empty { display: block; } }
.om__sign { padding-top: 8px; }

/* ---------- Här kör jag ---------- */

.omrade .section__head { margin-bottom: 24px; }
.towns {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 24px;
  color: var(--cream); font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.36; letter-spacing: -.011em;
}
.towns li { display: inline-flex; gap: 20px; }
.towns li:not(:last-child)::after { content: "·"; color: var(--brick-light); }
@media (min-width: 1024px) { .omrade .section__head, .towns { margin-bottom: 32px; } }

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

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 20px 20px 24px; cursor: pointer;
  color: var(--green); font-family: var(--serif); 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: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-light); color: var(--green); font-family: var(--sans); font-size: 1.125rem; line-height: 1;
}
.faq details[open] summary { padding-bottom: 10px; }
.faq details[open] summary::after { content: "−"; background: var(--green); color: var(--cream); }
.faq details p { padding: 0 24px 20px; max-width: 65ch; }
@media (min-width: 1024px) { .faq summary { font-size: 1.375rem; } }

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

.contact { padding-bottom: var(--section); }
.page-head + .contact { padding-top: 8px; }
.contact__card { display: grid; gap: 40px; padding: 32px 20px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.contact__text { display: grid; gap: 20px; align-content: start; }
.contact__person { display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.contact__photo { flex: none; width: 88px; height: 88px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, #eadcc6, #b89a7c); }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; }
.contact__person p { display: grid; gap: 2px; }
.contact__phone { color: var(--green); font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 600; line-height: 1.18; text-decoration: none; }
.contact__phone:hover { text-decoration: underline; }
.contact__details { display: grid; gap: 6px; color: var(--ink); }
.contact__details a { color: var(--green); }
.contact__details .small { color: var(--muted); }
.hours { justify-self: start; border-collapse: collapse; color: var(--ink); }
.hours caption { padding-bottom: 4px; color: var(--green); font-weight: 600; text-align: left; }
.hours th { padding: 0 16px 0 0; font-weight: 400; text-align: left; }
.hours td { padding: 0; }
@media (min-width: 640px) { .contact__card { padding: 40px; } }
@media (min-width: 1024px) {
  .contact__card { grid-template-columns: 504fr 520fr; gap: 64px; padding: 56px; border-radius: 32px; }
}

.formcard { display: grid; gap: 18px; align-content: start; padding: 28px 20px; border-radius: 24px; background: var(--cream); }
.formcard--solo { max-width: 560px; }
@media (min-width: 640px) { .formcard { padding: 32px; } }

/* Kontaktformuläret från plattformen. */
.contact-form { display: grid; gap: 18px 14px; }
.contact-form p { display: grid; gap: 6px; }
.contact-form label { color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.33; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  color: var(--ink); font: inherit; line-height: 1.65;
}
.contact-form textarea { min-height: 104px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.contact-form button {
  width: 100%; min-height: 56px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--green); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.contact-form button:hover { background: var(--green-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(--green); color: var(--cream); font-size: .9375rem; line-height: 1.6; }
.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-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.27; }
.footer__muted { color: var(--on-green); }
.footer .signature { color: var(--brick-light); }
.footer__social { display: flex; gap: 20px; margin-top: 4px; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__label { color: var(--brick-light); font-family: var(--sans); font-size: .9375rem; font-weight: 600; line-height: 1.33; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(250, 247, 240, .2); color: var(--on-green); }
@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: 440fr 300fr 300fr; gap: 80px; } }
