/* Stadens Förvaltning – stadensforvaltning.se */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --ground: #FAF9F6;
  --ground-warm: #F3EFE7;
  --white: #FFFFFF;
  --ink: #1C1B19;
  --text: #45423D;
  --muted: #5E5A54;
  --line: #E4E0D8;
  --line-warm: #B9AD96;
  --orange: #F29100;
  --orange-text: #9A5600;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[id] { scroll-margin-top: 104px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ground); padding: 12px 20px; z-index: 20; }
.skip:focus { left: 12px; top: 12px; color: var(--ground); }

/* Ornament */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.eyebrow-row { display: flex; align-items: center; justify-content: center; gap: 24px; width: 100%; }
.eyebrow-row::before, .eyebrow-row::after { content: ""; flex: 0 1 72px; height: 1px; background: var(--line-warm); }
.eyebrow-row.left { justify-content: flex-start; gap: 20px; }
.eyebrow-row.left::before { flex: 0 0 48px; }
.eyebrow-row.left::after { display: none; }
.romb { display: flex; align-items: center; justify-content: center; gap: 16px; }
.romb::before, .romb::after { content: ""; width: 56px; height: 1px; background: var(--line-warm); }
.romb span { width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1.08; }

/* Sidhuvud */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 249, 246, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav .phone { padding: 12px 20px; border: 1px solid var(--ink); border-radius: 2px; transition: background-color .2s, color .2s; }
.nav .phone:hover { background: var(--ink); color: var(--ground); }

/* Första sektionen */
.hero { background: var(--ground-warm); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; padding-top: clamp(64px, 9vw, 112px); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.4vw, 108px); line-height: 1; letter-spacing: -0.015em; }
.hero h1 em, h2 em { font-style: italic; }
.lead { max-width: 540px; font-size: 19px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 40px; }
.btn { display: inline-block; text-decoration: none; background: var(--ink); color: var(--ground); font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; padding: 20px 40px; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.link { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; padding: 20px 0; }
.hero .facades { width: 100%; margin-top: clamp(8px, 3vw, 40px); }
.words { display: grid; grid-template-columns: repeat(4, 1fr); font-family: var(--serif); font-size: 23px; text-align: center; }
.words span { padding: 36px 12px; }

/* Tjänster */
.services { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services .wrap, .steps .wrap { display: flex; flex-direction: column; gap: 56px; padding-top: var(--section); padding-bottom: var(--section); }
.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 48px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.service-list li:first-child { border-top-color: var(--line-warm); }
.service-list h3 { display: flex; align-items: baseline; gap: 24px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2; }
.service-list .no { flex: 0 0 32px; font-style: italic; font-weight: 400; font-size: 22px; color: var(--orange-text); }
.service-list p { color: var(--text); }

/* Så jobbar vi */
.steps h2 { max-width: 820px; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.15; text-wrap: balance; }
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.step-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 32px; border-top: 1px solid var(--line-warm); }
.step-grid .no { font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1; color: var(--orange-text); }
.step-grid h3 { font-size: 19px; font-weight: 600; }
.step-grid p { color: var(--text); }

/* Felanmälan och kontakt */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 80px; padding-top: var(--section); }
.split-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.split-text > p { max-width: 440px; }
.report { background: var(--ink); color: var(--ground); }
.report .split { padding-bottom: 72px; }
.report .eyebrow { color: var(--orange); }
.report .eyebrow-row::before { background: #6E6657; }
.report .split-text > p { color: #D6D2CA; }
.report .big-phone { color: var(--orange); font-family: var(--serif); font-size: 40px; line-height: 1.2; text-decoration: none; }
.report .big-phone:hover { color: var(--ground); }
.report .roofs { width: 100%; }
.contact .split { padding-bottom: var(--section); }
.contact .split-text > p { color: var(--text); }
.contact-lines { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; font-size: 19px; }
.contact-lines a { padding: 8px 0; }
.portal { width: 190px; margin-top: 28px; }

form { display: flex; flex-direction: column; gap: 20px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 14px; font-weight: 500; }
input, textarea { width: 100%; padding: 14px 16px; border: 1px solid #8A857C; border-radius: 2px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
.report input, .report textarea { border-color: #77726A; background: #2A2927; color: var(--ground); }
.report input:focus, .report textarea:focus { border-color: var(--orange); }
form .btn { align-self: flex-start; }
.report .btn { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.report .btn:hover { background: transparent; color: var(--orange); }
.btn[disabled] { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); }
.report .form-note { color: #B5B0A6; }
.form-status { font-size: 16px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { color: #2F6B3A; }
.form-status.err { color: #A3261B; }
.report .form-status.ok { color: #9BD3A4; }
.report .form-status.err { color: #F2A097; }

/* Sidfot */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: 56px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.site-footer img { width: 64px; height: 64px; }
.site-footer p + p { margin-top: 6px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--orange-text); }

/* Smalare skärmar */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .service-list li { grid-template-columns: 1fr; }
  .words { grid-template-columns: repeat(2, 1fr); }
  .words span { padding: 20px 8px; }
  .words { padding: 12px 0; }
  .portal { display: none; }
}
@media (max-width: 760px) {
  [id] { scroll-margin-top: 132px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 4px; }
  .logo img { height: 40px; }
  .nav { width: 100%; justify-content: space-between; gap: 0 12px; font-size: 14px; }
  .nav .phone { order: -1; position: absolute; top: 12px; right: var(--pad); padding: 9px 14px; }
  .site-header .wrap { position: relative; }
  .eyebrow { letter-spacing: 0.2em; font-size: 12px; }
  .eyebrow-row { gap: 14px; }
  .service-list h3 { font-size: 26px; gap: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .btn { padding: 18px 32px; }
  .report .big-phone { font-size: 34px; }
}

/* Illustrationer på mobil: visa mitten i läsbar storlek i stället för att krympa hela bilden */
@media (max-width: 760px) {
  .hero, .report { overflow: hidden; }
  .hero .facades, .report .roofs { width: 760px; max-width: none; flex-shrink: 0; }
  .report .roofs { margin-left: calc(50% - 380px); }
  .hero .eyebrow { letter-spacing: 0.14em; font-size: 11.5px; white-space: nowrap; }
  .hero .eyebrow-row { gap: 10px; }
  .hero .eyebrow-row::before, .hero .eyebrow-row::after { flex: 0 1 32px; }
}
