/* ==========================================================================
   Lett Transport AS — felles stilark
   Stil: "Kraftig og industriell" (skisse 1B), farger byttet til Lett
   Transport sitt sorte/gule uttrykk. Tema-variabler settes i theme-*.css.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto er påkrevd: width/height-attributtene på <img> virker ellers som
   fast høyde, og bildet blir klemt sammen. Regler med høyere spesifisitet
   (.hero-media img o.l.) overstyrer dette der de setter egen høyde. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.5px;
  margin: 0;
}

p { margin: 0; }

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

/* ---------- Rullefelt ----------
   Samme uttrykk som resten av siden: skarpe kanter, hårlinjefarge, gul ved
   hover. Fargene kommer fra tema-variablene, så mørk og lys versjon følger
   automatisk. Firefox bruker scrollbar-*, øvrige bruker ::-webkit-scrollbar. */

/* Chrome ignorerer ::-webkit-scrollbar så snart scrollbar-width/-color er satt.
   Derfor gis standardegenskapene kun til nettlesere uten webkit-støtte
   (Firefox); Chrome og Safari bruker webkit-reglene under. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--bg); }
  .form { scrollbar-color: #454239 #1d1c19; }
}

::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 4px solid var(--bg);   /* luft rundt håndtaket */
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg); }

/* Skjemaet er mørkt i begge tema, så rullefeltet i tekstfeltet må følge det */
.form ::-webkit-scrollbar-track { background: #1d1c19; }
.form ::-webkit-scrollbar-thumb { background: #454239; border-color: #1d1c19; }
.form ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: #131311;
  padding: 12px 20px; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout ---------- */

:root { --maxw: 1240px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Elementer som ligger utenfor .wrap (hero-bilde, nøkkeltall) skal stoppe på
   samme bredde som innholdet, ikke vokse med skjermen. Bakgrunnsflater på
   .section--alt, .cta, header og footer går fortsatt helt ut – det er tilsiktet. */
.hero-media, .factbar { max-width: var(--maxw); margin-inline: auto; }

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface); }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}

/* Søkeordlinje som ligger inni <h1>, slik at hovedsøkeordet teller for SEO
   uten at den store merkevarelinja mister slagkraft. Ser ut som .eyebrow. */
.h1-kicker {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
  line-height: 1.5; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

.lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }

/* Avsluttende utsagn — sentrert så den ikke etterlater en tom halvside */
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { display: inline-block; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: 'Archivo Black', sans-serif; font-size: 19px;
  text-transform: uppercase; letter-spacing: 0.5px; line-height: 1;
}
.brand-text span { color: var(--accent); }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: 13.5px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; text-decoration: none; color: var(--text);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); width: 46px; height: 46px; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Archivo', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; text-decoration: none;
  padding: 16px 30px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #131311; }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 12px 22px; font-size: 13.5px; }
.btn--onyellow { background: #131311; color: var(--accent); }
.btn--onyellow:hover { background: #000; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */

.hero { padding: 80px 0 0; }
.hero h1 {
  font-size: clamp(40px, 7.4vw, 86px);
  margin: 0 0 26px; letter-spacing: -1.5px;
}
.hero h1 .hl { color: var(--accent); }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 48px; flex-wrap: wrap; padding-bottom: 56px;
}
.hero-foot .lead { max-width: 50ch; }

.hero-media {
  height: clamp(260px, 46vw, 520px);
  border-top: 1px solid var(--line);
  border-bottom: 5px solid var(--accent);
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Nøkkeltall-stripe */
.factbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.factbar div { padding: 30px 24px; border-right: 1px solid var(--line); }
.factbar div:last-child { border-right: 0; }
.factbar dt {
  font-family: 'Archivo Black', sans-serif; font-size: 28px;
  color: var(--accent); margin: 0 0 6px; line-height: 1;
}
.factbar dd {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Tjenestekort ---------- */

.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc {
  padding: 44px 36px; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: background .15s ease;
}
.svc:hover { background: var(--surface-hi); }
.svc-num {
  font-family: 'Archivo Black', sans-serif; font-size: 15px;
  color: var(--accent); margin-bottom: 18px;
}
.svc h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: 0; }
.svc p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-bottom: 20px; }
.svc-more {
  margin-top: auto; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
}

/* ---------- Split-seksjon ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split--top { align-items: start; }
.split h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 20px; }
.split-media { overflow: hidden; border-bottom: 4px solid var(--accent); }
.split-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Nummererte steg ---------- */

.steps { display: flex; flex-direction: column; }
.step {
  display: flex; gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.step:last-child { border-bottom: 0; }
.step-n {
  font-family: 'Archivo Black', sans-serif; color: var(--accent);
  font-size: 17px; flex: none; width: 24px;
}
.step b { font-size: 17px; display: block; margin-bottom: 4px; font-weight: 700; }
.step div span { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Verdier / punktliste ---------- */

/* Hairline-rutenett via kantlinjer, ikke bakgrunn + gap. Da vises ingen
   "tomme" celler når antall kort ikke fyller siste rad. */
.value-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.value {
  padding: 36px 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.value h3 { font-size: 17px; margin-bottom: 12px; letter-spacing: 0; }
.value p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.value-mark {
  width: 34px; height: 3px; background: var(--accent); margin-bottom: 20px;
}

/* ---------- Tjeneste-detalj (Tjenester-siden) ---------- */

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.detail--flip .detail-text { order: 2; }
.detail-media { overflow: hidden; border-bottom: 4px solid var(--accent); }
.detail-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.detail h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.detail p + p { margin-top: 14px; }
.detail p { font-size: 15.5px; line-height: 1.7; color: var(--muted); }

.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li {
  position: relative; padding-left: 28px; font-size: 15px; color: var(--text);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 3px; background: var(--accent);
}

/* ---------- Dekningsområde ---------- */

.coverage { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.area-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.area-list li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px; font-size: 15.5px;
}
.area-list li b { font-weight: 700; min-width: 150px; }
.area-list li span { color: var(--muted); font-size: 14.5px; }
.coverage-media img { width: 100%; border: 1px solid var(--line); }

/* ---------- CTA-blokk ---------- */

.cta { background: var(--accent); color: #131311; }
.cta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 76px; padding-bottom: 76px; }
.cta h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px; }
.cta p { font-size: 16.5px; line-height: 1.6; font-weight: 500; max-width: 44ch; margin-bottom: 28px; }
.cta-meta { margin-top: 26px; font-size: 14.5px; font-weight: 600; display: grid; gap: 6px; }
.cta-meta a { color: #131311; }

/* ---------- Skjema ---------- */

/* Skjemaet er mørkt i begge tema — color-scheme holder nedtrekkslista i
   <select> mørk også når resten av siden kjører lyst tema. */
.form { background: #131311; padding: 34px; display: grid; gap: 14px; color-scheme: dark; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label {
  display: grid; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: #a8a49a;
}
.form input, .form select, .form textarea {
  background: #1d1c19; border: 1px solid #454239; color: #f2f0ea;
  padding: 14px 16px; font-size: 15px; font-family: 'Archivo', sans-serif;
  width: 100%; border-radius: 0;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: #6e6a5f; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
}
.form button { width: 100%; }
.form-note { font-size: 12.5px; color: #9a968c; line-height: 1.5; }

/* ---------- Sidetopp (undersider) ---------- */

.page-head { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 6vw, 66px); margin-bottom: 22px; }
.page-head .lead { font-size: 18.5px; }

/* ---------- Kontaktkort ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { display: grid; gap: 0; margin-top: 8px; }
.contact-item {
  padding: 22px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline;
}
.contact-item dt {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}
.contact-item dd { margin: 0; font-size: 16.5px; font-weight: 600; }
.contact-item dd a { text-decoration: none; }
.contact-item dd a:hover { color: var(--accent); }
.contact-item dd small { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); margin-top: 5px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px;
  padding-bottom: 44px; border-bottom: 1px solid var(--line);
}
.site-footer h4 {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 1.8px; margin-bottom: 18px; color: var(--muted);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { text-decoration: none; font-size: 14.5px; color: var(--text); }
.footer-links a:hover { color: var(--accent); }
.footer-about { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin-top: 16px; max-width: 34ch; }
.footer-bottom {
  padding-top: 26px; display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.site-footer .brand img { height: 46px; }

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
  .split, .detail, .coverage, .contact-grid, .cta .wrap { grid-template-columns: 1fr; gap: 40px; }
  .detail--flip .detail-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .factbar { grid-template-columns: 1fr 1fr; }
  .factbar div:nth-child(2) { border-right: 0; }
  .factbar div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 780px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .header-cta .btn { display: none; }
  .hero { padding-top: 56px; }
  .hero-foot { padding-bottom: 40px; gap: 28px; }
  .eyebrow, .h1-kicker { letter-spacing: 1.8px; font-size: 11.5px; }
  .svc { padding: 34px 26px; }
  .contact-item { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .form button { width: 100%; }
  .brand-text { font-size: 16px; }
  .brand img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  * { transition: none !important; }
}
