/* =====================================================================
   Dalarent — städ & golvvård i Dalarna
   "Midnatt" (förslag 2B): mörk, premium, lugn. Midnattsbotten, grafit-
   ytor, guld som enda accent (linjer, knapp, understruken highlight).
   Ett typsnitt: Schibsted Grotesk. OKLCH/hex. Respekterar
   prefers-reduced-motion. Signatur: guld-"sömmen" längst ner i hero.
   ===================================================================== */

:root {
  /* Ytor – mörk skala (bg mörkast → surface-2 högsta lyftet) */
  --bg:         #0A0E14;   /* midnatt, sidans botten (mörkast) */
  --bg-2:       #121A24;   /* lyft band (panel-light, rail) – tydlig alternering */
  --surface:    #1C2734;   /* lyft panel / kort / cta-band */
  --surface-2:  #28343F;   /* högsta lyftet (hover, nästlat) */
  --footer-bg:  #07090D;   /* mörkast ankare (footer) */

  /* Text */
  --ink:        #EEF2F6;   /* ljus brödtext/rubrik, ~16:1 på botten */
  --muted:      #B9C4CE;   /* sekundär text, ≥9:1 på mörkt */
  --ink-dim:    #7E8B97;   /* fine print / etiketter, ≥4.7:1 på mörkt */
  --on-dark:    #EEF2F6;   /* text på mörkt/footer */
  --on-dark-dim:#B9C4CE;   /* dämpad ljus text */

  /* Linjer */
  --line:       #2A3744;   /* synlig kortkant på mörkt */
  --line-strong:#3D4D5C;   /* tydligare separator */
  --line-d:     rgba(255, 255, 255, 0.08); /* linje på mörkast (footer) */
  --btn-line:   #5A6E82;   /* ghost-knappens kant – ≥3:1 mot botten */

  /* Varumärke — guld */
  --primary:    #E8B84B;   /* guld: CTA, länk, accentlinjer */
  --primary-d:  #f0c562;   /* hover = LJUSARE guld */
  --primary-ink:#E8B84B;   /* guld som textfärg/länk på mörkt */
  --primary-soft:rgba(232, 184, 75, 0.12); /* mjuk guld-tint (yta) */
  --accent:     #C99A3A;   /* mjukt guld */
  --on-primary: #0A0E14;   /* MÖRK text på guld-knapp */

  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --head: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --sec-y: clamp(4.5rem, 8.5vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Skuggor syns knappt på mörkt → mjuk djup-skugga + ljus topp-hairline.
     Djup bärs mest av --line-kanter och --surface-lyft (mer 2B). */
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 36px -22px rgba(0, 0, 0, 0.8);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -28px rgba(0, 0, 0, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.07; letter-spacing: -0.02em; text-wrap: balance; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec-y); }

/* ---- Lyft band (alternering) ---- */
.panel-light { background: var(--bg-2); color: var(--ink); }

/* ---- Kicker / etikett (guld-detalj, återhållsam) ---- */
.label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.74rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 1.2rem;
}
.label::before { content: ""; width: 1.6rem; height: 1px; background: var(--primary); }

/* ---- Guld-streck över sektionsrubriker (2B-signatur) ---- */
.tick { display: block; width: 32px; height: 1px; background: var(--primary); margin-bottom: 1.3rem; }
/* Auto-tick: varje sektionsöppnare får guld-strecket utan extra markup */
.sec-head h2::before, .about-head h2::before, .contact-copy h2::before, .cta-band h2::before {
  content: ""; display: block; width: 32px; height: 1px; background: var(--primary); margin-bottom: 1.2rem;
}

/* ---- Rubriker / text ---- */
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); }
.section h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem); }
.sec-head { max-width: 50rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { margin-bottom: 1rem; }
.sec-intro { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 54ch; text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); }
p { max-width: 66ch; text-wrap: pretty; }

/* ---- Knappar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem; background: var(--primary); color: var(--on-primary);
  border: 1.5px solid var(--primary); border-radius: 4px; cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--primary-d); border-color: var(--primary-d); transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(232, 184, 75, 0.4); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: 0.06s; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--btn-line); }
.btn-ghost:hover { background: transparent; border-color: var(--primary); color: var(--primary-ink); box-shadow: none; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; gap: 0.6rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10000; background: var(--primary); color: var(--on-primary); padding: 0.7rem 1.1rem; font-weight: 600; border-radius: 4px; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* Ljus fokusring där guld kan tappa kontrast mot mörka band/footer */
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: #EEF2F6; }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1100; background: var(--primary); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(10, 14, 20, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.site-header[data-scrolled] { background: rgba(10, 14, 20, 0.92); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.8); }
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 74px; }
.brand { margin-right: auto; display: inline-flex; }
/* Logotyp: svart wordmark → vit på mörk sida (header + footer + mobil) */
.brand-logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
.site-footer .brand-logo { opacity: 0.95; }

.nav ul { display: none; list-style: none; padding: 0; gap: 1.8rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); position: relative; padding-block: 0.4rem; transition: color 0.2s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }
.header-row .btn-sm { display: none; }
.header-phone { display: none; font-weight: 600; font-size: 0.92rem; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--primary-ink); }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px; background: none; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; left: 0; right: 0; top: var(--header-h, 74px); height: calc(100dvh - var(--header-h, 74px)); z-index: 999; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--bg); border-top: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
body.menu-open { overflow: hidden; }
.mobile-menu > ul { list-style: none; margin: 0; padding: 0.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.mobile-menu > ul > li { border-bottom: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 1.05rem 0.2rem; font-size: 1.1rem; color: var(--muted); }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu .mobile-cta { color: var(--primary-ink); font-weight: 700; }

/* =====================================================================
   HERO — helbild (foto bakom text, dubbel gradient, guld-söm)
   ===================================================================== */
.hero { position: relative; min-height: min(90vh, 820px); display: flex; align-items: center; overflow: hidden; padding-block: 4rem; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.55) 0%, rgba(10, 14, 20, 0.34) 42%, rgba(10, 14, 20, 0.95) 100%),
    linear-gradient(90deg, rgba(10, 14, 20, 0.86) 0%, rgba(10, 14, 20, 0.32) 58%, rgba(10, 14, 20, 0.06) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero .seam { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left; animation: seam 0.8s 0.4s var(--ease) forwards; z-index: 3; }
.hero-text { max-width: 600px; padding-block: 3rem; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; max-width: 16ch; margin-bottom: 0; }
.hero h1 .hl { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 3px; text-underline-offset: 9px; }
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem); color: #dfe5ea; max-width: 48ch; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.5rem; font-size: 0.82rem; color: #aeb9c4; letter-spacing: 0.02em; }
.hero-note a { color: #cdd5dd; }
.hero-note a:hover { color: var(--primary); }

/* =====================================================================
   OM / VARFÖR
   ===================================================================== */
.about-grid { display: grid; gap: 2rem 4rem; }
/* Innehållsbild (om-oss m.fl.) – kant + radie på mörk yta */
.hero-figure { position: relative; border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; box-shadow: var(--shadow); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-body .lead { margin-bottom: 1.1rem; color: var(--ink); }
.about-body p { color: var(--muted); }
.reasons { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.5rem; }
.reasons li { padding-top: 1.4rem; border-top: 1px solid var(--primary); }
.reasons h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.reasons p { color: var(--muted); font-size: 0.97rem; }

/* =====================================================================
   TJÄNSTER (startsida: rad-lista 2B) + kort-variant (övriga)
   ===================================================================== */
/* Rad-lista (.list/.row) – startsidans fyra tjänster */
.list { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.8rem; align-items: center; padding: 1.9rem 1rem 1.9rem 0.2rem; border-bottom: 1px solid var(--line); transition: background-color 0.2s var(--ease); }
.row > * { transition: transform 0.2s var(--ease); }
.row .ico { width: 38px; height: 38px; color: var(--muted); transition: color 0.2s var(--ease), transform 0.2s var(--ease); flex: none; }
.row h3 { font-size: 1.6rem; font-weight: 600; }
.row p { color: var(--muted); font-size: 1rem; margin-top: 0.25rem; max-width: 64ch; }
.row .go { color: var(--primary); transition: color 0.2s var(--ease), transform 0.2s var(--ease); white-space: nowrap; display: flex; align-items: center; }
.row .go svg { width: 22px; height: 22px; }
/* Slide via transform (inte padding) → ingen layout-reflow på hover */
.row:hover { background: var(--surface); }
.row:hover > * { transform: translateX(8px); }
.row:hover .ico { color: var(--ink); }
.row:hover .go { color: var(--primary); transform: translateX(12px); }

/* Kort-variant (kvar för ev. bruk / fallback) */
.services-grid { display: grid; gap: 1.25rem; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1.9rem; box-shadow: var(--shadow); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.service:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.service p { color: var(--muted); font-size: 0.98rem; }
.service-icon { display: block; color: var(--primary); margin-bottom: 1.05rem; }
.service-icon svg { width: 30px; height: 30px; }
.service:hover .service-icon { color: var(--primary-d); }

.service-lead { grid-column: 1 / -1; padding: 0; display: grid; gap: 0; overflow: hidden; }
.service-lead:hover { transform: none; border-color: var(--primary); box-shadow: var(--shadow-lift); }
.service-media { overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; transition: transform 0.8s var(--ease); }
.service-lead:hover .service-media img { transform: scale(1.04); }
.service-text { padding: 2.2rem; }
.service-lead h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.service-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.5rem; }
.service-list li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.97rem; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 0.7rem; height: 2px; background: var(--primary); }
.service-materials { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }

/* =====================================================================
   METOD / STEG
   ===================================================================== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.step { padding: 2rem 0; border-top: 1px solid var(--line-strong); }
.step-num { font-family: var(--head); font-weight: 600; font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); color: var(--primary-ink); display: block; margin-bottom: 0.6rem; line-height: 1; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.98rem; max-width: 40ch; }

/* =====================================================================
   RESULTAT / GALLERI
   ===================================================================== */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.shot { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; margin: 0; }
.shot img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.1rem 1rem; font-size: 0.82rem; letter-spacing: 0.03em; font-weight: 500; color: var(--on-dark); background: linear-gradient(to top, rgba(10, 14, 20, 0.92), transparent); }
/* Porträtt-galleri för verksamhetens egna (stående) foton */
.gallery-portrait { grid-template-columns: 1fr; }
.gallery-portrait .shot img { aspect-ratio: 3 / 4; }
/* Beskär bort glitch-kant till höger på enstaka foto */
.shot.trim-r img { transform: scale(1.06); transform-origin: left center; }
.shot.trim-r:hover img { transform: scale(1.12); transform-origin: left center; }
@media (min-width: 600px) { .gallery-portrait { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .gallery-portrait { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================================
   OMRÅDEN
   ===================================================================== */
.areas-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.area { display: block; padding: 1.6rem 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.area:first-child { border-top: 0; padding-top: 0.3rem; }
.area h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.8rem); margin-bottom: 0.55rem; }
.area p { color: var(--muted); font-size: 0.97rem; max-width: 36ch; }

/* =====================================================================
   KONTAKT
   ===================================================================== */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.contact h2 { font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.2rem); margin-bottom: 1.1rem; }
.contact .lead { color: var(--muted); }
.contact-details { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1.1rem; }
.contact-details li { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-details span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-details a:hover { color: var(--primary-ink); }

.contact-form { display: grid; gap: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-row { display: grid; gap: 1.3rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.field label span { color: var(--primary-ink); }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0.8rem 0.9rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field textarea { resize: vertical; min-height: 5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23E8B84B' stroke-width='1.7'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }
.field select option { color: var(--ink); background: var(--surface); }
.field [aria-invalid="true"] { border-color: oklch(0.62 0.17 28); }
.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: -0.4rem; }
.form-hint span { color: var(--primary-ink); }
.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-note[data-state="error"] { color: oklch(0.68 0.18 28); }
.form-note[data-state="ok"] { color: var(--primary-ink); }

/* Kontakt-knappar (mejla/ring) – ersätter formuläret */
.contact-cta { display: grid; gap: 0.9rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.contact-cta .btn { width: 100%; }
.contact-cta-note { font-size: 0.9rem; color: var(--muted); margin: 0.2rem 0 0; }

/* =====================================================================
   FOOTER — mörkast ankare
   ===================================================================== */
.site-footer { background: var(--footer-bg); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-d); }
.footer-brand .brand-logo { height: 30px; margin-bottom: 0.9rem; }
.footer-brand p { color: var(--on-dark-dim); max-width: 32ch; font-size: 0.95rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1rem; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a, .site-footer li { color: var(--on-dark-dim); font-size: 0.95rem; }
.site-footer a:hover { color: var(--on-dark); }
.footer-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.8rem; font-size: 0.82rem; color: var(--ink-dim); }

/* =====================================================================
   REVEAL
   ===================================================================== */
/* Progressiv förbättring: innehåll är synligt som default. Den dolda starten
   gäller bara när JS är på (html.js, satt av inline-skriptet i <head>), så ett
   JS-fel/blockerat script.js aldrig kan skeppa en tom sektion. reveal-failsafe
   tvingar fram allt om script.js inte hann initiera reveal-observern. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.reveal-failsafe .reveal { opacity: 1 !important; transform: none !important; }
.hero-anim { opacity: 0; animation: rise 0.85s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
/* Hero-söm: guld 1px ritas in en gång (sidans signatur) */
@keyframes seam { to { transform: scaleX(1); } }

/* =====================================================================
   RESPONSIVT
   ===================================================================== */
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

@media (min-width: 860px) {
  .nav ul { display: flex; }
  .header-row .btn-sm { display: inline-flex; }
  .header-phone { display: inline-flex; align-items: center; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .about-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .about-head { position: sticky; top: 100px; }
  .reasons { margin-top: 2.5rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-lead { grid-template-columns: 1.1fr 1fr; align-items: stretch; }

  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .shot-wide { grid-column: span 2; }
  .shot-wide img { aspect-ratio: 16 / 9; }

  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .area { border-top: 0; padding: 0.3rem clamp(1.8rem, 3vw, 2.8rem); position: relative; }
  .area:first-child { padding-left: 0; }
  .area:last-child { padding-right: 0; }
  .area + .area::before { content: ""; position: absolute; left: 0; top: 0.25rem; bottom: 0.25rem; width: 1px; background: var(--line); }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; }
}

@media (min-width: 1080px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-lead { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   REDUCERAD RÖRELSE
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; }
  .hero .seam { transform: scaleX(1) !important; }
  .scroll-progress { display: none; }
  .shot img, .service-media img, .row, .row > * { transition: none; }
  .dropdown { transition: none; }
}

/* =====================================================================
   FLERSIDIGT — komponenter för tjänst-, orts- och övriga sidor
   ===================================================================== */

/* ---- Dropdown i huvudmenyn (desktop) ---- */
.nav ul[data-nav] { align-items: center; }
.nav ul[data-nav] > li { display: flex; align-items: center; }
.has-dropdown { position: relative; }
.nav-disclosure {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500; line-height: inherit;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 0.4rem 0; position: relative; display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-disclosure::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-disclosure:hover { color: var(--ink); }
.nav-disclosure:hover::after, .has-dropdown.is-open .nav-disclosure::after, .has-dropdown.is-current .nav-disclosure::after { transform: scaleX(1); }
.has-dropdown.is-open .nav-disclosure, .has-dropdown.is-current .nav-disclosure { color: var(--ink); }
.caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; transition: transform 0.25s var(--ease); }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret, .has-dropdown.is-open .caret { transform: rotate(225deg) translateY(-1px); }
.dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: -0.9rem; min-width: 240px;
  list-style: none; padding: 0.45rem; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(7px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 1001;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav ul.dropdown { display: block; gap: 0; }
.dropdown li { border: 0; }
.dropdown a { display: block; padding: 0.62rem 0.85rem; font-size: 0.92rem; color: var(--muted); white-space: nowrap; border-radius: 3px; }
.dropdown a::after { content: none; }
.dropdown a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobilmeny: grupprubriker + underlänkar */
.mobile-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; cursor: pointer; padding: 1.05rem 0.2rem; font-size: 1.1rem; color: var(--muted); list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::marker { content: ""; }
.mobile-menu summary:hover { color: var(--ink); }
.mobile-menu details[open] > summary { color: var(--ink); }
.mobile-menu details[open] > summary .caret { transform: rotate(225deg) translateY(-1px); }
.mobile-menu .mm-panel { list-style: none; margin: 0; padding: 0 0 0.5rem; }
.mobile-menu .mm-panel li { border-top: 1px solid var(--line); }
.mobile-menu .mm-panel a { padding-left: 1.1rem; font-size: 1.02rem; }

/* ---- Sidhuvud för undersidor ---- */
.page-hero { padding-block: clamp(2.6rem, 5vw, 4.5rem) clamp(1.6rem, 3vw, 2.6rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); margin-bottom: 1.1rem; max-width: 22ch; }
.page-hero .lead { color: var(--muted); max-width: 60ch; }
.page-hero .hero-actions { margin-top: 2rem; }

/* ---- Brödsmulor ---- */
.breadcrumbs { font-size: 0.84rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0; }
.breadcrumbs li { display: inline-flex; gap: 0.45rem; }
.breadcrumbs li::after { content: "›"; opacity: 0.55; }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a:hover { color: var(--primary-ink); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---- Brödtext / innehåll ---- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; margin-bottom: 0.2rem; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 0.55rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 2px; background: var(--primary); }
.prose a:not(.btn) { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose a:not(.btn):hover { text-decoration-color: var(--primary); }

/* Innehåll med sidokolumn */
.content-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1.8rem; }
.aside-card h3 { font-size: 1.12rem; margin-bottom: 0.8rem; margin-top: 0; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.aside-card li { font-size: 0.95rem; color: var(--muted); }
.aside-card .btn { margin-top: 1.3rem; }

/* ---- USP-/fördelsrutor ---- */
.usp-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.usp-grid li { padding: 1.7rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow); }
.panel-light .usp-grid li { background: var(--surface); }
.usp-grid h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.usp-grid p { color: var(--muted); font-size: 0.96rem; }

/* ---- FAQ (ren <details>, inget JS) ---- */
.faq { display: grid; gap: 0.8rem; max-width: 62rem; }
.faq details { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.panel-light .faq details { background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 1.3rem; font-family: var(--head); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary-ink); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.3rem 1.25rem; color: var(--muted); }
.faq .faq-a p { margin-top: 0; }

/* ---- CTA-band — mörkt band med guld-accent (det djärva momentet, max 1/sida) ---- */
.cta-band { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: grid; gap: 1.6rem; align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.cta-band h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin-bottom: 0.8rem; }
.cta-band p { color: var(--muted); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-band .btn { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.cta-band .btn:hover { background: var(--primary-d); border-color: var(--primary-d); color: var(--on-primary); box-shadow: 0 12px 28px -14px rgba(232, 184, 75, 0.4); }
.cta-band .btn-ghost { background: transparent; color: var(--ink); border-color: var(--btn-line); }
.cta-band .btn-ghost:hover { background: transparent; border-color: var(--primary); color: var(--primary-ink); }
.cta-band .cta-trust { margin: 1.1rem 0 0; font-size: 0.84rem; color: var(--muted); }
.map-embed { margin-top: 1.8rem; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; line-height: 0; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---- Kopiera e-postadress (mailto-fallback, progressivt påslag) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.copy-email { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; }
.copy-email__hint { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: var(--muted); }
.copy-email__addr { font-weight: 600; color: var(--primary-ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 0.2s var(--ease); }
.copy-email__addr:hover { text-decoration-color: var(--primary); }
.copy-email__btn { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; line-height: 1; color: var(--primary-ink); background: var(--primary-soft); border: 1px solid transparent; border-radius: 4px; padding: 0.45rem 0.72rem; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.copy-email__btn:hover { border-color: var(--primary); }
.copy-email__btn:active { transform: translateY(1px); transition-duration: 0.06s; }
.copy-email__icon { display: inline-flex; }
.copy-email__icon svg { width: 1.05em; height: 1.05em; }
.copy-email__icon--check { display: none; }
.copy-email.is-copied .copy-email__btn { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.copy-email.is-copied .copy-email__icon--copy { display: none; }
.copy-email.is-copied .copy-email__icon--check { display: inline-flex; }
/* mörkt cta-band: copy-email på egen rad under knappen (påverkar bara startsidan) */
.cta-band .cta-actions .copy-email { flex-basis: 100%; }

/* ---- Relaterade länkar (korslänkning tjänster/orter) ---- */
.related-grid { display: grid; gap: 1.1rem; }
.related-card { display: block; padding: 1.7rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.related-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.related-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.related-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0.9rem; }
.related-card .arrow { color: var(--primary-ink); font-weight: 700; font-size: 0.9rem; }

/* ---- Trygghetsrad → finstilt rail (2B): tunn rad, liten text, lodräta avdelare ---- */
.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.trust-bar li { font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-dim); padding: 0.95rem 1.5rem; border-right: 1px solid var(--line); }
.trust-bar li:last-child { border-right: 0; }

/* ---- Team-sektion (Om oss): runda porträtt + kontaktkort ---- */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.team-card { text-align: center; padding: 1.9rem 1.5rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: var(--shadow); }
.team-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 1.1rem; border: 2px solid var(--primary); background: var(--bg-2); }
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.team-role { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.team-contact { display: flex; flex-direction: column; gap: 0.3rem; }
.team-contact a { color: var(--primary); font-size: 0.95rem; }

/* ---- Mobil sticky "Begär offert" ---- */
.mobile-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; display: flex; gap: 0.6rem; padding: 0.7rem var(--pad) calc(0.7rem + env(safe-area-inset-bottom, 0px)); background: rgba(10, 14, 20, 0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.mobile-cta-bar .btn { flex: 1; }
body.menu-open .mobile-cta-bar { display: none; }
.mobile-cta-call { flex: 0 0 auto; width: auto; padding-inline: 1.05rem; }
.mobile-cta-call svg { width: 22px; height: 22px; }

@media (min-width: 600px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
@media (max-width: 680px) {
  .trust-bar li { padding: 0.7rem 1rem; border-right: 0; }
}
@media (min-width: 760px) {
  .cta-band .wrap { grid-template-columns: 1.6fr auto; }
  .cta-band .cta-actions { justify-self: end; }
}
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .mobile-cta-bar { display: none; }
  .content-grid.has-aside { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .content-grid.has-aside .aside-card { position: sticky; top: 100px; }
}
@media (min-width: 960px) {
  .usp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .usp-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 859px) {
  body { padding-bottom: 4.6rem; }
}

/* Pilar + länkbeteende på tjänstekort + ortskatalog på startsidan */
.service .arrow, .area .arrow { display: inline-block; margin-top: 1rem; color: var(--primary-ink); font-weight: 700; font-size: 0.9rem; transition: transform 0.25s var(--ease); }
.service:hover .arrow, .area:hover .arrow { transform: translateX(4px); }
a.service h3, a.area h3 { transition: color 0.2s var(--ease); }
a.service:hover h3, a.area:hover h3 { color: var(--primary-ink); }

/* Lika höga tjänstekort med pilen fäst i nederkant */
.services-grid > .service:not(.service-lead) { display: flex; flex-direction: column; }
.services-grid > .service:not(.service-lead) .arrow { margin-top: auto; }

/* Dölj mobil sticky-CTA på kontaktsidan (krockar med kontaktsidans primär-CTA) */
body[data-page="kontakt"] .mobile-cta-bar { display: none; }
@media (max-width: 859px) { body[data-page="kontakt"] { padding-bottom: 0; } }

/* Tjänsterad på små skärmar: ikon + titel, dölj pilen */
@media (max-width: 680px) {
  .row { grid-template-columns: auto 1fr; gap: 1.1rem; }
  .row .go { display: none; }
  .row h3 { font-size: 1.35rem; }
  .row .ico { width: 32px; height: 32px; }
}

/* Hero-knappar i full bredd på små skärmar */
@media (max-width: 599px) {
  .hero-actions { gap: 0.7rem; }
  .hero-actions .btn { width: 100%; }
}
