/* ==========================================================================
   Ribic Motorer AB — stilmall
   Palett: nattsvart verkstad + mässingsguld från originalloggan
   ========================================================================== */

/* --- Typsnitt (självhostade, inga externa anrop) ------------------------- */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* --- Designtokens ------------------------------------------------------- */
:root {
  --bg:            #0b0c0e;
  --bg-alt:        #101215;
  --surface:       #16191d;
  --surface-2:     #1d2126;
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .18);

  --ink:           #f4f5f7;
  --ink-soft:      #c3c8d0;
  --ink-muted:     #8b929c;

  --accent:        #ea5b20;
  --accent-bright: #ff7a45;
  --accent-dim:    rgba(234, 91, 32, .15);
  /* Röd för "stängt". Medvetet dragen mot karmosin i stället för tegel, så
     den inte förväxlas med accentorangen som ligger strax intill på sidan. */
  --signal:        #e01b22;
  --go:            #35c07a;

  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --wrap: 1200px;
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .85);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Grundläggande ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

::selection { background: var(--accent); color: #190c05; }

.wrap {
  width: min(100% - var(--pad) * 2, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #190c05; padding: .75rem 1.25rem;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* --- Återkommande beståndsdelar ----------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--body);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.15rem;
}
.eyebrow::before {
  content: ''; width: 34px; height: 2px; background: var(--accent); flex: none;
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head h2 { font-size: clamp(2.35rem, 6vw, 4rem); }
.section-head p {
  color: var(--ink-soft); margin-top: 1.1rem; font-size: 1.05rem;
}

.btn {
  --btn-bg: var(--accent);
  --btn-ink: #190c05;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s;
  will-change: transform;
}
.btn:hover { background: var(--accent-bright); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--accent); }

.btn--block { width: 100%; }

/* Däckspår som avdelare. Två rader klackar som lutar mot varandra, med ett
   spår längs mitten och längs kanterna – som mönstret på ett riktigt däck. */
.tiretrack {
  position: relative;
  height: 34px;
  background-color: #0d0f12;
  /* Tre rader klackar som lutar omväxlande åt var sitt håll – tillsammans
     bildar de sicksacken i ett riktningsmönstrat däck. */
  background-image:
    repeating-linear-gradient(76deg, rgba(255, 255, 255, .16) 0 17px, transparent 17px 30px),
    repeating-linear-gradient(104deg, rgba(255, 255, 255, .16) 0 17px, transparent 17px 30px),
    repeating-linear-gradient(76deg, rgba(255, 255, 255, .16) 0 17px, transparent 17px 30px);
  background-size: 100% 33.4%;
  background-position: 0 0, 0 50%, 0 100%;
  background-repeat: repeat-x;
  overflow: hidden;
}
/* Spåren mellan raderna, plus kanterna på däcket. */
.tiretrack::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, .85) 0 2px,
    transparent 2px 32%, rgba(0, 0, 0, .85) 32% 35%,
    transparent 35% 65%, rgba(0, 0, 0, .85) 65% 68%,
    transparent 68% calc(100% - 2px),
    rgba(0, 0, 0, .85) calc(100% - 2px) 100%);
}
/* Mjuk avtoning i kanterna så spåret ser ut att rulla in i och ut ur sidan. */
.tiretrack::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    var(--bg) 0, transparent 7%, transparent 93%, var(--bg) 100%);
}

@media (max-width: 560px) {
  .tiretrack { height: 26px; }
}

/* --- Sidhuvud ----------------------------------------------------------- */
.topbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-muted);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 42px; flex-wrap: wrap;
}
.topbar a:hover { color: var(--accent); }
.topbar__list { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.status__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink-muted); flex: none;
}
.status.is-open  { color: var(--go); }
.status.is-open .status__dot  { background: var(--go); box-shadow: 0 0 0 3px rgba(53, 192, 122, .18); }
.status.is-closed { color: var(--ink-soft); }
.status.is-closed .status__dot { background: var(--signal); box-shadow: 0 0 0 3px rgba(224, 27, 34, .2); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 12, 14, .78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(11, 12, 14, .94);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { width: 81px; height: 44px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: .03em; text-transform: uppercase;
}
.brand__sub {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-top: .28rem; font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  padding: .3rem 0; transition: color .18s;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current='page']::after { width: 100%; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(9, 10, 12, .96) 0%, rgba(9, 10, 12, .92) 46%, rgba(9, 10, 12, .45) 80%, rgba(9, 10, 12, .6) 100%),
    linear-gradient(to top, rgba(9, 10, 12, .95) 0%, rgba(9, 10, 12, 0) 45%);
}
.hero__inner {
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3rem, 7vw, 5rem);
  max-width: 46rem;
}
.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 4.1rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  display: block;
}
.hero__lead {
  font-size: clamp(1rem, .96rem + .22vw, 1.12rem);
  color: var(--ink-soft); max-width: 48ch; margin-bottom: 1.9rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.5rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem;
  padding-top: 1.9rem; border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: .75rem; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.trust-item strong {
  display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1;
  letter-spacing: .02em;
}
.trust-item span { font-size: .78rem; color: var(--ink-muted); letter-spacing: .04em; }

/* --- Snabbfakta --------------------------------------------------------- */
.quickbar { background: var(--surface); border-block: 1px solid var(--line); }
.quickbar__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.quickbar__cell {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.6rem clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}
.quickbar__cell:last-child { border-right: 0; }
.quickbar__cell svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 2px; }
.quickbar__cell h3 {
  font-family: var(--body); font-size: .72rem; letter-spacing: .18em;
  color: var(--ink-muted); font-weight: 700; margin-bottom: .3rem;
}
.quickbar__cell p { font-size: .97rem; color: var(--ink); line-height: 1.45; }
.quickbar__cell a:hover { color: var(--accent); }

/* --- Sektionsramverk ---------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }

/* --- Tjänster ----------------------------------------------------------- */
.services {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.service {
  position: relative; background: var(--bg-alt);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  transition: background-color .25s;
}
.service::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.service:hover { background: var(--surface-2); }
.service:hover::before { width: 100%; }
.service__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--accent-dim); color: var(--accent);
  margin-bottom: 1.25rem;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.55rem; margin-bottom: .6rem; }
.service p { color: var(--ink-muted); font-size: .95rem; line-height: 1.6; }
.service ul {
  list-style: none; margin: 1rem 0 0; padding: 0;
  font-size: .89rem; color: var(--ink-soft);
}
.service li { padding-left: 1.15rem; position: relative; margin-bottom: .3rem; }
.service li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 1px; background: var(--accent);
}

/* --- Omdömen ------------------------------------------------------------ */
.rating-panel {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: start;
}
.rating-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  text-align: center;
  box-shadow: var(--shadow);
  position: sticky; top: 100px;
}
.rating-card__google {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem;
}
.rating-card__google svg { width: 18px; height: 18px; }
.rating-card__score {
  font-family: var(--display); font-size: 5.4rem; line-height: .85;
  color: var(--accent); letter-spacing: -.01em;
}
.rating-card__of { font-size: 1rem; color: var(--ink-muted); margin-top: .5rem; }
.stars { display: inline-flex; gap: .2rem; margin: .9rem 0 .35rem; }
.stars svg { width: 22px; height: 22px; color: var(--accent); }
.rating-card__count { font-size: .88rem; color: var(--ink-muted); }
.rating-card .btn { margin-top: 1.5rem; }

.reviews {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.review {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: border-color .25s, transform .25s var(--ease);
}
.review:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.review .stars svg { width: 15px; height: 15px; }
.review .stars { margin: 0; }
.review blockquote {
  margin: 0; font-size: .97rem; color: var(--ink-soft); line-height: 1.62;
}
.review figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.review__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent);
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em;
  border: 1px solid var(--line-strong);
}
.review__name { font-weight: 600; font-size: .92rem; }
.review__meta { font-size: .78rem; color: var(--ink-muted); }

/* --- Bildspel ----------------------------------------------------------- */
/* 720 px är ungefär bildernas egen upplösning – större än så börjar de skala
   upp och tappa skärpa. */
.slideshow { position: relative; max-width: 720px; margin-inline: auto; }

.slideshow__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Rullningen styrs från JS (scrollTo med behavior) – sätts den till smooth
     här går det inte att göra ett direkt hopp vid varvningen. */
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.slideshow__track::-webkit-scrollbar { display: none; }

.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 3 / 2; margin: 0; overflow: hidden;
}
.slide img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.95);
}

/* Stående bilder fyller inte en liggande ruta. I stället visas hela bilden
   mitt i, mot en suddad och nedtonad kopia av sig själv – inget beskärs bort.
   Kopian är ett eget <img> och inte en CSS-bakgrund, eftersom url() i en
   custom property löses mot stilmallen och inte mot dokumentet. */
.slide--portrait img:not(.slide__blur) {
  object-fit: contain; position: relative; z-index: 1;
}
.slide__blur {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(26px) brightness(.45) saturate(.8);
  transform: scale(1.18);
}
.slide--portrait figcaption, .slide--portrait .slide__zoom { z-index: 2; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(8, 9, 11, .94) 15%, transparent);
  font-size: .92rem; color: var(--ink); letter-spacing: .01em;
}

.slide__zoom {
  position: absolute; top: .85rem; right: .85rem;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: rgba(8, 9, 11, .62); color: var(--ink);
  backdrop-filter: blur(6px); cursor: zoom-in;
  transition: background-color .2s, border-color .2s;
}
.slide__zoom:hover { background: var(--accent); color: #190c05; border-color: var(--accent); }
.slide__zoom svg { width: 19px; height: 19px; }

.slideshow__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; z-index: 2;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(8, 9, 11, .72); color: var(--ink);
  backdrop-filter: blur(8px); cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.slideshow__arrow:hover {
  background: var(--accent); color: #190c05; border-color: var(--accent);
}
.slideshow__arrow svg { width: 22px; height: 22px; }
.slideshow__arrow--prev { left: -26px; }
.slideshow__arrow--prev svg { transform: rotate(180deg); }
.slideshow__arrow--next { right: -26px; }

.slideshow__dots {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .5rem; margin-top: 1.25rem;
}
.slideshow__dot {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: var(--line-strong); cursor: pointer;
  transition: background-color .25s, width .25s var(--ease);
}
.slideshow__dot:hover { background: var(--ink-muted); }
.slideshow__dot.is-active { background: var(--accent); width: 52px; }

/* Under ~880 px finns det inte plats för pilarna utanför bilden längre. */
@media (max-width: 880px) {
  .slideshow__arrow--prev { left: .75rem; }
  .slideshow__arrow--next { right: .75rem; }
}
@media (max-width: 560px) {
  .slide { aspect-ratio: 4 / 3; }
  .slideshow__arrow { width: 44px; height: 44px; }
  .slide figcaption { font-size: .85rem; padding: 3rem 1rem .95rem; }
  /* Håll prickarna på en rad även med åtta bilder. */
  .slideshow__dots { gap: .4rem; }
  .slideshow__dot { width: 22px; }
  .slideshow__dot.is-active { width: 34px; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 7, 8, .95);
  display: grid; place-items: center; padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 96vw); max-height: 86vh; border-radius: var(--r-md); }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.lightbox__cap {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: .9rem; color: var(--ink-muted); text-align: center; padding-inline: 1rem;
}

/* --- Om oss / split ----------------------------------------------------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
}
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); width: 100%; }
.split__badge {
  position: absolute; right: -12px; bottom: -18px;
  background: var(--accent); color: #190c05;
  padding: 1rem 1.3rem; border-radius: var(--r-md);
  font-family: var(--display); line-height: 1; text-align: center;
  box-shadow: var(--shadow);
}
.split__badge b { display: block; font-size: 2.5rem; }
.split__badge span {
  font-family: var(--body); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}

.stats {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  margin-top: 2.25rem;
}
.stats div { background: var(--bg-alt); padding: 1.3rem 1.2rem; }
.stats b {
  display: block; font-family: var(--display); font-size: 2.4rem;
  color: var(--accent); line-height: 1;
}
.stats span { font-size: .8rem; color: var(--ink-muted); letter-spacing: .04em; }

/* --- Hitta hit ---------------------------------------------------------- */
.find { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.hours { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.hours__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.2rem; font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.hours__row:last-child { border-bottom: 0; }
.hours__row.is-today { background: var(--accent-dim); color: var(--ink); font-weight: 600; }
.hours__row.is-today dt::after { content: ' · idag'; color: var(--accent); font-weight: 500; }
.hours dt { color: var(--ink-soft); margin: 0; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

.map-facade {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); min-height: 340px; height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(234, 91, 32, .12), transparent 60%),
    repeating-linear-gradient(0deg, var(--surface) 0 38px, var(--surface-2) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--line) 38px 39px);
  display: grid; place-items: center; cursor: pointer; padding: 2rem;
  text-align: center; color: var(--ink); width: 100%; font: inherit;
}
.map-facade__pin {
  width: 54px; height: 54px; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #190c05;
}
.map-facade__pin svg { width: 28px; height: 28px; }
.map-facade strong { font-family: var(--display); font-size: 1.55rem; display: block; color: var(--ink); margin-bottom: .2rem; }
.map-facade span { font-size: .87rem; color: var(--ink-muted); }
.map-frame { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--r-md); }

/* --- Vanliga frågor ----------------------------------------------------- */
.faq { max-width: 62rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0; font-family: var(--display); font-size: 1.45rem;
  text-transform: uppercase; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 68ch; }

/* --- Slutbanner --------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #1c0e06 0%, #2e1408 55%, #16191d 100%);
  border-block: 1px solid var(--line);
}
/* Den gamla verkstadsloggan som svag vattenstämpel. Bilden ligger på svart
   botten – mix-blend-mode: screen släcker bakgrunden mot bandets mörka ton. */
.cta-band__mark {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  width: min(38%, 400px); height: auto;
  mix-blend-mode: screen; opacity: .22; pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) { .cta-band__mark { display: none; } }
.cta-band__inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.cta-band p { color: var(--ink-soft); margin-top: .8rem; max-width: 44ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Sidfot ------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: 3rem;
}
.footer-grid h3 {
  font-family: var(--body); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; color: var(--accent); margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; font-size: .93rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { width: 160px; height: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .9rem; color: var(--ink-muted); max-width: 32ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--ink-soft); transition: all .2s;
}
.socials a:hover { background: var(--accent); color: #190c05; border-color: var(--accent); }
.socials svg { width: 19px; height: 19px; }

.colophon {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between;
  font-size: .8rem; color: var(--ink-muted);
}
/* Byråsignaturen ska synas utan att konkurrera med verkstadens egna uppgifter. */
.colophon__credit a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.colophon__credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Mobil ringbar ------------------------------------------------------ */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 1px; background: var(--line);
  border-top: 1px solid var(--line-strong);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.callbar.is-visible { transform: translateY(0); }
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .5rem; background: var(--surface-2); color: var(--ink);
  font-family: var(--display); font-size: 1.1rem; letter-spacing: .05em;
  text-transform: uppercase;
}
.callbar a:first-child { background: var(--accent); color: #190c05; }
.callbar svg { width: 18px; height: 18px; }

/* --- Rörelse ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* --- Responsivt --------------------------------------------------------- */
@media (max-width: 960px) {
  .rating-panel { grid-template-columns: 1fr; }
  .rating-card { position: static; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 74px; }
  .nav-toggle { display: block; position: relative; z-index: 56; }
  /* backdrop-filter skapar ett containing block för position:fixed-barn,
     vilket låser in offcanvas-menyn i sidhuvudet. Solid bakgrund i stället. */
  .site-header, .site-header.is-stuck {
    backdrop-filter: none; background: rgba(11, 12, 14, .97);
  }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 340px);
    background: var(--bg-alt); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 6rem 1.75rem 2rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
    z-index: 55; overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 1.05rem 0; font-size: 1.05rem; }
  .nav .btn { margin-top: 1.75rem; }
  .callbar { display: flex; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 60px; }
  .topbar__list { display: none; }
  .split__badge { right: 8px; bottom: -14px; }
}

@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
  .quickbar__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-band__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .callbar, .nav-toggle, .cta-band, .hero__media { display: none !important; }
  body { background: #fff; color: #000; }
}
