/* Bygg och renovering – Penseldrag
   För målerifirmor. Vitt och ljusgrått med bläcksvart text och limegrönt
   för allt man trycker på. Penseldrag går igen under rubrikerna, bakom
   bilden i Om oss och i erbjudandet; toppen visar en ritad kulörfläkt och
   kulörprov finns i etiketter, tjänster och stegen. Montserrat för
   rubriker och knappar, Nunito Sans för text. Mobil först. */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunitosans.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --white: #FFFFFF;
  --gra: #F4F5F0;
  --ink: #1F2623;
  --muted: #59625D;
  --line: #E2E5DD;
  --input: #C3C8BE;
  --lime: #8CC63F;
  --lime-hover: #7DB534;
  --gron: #4A7A1C;
  --gron-ljus: #EDF5E1;
  --linne: #E9DCC6;
  --salvia: #9DB5A4;
  --duvbla: #3F5D6C;
  --terrakotta: #C46E4A;
  --ockra: #E2B04A;
  --rosa: #D9A9A0;
  --mossa: #7FA35A;
  --chip: rgba(31, 38, 35, .82);
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --section: 64px;
}
@media (min-width: 640px) { :root { --gutter: 32px; --section: 80px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --section: 96px; } }
@media (min-width: 1440px) { :root { --gutter: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gron); outline-offset: 2px; }
[id] { scroll-margin-top: 80px; }

h1, h2, h3, .h3 { font-family: var(--head); color: var(--ink); text-wrap: balance; }
h1 { font-size: 2.125rem; font-weight: 700; line-height: 1.18; letter-spacing: -.6px; }
h2 { font-size: 1.625rem; font-weight: 700; line-height: 1.23; letter-spacing: -.4px; }
h3, .h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.33; letter-spacing: -.1px; }
@media (min-width: 768px) {
  h1 { font-size: clamp(2.75rem, 1.4rem + 2.8vw, 3.625rem); line-height: 1.1; letter-spacing: -1.4px; }
  h2 { font-size: clamp(2rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.2; letter-spacing: -.8px; }
}

/* Etiketten: tre kulörprov, sedan versaler i mörkgrönt. */
.chips, .eyebrow::before {
  content: ""; display: inline-block; flex: none; width: 27px; height: 10px;
  background: linear-gradient(90deg, var(--lime) 0 7px, transparent 7px 10px, var(--ockra) 10px 17px, transparent 17px 20px, var(--duvbla) 20px 27px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gron); font-family: var(--head); font-size: .75rem; font-weight: 600; line-height: 1.33; letter-spacing: 1.6px; text-transform: uppercase; }
/* Penseldraget under rubrikerna. */
.stroke { display: block; width: 96px; height: 11px; background: url("../img/understrykning.svg") no-repeat 0 50% / 100% 100%; }
.stroke--wide { width: 150px; height: 14px; }
.lead { font-size: 1.125rem; line-height: 1.6; }
@media (min-width: 768px) { .lead { font-size: 1.25rem; line-height: 1.55; } }
.lead--muted { color: var(--muted); }
.small { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.center { text-align: center; }

.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: 30; padding: 10px 16px; border-radius: 4px; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border: 2px solid transparent; border-radius: 4px;
  font-family: var(--head); font-size: .875rem; font-weight: 700; line-height: 1.3; letter-spacing: 1px; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer;
}
.btn--gron { background: var(--lime); color: var(--ink); }
.btn--gron:hover { background: var(--lime-hover); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--gra); }
.btn--vit { background: var(--white); color: var(--ink); }
.btn--vit:hover { background: var(--gron-ljus); }
.btn--block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) { .hero .actions .btn { flex: 1 1 100%; } }

/* ---------- Grön remsa och sidhuvud ---------- */

.strip { background: var(--lime); color: var(--ink); font-size: .875rem; line-height: 1.4; }
.strip__inner { display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 36px; padding-block: 8px; }
.strip__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.strip__phone:hover { text-decoration: underline; }
.strip__facts { display: none; }
@media (min-width: 1024px) {
  .strip__inner { justify-content: space-between; }
  .strip__facts { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .strip__facts li + li::before { content: "·"; padding-inline: 8px; }
}

/* Fast överst på mobilen, så att Ring alltid går att nå. */
.header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand actions menu"; align-items: center; gap: 12px; min-height: 66px; padding-block: 10px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand__mark { flex: none; width: 38px; height: 38px; background: url("../favicon.svg") no-repeat center / contain; }
.brand__text { display: grid; min-width: 0; }
.brand__name { font-family: var(--head); font-size: 1.125rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.brand__sub { color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.brand__logo { display: block; flex: 0 1 auto; min-width: 0; width: auto; height: 42px; max-width: min(220px, 50vw); object-fit: contain; object-position: left center; }
.header__actions { grid-area: actions; display: flex; align-items: center; gap: 12px; }
.header__actions .btn { min-height: 40px; padding: 8px 16px; }
.header__cta { display: none !important; }

.nav { display: none; }
.nav ul { display: flex; gap: 34px; }
.nav a {
  position: relative; display: block; padding: 6px 0; font-family: var(--head); font-size: .8125rem; font-weight: 600; letter-spacing: 1.2px; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 22px; height: 2px; margin-left: -11px; border-radius: 1px; background: transparent; }
.nav a:hover::after { background: var(--line); }
.nav a[aria-current="page"] { color: var(--gron); }
.nav a[aria-current="page"]::after { background: var(--lime); }

.menu { grid-area: menu; }
.menu__button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); cursor: pointer; list-style: none; user-select: none; }
.menu__button::-webkit-details-marker { display: none; }
/* Tre streck som blir ett kryss när menyn är öppen. */
.menu__icon { position: relative; width: 22px; height: 2px; background: currentColor; }
.menu__icon::before, .menu__icon::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .15s; }
.menu__icon::before { top: -7px; }
.menu__icon::after { top: 7px; }
.menu[open] .menu__icon { background: transparent; }
.menu[open] .menu__icon::before { transform: translateY(7px) rotate(45deg); }
.menu[open] .menu__icon::after { transform: translateY(-7px) rotate(-45deg); }
.menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu__label--open, .menu[open] .menu__label--closed { display: none; }
.menu[open] .menu__label--open { display: inline; }
.menu__panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 14px 28px rgba(31, 38, 35, .12); }
.menu__panel a { display: block; padding: 15px var(--gutter); border-bottom: 1px solid var(--line); font-family: var(--head); font-size: .9375rem; font-weight: 600; letter-spacing: 1.2px; text-decoration: none; text-transform: uppercase; }
.menu__panel a:hover { background: var(--gra); }
.menu__panel a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--lime); }

@media (min-width: 1024px) {
  .header { position: relative; }
  .header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav actions"; gap: 32px; min-height: 88px; }
  .nav { display: block; grid-area: nav; justify-self: center; }
  .menu { display: none; }
  .header__cta { display: inline-flex !important; }
  .header__call { display: none; }
}
@media (max-width: 359px) {
  .brand { gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 1rem; }
  .header__inner { gap: 8px; }
}

/* ---------- Meddelande ---------- */

.notice { background: var(--gron-ljus); font-size: .9375rem; line-height: 1.45; }
.notice p { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 10px; text-align: center; }

/* ---------- Toppen ---------- */

.hero { background: var(--gra); }
.hero__inner { display: grid; gap: 28px; padding-block: 40px 48px; }
.hero__text { display: grid; gap: 18px; justify-items: start; align-content: center; }
.hero .lead { max-width: 600px; }
.hero .actions { justify-self: stretch; margin-top: 4px; }
/* Utan bild: den ritade kulörfläkten. */
.hero__fan { aspect-ratio: 560 / 500; width: 100%; max-width: 480px; justify-self: center; background: url("../img/kulorflakt.svg") no-repeat center / contain; }
.hero__media { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 5 / 4; background: linear-gradient(135deg, var(--linne), #C9BBA2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 600fr) minmax(0, 560fr); gap: 40px; align-items: center; padding-block: 64px; min-height: 612px; }
  .hero .actions { justify-self: start; }
  .hero__fan { max-width: 560px; }
}

.chip { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 3px 8px; border-radius: 3px; background: var(--chip); color: var(--white); font-size: .875rem; line-height: 1.45; }
.tag {
  position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 2px; background: var(--white); color: var(--ink);
  font-family: var(--head); font-size: .6875rem; font-weight: 700; line-height: 1.45; letter-spacing: 1.4px; text-transform: uppercase;
}
.tag--gron { background: var(--lime); }

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

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--gra { background: var(--gra); }
.section__head { display: grid; gap: 14px; justify-items: start; margin-bottom: 36px; }
.section__head--center { justify-items: center; text-align: center; }
.section__head .lead { max-width: 760px; }
@media (min-width: 1024px) { .section__head { margin-bottom: 52px; } }

.split { display: grid; gap: 32px; }
.split__text { display: grid; gap: 14px; justify-items: start; align-content: start; }
.split__text > p { max-width: 560px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }

/* ---------- Bilder från jobb ---------- */

.work { padding-top: var(--section); background: var(--white); }
.work .section__head { margin-bottom: 32px; }
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 14px; }
.filter label {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer;
  font-family: var(--head); font-size: .6875rem; font-weight: 700; line-height: 1.6; letter-spacing: 1.4px; text-transform: uppercase;
}
.filter label:hover { border-color: var(--lime); }
.filter input:checked + label { border-color: var(--lime); background: var(--lime); }
.filter input:focus-visible + label { outline: 3px solid var(--gron); outline-offset: 2px; }
/* Valt filter döljer de andra kategorierna. */
.work:has(#kat-invandigt:checked) .tile:not([data-kategori="invandigt"]),
.work:has(#kat-fasad:checked) .tile:not([data-kategori="fasad"]),
.work:has(#kat-tapet:checked) .tile:not([data-kategori="tapet"]),
.work:has(#kat-snickerier:checked) .tile:not([data-kategori="snickerier"]),
.work:has(#kat-fonster:checked) .tile:not([data-kategori="fonster"]),
.work:has(#kat-golv:checked) .tile:not([data-kategori="golv"]),
.work:has(#kat-tak:checked) .tile:not([data-kategori="tak"]) { display: none; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; min-width: 0; }
.tile figure { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--linne), #B9AC93); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tag { left: 8px; top: 8px; }
.tile .chip { left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: .8125rem; }
/* Med länk: grön ruta med titel och knapp när man pekar eller tabbar dit. */
.tile__over {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px;
  background: rgba(140, 198, 63, .97); color: var(--ink); text-align: center; text-decoration: none; opacity: 0; transition: opacity .15s;
}
.tile__over:hover, .tile__over:focus-visible { opacity: 1; }
.tile__over:focus-visible { outline-offset: -4px; }
.tile__kat { font-family: var(--head); font-size: .75rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.tile__title { font-family: var(--head); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.tile__btn { padding: 8px 16px; border: 2px solid var(--ink); font-family: var(--head); font-size: .75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
@media (min-width: 768px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile figure { aspect-ratio: 6 / 5; }
  .tile .tag { left: 12px; top: 12px; }
  .tile .chip { left: 12px; bottom: 12px; font-size: .875rem; }
  .tile__title { font-size: 1.25rem; }
}

/* ---------- Tjänster: kulörcirklar ---------- */

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
.service { display: grid; justify-items: center; align-content: start; gap: 10px; min-width: 0; text-align: center; }
/* Kulörcirkel med vit kant och grön ring. Färgen följer ordningen om ingen är vald. */
.service__dot {
  display: grid; place-items: center; overflow: hidden; width: 116px; height: 116px; margin-bottom: 6px; padding: 4px; border: 4px solid var(--lime); border-radius: 50%;
  background: var(--kulor, var(--salvia)) content-box; color: var(--white);
}
.service__dot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.service__dot svg { width: 30px; height: 30px; }
.service:nth-child(6n+1) { --kulor: var(--salvia); }
.service:nth-child(6n+2) { --kulor: var(--duvbla); }
.service:nth-child(6n+3) { --kulor: var(--rosa); }
.service:nth-child(6n+4) { --kulor: var(--ockra); }
.service:nth-child(6n+5) { --kulor: var(--terrakotta); }
.service:nth-child(6n+6) { --kulor: var(--mossa); }
.kulor--salvia { --kulor: var(--salvia); }
.kulor--duvbla { --kulor: var(--duvbla); }
.kulor--rosa { --kulor: var(--rosa); }
.kulor--ockra { --kulor: var(--ockra); }
.kulor--terrakotta { --kulor: var(--terrakotta); }
.kulor--gron { --kulor: var(--mossa); }
.kulor--linne { --kulor: var(--linne); color: var(--ink); }
.service p { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.services + .center { margin-top: 44px; }
@media (min-width: 768px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
  .service__dot { width: 164px; height: 164px; margin-bottom: 10px; }
  .service__dot svg { width: 40px; height: 40px; }
  .service p { max-width: 360px; }
}

/* ---------- Erbjudande ---------- */

.offer { background: var(--lime); color: var(--ink); overflow: hidden; }
.offer__inner { display: grid; gap: 8px; padding-block: 56px 32px; }
.offer__text { display: grid; gap: 16px; justify-items: start; }
.offer h2 { font-size: 2.125rem; line-height: 1.15; letter-spacing: -.8px; }
.offer .lead { max-width: 700px; }
.offer__brush { justify-self: end; width: min(420px, 90%); aspect-ratio: 420 / 230; margin-right: -8px; background: url("../img/pensel.svg") no-repeat center / contain; }
@media (min-width: 768px) { .offer h2 { font-size: clamp(2.5rem, 1.4rem + 2.2vw, 3.375rem); letter-spacing: -1.4px; } }
@media (min-width: 1024px) {
  .offer__inner { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 48px; padding-block: 72px; }
  .offer__brush { margin-right: 0; }
}

/* ---------- Före och efter ---------- */

.compare { --pos: 50%; position: relative; overflow: hidden; max-width: 1000px; margin-inline: auto; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--linne); }
@media (min-width: 768px) { .compare { aspect-ratio: 25 / 13; } }
.compare__img { position: absolute; inset: 0; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; }
.compare__img--efter { background: linear-gradient(135deg, #B6C9BA, var(--salvia)); }
.compare__img--fore { background: linear-gradient(135deg, #DCD3C2, #C9BFAA); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__tag { left: 12px; top: 12px; z-index: 2; }
.compare__tag--efter { left: auto; right: 12px; }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.compare__knob {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 2px solid var(--lime); border-radius: 50%; background: var(--white);
}
.compare__knob::before { content: "‹ ›"; color: var(--ink); font-family: var(--head); font-size: .875rem; font-weight: 700; letter-spacing: 1px; }
/* Reglaget från site.js ligger osynligt över bilderna. */
.compare__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(.compare__range:focus-visible) .compare__knob { outline: 3px solid var(--gron); outline-offset: 2px; }
.compare:not(.compare--js) .compare__knob { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills--fakta { justify-content: center; margin-top: 32px; }
.pills--fakta li { padding: 6px 14px; border-radius: 999px; background: var(--gra); font-size: .9375rem; line-height: 1.45; }
.pills__label { margin-right: 4px; color: var(--gron); font-family: var(--head); font-size: .625rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }

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

.why { display: grid; gap: 40px; align-items: center; }
.why__text { display: grid; gap: 14px; justify-items: start; }
.why__media { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #E4E5DE, #C4C7BD); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .why { grid-template-columns: minmax(0, 600fr) minmax(0, 520fr); gap: 80px; }
  .why--text { grid-template-columns: minmax(0, 760px); }
}
.checks { display: grid; gap: 24px; margin-top: 16px; }
.checks li { display: flex; align-items: flex-start; gap: 16px; line-height: 1.45; }
.checks strong { display: block; font-family: var(--head); font-size: 1.0625rem; font-weight: 600; }
.checks__text { display: block; margin-top: 4px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.check { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); }
.check::after { content: ""; position: absolute; left: 13px; top: 11px; width: 14px; height: 8px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.checks--rows { gap: 0; margin-top: 0; border-top: 1px solid var(--line); }
.checks--rows li { align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.checks--rows .check { width: 32px; height: 32px; }
.checks--rows .check::after { left: 10px; top: 9px; width: 11px; height: 6px; }

/* ---------- Så går det till: kulörprov ---------- */

.swatches { display: grid; gap: 16px; counter-reset: steg; }
.swatch { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); counter-increment: steg; }
.swatch__color { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; min-height: 96px; padding: 12px 16px; background: var(--kulor); color: var(--ink); }
.swatch:nth-child(4n+1) { --kulor: var(--salvia); }
.swatch:nth-child(4n+2) { --kulor: var(--ockra); }
.swatch:nth-child(4n+3) { --kulor: var(--rosa); }
.swatch:nth-child(4n+4) { --kulor: var(--duvbla); }
.swatch:nth-child(4n+4) .swatch__color { color: var(--white); }
.swatch__num::before { content: counter(steg); font-family: var(--head); font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.swatch__code { font-family: var(--head); font-size: .6875rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.swatch__body { display: grid; gap: 6px; padding: 16px 16px 20px; }
.swatch__body p { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
@media (min-width: 640px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .swatches { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } .swatch__color { min-height: 110px; } }

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

.rating { color: var(--muted); font-size: .9375rem; }
.rating strong { color: var(--ink); font-family: var(--head); }
.reviews { position: relative; max-width: 1200px; margin-inline: auto; }
.reviews__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 760px; margin-inline: auto; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 100%; scroll-snap-align: center; }
.review figure { display: grid; justify-items: center; gap: 12px; padding-inline: 4px; text-align: center; }
.review__avatar {
  display: grid; place-items: center; width: 64px; height: 64px; border: 3px solid var(--white); border-radius: 50%; background: #B9DB8C; box-shadow: 0 0 0 1px var(--line);
  font-family: var(--head); font-size: 1.25rem; font-weight: 600; text-transform: uppercase;
}
.review__mark { height: 36px; color: var(--gron); font-family: var(--head); font-size: 4rem; font-weight: 800; line-height: 1; }
.review blockquote p { font-size: 1.125rem; line-height: 1.6; }
.review figcaption { font-size: .9375rem; font-weight: 600; }
@media (min-width: 768px) { .review blockquote p { font-size: 1.3125rem; line-height: 1.57; } }
.reviews__dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.reviews__dots button { width: 24px; height: 24px; border: 0; background: radial-gradient(circle, #C9CEC4 4px, transparent 4.5px); cursor: pointer; }
.reviews__dots button[aria-current="true"] { background: radial-gradient(circle, var(--lime) 4px, transparent 4.5px); }
.reviews__arrow {
  position: absolute; top: 50%; display: none; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--ink); font-size: 1.375rem; line-height: 1; cursor: pointer;
}
.reviews__arrow:hover { border-color: var(--lime); }
.reviews__arrow--prev { left: 0; }
.reviews__arrow--next { right: 0; }
@media (min-width: 1024px) { .reviews__arrow { display: block; } }

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

.about { display: grid; gap: 48px; align-items: center; }
/* Bilden med ett penseldrag som sticker fram nere till höger. */
.about__media { position: relative; aspect-ratio: 6 / 5; margin-bottom: 24px; }
.about__media::before { content: ""; position: absolute; right: -12px; bottom: -40px; width: 66%; aspect-ratio: 200 / 80; background: url("../img/penseldrag.svg") no-repeat center / contain; }
.about__media img { position: relative; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.about__media .chip { z-index: 1; }
.about__text { display: grid; gap: 16px; justify-items: start; }
.about__text > .prose, .about__text > .stats { justify-self: stretch; }
.prose { display: grid; gap: 14px; color: var(--muted); }
.prose a { color: var(--ink); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose h2, .prose h3, .prose h4 { font-size: 1.125rem; }
@media (min-width: 1024px) {
  .about { grid-template-columns: minmax(0, 500fr) minmax(0, 600fr); gap: 100px; }
  .about__media::before { right: -24px; }
  .about--text { grid-template-columns: minmax(0, 760px); }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; margin-top: 8px; }
.stats li { display: grid; gap: 2px; padding: 14px 14px 16px; border: 1px solid var(--line); border-top: 6px solid var(--kulor); border-radius: 6px; }
.stats li:nth-child(3n+1) { --kulor: var(--salvia); }
.stats li:nth-child(3n+2) { --kulor: var(--ockra); }
.stats li:nth-child(3n+3) { --kulor: var(--rosa); }
.stats__value { font-family: var(--head); font-size: 1.625rem; font-weight: 700; line-height: 1.2; letter-spacing: -.5px; }
.stats__label { color: var(--muted); font-size: .875rem; }

/* ---------- Område och frågor ---------- */

.towns { display: flex; flex-wrap: wrap; align-content: start; gap: 10px; }
.towns li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 1rem; line-height: 1.4; }
.towns li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #C9CEC4; }
/* Hemorten först, med grön prick. */
.towns li:first-child::before { background: var(--lime); }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; font-family: var(--head); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--gron); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; max-width: 65ch; color: var(--muted); }

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

.contact { display: grid; gap: 40px; }
.contact__text { display: grid; gap: 14px; align-content: start; justify-items: start; }
.contact__text > .lead, .contact__text > .callcard { justify-self: stretch; }
@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 535fr) minmax(0, 600fr); gap: 64px; align-items: start; }
  .contact--text { grid-template-columns: minmax(0, 720px); }
}
.callcard { display: grid; gap: 16px; margin-top: 12px; padding: 24px; border-radius: 8px; background: var(--gra); }
.callcard .rows:empty { display: none; }

.rows { border-top: 1px solid var(--line); }
.rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--muted); font-family: var(--head); font-size: .6875rem; font-weight: 600; line-height: 2; letter-spacing: 1.4px; text-transform: uppercase; }
.rows dd { margin-left: auto; font-weight: 600; line-height: 1.45; text-align: right; }
.rows dd a { text-decoration: none; }
.rows dd a:hover { text-decoration: underline; }

.formcard { display: grid; gap: 18px; align-content: start; padding: 24px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.formcard--solo { max-width: 600px; }
@media (min-width: 640px) { .formcard { padding: 32px; } }

/* Kontaktformuläret från plattformen. */
.contact-form { display: grid; gap: 16px; }
.contact-form p { display: grid; gap: 6px; }
.contact-form label { color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.contact-form__optional { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--input); border-radius: 4px; background: var(--white);
  color: var(--ink); font: inherit; line-height: 1.5;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--gron); }
/* "Ring mig gärna" som en strömbrytare i en ljusgrön ruta. */
.contact-form .contact-form__check { padding: 12px 14px; border-radius: 4px; background: var(--gron-ljus); }
.contact-form .contact-form__check label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.contact-form .contact-form__check input {
  -webkit-appearance: none; appearance: none; flex: none; width: 40px; min-height: 0; height: 24px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: radial-gradient(circle at 12px 50%, var(--white) 8px, transparent 8.5px), #A9AFA4; transition: background-color .15s;
}
.contact-form .contact-form__check input:checked { background: radial-gradient(circle at 28px 50%, var(--white) 8px, transparent 8.5px), var(--gron); }
.contact-form .contact-form__check input:focus-visible { outline: 3px solid var(--gron); outline-offset: 2px; }
.contact-form button {
  width: 100%; min-height: 52px; padding: 14px 24px; border: 0; border-radius: 4px; background: var(--lime); color: var(--ink); cursor: pointer;
  font-family: var(--head); font-size: .875rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.contact-form button:hover { background: var(--lime-hover); }
.contact-form__note { color: var(--muted); font-size: .875rem; line-height: 1.45; }
@media (min-width: 640px) {
  /* Namn och telefon bredvid varandra. */
  .contact-form { grid-template-columns: repeat(2, minmax(0, 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; }
}

/* ---------- Undersida ---------- */

.page-head { padding-block: 48px 8px; }
.page-head .wrap { display: grid; gap: 14px; justify-items: start; }
.page-head .lead { color: var(--muted); max-width: 700px; }
.page-head .lead a { color: var(--ink); font-weight: 700; }
@media (min-width: 1024px) { .page-head { padding-top: 80px; } }

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

.footer { padding-block: 48px 28px; border-top: 4px solid var(--lime); background: var(--gra); color: var(--muted); font-size: .9375rem; line-height: 1.75; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__top { display: grid; gap: 32px; }
.footer__company { display: grid; gap: 12px; align-content: start; }
.brand--footer { grid-area: auto; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__label { color: var(--ink); font-family: var(--head); font-size: 1rem; font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (min-width: 640px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 48px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
