/* Bygg och renovering – Gedigen byggfirma
   Skiffer, betonggrå och signalgult. Barlow Condensed i versaler för rubriker,
   etiketter och knappar, Source Sans 3 för brödtext. Raka hörn överallt. */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlowcondensed-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlowcondensed-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --skiffer: #2B2F33;
  --skiffer-ljus: #363B40;
  --betong: #D9D7D2;
  --signal: #E0A21B;
  --signal-mork: #C88D10;
  --rost: #B4532A;
  --ink: #22262A;
  --muted: #5A6066;
  --on-dark: #B9BDC1;
  --line: #C4C1BA;
  --input: #9C9A94;
  --white: #FFFFFF;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --section: 64px;
}
@media (min-width: 640px) { :root { --gutter: 32px; --section: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --section: 112px; } }
@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(--betong); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.56; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

h1, h2, h3, .h3, .eyebrow, .btn, .nav, .tag, .more, .footer__label { font-family: var(--cond); text-transform: uppercase; }
h1 { font-size: clamp(3rem, 2rem + 6vw, 6.5rem); font-weight: 700; line-height: .93; letter-spacing: .5px; }
h2 { font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.75rem); font-weight: 700; line-height: 1; letter-spacing: .3px; color: var(--skiffer); }
h3, .h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.07; letter-spacing: .3px; color: var(--skiffer); }
.eyebrow { color: var(--rost); font-size: 1.0625rem; font-weight: 600; line-height: 1.18; letter-spacing: 1.5px; }
.eyebrow--signal { color: var(--signal); }
.lead { font-size: 1.3125rem; line-height: 1.52; }
.lead--muted { color: var(--muted); }
.small { font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.bar { display: block; width: 56px; height: 6px; background: var(--signal); }

.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(--signal); color: var(--skiffer); font-weight: 600; }
.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: 56px; padding: 14px 28px;
  border: 2px solid transparent; font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: 1.2px;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn--signal { background: var(--signal); color: var(--skiffer); }
.btn--signal:hover { background: var(--signal-mork); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: rgba(255, 255, 255, .1); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Sidhuvud ---------- */

.header { background: var(--skiffer); color: var(--white); }
.header__inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "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; color: var(--white); text-decoration: none; }
.brand__mark { flex: none; width: 14px; height: 36px; background: var(--signal); }
.brand__name { font-family: var(--cond); font-size: 1.5rem; font-weight: 600; line-height: 1.07; letter-spacing: .3px; text-transform: uppercase; }
.brand__logo { display: block; flex: 0 1 auto; min-width: 0; width: auto; height: 40px; max-width: min(240px, 55vw); object-fit: contain; object-position: left center; }
.header__actions { grid-area: actions; display: flex; align-items: center; gap: 24px; }
.header__phone { display: none; font-family: var(--cond); font-size: 1.0625rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.header__phone:hover { text-decoration: underline; }
.header__phone-long { display: none; }
.header__offer { min-height: 44px; padding: 8px 16px; font-size: 1.0625rem; }

.nav { grid-area: nav; margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(255, 255, 255, .15); }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; }
.nav a { display: block; padding: 12px 0; color: var(--on-dark); font-size: 1.0625rem; font-weight: 600; letter-spacing: 1.5px; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--signal); }

@media (min-width: 480px) { .header__phone { display: inline; } }
@media (min-width: 640px) { .header__phone-short { display: none; } .header__phone-long { display: inline; } }
@media (min-width: 1024px) {
  .header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav actions"; gap: 32px; padding-block: 20px; }
  .brand__name { font-size: 1.75rem; white-space: nowrap; }
  .header__offer { min-height: 56px; padding: 14px 28px; font-size: 1.25rem; }
  .nav { margin: 0; overflow: visible; border: 0; justify-self: center; }
  .nav ul { gap: 36px; padding: 0; }
  .nav a { padding: 4px 0; border-bottom-width: 2px; }
}
/* 1024–1279 px: telefonnumret får vänta på mer plats. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__phone { display: none; }
  .brand__logo { max-width: 200px; }
}

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

.notice { background: var(--signal); color: var(--skiffer); font-weight: 600; }
.notice .wrap { padding-block: 14px; }

/* ---------- Toppbild ---------- */

.hero { position: relative; display: grid; align-items: center; min-height: 560px; padding-block: 72px; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, #6F7275, #3C4044); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 47, 51, .96) 0%, rgba(43, 47, 51, .75) 55%, rgba(43, 47, 51, .2) 100%); }
.hero__inner { position: relative; z-index: 1; }
.hero__text { display: grid; gap: 24px; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero .lead { color: #E4E6E8; max-width: 640px; }
.hero .actions { margin-top: 4px; }
.caption { padding: 6px 10px; background: rgba(43, 47, 51, .8); color: var(--white); font-size: .9375rem; line-height: 1.4; }
.hero__caption { position: absolute; z-index: 1; right: var(--gutter); bottom: 16px; max-width: calc(100% - 2 * var(--gutter)); }
@media (min-width: 1024px) {
  .hero { min-height: 760px; padding-block: 112px; }
  .hero__text { gap: 28px; }
  .hero::after { background: linear-gradient(90deg, rgba(43, 47, 51, .96) 0%, rgba(43, 47, 51, .6) 50%, rgba(43, 47, 51, 0) 85%); }
  .hero__caption { left: var(--gutter); right: auto; bottom: 24px; }
}
@media (min-width: 1440px) { .hero__caption { left: max(var(--gutter), calc((100% - 1200px) / 2)); } }

/* ---------- Sifferrad ---------- */

.stats { background: var(--skiffer); color: var(--white); }
.stats__list { display: grid; grid-template-columns: 1fr 1fr; padding-block: 40px 48px; gap: 32px 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding-inline: 20px; border-left: 1px solid rgba(255, 255, 255, .15); }
.stat:nth-child(odd) { padding-left: 0; border-left: 0; }
.stat dd { color: var(--signal); font-family: var(--cond); font-size: clamp(2.5rem, 4.6vw, 4.5rem); font-weight: 700; line-height: 1; overflow-wrap: break-word; }
.stat dt { color: var(--on-dark); font-family: var(--cond); font-size: 1.0625rem; font-weight: 600; line-height: 1.18; letter-spacing: 1.5px; text-transform: uppercase; }
@media (min-width: 1024px) {
  .stats__list { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); padding-block: 48px 56px; }
  .stat { padding-inline: 24px 16px; }
  .stat:nth-child(odd) { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .15); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

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

.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--dark { background: var(--skiffer); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead--muted { color: var(--on-dark); }
.section__head { display: grid; gap: 16px; margin-bottom: 40px; }
.section__head .lead { max-width: 720px; }
.section__head--row > div { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .section__head--row { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
}
@media (min-width: 1024px) { .section__head { margin-bottom: 56px; } }

.more { display: inline-flex; gap: 6px; color: var(--skiffer); font-size: 1.25rem; font-weight: 700; letter-spacing: 1.2px; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }

.tag { display: inline-block; padding: 5px 10px; background: var(--signal); color: var(--skiffer); font-size: 1.0625rem; font-weight: 600; line-height: 1.18; letter-spacing: 1.5px; }
.tag--dark { background: var(--skiffer); color: var(--white); }

/* ---------- Projekt ---------- */

.projects { display: grid; gap: 24px; }
.project { display: flex; flex-direction: column; background: var(--white); }
.project__media { position: relative; aspect-ratio: 384 / 250; background: linear-gradient(135deg, #8A8D90, #4A4E52); }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__media .tag { position: absolute; top: 16px; left: 16px; }
.project__body { display: grid; gap: 16px; padding: 22px 24px 24px; }
.project__facts { display: flex; border-top: 1px solid var(--line); }
.project__facts > div { display: grid; gap: 2px; padding: 12px 12px 0; border-left: 1px solid var(--line); }
.project__facts > div:first-child { flex: 1; padding-left: 0; border-left: 0; }
.project__facts dt { color: var(--muted); font-family: var(--cond); font-size: 1.0625rem; font-weight: 600; line-height: 1.18; letter-spacing: 1.5px; text-transform: uppercase; }
.project__facts dd { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
@media (min-width: 640px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .projects { grid-template-columns: repeat(3, 1fr); } }

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

.services { display: grid; counter-reset: tjanst; border-top: 2px solid var(--skiffer); }
.service { display: grid; gap: 10px; align-content: start; padding: 28px 0 32px; border-bottom: 1px solid var(--line); counter-increment: tjanst; }
.service::before { content: counter(tjanst, decimal-leading-zero); color: var(--signal); font-family: var(--cond); font-size: 1.75rem; font-weight: 600; line-height: 1.07; }
.service p { color: var(--muted); }
@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
  .service:nth-child(2n+1) { padding-right: 32px; }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .service:nth-child(n) { padding: 28px 32px 32px; border-left: 1px solid var(--line); }
  .service:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .service:nth-child(3n) { padding-right: 0; }
}

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

.pair { display: grid; gap: 24px; }
.pair__item { position: relative; aspect-ratio: 588 / 440; background: linear-gradient(135deg, #A9A49A, #6B675F); }
.pair__item img { width: 100%; height: 100%; object-fit: cover; }
.pair__item .tag { position: absolute; top: 20px; left: 20px; padding: 6px 14px; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }

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

.reasons { display: grid; gap: 24px; }
.reason { display: grid; gap: 14px; align-content: start; padding: 32px; background: var(--skiffer-ljus); }
.reason__mark { width: 32px; height: 32px; background: var(--signal); }
.reason p { color: var(--on-dark); }
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; } }

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

.steps { display: grid; gap: 40px 24px; counter-reset: steg; }
.step { display: grid; gap: 10px; align-content: start; counter-increment: steg; }
.step::before { content: ""; height: 8px; background: var(--skiffer); }
.step:first-child::before { background: var(--signal); }
.step h3::before { content: counter(steg, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 4.5rem; font-weight: 700; line-height: 1; }
.step p { color: var(--muted); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

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

.rating { display: grid; gap: 2px; justify-self: start; padding: 16px 24px; background: var(--skiffer); }
.rating__value { color: var(--signal); font-family: var(--cond); font-size: 3.75rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.rating__text { color: var(--on-dark); font-size: .9375rem; line-height: 1.4; }
a.rating__text:hover { color: var(--white); }
.reviews { display: grid; gap: 24px; }
.review figure { display: grid; gap: 16px; height: 100%; padding: 28px; background: var(--white); border-top: 4px solid var(--signal); }
.stars { color: var(--signal); font-family: var(--cond); font-size: 1.25rem; font-weight: 700; letter-spacing: 1.2px; }
.review blockquote { color: var(--ink); }
.review figcaption { display: grid; align-self: end; }
.review__name { color: var(--skiffer); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.review__detail { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

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

.about { display: grid; gap: 40px; align-items: center; }
.about__media { position: relative; aspect-ratio: 600 / 480; background: linear-gradient(135deg, #8F9295, #4C5054); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media .caption { position: absolute; right: 16px; bottom: 16px; max-width: calc(100% - 32px); }
.about__text { display: grid; gap: 16px; align-content: start; }
.about__text .rows { margin-top: 8px; }
.prose { display: grid; gap: 16px; font-size: 1.3125rem; line-height: 1.52; }
.prose a { color: var(--skiffer); }
.prose ul { list-style: square; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose h2, .prose h3, .prose h4 { font-size: 1.5rem; }
@media (min-width: 1024px) {
  .about { grid-template-columns: 600fr 528fr; gap: 72px; }
  .about--text { grid-template-columns: minmax(0, 720px); }
}

/* Etikett–värde-rader: om oss, behörighet och kontakt. */
.rows { border-top: 1px solid var(--line); }
.rows--strong { border-top-color: var(--skiffer); }
.rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--muted); font-family: var(--cond); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: 1.5px; text-transform: uppercase; }
.rows dd { color: var(--skiffer); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; text-align: right; }
.rows dd a { text-decoration: none; }
.rows dd a:hover { text-decoration: underline; }
.hours { border-collapse: collapse; margin-left: auto; }
.hours th { padding: 0 16px 0 0; font-weight: 600; text-align: left; }
.hours td { padding: 0; text-align: right; }

/* ---------- Behörighet och frågor ---------- */

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

.faq { border-top: 2px solid var(--skiffer); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; cursor: pointer; list-style: none;
  color: var(--skiffer); font-family: var(--cond); font-size: 1.5rem; font-weight: 600; line-height: 1.07; letter-spacing: .3px; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--signal); font-size: 1.75rem; }
.faq details[open] summary { padding-bottom: 10px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 24px; max-width: 65ch; color: var(--muted); }
@media (min-width: 1024px) { .faq summary { font-size: 1.75rem; } }

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

.towns { display: flex; flex-wrap: wrap; gap: 12px; }
.towns li { padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .25); font-family: var(--cond); font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: .3px; text-transform: uppercase; }
@media (min-width: 1024px) { .towns li { padding: 12px 22px; font-size: 1.75rem; } }

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

.contact { display: grid; gap: 40px; }
.contact__text { display: grid; gap: 16px; align-content: start; }
.contact__text .rows { margin-top: 12px; }
.contact__text h2 + .lead { margin-top: 0; }
@media (min-width: 1024px) {
  .contact { grid-template-columns: 528fr 600fr; gap: 72px; align-items: start; }
  .contact--text { grid-template-columns: minmax(0, 720px); }
}
.formcard { display: grid; gap: 18px; align-content: start; padding: 28px 20px; background: var(--white); border-top: 6px solid var(--signal); }
.formcard--solo { max-width: 600px; }
@media (min-width: 640px) { .formcard { padding: 40px; } }

/* Kontaktformuläret från plattformen. */
.contact-form { display: grid; gap: 18px 16px; }
.contact-form p { display: grid; gap: 6px; }
.contact-form label { color: var(--skiffer); font-family: var(--cond); font-size: 1.0625rem; font-weight: 600; line-height: 1.18; letter-spacing: 1.5px; text-transform: uppercase; }
.contact-form__optional { color: var(--muted); font-family: var(--sans); font-size: .9375rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.contact-form input, .contact-form textarea {
  width: 100%; min-height: 56px; padding: 13px 14px; border: 1px solid var(--input); border-radius: 0; background: var(--white);
  color: var(--ink); font: inherit; line-height: 1.56;
}
.contact-form textarea { min-height: 136px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--skiffer); }
.contact-form button {
  width: 100%; min-height: 56px; padding: 14px 28px; border: 0; background: var(--signal); color: var(--skiffer); cursor: pointer;
  font-family: var(--cond); font-size: 1.25rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.contact-form button:hover { background: var(--signal-mork); }
.contact-form__note { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
@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; }
}

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

.page-head { padding-block: 56px 8px; }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { color: var(--skiffer); font-size: clamp(2.75rem, 2rem + 3.5vw, 4.5rem); }
.page-head .lead { color: var(--muted); max-width: 720px; }
.page-head .lead a { color: var(--skiffer); font-weight: 600; }
@media (min-width: 1024px) { .page-head { padding-top: 96px; } }

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

.footer { padding-block: 56px 32px; background: var(--skiffer); color: var(--white); 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: 10px; align-content: start; }
.brand--footer { grid-area: auto; justify-self: start; }
.footer__muted { color: var(--on-dark); }
.footer__social { display: flex; gap: 20px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__label { color: var(--signal); font-size: 1.0625rem; font-weight: 600; line-height: 1.18; letter-spacing: 1.5px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); 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: 72px; } .footer__top { grid-template-columns: 520fr 260fr 260fr; gap: 80px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
