/* ==========================================================================
   Milana Trafikskola – designsystem
   Tokens -> bas -> layout -> komponenter -> sidor -> responsivt
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand:        #004A96;
  --brand-strong: #003A75;
  --brand-tint:   #E6EEF9;
  --accent:       #8A6B00;
  --accent-tint:  #FFF6D1;
  --gold:         #FCCD05;
  --gold-deep:    #E3B700;

  --ink:      #0A2440;
  --ink-soft: #2E4763;
  --muted:    #61748C;

  --bg:      #FBFCFE;
  --surface: #FFFFFF;
  --cream:   #EFF4FB;
  --line:    #DBE5F2;

  --shadow-sm: 0 1px 2px rgba(10, 36, 64, .06), 0 2px 6px rgba(10, 36, 64, .04);
  --shadow-md: 0 4px 10px rgba(10, 36, 64, .06), 0 14px 34px rgba(10, 36, 64, .07);
  --shadow-lg: 0 10px 24px rgba(10, 36, 64, .08), 0 30px 60px rgba(10, 36, 64, .10);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --container: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 7rem);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  .hero h1 em { background-image: linear-gradient(transparent 80%, rgba(252, 205, 5, .9) 80%); }

  :root {
    --brand:        #8CB8EC;
    --brand-strong: #AFD0F7;
    --brand-tint:   #13294A;
    --accent:       #FFD84D;
    --accent-tint:  #2B2410;
    --gold:         #FCCD05;
    --gold-deep:    #FCCD05;

    --ink:      #EDF3FA;
    --ink-soft: #C0CDDF;
    --muted:    #8B9BB3;

    --bg:      #071829;
    --surface: #0F2540;
    --cream:   #0C1F36;
    --line:    #23415F;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .34);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, .38);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .48);
  }
}

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

/* hidden-attributet måste slå igenom även på element som fått display via en
   klass – annars visas de ändå. Det var orsaken till att varukorgen låg kvar. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.14;
  letter-spacing: -.022em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.65rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25rem; color: var(--ink-soft); }
li { margin-bottom: .4em; }
strong { color: var(--ink); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream { background: var(--cream); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow--accent { background: var(--accent-tint); color: var(--accent); }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Knappar ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: #0A2440;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-soft); }

.btn--dark { --btn-bg: var(--brand); --btn-fg: #fff; }
.btn--navy { --btn-bg: #003A75; --btn-fg: #fff; }
.btn--light { --btn-bg: var(--gold); --btn-fg: #0A2440; }
.btn--sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name small {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { background: var(--cream); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--brand-tint); box-shadow: inset 0 -3px 0 var(--gold); }

.nav > .btn { display: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .16s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: relative; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 4px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Varukorg ---------- */
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.cart-link:hover { border-color: var(--ink-soft); color: var(--ink); }
.cart-link svg { width: 22px; height: 22px; }
.cart-link__count {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #0A2440;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1;
}


.btn.is-added { background: var(--accent-tint); color: var(--accent); border-color: transparent; }

.notice {
  display: flex;
  gap: .9rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  border-left-width: 4px;
  border-left-color: var(--gold);
  border-radius: var(--r-md);
  background: var(--accent-tint);
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: .15rem; }
.notice p { font-size: .97rem; color: var(--ink-soft); }
.notice strong { display: block; margin-bottom: .15rem; color: var(--ink); }

.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

.cart-table td { vertical-align: middle; }
.cart-table td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.cart-table td:last-child { text-align: right; }
.cart-table small { color: var(--muted); }

.cart-qty { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.cart-qty span { min-width: 1.6rem; text-align: center; font-weight: 700; color: var(--ink); }
.qty-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--brand); color: var(--brand); }
.cart-remove {
  border: 0; background: none; padding: .3rem;
  color: var(--muted); font: inherit; font-size: .88rem;
  text-decoration: underline; cursor: pointer;
}
.cart-remove:hover { color: var(--brand); }

.cart-summary {
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cart-summary h2 { font-size: 1.25rem; }
.cart-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; color: var(--ink-soft); font-size: .97rem; }
.cart-row--total {
  margin-top: .5rem; padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: 1.2rem; font-weight: 800; color: var(--ink);
}

.pay-methods { display: grid; gap: .6rem; margin: 1.35rem 0 1rem; }
.pay-method {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  opacity: .62;
  cursor: not-allowed;
}
.pay-method__mark {
  display: grid; place-items: center;
  width: 44px; height: 30px; flex: none;
  border-radius: 6px;
  font-size: .64rem; font-weight: 800; letter-spacing: .02em;
}
.pay-method__name { font-weight: 700; color: var(--ink); font-size: .97rem; }
.pay-method__soon {
  margin-left: auto;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -22%; right: -12%;
  width: min(760px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand-tint), transparent 70%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: .5em; }
.hero h1 em {
  font-style: normal;
  background-image: linear-gradient(transparent 66%, rgba(252, 205, 5, .55) 66%);
  background-repeat: no-repeat;
  padding-inline: .06em;
}
.hero__lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero__points {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  margin: 1.9rem 0 0; padding: 0; list-style: none;
}
.hero__points li {
  display: flex; align-items: center; gap: .5rem;
  margin: 0; font-size: .96rem; font-weight: 600; color: var(--ink-soft);
}
.hero__points svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--r-xl);
  width: 100%;
  box-shadow: var(--shadow-md);
}
.hero__badge {
  position: absolute;
  left: -7%; bottom: 3%;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero__badge strong { display: block; font-size: 1.22rem; line-height: 1.1; }
.hero__badge span { font-size: .82rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: .06em; font-size: .95rem; }

/* ---------- Trustbar ---------- */
.trustbar { border-block: 1px solid var(--line); background: var(--surface); }
.trustbar__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: center;
  gap: .85rem 1.5rem;
  padding-block: 1.15rem;
}
.trustbar__item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.trustbar__item svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ---------- Värderingar ---------- */
.values-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #002B57 0%, #003A75 55%, #00447F 100%);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.values-band::before,
.values-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 205, 5, .24), transparent 70%);
  pointer-events: none;
}
.values-band::before { width: 460px; aspect-ratio: 1; top: -46%; left: -8%; }
.values-band::after  { width: 380px; aspect-ratio: 1; bottom: -52%; right: -4%; }

.values-band__head {
  position: relative;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  max-width: 42rem;
  text-align: center;
  color: #fff;
}
.values-band__head h2 { color: #fff; margin-bottom: .35em; }
.values-band__head h2 em { font-style: normal; color: var(--gold); }
.values-band__head p { color: rgba(226, 235, 248, .78); }

.values {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
}
.value__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: .35rem;
  border-radius: 24px;
  color: var(--gold);
  background: rgba(252, 205, 5, .12);
  border: 1px solid rgba(252, 205, 5, .3);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.value__icon svg { width: 46px; height: 46px; }
.value strong {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.value small {
  color: rgba(226, 235, 248, .72);
  font-size: .9rem;
  line-height: 1.45;
  max-width: 17rem;
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: fit-content;
  max-width: 100%;
  margin: clamp(2.25rem, 4vw, 3.25rem) auto 0;
  padding: .85rem clamp(1.4rem, 4vw, 3rem);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0A2440;
  font-weight: 800;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  letter-spacing: .11em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.banner:hover { transform: translateY(-2px); color: #0A2440; box-shadow: 0 16px 36px rgba(0, 0, 0, .36); }
.banner svg { width: 24px; height: 24px; flex: none; }
.banner::before,
.banner::after {
  content: "";
  position: absolute;
  top: 0;
  border: 21px solid transparent;
}
.banner::before { left: -18px;  border-right-color: var(--gold-deep); border-left-width: 0; }
.banner::after  { right: -18px; border-left-color: var(--gold-deep);  border-right-width: 0; }

.illu {
  width: 100%;
  border-radius: var(--r-xl);
  background: #002B57;
}
@media (prefers-color-scheme: dark) {
  .illu { box-shadow: 0 0 0 1px var(--line); }
}

.road-divider { line-height: 0; background: var(--bg); }
.road-divider img { width: 100%; height: clamp(52px, 7vw, 96px); object-fit: cover; }

/* ---------- Kort ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .98rem; }
.card__icon {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand-strong);
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--accent { background: var(--accent-tint); color: var(--accent); }
.card p.card__price {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.card p.card__price small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.card__more {
  margin-top: 1rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
}
.card--link:hover .card__more { gap: .6rem; }
.card__more::after { content: "→"; transition: transform .2s ease; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Pris/paket ---------- */
.price-card { border-radius: var(--r-lg); }
.price-card--featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.price-card__tag {
  position: absolute;
  top: -.85rem; left: 50%;
  transform: translateX(-50%);
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--gold);
  color: #0A2440;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.card p.price-card__amount {
  margin: .25rem 0 1.25rem;
  font-size: clamp(1.9rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.card p.price-card__amount small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card__old {
  display: inline-block;
  margin-left: .5rem;
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600;
}
.feature-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .42rem 0;
  font-size: .97rem;
  color: var(--ink-soft);
}
.feature-list svg { width: 19px; height: 19px; flex: none; margin-top: .18rem; color: var(--accent); }
.price-card .btn { margin-top: auto; }

/* ---------- Pristabell ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 460px; }
caption { padding: 1.1rem 1.35rem 0; text-align: left; font-weight: 700; color: var(--ink); }
th, td { padding: .95rem 1.35rem; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
td { color: var(--ink-soft); }
td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--cream); }
td strong { color: var(--ink); }

/* ---------- Steg ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.steps li {
  position: relative;
  margin: 0;
  padding: 1.35rem 1.5rem 1.35rem 4.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.35rem; top: 1.3rem;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #0A2440;
  font-weight: 800;
  font-size: .98rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.steps p { font-size: .96rem; }

/* ---------- Team ---------- */
.person { text-align: center; }
.person img {
  width: 140px; height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}
.person h3 { margin-bottom: .1rem; font-size: 1.1rem; }
.person__role { font-size: .9rem; font-weight: 700; color: var(--brand); margin-bottom: .5rem; }
.person p { font-size: .95rem; }

/* ---------- Omdömen ---------- */
.quote {
  display: flex; flex-direction: column; gap: .9rem;
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; margin-top: auto; font-size: .9rem; color: var(--muted); }
.quote figcaption img { width: 40px; height: 40px; border-radius: 50%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .faq__body { padding: 0 1.35rem 1.25rem; }
.faq .faq__body p { font-size: .99rem; }

/* ---------- CTA-band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #002B57 0%, #003A75 55%, #00529E 100%);
  color: #fff;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -8%; top: -40%;
  width: 420px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,205,5,.36), transparent 68%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 40rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; position: relative; z-index: 1; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.info-list li { display: flex; gap: .9rem; margin: 0; }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: .2rem; }
.info-list strong { display: block; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-list a, .info-list span { font-size: 1.05rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--brand); }

.form h2 { font-size: clamp(1.25rem, 2vw, 1.45rem); }
.form { display: grid; gap: 1rem; padding: clamp(1.35rem, 2.6vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline-offset: 1px; }
.form__note { font-size: .85rem; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  background: var(--cream);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #003A75; color: #CFDDEE; padding-block: clamp(2.75rem, 6vw, 4.25rem) 2rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #04172B; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #CFDDEE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: rgba(207,221,238,.82); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-grid li { margin: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-brand svg { width: 36px; height: 36px; }
.pay { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.pay span {
  padding: .3rem .7rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
  color: rgba(207,221,238,.74);
}

/* ---------- Mobil call-bar ---------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; padding: .8rem 1rem; font-size: .95rem; }

/* ---------- Animationer ---------- */
/* Innehållet är alltid synligt. Entrén är en ren CSS-animation som spelas en gång
   vid sidladdning – går något fel med JavaScript påverkas läsbarheten inte alls. */
@keyframes stig-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero__text, .hero__media {
  animation: stig-in .7s cubic-bezier(.22, .61, .36, 1) both;
}
.hero__media { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero__text, .hero__media { animation: none; }
}

/* ---------- Responsivt ---------- */
@media (max-width: 1180px) {
  .nav { gap: .1rem; }
  .nav a { padding: .55rem .62rem; font-size: .94rem; }
  .header-actions .btn--ghost { display: none; }
}

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 560px; }
  .hero__badge { left: auto; right: 4%; bottom: 4%; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); row-gap: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions .btn { display: none; }

  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: 1rem var(--gutter) 1.6rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .85rem .75rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav > .btn { display: inline-flex; margin-top: 1rem; }
  .nav .btn a { border: 0; }

  .callbar { display: flex; }
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero__badge { position: static; margin-top: 1rem; display: inline-flex; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .banner { letter-spacing: .06em; }
  .banner::before, .banner::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .trustbar__inner { justify-content: flex-start; }
}

@media print {
  .site-header, .callbar, .cta-band, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
