/* ==========================================================================
   Kata Städ – styles.css
   Mobile-first. Ordning: 1) Fonter & tokens  2) Bas  3) Layout  4) Komponenter
   5) Sektioner  6) Formulär  7) Hjälpklasser  8) Brytpunkter
   ========================================================================== */

/* 1. Fonter & designtokens
   ------------------------------------------------------------------------ */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Färger – utgår från logotypens marinblå (#002369) */
  --c-primary: #002369;        /* Logotypens blå – knappar, länkar, rubriker (15:1 mot vitt) */
  --c-primary-dark: #001748;
  --c-primary-mid: #1d3f96;    /* Hover och detaljer */
  --c-primary-soft: #e8eefb;
  --c-ink: #0c1a3d;            /* Rubriker */
  --c-text: #2b3756;           /* Brödtext */
  --c-muted: #4f5b78;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f7fd;
  --c-bg-warm: #fdf8ec;
  --c-gold: #f2c96e;           /* Accent (glitter) – endast ytor och text på mörk botten */
  --c-gold-dark: #8a6410;      /* Guldton som klarar kontrast mot vitt */
  --c-border: #dde5f3;
  --c-on-dark: #d4def5;        /* Brödtext på marinblå botten */
  --c-error: #b42318;
  --c-success: #166534;

  /* Typografi */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  --lh: 1.65;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  /* Form */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(0 35 105 / 0.06);
  --shadow: 0 18px 40px -18px rgb(0 35 105 / 0.28);
  --shadow-lg: 0 30px 60px -24px rgb(0 12 40 / 0.55);
  --container: 72rem;
  --gutter: 1.25rem;
  --header-h: 4.25rem;
}

/* 2. Bas
   ------------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  color: var(--c-ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p, ul, ol, dl { margin: 0 0 var(--sp-4); }
p { text-wrap: pretty; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--c-primary-mid); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--c-primary-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

strong { color: var(--c-ink); font-weight: 700; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Layout
   ------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(48rem + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }
.section--warm { background: var(--c-bg-warm); }
.section--tight { padding-block: var(--sp-7); }

.section-head { max-width: 44rem; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-lg); color: var(--c-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-mid);
}
.eyebrow::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.grid { display: grid; gap: var(--sp-5); }
.split { display: grid; gap: var(--sp-7); align-items: center; }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

/* 4. Komponenter
   ------------------------------------------------------------------------ */

/* Knappar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 3.125rem;
  padding: 0.75rem 1.625rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-mid); color: #fff; }
.btn--gold { background: var(--c-gold); color: var(--c-primary-dark); }
.btn--gold:hover { background: #f7d88f; color: var(--c-primary-dark); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: #fff; }
.btn--outline:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.btn--ghost { border-color: rgb(255 255 255 / 0.55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgb(255 255 255 / 0.1); border-color: #fff; color: #fff; }
.btn--sm { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: var(--fs-sm); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Header – genomskinlig över den blå hero-delen, vit och frostad när man scrollar
   (.is-scrolled sätts av main.js; --solid på sidor utan hero; .no-js = alltid vit) */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 0.875rem;
  background: transparent;
  transition: background-color 0.35s, box-shadow 0.35s, padding 0.35s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.site-header.is-scrolled,
.site-header.is-menu-open,
.site-header--solid,
.no-js .site-header {
  padding-block: 0.5rem;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgb(0 35 105 / 0.08), 0 8px 24px -16px rgb(0 35 105 / 0.25);
}

.site-header.is-menu-open { background: #fff; }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { width: auto; height: 2.5rem; transition: height 0.35s; }
.logo__dark { display: none; }
.is-scrolled .logo__light,
.is-menu-open .logo__light,
.site-header--solid .logo__light,
.no-js .logo__light { display: none; }
.is-scrolled .logo__dark,
.is-menu-open .logo__dark,
.site-header--solid .logo__dark,
.no-js .logo__dark { display: block; }

/* Menylänkar med animerad understrykning */
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 3.4375rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  position: relative;
  display: block;
  padding-block: 0.25rem;
  color: rgb(255 255 255 / 0.85);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: color 0.3s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: #fff; }

.is-scrolled .site-nav a:not(.btn),
.site-header--solid .site-nav a:not(.btn),
.no-js .site-nav a:not(.btn) { color: var(--c-muted); }
.is-scrolled .site-nav a:not(.btn):hover,
.is-scrolled .site-nav a.is-active,
.site-header--solid .site-nav a:not(.btn):hover,
.no-js .site-nav a:not(.btn):hover { color: var(--c-primary); }
.is-scrolled .site-nav a:not(.btn)::after,
.site-header--solid .site-nav a:not(.btn)::after,
.no-js .site-nav a:not(.btn)::after { background: var(--c-primary-mid); }

.nav-cta-mobile { display: none; }

/* CTA-knapp: guld på blått, marinblå på vitt */
.header-cta { font-size: 1rem; }
.header-cta { display: none; background: var(--c-gold); color: var(--c-primary-dark); }
.header-cta:hover { background: #f7d88f; color: var(--c-primary-dark); }
.is-scrolled .header-cta,
.site-header--solid .header-cta,
.no-js .header-cta { background: var(--c-primary); color: #fff; }
.is-scrolled .header-cta:hover,
.site-header--solid .header-cta:hover,
.no-js .header-cta:hover { background: var(--c-primary-mid); color: #fff; }

.header-phone { display: none; }

/* Hamburgare: två streck som blir ett kryss */
.burger {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.35s, background-color 0.3s;
}
.burger span:first-child { top: 1.0625rem; }
.burger span:last-child { top: 1.5625rem; }
.is-scrolled .burger span,
.is-menu-open .burger span,
.site-header--solid .burger span { background: var(--c-primary); }
.burger[aria-expanded="true"] span:first-child { top: 1.3125rem; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 1.3125rem; transform: rotate(-45deg); }
.no-js .burger { display: none; }

/* Mobilmeny: svävande kort */
@media (max-width: 63.99em) {
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block;
    position: fixed;
    top: calc(var(--header-h) - 0.25rem);
    left: var(--sp-4);
    right: var(--sp-4);
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
    border-radius: 1.125rem;
    background: #fff;
    box-shadow: var(--shadow-lg);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open a:not(.btn) {
    padding: 0.875rem 0.5rem;
    color: var(--c-ink);
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--c-border);
  }
  .site-nav.is-open a:not(.btn)::after { display: none; }
  .site-nav.is-open a.is-active { color: var(--c-primary-mid); }
  .nav-cta-mobile { display: block; padding-top: var(--sp-4); }
  .nav-cta-mobile .btn { width: 100%; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
  .no-js .site-nav a:not(.btn) { border: 0; padding: 0.25rem 0; }
  .no-js .nav-cta-mobile { display: none; }
  .no-js .site-header__inner { flex-wrap: wrap; }
}

/* Brödsmulor */
.breadcrumbs { padding-top: var(--sp-5); font-size: var(--fs-sm); color: var(--c-on-dark); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: var(--sp-2); opacity: 0.5; }
.breadcrumbs a { color: #fff; }
.breadcrumbs a:hover { color: var(--c-gold); }

/* Kort */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-5);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--c-muted); }
.card > :last-child { margin-bottom: 0; }
.card__link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: var(--sp-2); }
.card__link .icon { width: 1.1em; height: 1.1em; transition: transform 0.15s; }
.card--service { transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.card--service:hover { border-color: var(--c-primary-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--service:hover .card__link .icon { transform: translateX(3px); }
.card__price {
  margin: var(--sp-2) 0 var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--c-border);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.card__price strong { font-size: 1.125rem; }

/* Kort där hela ytan är klickbar (länken sträcks ut) */
.card--service .card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--sp-4);
  border-radius: 1rem;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.icon-badge .icon { width: 1.875rem; height: 1.875rem; stroke-width: 1.6; }

/* Checklistor */
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--sp-3);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--c-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002369' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}

/* Rum-block (vad som ingår) */
.room { padding: var(--sp-6) var(--sp-5); border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); }
.room .checklist { margin-bottom: 0; }
.room .checklist li:last-child { margin-bottom: 0; }

/* Steg */
.steps { counter-reset: step; list-style: none; padding: 0; }
.step { position: relative; padding: var(--sp-6) var(--sp-5) var(--sp-5); background: #fff; border-radius: var(--radius); border: 1px solid var(--c-border); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
}
.step p { margin: 0; color: var(--c-muted); }

/* Faktaruta / info */
.note {
  padding: var(--sp-5) var(--sp-6);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--c-bg-soft);
}
.note > :last-child { margin-bottom: 0; }

/* FAQ (details/summary – fungerar utan JavaScript) */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.faq details[open] { border-color: #c4d1ec; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 var(--sp-5) var(--sp-4); }
.faq details > div > :last-child { margin-bottom: 0; }

/* Ortslista */
.areas { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; }
.areas li {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--c-border);
  font-weight: 600;
  color: var(--c-ink);
  font-size: var(--fs-sm);
}
.areas li.is-main { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* Glitter – dekorativa fyruddiga stjärnor som i logotypen */
.sparkle {
  position: absolute;
  width: var(--s, 1.5rem);
  height: var(--s, 1.5rem);
  background: var(--c, #fff);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  pointer-events: none;
  opacity: var(--o, 0.9);
}
@media (prefers-reduced-motion: no-preference) {
  .sparkle { animation: twinkle 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
  @keyframes twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: var(--o, 0.9); }
    50% { transform: scale(0.6) rotate(20deg); opacity: calc(var(--o, 0.9) * 0.35); }
  }
}

/* Positioner (CSP tillåter inga inline-stilar, därför klasser) */
.sparkle--1 { --s: 2.25rem; top: 12%; right: 8%; --d: 0s; }
.sparkle--2 { --s: 1rem; top: 26%; right: 20%; --d: 1.2s; --o: 0.7; }
.sparkle--3 { --s: 1.5rem; bottom: 18%; right: 4%; --d: 2.1s; --o: 0.6; }
.sparkle--4 { --s: 0.875rem; top: 16%; left: 46%; --d: 0.6s; --o: 0.5; }
.sparkle--5 { --s: 1.25rem; bottom: 12%; left: 6%; --d: 3s; --o: 0.45; }
.sparkle--card-a { --s: 2.5rem; top: -1.125rem; right: 1.75rem; }
.sparkle--card-b { --s: 1.125rem; top: 1.25rem; right: -0.5rem; --d: 1.5s; }
.sparkle--cta-a { --s: 2rem; top: 18%; left: 7%; --o: 0.5; }
.sparkle--cta-b { --s: 1.25rem; bottom: 20%; right: 9%; --d: 1.8s; --o: 0.6; --c: var(--c-gold); }
.sparkle--cta-c { --s: 0.875rem; top: 22%; right: 16%; --d: 0.9s; --o: 0.5; }

/* 5. Sektioner
   ------------------------------------------------------------------------ */

/* Hero – marinblå med glitter, ingen tung bild krävs */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--c-on-dark);
  background:
    radial-gradient(42rem 28rem at 105% -10%, rgb(29 63 150 / 0.75), transparent 65%),
    radial-gradient(34rem 26rem at -15% 115%, rgb(242 201 110 / 0.14), transparent 60%),
    linear-gradient(160deg, #002369 0%, #001a52 100%);
}
.hero h1,
.hero h2,
.page-hero h1 { color: #fff; }
.hero h1 em,
.page-hero h1 em { font-style: italic; color: var(--c-gold); font-weight: 480; }
.hero .eyebrow,
.page-hero .eyebrow { color: var(--c-gold); }
.hero a:not(.btn),
.page-hero a:not(.btn) { color: #fff; }

.hero { padding-block: calc(var(--header-h) + var(--sp-7)) var(--section-y); }
.hero__lead { font-size: var(--fs-lg); max-width: 36rem; }
.hero .btn-row { margin-block: var(--sp-5); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.hero__meta li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero__meta .icon { color: var(--c-gold); }
.hero .container,
.page-hero .container { position: relative; z-index: 1; }

/* Priskort i hero */
.price-card {
  position: relative;
  padding: var(--sp-6);
  background: #fff;
  color: var(--c-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.price-card h2 { font-family: var(--font); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary-mid); margin-bottom: var(--sp-3); }
.price-card a:not(.btn) { color: var(--c-primary-mid); }
.price-card .sparkle { --c: var(--c-gold); --o: 1; }
.price-card__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
.price-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  color: var(--c-primary);
  letter-spacing: -0.03em;
}
.price-card__unit { font-weight: 600; color: var(--c-muted); }
.price-card__rut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  background: var(--c-bg-warm);
  border: 1px solid #f1e0b3;
  font-size: var(--fs-sm);
}
.price-card__rut strong { font-size: 1.25rem; white-space: nowrap; }
.price-card .checklist { margin-bottom: var(--sp-5); font-size: var(--fs-sm); }
.price-card__contact { display: grid; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); }
.price-card__contact a { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; text-decoration: none; }

/* Sidhuvud för undersidor */
.page-hero { padding-block: var(--header-h) var(--sp-8); }
.site-header--solid + main { padding-top: var(--header-h); }
.page-hero h1 { max-width: 46rem; }
.page-hero .breadcrumbs { margin-bottom: var(--sp-6); }
.page-hero .hero__lead { margin-bottom: var(--sp-5); }
.page-hero .price-pill { margin-bottom: var(--sp-5); }

.price-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.22);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.price-pill strong { color: var(--c-gold); }

/* Förtroenderad under hero */
.trust { padding-block: var(--sp-5); border-bottom: 1px solid var(--c-border); background: #fff; }
.trust ul { display: grid; gap: var(--sp-3) var(--sp-5); list-style: none; padding: 0; margin: 0; }
.trust li { display: flex; align-items: center; gap: var(--sp-3); font-weight: 600; color: var(--c-ink); font-size: var(--fs-sm); }
.trust .icon { color: var(--c-primary-mid); width: 1.5rem; height: 1.5rem; }

/* Prosa (längre texter, t.ex. dataskyddspolicy) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--sp-7); font-size: 1.625rem; }
.prose .eyebrow + h2,
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-5); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--sp-2); }

/* RUT-ruta */
.rut {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: var(--c-bg-warm);
  border: 1px solid #f1e0b3;
}
.rut > :last-child { margin-bottom: 0; }
.rut .eyebrow { color: var(--c-gold-dark); }

/* Prisräknare */
.calc {
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
}
.calc h2,
.calc h3 { font-family: var(--font-display); font-size: 1.625rem; font-weight: 560; }
.calc__controls { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.calc__controls input[type="range"] { flex: 1; accent-color: var(--c-primary); min-height: 2.75rem; }
.calc__hours { min-width: 5.5rem; font-weight: 700; color: var(--c-ink); text-align: right; }
.calc__result { display: grid; gap: var(--sp-3); margin: 0; }
.calc__result > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); background: var(--c-bg-soft); }
.calc__result dt { font-weight: 600; }
.calc__result dd { margin: 0; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.calc__result .is-total { background: var(--c-primary); }
.calc__result .is-total dt,
.calc__result .is-total dd { color: #fff; }
.calc__result .is-total dd { font-size: 1.25rem; }

/* Stor pristabell */
.price-hero {
  display: grid;
  gap: var(--sp-5);
}
.price-box {
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  text-align: center;
}
.price-box--featured { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.price-box--featured h2,
.price-box--featured h3,
.price-box--featured .price-box__amount { color: #fff; }
.price-box__amount { font-family: var(--font-display); font-size: 3.25rem; font-weight: 600; line-height: 1.05; color: var(--c-primary); letter-spacing: -0.03em; margin-bottom: var(--sp-2); }
.price-box p:last-child { margin-bottom: 0; }

/* CTA-band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--sp-7) var(--sp-5);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgb(29 63 150 / 0.9), transparent 65%),
    var(--c-primary);
  color: var(--c-on-dark);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36rem; margin-inline: auto; margin-bottom: var(--sp-5); }
.cta-band .btn-row { justify-content: center; }
.cta-band > :not(.sparkle) { position: relative; }

/* Om Kata – citat */
.quote {
  margin-top: var(--sp-6);
  padding-left: var(--sp-5);
  border-left: 3px solid var(--c-gold);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--c-primary);
}
.quote-by { padding-left: var(--sp-5); font-weight: 600; color: var(--c-muted); }

/* Om oss – porträttplats */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(20rem 16rem at 80% 10%, rgb(29 63 150 / 0.9), transparent 70%),
    var(--c-primary);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portrait img { width: 70%; }
@media (max-width: 63.99em) { .portrait { display: none; } }

/* Footer */
.site-footer {
  padding-block: var(--sp-8) var(--sp-5);
  background: #00164a;
  color: #b9c6e4;
  font-size: var(--fs-sm);
}
.site-footer h2 { font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: #fff; margin-bottom: var(--sp-3); }
.site-footer a { color: #e3eaf9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer strong { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer .logo { margin-bottom: var(--sp-4); }
.site-footer .logo img { height: 2.75rem; }
.footer-grid { display: grid; gap: var(--sp-6); }
.footer-contact li { display: flex; align-items: center; gap: var(--sp-2); }
.footer-contact .icon { color: var(--c-gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.footer-bottom p { margin: 0; }

/* 404 */
.error-page { text-align: center; padding-block: var(--sp-8); }
.error-page__code { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 600; color: var(--c-primary); line-height: 1; margin-bottom: var(--sp-4); }
.error-page .btn-row { justify-content: center; }
.error-page .icon-badge { margin-inline: auto; }

/* 6. Formulär
   ------------------------------------------------------------------------ */
.form-card {
  padding: var(--sp-6) var(--sp-5);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.75rem; }
.form { display: grid; gap: var(--sp-5); }
.form-row { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label,
.field legend { font-weight: 700; color: var(--c-ink); }
.field .optional { font-weight: 400; color: var(--c-muted); }
.field-hint { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  font: inherit;
  color: var(--c-ink);
  background: #fff;
  border: 1.5px solid #b3c1de;
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid rgb(29 63 150 / 0.3); outline-offset: 0; border-color: var(--c-primary-mid); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.field-error:empty { display: none; }

.consent { display: flex; gap: var(--sp-3); align-items: flex-start; }
.consent input { width: 1.375rem; height: 1.375rem; margin-top: 0.15rem; flex: none; accent-color: var(--c-primary); }
.consent label { font-weight: 400; color: var(--c-text); }

/* Honeypot – dold för människor, synlig för enkla spambotar */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); font-weight: 600; }
.form-status:empty { display: none; }
.form-status--success { background: #dcfce7; color: var(--c-success); }
.form-status--error { background: #fee4e2; color: var(--c-error); }

/* Kontakt: formuläret i full bredd, uppgifter och orter under */
.contact-stack { display: grid; gap: var(--sp-7); }
.contact-stack .form-card { width: 100%; max-width: 54rem; }   /* ca 25 % smalare än containern */
.contact-below { display: grid; gap: var(--sp-6); }
@media (min-width: 48em) { .contact-below { grid-template-columns: 1fr 1.6fr; gap: var(--sp-8); } }
@media (min-width: 64em) { .form-card .form-row--3 { grid-template-columns: 1fr 1fr 1fr; } }

.contact-list { list-style: none; padding: 0; display: grid; gap: var(--sp-4); }
.contact-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.contact-list .icon-badge { margin: 0; width: 2.75rem; height: 2.75rem; }
.contact-list .icon-badge .icon { width: 1.4rem; height: 1.4rem; }
.contact-list strong { display: block; }

/* Tabell */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.table thead th { background: var(--c-bg-soft); color: var(--c-ink); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }

/* Faktalista (om oss) */
.facts dt { font-weight: 700; color: var(--c-ink); }
.facts dd { margin: 0 0 var(--sp-3); }
.facts dd:last-child { margin-bottom: 0; }

code { font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--c-bg-soft); }

/* Cookie-ruta */
.cookie-banner {
  position: fixed;
  z-index: 90;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: var(--sp-3);
  max-width: 34rem;
  margin-inline: auto;            /* centrerad horisontellt */
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -12px rgb(0 23 72 / 0.4);
  font-size: var(--fs-sm);
}
.cookie-banner__title { font-family: var(--font); font-size: 1.125rem; margin-bottom: var(--sp-2); }
.cookie-banner p { margin-bottom: var(--sp-4); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cookie-banner__actions .btn { flex: 1 1 auto; }
.cookie-settings { margin: 0 0 var(--sp-4); padding: 0; border: 0; display: grid; gap: var(--sp-3); }
.cookie-option { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3); border-radius: var(--radius-sm); background: var(--c-bg-soft); }
.cookie-option input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex: none; accent-color: var(--c-primary); }
.cookie-option label strong { display: block; }
.cookie-option label span { color: var(--c-muted); }

/* Knapp som ser ut som länk (t.ex. "Cookie-inställningar" i sidfoten) */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.site-footer .link-button { color: #e3eaf9; }
.site-footer .link-button:hover { color: #fff; text-decoration: underline; }

/* Tillbaka till toppen – visas när man har scrollat ner (main.js sätter .is-visible) */
.to-top {
  position: fixed;
  z-index: 45;
  right: var(--sp-4);
  bottom: calc(4.25rem + var(--sp-3) + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-primary-dark);
  box-shadow: 0 10px 24px -10px rgb(0 23 72 / 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background-color 0.2s;
}
.to-top .icon { width: 1.375rem; height: 1.375rem; stroke-width: 2.2; }
.to-top:hover { background: #f7d88f; color: var(--c-primary-dark); }
.to-top:focus-visible { outline-color: var(--c-primary-mid); }
.to-top.is-visible,
.no-js .to-top { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 64em) {
  .to-top { right: var(--sp-6); bottom: var(--sp-6); }
}

/* Mobil: fast ring/offert-rad längst ner */
.mobile-cta {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.97);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -8px 24px -12px rgb(0 23 72 / 0.25);
}
.mobile-cta .btn { min-height: 2.875rem; padding-inline: var(--sp-3); font-size: var(--fs-sm); }
body { padding-bottom: 4.25rem; }

/* 7. Hjälpklasser
   ------------------------------------------------------------------------ */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.lead { font-size: var(--fs-lg); color: var(--c-muted); }
.price-card .card__link { margin-top: 0; }
.price-card__rut { margin-bottom: var(--sp-4); }
.price-hero--stack { grid-template-columns: 1fr !important; }
/* Rubriknivå h2 med h3-utseende (t.ex. kort med egna rubriker) */
.h3-size { font-family: var(--font); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--sp-2); }
.mt-6 { margin-top: var(--sp-6); }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }

/* 8. Brytpunkter
   ------------------------------------------------------------------------ */
@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-card, .calc { padding: var(--sp-7) var(--sp-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: var(--sp-8) var(--sp-7); }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .price-hero { grid-template-columns: 1fr 1fr; }
  .logo img { height: 2.75rem; }
}

@media (min-width: 64em) {
  :root { --gutter: 2rem; --header-h: 5rem; }
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.15fr 1fr; gap: var(--sp-8); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--top { align-items: start; }
  .hero { padding-block: calc(var(--header-h) + var(--sp-8)) calc(var(--section-y) + 1rem); }
  .rut { grid-template-columns: 1fr 1fr; align-items: center; padding: var(--sp-7); }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }

  /* Desktop-meny */
  .burger { display: none; }
  .header-cta { display: inline-flex; }
  .logo img { height: 2.75rem; }
  .is-scrolled .logo img { height: 2.5rem; }
}

@media (min-width: 75em) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }
  .header-phone .icon { color: var(--c-gold); }
  .header-phone:hover { color: var(--c-gold); }
  .is-scrolled .header-phone,
  .site-header--solid .header-phone { color: var(--c-ink); }
  .is-scrolled .header-phone .icon,
  .site-header--solid .header-phone .icon { color: var(--c-primary-mid); }
  .is-scrolled .header-phone:hover,
  .site-header--solid .header-phone:hover { color: var(--c-primary-mid); }
}

@media print {
  .site-header, .site-footer, .cta-band, .skip-link, .mobile-cta, .sparkle, .progress, .to-top { display: none; }
  .hero, .page-hero { background: none; color: var(--c-text); }
  .hero h1, .page-hero h1 { color: var(--c-ink); }
}
