/* HBG VVS – designsystem
   Navy = trygghet, vattenblå = VVS, flamorange = akut jour (hämtat ur märket "Auktoriserat VVS-företag"). */
:root {
  --navy: #0a1f3a;
  --navy-2: #123058;
  --blue: #1560bd;
  --blue-d: #0e4a94;
  --blue-l: #eaf2fd;
  --orange: #c2410c;
  --orange-d: #9a330a;
  --orange-l: #fff1e8;
  --ink: #14213d;
  --muted: #4a5568;
  --line: #dbe2ec;
  --bg: #f5f7fb;
  --white: #fff;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(10, 31, 58, .06), 0 8px 24px rgba(10, 31, 58, .08);
  --shadow-l: 0 2px 4px rgba(10, 31, 58, .08), 0 18px 48px rgba(10, 31, 58, .16);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 850; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
svg { flex-shrink: 0; }

:focus-visible { outline: 3px solid #ffb703; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--white); color: var(--navy); padding: .75rem 1rem; border-radius: var(--radius-s); font-weight: 700; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy); color: #dbe6f5; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 .9rem; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #8cc4ff; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px; font-weight: 750; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn--call { background: var(--orange); color: var(--white); }
.btn--call:hover { background: var(--orange-d); color: var(--white); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-d); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue-d); background: var(--white); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfdcef; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar .pulse { width: 8px; height: 8px; border-radius: 50%; background: #ff8a4c; box-shadow: 0 0 0 0 rgba(255, 138, 76, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 138, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 76, 0); } }
.topbar__mail { display: none; }
@media (min-width: 640px) { .topbar__mail { display: inline-flex; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg, var(--blue), var(--navy)); display: grid; place-items: center; color: var(--white); }
.brand__name { display: block; font-weight: 900; font-size: 1.3rem; letter-spacing: .02em; line-height: 1; }
.brand__tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }

.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; }
.nav a { display: block; padding: .6rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 650; }
.nav a:hover { background: var(--blue-l); color: var(--blue-d); }
.nav a[aria-current="page"] { color: var(--blue-d); background: var(--blue-l); }
.nav .btn { margin-left: .5rem; color: var(--white); }
.nav .btn:hover { color: var(--white); background: var(--orange-d); }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .2rem; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 .75rem; }
  .no-js .header .wrap { flex-wrap: wrap; }
  .nav a { padding: .85rem 1rem; }
  .nav .btn { margin: .5rem 0 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #1d4f91 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #d6e3f5; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4.5rem, 9vw, 7rem); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--white); clip-path: polygon(0 60%, 12% 45%, 28% 62%, 45% 40%, 62% 58%, 80% 38%, 100% 55%, 100% 100%, 0 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.hero h1 { color: var(--white); }
.hero h1 span { color: #ffb08a; display: block; }
.hero p.lead { color: #c9d8ee; }
.hero-phone { display: inline-flex; flex-direction: column; margin: .25rem 0 1.6rem; text-decoration: none; color: var(--white); }
.hero-phone small { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffb08a; }
.hero-phone strong { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: .01em; line-height: 1.1; }
.hero-phone:hover { color: #ffd2bd; }

.jour-card { background: var(--white); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-l); padding: 1.75rem; }
.jour-card img { width: 100%; max-width: 320px; margin: 0 auto 1.25rem; }
.jour-card ul { list-style: none; display: grid; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.jour-card li { display: flex; align-items: center; gap: .8rem; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.jour-card li svg { color: var(--orange); }

/* Page hero (subpages) */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #cfdcef; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero p { color: #c9d8ee; max-width: 65ch; font-size: 1.15rem; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: #8aa5c8; }
.crumbs a { color: #bcd6f7; }
.crumbs a:hover { color: var(--white); }

/* Promise strip */
.promises { display: grid; gap: 1rem; margin-top: -2.5rem; position: relative; z-index: 2; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.4rem; display: flex; align-items: center; gap: 1rem; }
.promise__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); }
.promise strong { display: block; color: var(--navy); font-size: 1.02rem; letter-spacing: .02em; }

/* Split layout */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split--wide-left { grid-template-columns: 1.2fr .8fr; } }
.checklist { list-style: none; display: grid; gap: .75rem; margin: 1.5rem 0 0; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 650; }
.checklist svg { color: var(--blue); margin-top: .15rem; }
.quote { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 750; color: var(--navy); line-height: 1.35; border-left: 4px solid var(--orange); padding-left: 1.25rem; margin: 0 0 1.5rem; }
.badge-panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.badge-panel img { margin: 0 auto; }
.badge-panel p { text-align: center; margin: 1.25rem 0 0; color: var(--muted); font-size: .98rem; }

/* Feature cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .25rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); }
.card .card__cta { margin-top: auto; padding-top: .5rem; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--blue-l); color: var(--blue); }
.card--accent { background: var(--navy); border-color: var(--navy); color: #cfdcef; }
.card--accent h3 { color: var(--white); }
.card--accent p { color: #c3d3ea; }
.card--accent .card__icon { background: rgba(255, 176, 138, .16); color: #ffb08a; }
.card--accent .phone-link { color: var(--white); font-size: 1.5rem; font-weight: 900; text-decoration: none; }
.card--accent .phone-link:hover { color: #ffd2bd; text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 750; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Area tiles */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .75rem; min-height: 140px; padding: 1.25rem .75rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--white); font-weight: 850; letter-spacing: .08em; font-size: .92rem; }
.tile svg { color: #8cc4ff; }

/* Why us */
.why { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why li { padding: 1.75rem; border-radius: var(--radius); background: var(--white); border-top: 4px solid var(--blue); box-shadow: var(--shadow); }
.why li:nth-child(2) { border-top-color: var(--orange); }
.why li:nth-child(3) { border-top-color: var(--navy); }
.why h3 { font-size: 1.05rem; letter-spacing: .04em; }
.why p { margin: 0; color: var(--muted); }

/* Services */
.service-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; scroll-margin-top: 100px; }
.service__head { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.service__head h2, .service__head h3 { font-size: 1.15rem; margin: 0; }
.service__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); }
.service--jour .service__icon { background: var(--orange-l); color: var(--orange); }
.service p { color: var(--muted); margin: 0; }
.service-index { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-bottom: 2rem; }
.service-index a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-size: .92rem; font-weight: 650; color: var(--ink); }
.service-index a:hover { border-color: var(--blue); color: var(--blue-d); }

/* Offers */
.offer-note { display: inline-flex; align-items: center; gap: .6rem; background: var(--orange-l); color: var(--orange-d); font-weight: 800; padding: .6rem 1rem; border-radius: 999px; margin-bottom: 2rem; }
.offers { list-style: none; display: grid; gap: 1.5rem; }
@media (min-width: 680px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .offers { grid-template-columns: repeat(3, 1fr); } }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.offer__media { aspect-ratio: 1 / 1; background: var(--white); display: grid; place-items: center; padding: 1.25rem; border-bottom: 1px solid var(--line); }
.offer__media img { width: 100%; height: 100%; object-fit: contain; }
.offer__media--icon { background: linear-gradient(160deg, var(--blue-l), #f8fbff); color: var(--blue); }
.offer__media--icon span { display: block; text-align: center; font-weight: 800; color: var(--navy); margin-top: .75rem; letter-spacing: .04em; }
.offer__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.offer__body h2 { font-size: 1.2rem; margin: 0; }
.offer__price { font-size: 2rem; font-weight: 900; color: var(--orange); line-height: 1.1; margin: .1rem 0 .2rem; }
.offer__desc { color: var(--muted); margin: 0; }
.offer__incl { font-size: .95rem; background: var(--bg); border-radius: var(--radius-s); padding: .7rem .85rem; margin: .4rem 0 .6rem; display: flex; gap: .55rem; align-items: flex-start; }
.offer__incl svg { color: var(--blue); margin-top: .15rem; }
.offer .btn { margin-top: auto; align-self: flex-start; }

/* Teaser (home) */
.teaser { display: grid; gap: 2rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
@media (min-width: 900px) { .teaser { grid-template-columns: 1fr 1fr; } }
.teaser__imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.teaser__imgs img { border-radius: 12px; border: 1px solid var(--line); background: var(--white); aspect-ratio: 1 / 1; object-fit: contain; padding: .4rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-d), var(--navy)); color: #d6e3f5; border-radius: 22px; padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; color: #c9d8ee; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 3rem; } }
.contact-list { list-style: none; display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); }
.contact-list .ci--hot { background: var(--orange-l); color: var(--orange); }
.contact-list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--muted); }
.contact-list a, .contact-list address { font-style: normal; font-weight: 750; color: var(--navy); font-size: 1.08rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue-d); text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.map a { display: block; padding: .8rem 1rem; font-weight: 700; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.form h2, .form h3 { margin-bottom: .3em; }
.form > p { color: var(--muted); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.form legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 650; font-size: .95rem; }
.field .req { color: var(--orange); }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1.5px solid #b9c4d4; border-radius: var(--radius-s); background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(21, 96, 189, .3); border-color: var(--blue); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); margin: .8rem 0 0; }
.form .btn { width: 100%; }
@media (min-width: 560px) { .form .btn { width: auto; } }

/* Footer */
.footer { background: #071629; color: #b6c6dc; padding: 3.5rem 0 6rem; font-size: .98rem; }
@media (min-width: 760px) { .footer { padding-bottom: 2rem; } }
.footer h2 { color: var(--white); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: #e2ebf7; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer address { font-style: normal; }
.footer .brand { color: var(--white); margin-bottom: 1rem; }
.footer .brand__tag { color: #8ea6c6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; color: #8ea6c6; }
.footer .badge-mini { background: var(--white); border-radius: 10px; padding: .5rem .75rem; display: inline-block; margin-top: 1rem; }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(7, 22, 41, .97); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
.callbar a { flex: 1; min-height: 48px; }
.callbar .btn--ghost { flex: 0 0 auto; }
@media (min-width: 760px) { .callbar { display: none; } }

.not-found { text-align: center; padding: 6rem 0; }
.not-found .btn-row { justify-content: center; }
