/*
Theme Name: Tungelsta Städpartner
Description: Skräddarsytt tema för Tungelsta Städpartner. Ljust och luftigt, växthusgrönt med solgul accent – trädgårdsstaden Tungelsta.
Version: 1.0.0
Author: Tungelsta Städpartner
Text Domain: tsp
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #f8f6ee;
  --surface: #fffdf8;
  --ink: #14201a;
  --ink-soft: #46534b;
  --ink-faint: #6a766e;
  --line: #e3e1d3;
  --accent: #1f5a3d;
  --accent-deep: #154630;
  --accent-soft: #e8f0e4;
  --accent-soft-2: #d4e4cf;
  --sun: #f2c14e;
  --sun-soft: #fbf0cf;
  --brand-green: #2f7a52;
  --brand-green-light: #9fd0a8;
  --grad: linear-gradient(135deg, #2a7350 0%, #1f5a3d 55%, #154630 100%);
  --dark: #0f2a1e;
  --dark-2: #173a2a;
  --r-card: 18px;
  --r-input: 12px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-sm: 0 1px 2px rgba(20, 40, 28, 0.06);
  --shadow-md: 0 6px 24px -8px rgba(20, 40, 28, 0.16);
  --shadow-lg: 0 24px 60px -20px rgba(20, 40, 28, 0.24);
  --container: 1200px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}

/* ==========================================================================
   Fonts (självhostade: Satoshi – Fontshare Free, Fraunces – SIL OFL)
   ========================================================================== */
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

/* ==========================================================================
   Reset & bas
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
h1, h2, .display-xl, .display-lg, .display-md { font-family: var(--serif); font-optical-sizing: auto; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; padding: 0; color: inherit; }
::selection { background: var(--accent-soft-2); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { display: inline-block; vertical-align: middle; width: 22px; height: 22px; flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   Typografi
   ========================================================================== */
.display-xl {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.display-lg {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.display-md {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.lead { font-size: 1.1875rem; color: var(--ink-soft); line-height: 1.65; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--ink-soft); }
.small { font-size: 0.9375rem; }

/* ==========================================================================
   Knappar
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 1.0125rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); background-size: 150% 150%; background-position: 0% 50%; transition: transform 160ms var(--ease-out), background-position 350ms ease, color 200ms ease, box-shadow 200ms ease; }
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 10px 30px -10px rgba(21, 70, 48, 0.45); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-lg { padding: 18px 36px; font-size: 1.0625rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
}
.link-arrow .icon { width: 17px; height: 17px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .icon { transform: translateX(3px); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 238, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background-color 250ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.site-logo { display: inline-flex; }
@media (min-width: 1024px) {
  .header-inner { height: 84px; }

}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-drop > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  transition: background-color 180ms ease, color 180ms ease;
}
.main-nav > a:hover, .nav-drop > button:hover { background: var(--accent-soft); color: var(--accent-deep); }
.main-nav > a[aria-current="page"] { color: var(--accent-deep); font-weight: 700; }
.nav-drop { position: relative; }
.nav-drop > button .icon { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.nav-drop > button .icon svg { transform: rotate(90deg); }
.nav-drop.open > button .icon { transform: rotate(180deg); }
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  transform: scale(0.96) translateY(-4px);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.nav-drop.open .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  transition: background-color 150ms ease;
}
.nav-menu a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.nav-menu .icon { width: 18px; height: 18px; color: var(--accent); }
.header-cta { display: inline-flex; }
.header-cta .btn { padding: 12px 24px; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-x { display: none; }

/* Mobilmeny */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 49;
  background: var(--bg);
  padding: 24px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { display: block; }
body.menu-open { overflow: hidden; }
body.menu-open .nav-toggle .icon-list { display: none; }
body.menu-open .nav-toggle .icon-x { display: block; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
}
body.menu-open .mobile-menu a { animation: menuIn 350ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 40ms); }
.mobile-menu a.sub { font-size: 1.05rem; font-weight: 500; padding-left: 18px; color: var(--ink-soft); }
.mobile-menu .btn { margin-top: 24px; width: 100%; opacity: 0; }
body.menu-open .mobile-menu .btn { animation: menuIn 350ms var(--ease-out) forwards; animation-delay: 360ms; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Sektioner
   ========================================================================== */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 65ch; margin-bottom: 48px; }
.section-head .display-lg { margin-bottom: 16px; }
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 48px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { max-width: 44ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  background: linear-gradient(135deg, var(--accent-soft-2), var(--accent-soft) 70%);
  border-radius: var(--r-card);
  z-index: -1;
}
@media (max-width: 900px) {
  .hero { padding: 24px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media::before { inset: 16px -16px -16px 16px; }
}

/* Statremsa */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 6px;
  width: fit-content;
}
.stat .lbl { color: var(--ink-soft); font-size: 0.9375rem; font-weight: 500; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
}

/* ==========================================================================
   Tjänstegrid (bento)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  border-radius: var(--r-card);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 700ms var(--ease-out);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 12, 24, 0.78) 0%, rgba(7, 12, 24, 0.18) 55%, rgba(7, 12, 24, 0.05) 100%);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover img { transform: scale(1.04); }
}
.service-card .card-body { padding: 26px; }
.service-card h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.service-card p { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); max-width: 42ch; margin-bottom: 12px; }
.service-card .link-arrow { color: #fff; font-size: 0.9375rem; }
.service-card.span-3 { grid-column: span 3; }
.service-card.span-2 { grid-column: span 2; }
.service-card.tall { grid-row: span 2; min-height: 100%; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.span-3, .service-card.span-2 { grid-column: auto; }
  .service-card.tall { grid-row: auto; min-height: 300px; }
}

/* Fler tjänster */
.more-services {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.more-service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  font-weight: 700;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.more-service .icon { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .more-service:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
@media (max-width: 900px) { .more-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more-services { grid-template-columns: 1fr; } }

/* ==========================================================================
   RUT-band
   ========================================================================== */
.rut-band {
  background: var(--accent-soft);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.rut-band .rut-figure {
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.rut-band .rut-figure small {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-top: 8px;
}
.rut-band h2 { margin-bottom: 14px; }
.rut-band p { color: var(--ink-soft); max-width: 58ch; }
.rut-band .link-arrow { margin-top: 20px; }
@media (max-width: 767px) { .rut-band { grid-template-columns: 1fr; } }

/* ==========================================================================
   Omdömen (scroll-snap)
   ========================================================================== */
.quotes-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 24px;
  margin: 0 -24px;
  scrollbar-width: none;
}
.quotes-rail::-webkit-scrollbar { display: none; }
.quote-card {
  flex: 0 0 min(400px, 82vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.quote-card .q-stars { display: flex; gap: 3px; color: var(--accent); }
.quote-card .q-stars .icon { width: 16px; height: 16px; }
.quote-card blockquote { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.55; }
.quote-card cite { font-style: normal; color: var(--ink-soft); font-size: 0.9375rem; font-weight: 700; margin-top: auto; }
.quotes-nav { display: flex; gap: 10px; margin-top: 4px; }
.quotes-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 160ms var(--ease-out);
}
.quotes-nav button:hover { border-color: var(--ink); }
.quotes-nav button:active { transform: scale(0.94); }
.quotes-nav .icon { width: 18px; height: 18px; }

/* ==========================================================================
   Split-sektion (bild + text)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split-media img {
  width: 100%;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.split-copy h2 { margin-bottom: 18px; }
.split-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.split-copy .checks { margin: 24px 0 28px; display: grid; gap: 12px; }
.split-copy .checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.split-copy .checks .icon { color: var(--accent); margin-top: 2px; width: 20px; height: 20px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA-band (mörkt) + Footer
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  border-radius: 0;
  padding: clamp(80px, 10vw, 140px) 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-band img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(8, 14, 24, 0.88), rgba(16, 34, 54, 0.82));
}
.cta-band h2 { margin-bottom: 16px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin: 0 auto 36px; }
.cta-band .hero-actions { justify-content: center; }

.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr;
  gap: 40px;
  padding: 72px 0 56px;
}
.footer-brand img { height: 60px; width: auto; filter: invert(1) brightness(1.6); margin-bottom: 18px; }
.footer-brand p { font-size: 0.9375rem; max-width: 34ch; }
.site-footer h4 {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.site-footer li { margin-bottom: 10px; font-size: 0.9375rem; }
.site-footer a { transition: color 150ms ease; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-soft-2); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ==========================================================================
   Undersidor: sidhero
   ========================================================================== */
.page-hero { padding: 40px 0 72px; }
.page-hero .hero-media img { aspect-ratio: 4 / 3; }
.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-weight: 700;
  margin-bottom: 28px;
}
.price-chip strong { font-size: 1.25rem; font-weight: 700; }

/* Vad ingår-grupper */
.include-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.include-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px;
}
.include-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.include-card h3 .icon { color: var(--accent); }
.include-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 0.9875rem;
}
.include-card .icon-check { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; flex: none; }

/* Tillval */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.9875rem;
}
.chip .icon { width: 16px; height: 16px; color: var(--accent); }

/* Prissektion */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 34px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-card .p-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8125rem; color: var(--ink-soft); margin-bottom: 14px; }
.price-card .p-value { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; }
.price-card .p-value small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.price-card .p-note { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 10px; }
.price-card .p-alt { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; font-weight: 500; color: var(--ink-soft); }
.price-card .p-alt strong { color: var(--ink); font-weight: 700; font-size: 1.2rem; }

/* Pristabell (hemstädning m.fl.) */
.tier-table { max-width: 640px; }
.tier-table .tier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 500;
}
.tier-table .tier-row:nth-child(odd) { background: var(--surface); }
.tier-table .tier-row strong { font-weight: 700; font-size: 1.0625rem; }
.tier-table .tier-head {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 10px;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ==========================================================================
   Kalkylator
   ========================================================================== */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.calc-form { display: grid; gap: 28px; }
.field label { display: block; font-weight: 700; margin-bottom: 10px; }
.field .hint { font-size: 0.875rem; color: var(--ink-faint); margin-top: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-input);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft-2);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2310141a'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 53.66 90.34L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px;
}
.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
}
.seg button {
  padding: 11px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  color: var(--ink-soft);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.seg button:active { transform: scale(0.97); }
.seg button.on { background: var(--accent); color: #fff; }
.calc-summary {
  position: sticky;
  top: 100px;
  background: var(--dark);
  color: #fff;
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow-lg);
}
.calc-summary h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 22px; color: #fff; }
.calc-summary .sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.9875rem;
  color: rgba(255, 255, 255, 0.75);
}
.calc-summary .sum-row b { color: #fff; font-weight: 700; }
.calc-summary .sum-total {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 16px;
  padding-top: 22px;
}
.calc-summary .sum-total .lbl { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.calc-summary .sum-price {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: opacity 200ms ease;
}
.calc-summary .sum-price small { font-size: 1.05rem; font-weight: 500; color: rgba(255, 255, 255, 0.65); letter-spacing: 0; }
.calc-summary .sum-note { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); margin-top: 10px; min-height: 1.2em; }
.calc-summary .sum-empty { color: rgba(255, 255, 255, 0.65); font-size: 0.9875rem; padding: 8px 0 4px; }
.calc-summary .btn { width: 100%; margin-top: 26px; }
.calc-summary .sum-rut {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
}

/* ==========================================================================
   Bokningsformulär
   ========================================================================== */
.book-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.book-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .check-grid { grid-template-columns: 1fr; } }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-input);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.check-pill span::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.check-pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.check-pill input:checked + span::before {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23fff'%3E%3Cpath d='M229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}
.check-pill input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft-2); }
.form-status { display: none; align-items: center; gap: 10px; font-weight: 700; padding: 14px 18px; border-radius: var(--r-input); }
.form-status.err { display: flex; background: #fdeeee; color: #9c1f1f; }
.form-status.ok { display: flex; background: #e8f6ee; color: #14683a; }
.book-aside { display: grid; gap: 20px; }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}
.aside-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 700; margin-bottom: 12px; }
.aside-card h3 .icon { color: var(--accent); width: 20px; height: 20px; }
.aside-card p, .aside-card li { color: var(--ink-soft); font-size: 0.9375rem; }
.aside-card li { padding: 4px 0; }
.aside-card a.strong { color: var(--accent-deep); font-weight: 700; }

/* Formulärets succéläge */
.book-success { text-align: center; padding: 40px 20px; display: none; }
.book-success.show { display: block; }
.book-success .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-success .icon-wrap .icon { width: 34px; height: 34px; }
.book-success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.book-success p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto; }

/* ==========================================================================
   Kontaktsida
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 56px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px;
}
.contact-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.contact-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: 0.9875rem; }
.contact-card a.strong { color: var(--accent-deep); font-weight: 700; font-size: 1.125rem; }
.map-embed { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Sidfot-CTA på undersidor (ljus) */
.subcta {
  background: var(--accent-soft);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.subcta h2 { margin-bottom: 8px; }
.subcta p { color: var(--ink-soft); }

/* ==========================================================================
   Referensband (ICA Kvantum m.fl.)
   ========================================================================== */
.referens-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  color: #fff;
}
.referens-band::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 155, 217, 0.22), transparent 65%);
  z-index: -1;
}
.ref-logo {
  width: clamp(180px, 22vw, 250px);
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}
.ref-logo img { width: 62%; height: auto; }
.ref-logo .ref-logo-text {
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: #e3000b;
  text-transform: uppercase;
}
.ref-logo-inner { display: flex; flex-direction: column; align-items: center; }
.referens-band .eyebrow { color: #7cc24a; margin-bottom: 16px; }
.referens-band h2 { color: #fff; margin-bottom: 16px; }
.referens-band > div > p { color: rgba(255, 255, 255, 0.82); max-width: 58ch; margin-bottom: 24px; }
.ref-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ref-badges .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}
.ref-badges .chip .icon { color: #7cc24a; }
.referens-band .hero-actions { justify-content: flex-start; }
@media (max-width: 900px) {
  .referens-band { grid-template-columns: 1fr; text-align: left; }
  .ref-logo { width: 160px; }
}

/* Avslappnat partnerkort (ICA) */
.partner-kort {
  background: #fbf6ef;
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.partner-foto { position: relative; padding: 12px 12px 12px 0; }
.partner-foto img {
  width: 100%;
  border-radius: 18px;
  border: 10px solid #fff;
  box-shadow: 0 24px 50px -22px rgba(60, 35, 20, 0.35);
  transform: rotate(-2deg);
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) { .partner-kort:hover .partner-foto img { transform: rotate(0deg) scale(1.01); } }
.partner-foto .partner-badge {
  position: absolute;
  right: -6px;
  bottom: 2px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-badge img { height: 22px; width: auto; }
.partner-badge span { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink); }
.partner-kort .eyebrow { color: #c2410c; margin-bottom: 14px; }
.partner-kort h2 { margin-bottom: 14px; }
.partner-kort > div > p { color: var(--ink-soft); max-width: 56ch; margin-bottom: 20px; }
.partner-fakta { display: grid; gap: 12px; margin-bottom: 24px; }
.partner-fakta li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.partner-fakta .icon { color: #e3000b; margin-top: 2px; width: 20px; height: 20px; }
.partner-kort .link-arrow { color: #c2410c; }
@media (max-width: 900px) {
  .partner-kort { grid-template-columns: 1fr; }
  .partner-foto { padding: 0; margin-bottom: 8px; }
}

/* Kompakt referensrad på tjänstesidor */
.ref-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid #e3000b;
  border-radius: var(--r-card);
  padding: 20px 26px;
  box-shadow: var(--shadow-sm);
}
.ref-strip img { height: 34px; width: auto; flex: none; }
.ref-strip p { color: var(--ink-soft); font-size: 0.9875rem; max-width: 70ch; }
.ref-strip p strong { color: var(--ink); }

/* ==========================================================================
   FAQ (details/summary-accordion)
   ========================================================================== */
.faq-list { max-width: 760px; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background-color 150ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 53.66 90.34L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 53.66 90.34L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") center / 16px no-repeat;
  color: var(--accent);
  transition: transform 200ms var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--accent-soft); }
.faq-item .faq-svar { padding: 0 24px 20px; color: var(--ink-soft); }
.faq-item .faq-svar p { margin-bottom: 10px; }
.faq-item .faq-svar p:last-child { margin-bottom: 0; }

/* Snabbsvar (AI/featured-snippet-block) */
.snabbsvar {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  padding: 20px 24px;
  margin: 0 0 28px;
  max-width: 72ch;
}
.snabbsvar p { margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.6; }
.snabbsvar strong { color: var(--accent-deep); }
.uppdaterad { font-size: 0.875rem; color: var(--ink-faint); margin-top: 14px; }

/* Tabeller i guider/prisinfo */
.pristabell { width: 100%; max-width: 760px; border-collapse: collapse; margin: 18px 0 26px; font-size: 0.9875rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.pristabell th, .pristabell td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pristabell th { background: var(--accent-soft); color: var(--ink); font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pristabell tr:last-child td { border-bottom: none; }
.pristabell td strong { color: var(--ink); }
.prose table { display: block; overflow-x: auto; }
@media (min-width: 640px) { .prose table { display: table; } }

/* Författarbox (E-E-A-T) */
.forfattare {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 22px;
  margin: 32px 0 0;
  max-width: 72ch;
}
.forfattare .logo-mark { width: 44px; color: var(--ink); }
.forfattare p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.forfattare strong { color: var(--ink); }

/* Trust-rad (F-skatt, If) */
.trust-rad { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.875rem; color: var(--ink-soft); margin-top: 26px; }
.trust-rad span { display: inline-flex; align-items: center; gap: 6px; }
.trust-rad .icon { width: 16px; height: 16px; color: var(--brand-green); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ink-faint);
  padding: 20px 0 0;
}
.breadcrumbs a { color: var(--ink-soft); font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent-deep); }
.breadcrumbs .sep { color: var(--line); }

/* Löptext-sektioner (tunga innehållssidor) */
.prose { max-width: 72ch; color: var(--ink-soft); }
.prose h2 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; }
.prose h3 { color: var(--ink); font-size: 1.185rem; font-weight: 700; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; line-height: 1.7; }
.prose ul { list-style: none; margin: 0 0 14px; display: grid; gap: 8px; }
.prose ul li { display: flex; gap: 10px; align-items: flex-start; }
.prose ul li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose a { color: var(--accent-deep); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); }

/* 404 */
.error-page { text-align: center; padding: 120px 24px; }
.error-page h1 { font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; margin-bottom: 16px; }
.error-page p { color: var(--ink-soft); margin-bottom: 32px; }

/* Ikonvarianter */
.icon.flip svg { transform: rotate(180deg); }

/* ==========================================================================
   Vänersborg Städ: wordmark-logga
   ========================================================================== */
.site-logo, .footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 54px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.logo-mark svg, .logo-mark img { width: 100%; height: auto; display: block; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.12rem;
  color: var(--ink);
}
.logo-text small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-top: 4px;
}
.logo-text small::before, .logo-text small::after {
  content: "";
  height: 2px;
  width: 14px;
  background: var(--brand-green);
  flex: none;
}
.logo-text small::after { margin-left: -5px; }
.footer-brand .logo-mark { color: #fff; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: var(--brand-green-light); }
.footer-brand .logo-text small::before, .footer-brand .logo-text small::after { background: var(--brand-green-light); }
@media (min-width: 1024px) {
  .logo-mark { width: 60px; }
  .logo-text { font-size: 1.22rem; }
}
/* Ny logga (nov 2026): liggande bild – slott + ordmärke. */
.logo-img { display: block; height: 44px; width: auto; }
.site-logo .logo-img { height: 42px; width: auto; } /* vinner över äldre .site-logo img; ryms bredvid menyknappen även på 320 px */
.footer-brand .logo-img { height: 54px; filter: none; margin-bottom: 0; } /* den gamla regeln inverterar alla bilder i sidfoten */
@media (min-width: 1024px) { .site-logo .logo-img { height: 54px; } }

/* ==========================================================================
   Mobilförfining
   ========================================================================== */
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .calc-summary { padding: 28px 22px; }
  .price-chip { flex-wrap: wrap; white-space: normal; }
  .display-xl { font-size: clamp(2.3rem, 9vw, 2.9rem); }
  .section-head { margin-bottom: 36px; }
  .quotes-rail .quote-card { padding: 24px; }
  .rut-band { padding: 32px 24px; }
  .subcta { padding: 32px 24px; }
  .subcta .btn { width: 100%; }
}

/* Klickbara innehållskort (guider) */
a.include-card { display: block; color: inherit; transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease; }
@media (hover: hover) and (pointer: fine) { a.include-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); } }

/* Snabbförfrågan under priset i prisräknaren (klickanalysen 21 nov 2026) */
.calc-summary a[hidden], .calc-snabb[hidden], .calc-snabb [hidden] { display: none !important; }
.calc-snabb { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 10px; }
.calc-snabb__rubrik { font-weight: 700; color: #fff; font-size: 1rem; line-height: 1.4; margin: 0 0 2px; }
.calc-snabb__falt { display: grid; gap: 5px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.calc-snabb__falt input { font: inherit; font-size: 1rem; font-weight: 500; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; padding: 13px 14px; width: 100%; box-sizing: border-box; transition: border-color 150ms ease, background 150ms ease; }
.calc-snabb__falt input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 3px rgba(47, 147, 214, 0.3); }
.calc-snabb__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.calc-summary .calc-snabb .btn { margin-top: 4px; }
.calc-snabb__status { margin: 0; font-size: 0.875rem; min-height: 0; }
.calc-snabb__status.err { color: #ffb4a8; }
.calc-snabb__alt { margin: 2px 0 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.calc-snabb__alt a, .calc-snabb__klart a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.calc-snabb__klart { background: rgba(47, 147, 214, 0.16); border: 1px solid rgba(47, 147, 214, 0.45); border-radius: 14px; padding: 16px; }
.calc-snabb__klart b { display: block; font-size: 1.05rem; margin-bottom: 4px; color: #fff; }
.calc-snabb__klart p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 0.9375rem; }

/* Hela kontaktkortet och hela sidfotsraden är klickbara (klickanalysen 21 nov 2026: besökare tryckte
   på kortet och ikonen bredvid numret, inte på själva länken) */
.contact-card { position: relative; }
.contact-card a.strong::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.contact-card:has(a.strong):hover { border-color: var(--accent); }
.footer-contact li { position: relative; }
.footer-contact li > a[href^="tel:"]::after, .footer-contact li > a[href^="mailto:"]::after { content: ""; position: absolute; inset: -6px 0; }

/* ==========================================================================
   TUNGELSTA STÄDPARTNER – egna delar (nov 2026)
   Signaturen är växthusbågen: Tungelsta är trädgårdsstaden.
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hoppa { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.hoppa:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h3, h4 { font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif; }
.sol { background: linear-gradient(transparent 64%, var(--sun) 64%, var(--sun) 92%, transparent 92%); padding: 0 0.08em; }
.cta-band::after { background: linear-gradient(160deg, rgba(10, 32, 22, 0.9), rgba(21, 70, 48, 0.84)); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #f6cf6e; }

/* ---------- Logga ---------- */
.tsp-logo { display: inline-flex; align-items: center; gap: 11px; color: var(--accent); }
.tsp-logo__text { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.tsp-logo__text strong { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: -0.015em; }
.tsp-logo__text small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.tsp-logo--ljus { color: var(--brand-green-light); margin-bottom: 18px; }
.tsp-logo--ljus .tsp-logo__text { color: #fff; }
.tsp-logo--ljus .tsp-logo__text small { color: var(--brand-green-light); }
@media (min-width: 1024px) { .tsp-logo__text strong { font-size: 1.75rem; } }
.header-cta { align-items: center; gap: 18px; }
.header-tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-deep); white-space: nowrap; }
.header-tel .icon { width: 18px; height: 18px; }
@media (max-width: 1180px) { .header-tel { display: none; } }
.mobile-menu .btn-ghost { margin-top: 12px; }

/* ---------- Topp med offertkort ---------- */
.hero--form { padding: 36px 0 72px; position: relative; }
.hero--form .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: start; gap: clamp(32px, 5vw, 72px); }
.hero--form .hero-copy { padding-top: clamp(8px, 3vw, 44px); }
.hero--form .hero-copy .lead { margin-bottom: 26px; max-width: 46ch; }
.hero-form-wrap { position: relative; }
.hero-form-wrap::before {
  content: ""; position: absolute; z-index: -1;
  inset: -34px -26px 40px 26px;
  background: var(--accent-soft);
  border-radius: 999px 999px 28px 28px;
}
.hero-form-wrap::after {
  content: ""; position: absolute; z-index: -1; top: -18px; right: -6px;
  width: 74px; height: 74px; border-radius: 50%; background: var(--sun);
}
.fakta-rad { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.fakta { display: inline-flex; align-items: baseline; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; font-size: 0.9375rem; color: var(--ink-soft); }
.fakta strong { color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.loften { display: grid; gap: 10px; }
.loften li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.loften .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; flex: none; }
.loften--form { grid-template-columns: 1fr; gap: 6px; font-size: 0.9rem; color: var(--ink-soft); }
.loften--form .icon { width: 16px; height: 16px; }
.hero-bild { margin-top: 34px; }
.hero-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 999px 999px var(--r-card) var(--r-card); box-shadow: var(--shadow-md); }
@media (max-width: 900px) {
  .hero--form { padding: 14px 0 48px; }
  .hero--form .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero--form .hero-copy { padding-top: 0; }
  .hero--form .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero--form .hero-copy h1 { margin-bottom: 12px; font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hero--form .hero-copy .lead { font-size: 1rem; line-height: 1.45; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero--form .fakta-rad { margin-bottom: 0; gap: 8px; }
  .hero--form .fakta { padding: 6px 11px; font-size: 0.8125rem; gap: 5px; }
  .hero--form .fakta strong { font-size: 0.9rem; }
  .hero--form .fakta:nth-child(n+3) { display: none; }
  .offert-form__rubrik { font-size: 1.4rem; }
  .tjanstval__val > span { min-height: 60px; font-size: 0.76rem; }
  .offert-form__falt { gap: 13px; }
  .hero--form .hero-copy .loften, .hero-bild { display: none; }
  .hero-form-wrap::before { inset: -14px -24px 60px -24px; border-radius: 40px 40px 0 0; }
  .hero-form-wrap::after { display: none; }
}

/* ---------- Offertformuläret ---------- */
.offert { scroll-margin-top: 96px; }
.offert-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.offert-form__falt { display: grid; gap: 16px; }
.offert-form__rubrik { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.offert-form__ingress { color: var(--ink-soft); font-size: 0.9375rem; margin-top: -8px; }
.offert-falt { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.offert-falt > span, .offert-falt > legend { font-weight: 700; font-size: 0.9rem; padding: 0; }
.offert-falt > legend { margin-bottom: 8px; }
.offert-falt em { font-style: normal; font-weight: 500; color: var(--ink-faint); font-size: 0.82rem; margin-left: 4px; }
.offert-falt input[type="text"], .offert-falt input[type="tel"], .offert-falt input[type="email"], .offert-falt textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: var(--r-input); background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.offert-falt textarea { resize: vertical; min-height: 92px; }
.offert-falt input:focus, .offert-falt textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft-2); }
.offert-falt.har-fel input { border-color: #c0392b; box-shadow: 0 0 0 4px #fbe3df; }
.offert-rad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 330px) { .offert-rad { grid-template-columns: 1fr; } }
.tjanstval { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tjanstval__val { position: relative; }
.tjanstval__val input { position: absolute; opacity: 0; pointer-events: none; }
.tjanstval__val > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center;
  min-height: 68px; padding: 9px 4px;
  border: 1.5px solid var(--line); border-radius: var(--r-input); background: #fff;
  font-weight: 700; font-size: 0.8rem; line-height: 1.15; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}
.tjanstval__val > span .icon { width: 22px; height: 22px; color: var(--accent); }
.tjanstval__val > span:active { transform: scale(0.97); }
.tjanstval__val input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent); }
.tjanstval__val input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft-2); }
.offert-mer summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--accent-deep); padding: 4px 0; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.offert-mer summary::-webkit-details-marker { display: none; }
.offert-mer summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); font-weight: 700; line-height: 1; }
.offert-mer[open] summary::before { content: "–"; }
.offert-mer .offert-falt { margin-top: 10px; }
.offert-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.offert-form .form-status { margin: 0; font-size: 0.9375rem; }
.offert-form__knapp { width: 100%; min-height: 56px; }
.offert-form__knapp[disabled] { opacity: 0.7; cursor: progress; }
.offert-form__fot { font-size: 0.8rem; color: var(--ink-faint); }
.offert-form__fot a { text-decoration: underline; }
.offert-form.ar-klar .offert-form__falt { display: none; }
.offert-tack { text-align: center; padding: 18px 6px 8px; }
.offert-tack:focus { outline: none; }
.offert-tack__bock { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 18px; animation: bockIn 500ms var(--ease-out) both; }
.offert-tack__bock .icon { width: 32px; height: 32px; }
@keyframes bockIn { from { transform: scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }
.offert-tack h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin-bottom: 10px; }
.offert-tack p { color: var(--ink-soft); }
.tack-steg { text-align: left; counter-reset: steg; display: grid; gap: 10px; margin: 22px 0 6px; padding: 0; list-style: none; }
.tack-steg li { counter-increment: steg; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 0.9375rem; color: var(--ink-soft); }
.tack-steg li::before { content: counter(steg); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sun-soft); color: var(--ink); font-weight: 700; font-size: 0.85rem; }
.tack-steg strong { color: var(--ink); }
.offert-tack__ring { margin-top: 14px; font-weight: 500; }
.offert-tack__ring a { color: var(--accent-deep); font-weight: 700; }
.offert-band { background: var(--accent-soft); }
.offert-band .book-grid { align-items: center; }
@media (prefers-reduced-motion: reduce) { .offert-tack__bock { animation: none; } }

/* ---------- Löften, steg, orter ---------- */
.lofte-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; }
.lofte { padding: 22px; }
.lofte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; }
.lofte .icon { display: block; width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.lofte h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.lofte p { color: var(--ink-soft); font-size: 0.9575rem; }
.lofte small { font-size: 0.8125rem; }
.lofte small a { text-decoration: underline; color: var(--ink-faint); display: inline-block; padding: 8px 0; }
.steg-rad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; counter-reset: s; }
.steg-rad li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--accent); }
.steg-rad li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.steg-rad h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.steg-rad p { color: var(--ink-soft); font-size: 0.9575rem; }
.orter { display: flex; flex-wrap: wrap; gap: 10px; }
.orter a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 0.9575rem; transition: border-color 160ms ease, background-color 160ms ease; }
.orter a:hover { border-color: var(--accent); background: var(--accent-soft); }
.orter a .icon { width: 16px; height: 16px; color: var(--accent); }
.lank-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.lank-lista a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-weight: 700; }
.lank-lista a:hover { color: var(--accent-deep); }
.lank-lista a .icon { width: 16px; height: 16px; color: var(--accent); }
.split-media img { border-radius: 999px 999px var(--r-card) var(--r-card); }
.prose a, .faq-svar a, .snabbsvar a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.tel-lank { font-weight: 700; white-space: nowrap; }
.pristabell { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.pristabell th, .pristabell td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.9875rem; vertical-align: top; }
.pristabell th { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); background: var(--accent-soft); }
.pristabell tr:last-child td { border-bottom: 0; }
.pristabell td strong { white-space: nowrap; }
.tabell-rull { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.guide-kort { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.guide-kort a { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.guide-kort a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.guide-kort img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.guide-kort div { padding: 22px; }
.guide-kort h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; line-height: 1.25; }
.guide-kort p { color: var(--ink-soft); font-size: 0.9375rem; }
.chatt-oppna { text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.chatt-oppna:hover { color: #fff; }

/* ---------- Mobilrad ---------- */
.mobilrad { display: none; }
@media (max-width: 900px) {
  .mobilrad {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(248, 246, 238, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 280ms var(--ease-out);
  }
  .mobilrad.syns { transform: none; }
  .mobilrad a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--r-pill); font-weight: 700; }
  .mobilrad__ring { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); flex: 0.8 !important; }
  .mobilrad__offert { background: var(--grad); color: #fff; }
  .mobilrad .icon { width: 18px; height: 18px; }
  body.har-mobilrad .site-footer { padding-bottom: 76px; }
}

/* ---------- Ring-rutan ---------- */
.ringruta {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; width: min(340px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 22px; opacity: 0; transform: translateY(16px); transition: opacity 260ms ease, transform 260ms var(--ease-out);
}
.ringruta.syns { opacity: 1; transform: none; }
.ringruta__rubrik { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 6px; padding-right: 28px; }
.ringruta__text { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 16px; }
.ringruta .btn { width: 100%; }
.ringruta__stang { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); }
.ringruta__stang:hover { background: var(--accent-soft); }
.ringruta__stang .icon { width: 18px; height: 18px; }
@media (max-width: 900px) { .ringruta { right: 14px; bottom: 84px; } }

/* ---------- Chatten (öppnas bara på besökarens begäran) ---------- */
.lankknapp { color: var(--accent-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.offert-form__chatt { font-size: 0.875rem; color: var(--ink-soft); text-align: center; }
.chatt {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 40px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(18px); transition: opacity 240ms ease, transform 240ms var(--ease-out);
}
.chatt[hidden] { display: none; }
.chatt.syns { opacity: 1; transform: none; }
.chatt__huvud { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--dark); color: #fff; }
.chatt__huvud strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.chatt__huvud small { color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; }
.chatt__stang { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; flex: none; }
.chatt__stang:hover { background: rgba(255, 255, 255, 0.14); }
.chatt__stang .icon { width: 18px; height: 18px; }
.chatt__flode { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.chatt__bubbla { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 0.9375rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatt__bubbla--vi { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chatt__bubbla--kund { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.chatt__bubbla--skriver { color: var(--ink-faint); letter-spacing: 0.2em; animation: skriver 1.1s ease-in-out infinite; }
@keyframes skriver { 50% { opacity: 0.35; } }
.chatt__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chatt__form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #fff; }
.chatt__form input:focus { outline: none; border-color: var(--accent); }
.chatt__form button { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.chatt__form button .icon { width: 20px; height: 20px; }
@media (max-width: 600px) { .chatt { right: 0; bottom: 0; width: 100vw; height: min(78dvh, 620px); border-radius: 22px 22px 0 0; } body.chatt-oppen .mobilrad { display: none; } }
@media (prefers-reduced-motion: reduce) { .chatt, .ringruta, .mobilrad { transition: none; } .chatt__bubbla--skriver { animation: none; } }

/* ==========================================================================
   MOBILPASS (21 nov 2026) – mätt på 390, 360 och 320 px.
   Mål: offertkortet högt upp, 44 px tryckytor, inga tabeller som måste dras i sidled,
   kortare sidor. Ligger sist i filen så att reglerna vinner.
   ========================================================================== */
html { scroll-padding-top: 76px; }
.prose ul li { display: block; position: relative; padding-left: 28px; overflow-wrap: anywhere; }
.prose ul li::before { position: absolute; left: 0; top: 0.28em; margin-top: 0; }
a, button, summary, label { -webkit-tap-highlight-color: rgba(31, 90, 61, 0.12); }

@media (max-width: 900px) {
  /* Sidhuvud och meny */
  .header-inner { height: 64px; }
  .mobile-menu { inset: 64px 0 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .mobile-menu a { padding: 13px 4px; font-size: 1.125rem; min-height: 50px; }
  .mobile-menu a.sub { font-size: 1rem; min-height: 46px; padding: 10px 4px 10px 18px; }
  .mobile-menu .btn { min-height: 54px; margin-top: 18px; justify-content: center; }
  .mobile-menu .btn + .btn { margin-top: 10px; }
  .nav-toggle { width: 48px; height: 48px; margin-right: -10px; }
  .tsp-logo__text strong { font-size: 1.4rem; }
  .site-logo { min-height: 44px; align-items: center; }

  /* Brödsmulor: en rad, tryckbara */
  .breadcrumbs { padding-top: 2px; font-size: 0.8125rem; gap: 0 6px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; flex: none; }
  .breadcrumbs span[aria-current] { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

  /* Luft och rubriker */
  .section { padding: 48px 0; }
  .section-tight { padding: 28px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head .display-lg { margin-bottom: 10px; }
  .display-lg { font-size: clamp(1.6rem, 6.6vw, 2rem); }
  .lead { font-size: 1.0625rem; line-height: 1.55; }
  .snabbsvar { padding: 16px 18px; }
  .snabbsvar p { font-size: 1rem; }

  /* Toppen: rubrik, en rad fakta, sedan offertkortet */
  .hero--form { padding: 0 0 36px; }
  .hero--form .hero-grid { gap: 14px; grid-template-columns: minmax(0, 1fr); }
  .hero--form .hero-grid > *, .hero-grid > *, .book-grid > * { min-width: 0; }
  .hero--form .hero-copy .eyebrow { display: none; }
  .hero--form .hero-copy h1 { font-size: clamp(1.65rem, 7.2vw, 2.15rem); line-height: 1.08; margin-bottom: 8px; }
  .hero--form .hero-copy .lead { -webkit-line-clamp: 2; font-size: 0.975rem; margin-bottom: 10px; }
  /* Faktabrickorna blir en löpande rad: inget klipps och inget behöver dras i sidled */
  .hero--form .fakta-rad { display: block; margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
  .hero--form .fakta, .hero--form .fakta:nth-child(n+3) { display: inline; border: 0; background: none; padding: 0; font-size: inherit; white-space: normal; }
  .hero--form .fakta strong { font-size: inherit; color: var(--accent-deep); }
  .hero--form .fakta + .fakta::before { content: "·"; margin: 0 7px; color: var(--ink-faint); }
  .page-hero:not(.hero--form) { padding: 8px 0 36px; }
  .page-hero:not(.hero--form) .hero-grid { gap: 22px; }
  .page-hero:not(.hero--form) h1 { font-size: clamp(1.8rem, 7.8vw, 2.4rem); margin-bottom: 14px; }
  .page-hero:not(.hero--form) .lead { margin-bottom: 20px; }
  .page-hero:not(.hero--form) .hero-media img { aspect-ratio: 16 / 10; }
  .hero-media::before { display: none; }

  /* Offertkortet */
  .offert { scroll-margin-top: 72px; }
  .offert-form { padding: 16px 16px 14px; border-radius: 20px; }
  .offert-form__falt { gap: 11px; }
  .offert-form__rubrik { font-size: 1.3rem; }
  .offert-form__ingress { font-size: 0.875rem; margin-top: -5px; }
  .dolj-mobil { display: none; }
  .offert-falt > legend { margin-bottom: 6px; }
  .tjanstval { gap: 6px; }
  .tjanstval__val > span { min-height: 54px; font-size: 0.8125rem; padding: 6px 2px; gap: 3px; }
  .tjanstval__val > span .icon { width: 20px; height: 20px; }
  .offert-rad { gap: 10px; }
  .offert-mer summary { min-height: 44px; }
  .offert-form__knapp { min-height: 54px; }
  .loften--form { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.8125rem; }
  .lankknapp { display: inline-block; padding: 12px 0; }
  .offert-form__chatt { margin: -8px 0; }
  .offert-form__fot { font-size: 0.8125rem; }
  .offert-form .sp-pb-info { font-size: 0.8125rem !important; }
  .offert-band .book-grid { gap: 20px; }

  /* Tjänstekort: två i bredd, låga */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card, .service-card.tall { min-height: 150px; border-radius: 14px; }
  .service-card::after { background: linear-gradient(to top, rgba(7, 12, 24, 0.86) 0%, rgba(7, 12, 24, 0.35) 60%, rgba(7, 12, 24, 0.12) 100%); }
  .service-card .card-body { padding: 14px; }
  .service-card h3 { font-size: 1.0625rem; margin-bottom: 3px; overflow-wrap: anywhere; }
  .service-card p { display: none; }
  .service-card .link-arrow { font-size: 0.8125rem; gap: 5px; }
  .service-card .link-arrow .icon { width: 14px; height: 14px; }

  /* Löften: ikon till vänster, text till höger */
  .lofte-grid { grid-template-columns: 1fr; gap: 10px; }
  .lofte { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; padding: 16px; }
  .lofte .icon { grid-row: span 2; width: 24px; height: 24px; margin: 2px 0 0; }
  .lofte h3 { margin-bottom: 3px; font-size: 1.03rem; }
  .lofte p { font-size: 0.9375rem; }

  .include-grid { gap: 12px; grid-template-columns: 1fr; }
  .include-card { padding: 20px; }
  .include-card h3 { margin-bottom: 10px; }
  .include-card li { padding: 5px 0; }
  .steg-rad { grid-template-columns: 1fr; gap: 16px; }
  .steg-rad li { padding-top: 12px; display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; }
  .steg-rad li::before { grid-row: span 2; margin-bottom: 0; font-size: 1.5rem; }
  .tier-table .tier-row { padding: 12px 14px; gap: 14px; }
  .tier-table .tier-row strong { text-align: right; }
  .lank-lista { grid-template-columns: 1fr; gap: 0; }
  .lank-lista a { min-height: 50px; }
  .orter a { min-height: 46px; }
  .kallor li a { display: inline-block; padding: 9px 0; }
  .split { gap: 22px; }
  .split-media img { aspect-ratio: 16 / 11; object-fit: cover; }
  .faq-item summary { min-height: 52px; }
  .cta-band { padding: 56px 0; }
  .cta-band .btn { width: 100%; }

  /* Sidfot */
  .footer-grid { padding: 44px 0 28px; gap: 26px 20px; grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-grid > div:nth-child(4), .footer-grid > div:nth-child(5) { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(5) ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .site-footer h4 { margin-bottom: 6px; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .site-footer .chatt-oppna { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-contact li { align-items: center; }
  .footer-contact .icon { margin-top: 0; }
  .footer-bottom { flex-direction: column; gap: 6px; padding: 18px 0 22px; }
}

/* Tabeller blir kort: inget dras i sidled */
@media (max-width: 640px) {
  .tabell-rull { overflow: visible; }
  .pristabell, .pristabell tbody, .pristabell tr, .pristabell td { display: block; width: 100%; }
  .pristabell { border: 0; background: none; border-radius: 0; }
  .pristabell thead { display: none; }
  .pristabell tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; }
  .pristabell td { display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
  .pristabell td::before { content: attr(data-rubrik); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--ink-faint); padding-top: 2px; }
  .pristabell td:first-child { display: block; font-weight: 700; color: var(--ink); font-size: 1.03rem; }
  .pristabell td:first-child::before, .pristabell td[data-rubrik=""]::before { content: none; }
  .pristabell td[data-rubrik=""] { display: block; }
  .pristabell tr td:last-child { border-bottom: 0; }
  .pristabell td strong { white-space: normal; }
  .pristabell td a { display: inline-block; padding: 12px 0; margin: -6px 0; }
}

/* Små telefoner */
@media (max-width: 359px) {
  .container { padding: 0 18px; }
  .tjanstval { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.tall { min-height: 120px; }
  .tsp-logo__text strong { font-size: 1.3rem; }
  .offert-form { padding: 14px 13px 12px; }
}
