/* ==========================================================================
   Haninge Fordon – exklusiv, mörk fordonsdesign
   Palett: kolsvart + champagneguld + varmvit
   ========================================================================== */

:root {
  /* Modern engelsk pub: djup flaskgrön, mässing, gräddvit, läder */
  --ink:        #0e1a15;   /* djup grön-svart bakgrund */
  --ink-2:      #142420;   /* paneler */
  --ink-3:      #1a302a;   /* kort / upphöjda ytor */
  --ink-4:      #22403a;   /* hover / accentyta */
  --line:       #2d453e;   /* hårfina linjer (grön-grå) */
  --gold:       #c69a54;   /* mässing */
  --gold-2:     #e6c887;   /* ljus mässing/guld */
  --gold-soft:  rgba(198,154,84,.15);
  --wine:       #7d3b3f;   /* oxblod – sekundär accent */
  --wine-soft:  rgba(125,59,63,.18);
  --paper:      #f3ecdd;   /* gräddvit text */
  --muted:      #a9b6a8;   /* salviagrå */
  --muted-2:    #74857a;
  --white:      #ffffff;
  --radius:     10px;
  --radius-lg:  18px;
  --radius-xl:  26px;
  --maxw:       1220px;
  --ease:       cubic-bezier(.2,.7,.2,1);
  --shadow:     0 30px 70px -32px rgba(0,0,0,.9);
  --shadow-sm:  0 12px 30px -18px rgba(0,0,0,.75);
  --serif:      'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 700px at 82% -8%, rgba(198,154,84,.08), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(125,59,63,.09), transparent 55%);
  background-repeat: no-repeat;
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1.1em; color: var(--muted); }
p.lead { font-size: 1.2rem; color: var(--paper); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: .6em 1em; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Guld-etiketter ovanför rubriker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .8; }

/* ---------- Knappar ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.8em; font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg); border-radius: var(--radius);
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--gold-2); border-color: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--paper); }
.btn-lg { padding: 1.1em 2.4em; font-size: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,26,21,.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.scrolled { background: rgba(14,26,21,.94); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 18px; }
.brand img { height: 54px; width: auto; display: block; }

.primary-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: nowrap; }
.primary-nav > ul { display: flex; flex-wrap: nowrap; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; font-size: .86rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  color: var(--paper); padding-block: .4em; transition: color .3s var(--ease);
}
.nav-cta { white-space: nowrap; padding: .7em 1.2em; font-size: .82rem; }
/* Telefonknappen visas bara när det finns gott om plats – annars enbart menyn */
@media (max-width: 1240px) and (min-width: 901px) {
  .primary-nav { gap: 1.1rem; }
  .primary-nav > ul { gap: 1.1rem; }
  .primary-nav a { font-size: .82rem; }
  .nav-cta { display: none; }
}
.primary-nav > ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold);
  transition: width .35s var(--ease);
}
.primary-nav > ul a:hover, .primary-nav > ul a[aria-current] { color: var(--gold-2); }
.primary-nav > ul a:hover::after, .primary-nav > ul a[aria-current]::after { width: 100%; }
.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; background: var(--paper); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ---------- Språkväljare ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45em;
  padding: .5em .8em; border: 1px solid var(--line); border-radius: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em; color: var(--paper);
  transition: border-color .3s var(--ease);
}
.lang-switch summary::-webkit-details-marker,
.lang-switch summary::marker { display: none; content: ""; }
.lang-switch summary::after { content: "▾"; font-size: .8em; color: var(--muted); }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--gold); }
.lang-switch .flag { font-size: 1.05em; line-height: 1; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); list-style: none; margin: 0; padding: .4rem; z-index: 200;
}
.lang-menu li { width: 100%; }
.lang-menu a { display: flex; align-items: center; gap: .6em; padding: .62em .8em; border-radius: 8px; font-size: .92rem; color: var(--paper); }
.lang-menu a:hover { background: var(--gold-soft); color: var(--gold-2); }
.lang-menu a[aria-current] { color: var(--gold-2); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1200px 600px at 75% 15%, rgba(198,161,91,.12), transparent 60%),
    linear-gradient(90deg, rgba(14,26,21,.96) 0%, rgba(14,26,21,.82) 42%, rgba(14,26,21,.4) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: 8vh; }
.hero-content { max-width: 720px; }
.hero h1 { margin-bottom: .3em; }
.hero h1 .thin { color: var(--gold-2); font-style: italic; font-weight: 500; }
.hero p.lead { max-width: 560px; margin-bottom: 2.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.6rem; margin-top: 3.5rem;
  padding-top: 2.2rem; border-top: 1px solid var(--line);
}
.hero-stats .stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--paper); line-height: 1; }
.hero-stats .stat span { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Sektioner ---------- */
section { position: relative; }
.section { padding-block: clamp(70px, 10vw, 130px); }
.section-head { max-width: 680px; margin-bottom: 3.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-alt { background: var(--ink-2); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- USP / tjänster ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pillar {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem 1.7rem; transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); border-color: var(--gold); background: var(--ink-4); box-shadow: var(--shadow-sm); }
.pillar .ico { width: 52px; height: 52px; color: var(--gold); margin-bottom: 1.4rem; }
.pillar h3 { margin-bottom: .5rem; }
.pillar p { margin: 0; font-size: .98rem; }
.pillar a.more { display: inline-block; margin-top: 1.2rem; color: var(--gold-2); font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; }
.pillar a.more::after { content: " →"; }

/* ---------- Bil-rutnät ---------- */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.car-card {
  position: relative; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.car-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.car-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.car-card:hover .car-media img { transform: scale(1.05); }
.car-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(14,26,21,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--gold-2);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  padding: .4em .8em; border-radius: 6px; border: 1px solid var(--line);
}
.car-month-badge {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: var(--gold); color: #1a130a;
  font-size: .74rem; font-weight: 700;
  padding: .42em .8em; border-radius: 6px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.7); white-space: nowrap;
}
/* "SÅLD"-band – rött diagonalt band i hörnet av bilden */
.sold-ribbon {
  position: absolute; top: 20px; left: -52px; z-index: 4; width: 190px;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #b22730, #7d1620);
  color: #fff; text-align: center; font-family: var(--sans); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; padding: .5em 0;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.55); border-top: 1px solid rgba(255,255,255,.25);
}
.car-media .sold-ribbon { top: 16px; left: -54px; width: 180px; font-size: .74rem; }
.car-card.is-sold .car-media::after { content: ""; position: absolute; inset: 0; background: rgba(10,20,16,.35); z-index: 2; }
.car-card.is-sold .car-media img { filter: grayscale(.35) brightness(.82); }
.gallery-main.is-sold img { filter: grayscale(.3) brightness(.85); }
.gallery-main.is-sold::after { content: ""; position: absolute; inset: 0; background: rgba(10,20,16,.28); z-index: 1; }
.sold-card { border-color: rgba(178,39,48,.6); }
.sold-tag { display: inline-block; background: linear-gradient(135deg,#b22730,#7d1620); color: #fff; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; padding: .4em 1em; border-radius: 6px; }
.sold-card h3 { color: var(--paper); }
.sold-card .btn { width: 100%; margin-bottom: .7rem; }

.car-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.car-title { font-family: var(--serif); font-size: 1.42rem; color: var(--paper); margin-bottom: .1rem; line-height: 1.15; }
.car-spec { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.car-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .8rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.car-facts span { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-facts span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.car-price { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-2); }
.btn-see {
  flex: 0 0 auto; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--paper); background: transparent; border: 1px solid var(--line); border-radius: 8px;
  padding: .55em 1em; transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.car-card:hover .btn-see { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* ---------- Filterfält ---------- */
.filters {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem; margin-bottom: 2.4rem;
}
.filters form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; align-items: end; }
.field label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .45rem; }
.field select, .field input {
  width: 100%; padding: .7em .8em; background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: .92rem;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); }
.filters .actions { display: flex; gap: .6rem; }
.result-count { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.result-count strong { color: var(--paper); }

/* ---------- Enskild bil ---------- */
.car-hero { padding-top: 2.4rem; }
.breadcrumbs { font-size: .82rem; color: var(--muted-2); margin-bottom: 1.4rem; }
.breadcrumbs a:hover { color: var(--gold-2); }
.car-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--ink-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .6rem; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16/10; background: var(--ink-2); }
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.car-aside { position: sticky; top: 100px; }
.price-card { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.price-card .price { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-2); line-height: 1; margin-bottom: .3rem; }
.price-card .vat { font-size: .82rem; color: var(--muted-2); margin-bottom: 1.5rem; }
.price-card .btn { width: 100%; margin-bottom: .7rem; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85em 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table th { color: var(--muted-2); font-weight: 400; }
.spec-table td { color: var(--paper); text-align: right; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; background: var(--ink-2); border: 1px solid var(--line); border-radius: 40px; font-size: .84rem; color: var(--muted); }
.chip strong { color: var(--paper); font-weight: 600; }

/* ---------- Info-rader / verkstad ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split .media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--ink-2); }
.split .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.check-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .9rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--paper); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px;
  background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 50%;
}
.check-list li::after { content: ""; position: absolute; left: 6px; top: .62em; width: 5px; height: 9px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.service:hover { border-color: var(--gold); transform: translateY(-4px); }
.service .ico { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1rem; }
.service h3 { font-size: 1.2rem; }
.service p { font-size: .92rem; margin: 0; }

/* ---------- Garantinivåer ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tier { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; display: flex; flex-direction: column; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.tier:hover { border-color: var(--gold); transform: translateY(-4px); }
.tier h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.tier p { font-size: .9rem; flex: 1; }
.tier-badge { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tier-badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-2); }
.tier-badge span { font-size: .82rem; color: var(--muted-2); }

/* ---------- CTA-band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #2a2012, var(--ink-2) 60%); border-block: 1px solid var(--line); }
.cta-band .wrap { padding-block: clamp(60px, 8vw, 96px); text-align: center; position: relative; z-index: 2; }
.cta-band h2 { max-width: 720px; margin-inline: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Formulär ---------- */
.form-card { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.8rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .85em 1em; background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: .82rem; color: var(--muted-2); }

/* Stjärnbetyg + Reco-omdömen */
.rating-stars { position: relative; display: inline-block; line-height: 1; font-size: 1.05em; color: #3a4a44; }
.rating-stars::before { content: "★★★★★"; letter-spacing: 2px; }
.rating-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #e6b84a; }
.rating-stars-fill::before { content: "★★★★★"; letter-spacing: 2px; }
.reco-pill { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.2rem; padding: .5em 1em;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 40px; color: var(--paper); font-size: .92rem; }
.reco-pill:hover { border-color: var(--gold); }
.reco-pill strong { color: var(--gold-2); }
.reco-pill .reco-logo { font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.review-card { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.review-card .r-top { display: flex; justify-content: space-between; align-items: center; }
.review-card .r-author { font-weight: 600; color: var(--paper); }
.review-card .r-text { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.review-card .r-date { color: var(--muted-2); font-size: .8rem; }
.reco-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.reco-head .big { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-2); line-height: 1; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Enhetliga formulärkontroller i alla webbläsare (select-pil, kryssrutor) */
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); }
.field select, .form-group select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%23c69a54' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center;
}
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.notice { padding: 1em 1.2em; border-radius: var(--radius); border: 1px solid var(--gold); background: var(--gold-soft); color: var(--paper); margin-bottom: 1.4rem; }

/* ---------- Kontakt-rutnät ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list .ico { width: 24px; height: 24px; color: var(--gold); flex: none; margin-top: 3px; }
.info-list strong { display: block; color: var(--paper); }
.info-list span { color: var(--muted); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.2) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: #0a1410; border-top: 1px solid var(--line); padding-top: clamp(50px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.2fr; gap: 2.4rem; padding-bottom: 3rem; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.footer-col h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-col a:hover { color: var(--gold-2); }
.footer-col address { font-style: normal; color: var(--muted); line-height: 1.9; }
.hours { }
.hours li { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); white-space: nowrap; }
.hours li span:first-child { white-space: nowrap; }
.hours li span:last-child { color: var(--paper); white-space: nowrap; }
.social { display: flex; gap: 1rem; margin-top: 1.2rem; }
.social a { font-size: .85rem; color: var(--muted); }
.social a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-block: 1.8rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: .82rem; color: var(--muted-2); }

/* ---------- Diverse ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
/* Honeypot / skärmläsardolt utan att påverka layout (ingen horisontell scroll) */
.hp { 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; }
.mt-lg { margin-top: 2.4rem; }

/* ---------- Animation vid scroll ---------- */
/* Reveal endast när JS är aktivt – annars alltid synligt (ingen dold text) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Finansieringskalkyl
   ========================================================================== */
.calc-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.6rem; align-items: stretch; margin-bottom: 1.6rem; }

/* Vänster: reglagepanel – fyller samma höjd som resultatet */
.calc-inputs {
  min-width: 0;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: space-around; gap: 1.6rem;
}
.slider-group { }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.sl-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sl-val { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); white-space: nowrap; }
.slider-scale { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .74rem; color: var(--muted-2); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--line); border-radius: 6px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); cursor: pointer; border: 3px solid var(--ink-3); box-shadow: 0 3px 10px rgba(0,0,0,.6);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold); cursor: pointer; border: 3px solid var(--ink-3);
}

/* Höger: resultat */
.calc-result {
  min-width: 0;
  background: linear-gradient(160deg, #2a2012, var(--ink-3));
  border: 1px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem;
}
.calc-result .plabel { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .3rem; }
.calc-monthly { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 3.8rem); color: var(--gold-2); line-height: 1; margin-bottom: 1.4rem; }
.calc-monthly small { font-size: .28em; color: var(--muted); }
.calc-facts { list-style: none; padding: 0; margin: 0; }
.calc-facts li { display: flex; justify-content: space-between; padding: .6em 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.calc-facts li span { color: var(--muted); }
.calc-facts li strong { color: var(--paper); }

/* Konsumentkreditvarning */
.credit-warning {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--wine-soft); border: 1px solid rgba(125,59,63,.5); border-left: 4px solid var(--wine);
  border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; margin-bottom: 1.6rem;
}
.credit-warning .cw-ico { width: 40px; height: 40px; color: #d9686c; flex: 0 0 40px; margin-top: 2px; }
.credit-warning strong { display: block; color: var(--paper); font-size: 1.05rem; margin-bottom: .3rem; }
.credit-warning p { margin: 0 0 .4rem; font-size: .92rem; color: var(--muted); }
.credit-warning a { color: var(--gold-2); text-decoration: underline; }
.credit-warning .cw-law { margin: 0; }

.rep-example { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.4rem); }
.rep-example h2 { font-size: 1.5rem; }

/* ==========================================================================
   Värderingsverktyg ("Värdera din bil")
   ========================================================================== */
.valuation-wrap { max-width: 840px; }

.v-steps { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: .6rem; margin-bottom: 2.4rem; }
.v-steps .s { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--muted-2); min-width: 0; }
.v-steps .s .n {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--muted-2); font-weight: 600; flex: 0 0 auto;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.v-steps .s.active .n, .v-steps .s.done .n { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); }
.v-steps .s.active { color: var(--paper); }
.v-steps .s .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.v-step { animation: vfade .5s var(--ease); }
@keyframes vfade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.v-step[hidden] { display: none; }
.v-step h2 { font-size: 1.9rem; }

/* Registreringsskylt */
.regplate {
  display: flex; align-items: stretch; width: 100%; max-width: 360px; height: 68px;
  margin: 1.6rem auto 1rem; border: 2px solid #d9d4c7; border-radius: 8px;
  overflow: hidden; background: #ffffff; box-shadow: 0 10px 30px -12px rgba(0,0,0,.7);
}
.regplate .eu {
  background: #0b3aa8; color: #fff; width: 48px; flex: 0 0 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: .72rem; font-weight: 700;
}
.regplate .eu .stars { color: #ffcc00; font-size: .8rem; line-height: 1; }
.regplate input {
  flex: 1 1 auto; width: 100%; border: 0; background: #ffffff; color: #0d0f12;
  font-family: 'Inter', Arial, sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: .1em;
  text-align: center; text-transform: uppercase; padding: 0 .2em; min-width: 0;
}
.regplate input:focus { outline: none; }
.regplate input::placeholder { color: #b9bcc4; }

.v-hint { text-align: center; color: var(--muted-2); font-size: .88rem; }
.v-error { color: #e58; text-align: center; margin: 1rem 0 0; min-height: 1.2em; }

/* Bekräfta fordon */
.vehicle-confirm {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; margin: 1.4rem 0;
}
.vehicle-confirm .vh { font-family: var(--serif); font-size: 2rem; color: var(--paper); margin: 0 0 1rem; }
.vehicle-confirm .vgrid { display: flex; flex-wrap: wrap; gap: .6rem; }
.vehicle-confirm .vgrid .chip strong { color: var(--gold-2); }

.v-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
/* Basis 200px → knapparna ligger bredvid varandra när det får plats,
   annars radbryts de till full bredd (så lång knapptext aldrig svämmar över) */
.v-actions .btn { flex: 1 1 200px; }

/* Skickfrågor */
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg label {
  flex: 1; min-width: 90px; text-align: center; padding: .7em .6em; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .9rem; color: var(--muted); transition: all .25s var(--ease); text-transform: none; letter-spacing: 0;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
/* .on sätts av JS (fungerar i alla webbläsare) */
.seg label.on { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); }
/* :has() som progressiv förbättring i egen regel (får ej dra ner .on-regeln) */
.seg label:has(input:checked) { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); }

/* Dropzone för skadebilder */
.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: 2rem 1.4rem; text-align: center;
  cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease); background: var(--ink-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: var(--gold-soft); }
.dropzone .di { width: 40px; height: 40px; color: var(--gold); margin: 0 auto .6rem; }
.dropzone p { margin: 0; color: var(--muted); font-size: .92rem; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); gap: .6rem; margin-top: 1rem; }
.previews .pv { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.previews .pv img { width: 100%; height: 100%; object-fit: cover; }
.previews .pv button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.damage-block { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* Samtycke */
.consent-row { display: flex; gap: .7rem; align-items: flex-start; margin: 1.2rem 0; font-size: .92rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent-row input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--gold); }

/* GDPR-popup */
.gdpr-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.4rem;
  background: rgba(6,12,9,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gdpr-modal[hidden] { display: none; }
.gdpr-box { background: var(--ink-3); border: 1px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.2rem); max-width: 480px; box-shadow: var(--shadow); }
.gdpr-box h3 { font-size: 1.4rem; }
.gdpr-box p { color: var(--muted); font-size: .95rem; }

/* Skadediagram */
.damage-diagram-wrap { display: flex; justify-content: center; margin-top: .6rem; }
.damage-diagram { width: 200px; max-width: 60%; height: auto; }
.damage-diagram .zone rect { fill: transparent; stroke: var(--line); stroke-width: 1.2; cursor: pointer; transition: fill .2s var(--ease); }
.damage-diagram .zone text { fill: var(--muted); font-size: 11px; text-anchor: middle; pointer-events: none; font-family: var(--sans); }
.damage-diagram .zone:hover rect { fill: var(--gold-soft); }
.damage-diagram .zone.marked rect { fill: rgba(200,60,60,.45); stroke: #e55; }
.damage-diagram .zone.marked text { fill: #fff; }

/* Resultat */
.price-result {
  text-align: center; background: linear-gradient(160deg, #2a2012, var(--ink-3));
  border: 1px solid var(--gold); border-radius: var(--radius-lg); padding: 2.6rem 1.6rem; margin-bottom: 1.6rem;
}
.price-result .plabel { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.price-result .span { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--gold-2); line-height: 1.1; margin: .3rem 0; }
.price-result .span small { color: var(--muted-2); font-size: .4em; }
.price-result .mid { color: var(--paper); font-size: 1rem; }
.confidence { display: inline-flex; align-items: center; gap: .5em; margin-top: 1rem; font-size: .82rem; color: var(--muted); }
.confidence .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

.adjustments { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.4rem 0; }
.adjustments .chip.pos { border-color: rgba(120,200,120,.4); }
.adjustments .chip.neg { border-color: rgba(220,120,120,.4); }
.v-disclaimer { font-size: .82rem; color: var(--muted-2); text-align: center; max-width: 560px; margin: 0 auto 1.6rem; }

.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
.btn-ghost .spinner { border-top-color: var(--gold-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Responsivt
   ========================================================================== */
/* Sticky-kolumn endast på stora skärmar (undviker att text lägger sig över formulär på mobil) */
.sticky-desktop { position: sticky; top: 100px; }

@media (max-width: 1000px) {
  .pillars, .car-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .car-detail, .split, .contact-grid, .calc-grid { grid-template-columns: 1fr; }
  .car-aside, .sticky-desktop { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters form { grid-template-columns: repeat(3, 1fr); }
}

/* Bakgrundsöverlagring bakom mobilmenyn (döljs på desktop) */
.nav-backdrop { display: none; }

/* Hamburgermeny (surfplatta och mindre) */
@media (max-width: 900px) {
  .nav-toggle { display: flex; z-index: 95; }

  /* Overlay – display-toggle (robust, ingen visibility-transition) */
  .nav-backdrop {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 88;
    background: rgba(6, 12, 9, .62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  .nav-backdrop.show { display: block; }

  /* Lådan – explicit full höjd (inte inset-shorthand) */
  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(86vw, 360px); max-width: 100%; height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 6.5rem 1.8rem 2rem; background: var(--ink-2); border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.85);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 90;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; gap: 0; width: 100%; }
  .primary-nav > ul li { width: 100%; border-bottom: 1px solid var(--line); }
  .primary-nav > ul a { display: block; font-size: 1.08rem; padding: .95em 0; white-space: normal; }
  .primary-nav > ul a::after { display: none; }
  .nav-cta { display: inline-flex; width: 100%; margin-top: 1.4rem; order: 3; }
  /* Språkväljare inline i lådan (ingen svävande dropdown) */
  .lang-switch { width: 100%; margin-top: 1.2rem; }
  .lang-switch summary { width: 100%; justify-content: center; padding: .8em; font-size: .95rem; }
  .lang-menu { position: static; min-width: 0; margin-top: .5rem; box-shadow: none; background: transparent; border-color: transparent; padding: 0; }
  .lang-menu a { padding: .8em .4em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .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); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .pillars, .car-grid, .service-grid, .filters form, .form-row, .footer-grid, .v-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
  .hero-stats { gap: 1.6rem; }
  .hero-stats .stat strong { font-size: 1.9rem; }
  .v-steps { justify-content: center; gap: 1.25rem; }
  .v-steps .s { flex: 0 0 auto; }
  .v-steps .lbl { display: none; }
  .v-actions .btn { min-width: 0; }
  .sl-val { font-size: 1.4rem; }
  .slider-head { flex-wrap: wrap; gap: .2rem .8rem; }
}
