/*
  Sykkelmotor.no – stilark.

  Hvit flate, svart tekst, ingen tekstfarger. Komposisjonen følger
  referansen: kondenserte versaler, runde bildekort, svart footer med
  stort ordmerke.

  Produktradene fylles av Ailo Shop (div[data-ailo-shop="grid"]) og
  bruker butikkens eget stilark; handlekurvknappen settes inn i
  [data-ailo-cart] i headeren.
*/

:root {
  --bg: #ffffff;
  --surface: #f3f3f3;
  --surface-2: #e9e9e9;
  --ink: #111111;
  --muted: #555555;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.28);
  --radius: 20px;
  --gutter: 16px;
  --wrap: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  margin: 0;
}
::selection {
  background: var(--ink);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: 1120px;
}

/* ---------------------------------------------------------- typografi */

.display {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}
.h-section {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}
.lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 38ch;
}
.center {
  text-align: center;
}
.center .lede {
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section {
  padding-top: clamp(80px, 11vw, 128px);
}
.section-head {
  margin-bottom: 44px;
}
.section-head .lede {
  margin-top: 12px;
}

/* ------------------------------------------------------------ knapper */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg {
  transform: translate(2px, -2px);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #333;
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: var(--surface);
}
.btn-outline {
  border-color: var(--line-strong);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
.btn-glass {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
/* Logoen er et bilde (images/logo-sykkelmotor.svg, liggende, 5,77:1). */
.logo img {
  display: block;
  width: auto;
  height: 34px;
}
@media (min-width: 640px) {
  .logo img {
    height: 40px;
  }
}
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 2px;
  padding: 4px;
  border-radius: 6px;
  background: var(--surface);
}
.nav a {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.25s var(--ease);
}
.nav a:hover {
  background: var(--surface-2);
}
.nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}
@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.25s var(--ease);
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.icon-btn::-webkit-details-marker {
  display: none;
}

/* Mobilmeny uten JavaScript: <details>. */
.menu {
  position: static;
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  padding: 8px var(--gutter) 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.menu-panel a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 34px;
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}
.menu .icon-close {
  display: none;
}
.menu[open] .icon-close {
  display: block;
}
.menu[open] .icon-open {
  display: none;
}
@media (min-width: 1024px) {
  .menu {
    display: none;
  }
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 600px;
  height: calc(100svh - 88px);
  max-height: 900px;
  /* Kant i kant: ingen marg eller runde hjørner (Vegard 11. nov 2026). */
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero-media {
  object-fit: cover;
}
.hero-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.82) 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding-bottom: 40px;
}
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 56px;
  }
}
.hero .eyebrow {
  margin-bottom: 18px;
  opacity: 0.8;
}
.hero h1 {
  font-size: clamp(4rem, 13vw, 10.5rem);
  line-height: 0.86;
}
.hero-lede {
  margin-top: 20px;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}
.hero .btn-row {
  margin-top: 28px;
}
.hero-card {
  max-width: 290px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13px;
  line-height: 1.45;
}
.hero-thumbs {
  display: flex;
  margin-bottom: 12px;
}
.hero-thumbs img {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 4px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: #fff;
  object-fit: contain;
}
.hero-sub {
  min-height: 460px;
  height: 64svh;
}
.hero-sub h1 {
  font-size: clamp(3.6rem, 11vw, 9rem);
}

/* ---------------------------------------------------- intro-setningen */

.statement {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-align: center;
}

/* --------------------------------------------------------- bildekort */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
a.media:hover img,
a.media:hover video,
.media-link:hover img {
  transform: scale(1.04);
}
.media-contain img {
  object-fit: contain;
  padding: 24px;
  mix-blend-mode: multiply;
}
.tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
}

.grid-inside {
  display: grid;
  gap: 16px;
}
.grid-inside .wide {
  aspect-ratio: 16 / 9;
}
.grid-inside .half {
  aspect-ratio: 4 / 3;
}
@media (min-width: 768px) {
  .grid-inside {
    grid-template-columns: 1fr 1fr;
  }
  .grid-inside .wide {
    grid-column: 1 / -1;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.chip:hover {
  background: var(--ink);
  color: #fff;
}

/* --------------------------------------------- produktrader (Ailo Shop) */

/* Før Ailo Shop har fylt plassen (lokal forhåndsvisning og i Studio)
   viser den hva som kommer her. Ailo erstatter hele elementet. */
[data-ailo-shop]:empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}
[data-ailo-shop]:empty::before {
  content: "Produkter fra Ailo Shop vises her";
}
.shop-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* -------------------------------------------------------------- split */

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
  }
  .split-tall {
    align-items: stretch;
  }
}
.split .lede {
  margin-top: 16px;
}
.split .btn {
  margin-top: 28px;
}
.portrait {
  aspect-ratio: 4 / 5;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin: 28px 0 0;
}
.tile {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
}
.tile dt {
  color: var(--muted);
  font-size: 12.5px;
}
.tile dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- collage */

.collage {
  display: grid;
  gap: 16px;
}
.collage-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.collage-col .media {
  aspect-ratio: 1;
}
@media (min-width: 900px) {
  .collage {
    grid-template-columns: 1fr 1.7fr 1fr;
  }
  .collage-col {
    grid-template-columns: 1fr;
  }
  .collage-col .media {
    aspect-ratio: auto;
    min-height: 230px;
  }
}
.feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  text-align: center;
}
.feature > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.feature:hover > img {
  transform: scale(1.04);
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.8));
}
.feature h3 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.feature p {
  max-width: 36ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.88;
}
.feature .btn {
  margin-top: 20px;
}

/* ---------------------------------------------------------- fakta */

.facts {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}
.fact {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
}
.fact h3 {
  font-size: 15px;
  font-weight: 700;
}
.fact p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.split-tall .media {
  min-height: 420px;
}

/* -------------------------------------------------------- kategorier */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card .media {
  aspect-ratio: 3 / 4;
}
.card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.card-foot strong {
  display: block;
  font-size: 15px;
}
.card-foot span {
  color: var(--muted);
  font-size: 13px;
}
.arrow-btn {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.arrow-btn svg {
  width: 15px;
  height: 15px;
}
.card:hover .arrow-btn {
  background: var(--ink);
  color: #fff;
}

/* ------------------------------------------------------ motorservice */

.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
.step-no {
  font-size: 44px;
}
.step h3 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.prices {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .prices {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.price-group {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
.price-group h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-group ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.price-group li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.price-group li:first-child {
  border-top: 0;
}
.price-group small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.price-group b {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.stack {
  display: grid;
  gap: 16px;
}
.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.contact {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}
.form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
@media (min-width: 640px) {
  .form {
    grid-template-columns: 1fr 1fr;
  }
  .form .full {
    grid-column: 1 / -1;
  }
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.form input,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 15px/1.4 var(--font);
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}
.form .btn {
  justify-self: start;
}
.contact-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(96px, 12vw, 140px);
  background: #0d0d0d;
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 40px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-grid h2 {
  font-size: 15px;
  font-weight: 600;
}
.footer-grid p {
  margin-top: 8px;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.55;
}
.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.footer-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
}
.footer-cta .btn-outline:hover {
  background: #fff;
  color: var(--ink);
}
.wordmark img {
  display: block;
  width: 100%;
  height: auto;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ------------------------------------------------------------ bevegelse */

/* Skjules bare når main.js har satt .js. Uten skript (også når Ailo
   serverer siden og tar ut sidens egne skript) vises alt med en gang. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .media img,
  .media video,
  .feature > img {
    transition: none;
  }
}

.contact .lede {
  margin-top: 16px;
}

@media (max-width: 639px) {
  .hero-card {
    display: none;
  }
}
