/* ============================================================
   Cranepartner — PROSPEKTET (minimalistisk, redaktionell)
   Ett lugnt tryckt prospekt: EN centrerad lässpalt, tysta
   helbredds-färgfoton som andas mellan sektionerna, en hårfin
   linje som enda avdelare. Rött (#AE171A) BARA på de under-
   strukna CTA-länkarna. Open Sans + IBM Plex Mono.
   Inga skuggor, inga gradienter, ingen glow.
   ============================================================ */

:root {
  --red: #AE171A;          /* Magni-röd — endast "agera" */
  --ink: #2F383C;          /* Magni-grå — sidans text */
  --paper: #FCFCFB;        /* varmvit bakgrund */
  --paper-pure: #FFFFFF;
  --hairline: #E4E2DD;     /* hårfin avdelare, varmt neutral */
  --muted: #6B7378;        /* dämpad text, WCAG-säker på papper */

  --col: 44rem;            /* lässpaltens bredd ~704px */
  --air: clamp(5rem, 12vw, 11rem);   /* vertikal sektionsluft 80–176px */

  --f-sans: "Open Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: var(--red); color: #fff; }

/* ---- Synlig fokusring för tangentbordsnavigering ---- */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ============================================================
   Den centrerade lässpalten
   ============================================================ */
.col {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   Hårfin avdelare — den ENDA avdelaren på sidan
   ============================================================ */
.rule {
  border: 0;
  height: 1px;
  width: min(var(--col), calc(100% - 3rem));
  margin: var(--air) auto;
  background: var(--hairline);
}

/* ============================================================
   Helbredds-färgfoton — andas mellan sektionerna
   ============================================================ */
.bleed {
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  width: 100%;
  overflow: hidden;
  background: #f3f2ef;
}
.bleed img {
  width: 100%;
  height: clamp(15rem, 42vw, 30rem);
  object-fit: cover;
  object-position: center;
}
.bleed--hero { margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.bleed--hero img { height: clamp(18rem, 50vw, 38rem); }

/* CTA-porträtt (albin.jpg är 1:1) — lugnt beskuret, inte tvångsbrett */
.cta .bleed img { height: clamp(16rem, 34vw, 24rem); object-position: center 30%; }

/* ============================================================
   NAV — tyst, ingen tung header
   ============================================================ */
.nav {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: 78rem;
  margin-inline: auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.nav__links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__call {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--ink) !important;
  font-size: 0.8125rem;
}

/* ============================================================
   Typografi — stora stilla påståenden, generös line-height
   ============================================================ */
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.5rem;
  text-align: center;
}

.statement {
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-align: center;
  text-wrap: balance;
  margin: 0 auto;
  max-width: 22ch;
}
h1.statement { max-width: 24ch; }
.statement--mid {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.28;
  max-width: 20ch;
}

.lede {
  text-align: center;
  font-size: clamp(1.15rem, 1.4vw, 1.375rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  max-width: 38ch;
  margin: 2rem auto 0;
}

.body {
  text-align: center;
  margin: 1.75rem auto 0;
  max-width: 56ch;
}
.body--quiet { color: var(--muted); font-size: 0.9375rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 0; }
.act {
  text-align: center;
  margin: 2.5rem auto 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.act--pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
}

/* ---- Den enda röda gesten: understruken CTA-länk = "agera" ---- */
.link-cta {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: var(--red);
  white-space: nowrap;
  transition: text-underline-offset 0.2s ease;
}
.link-cta:hover { text-underline-offset: 7px; }

/* ============================================================
   Generella sektioner
   ============================================================ */
.passage { }

/* ============================================================
   PRODUKTBLAD — renderna tyst inline, ett i taget
   ============================================================ */
.sheet {
  max-width: 52rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.sheet:nth-child(even) { direction: rtl; }   /* alternera sidan — tyst rytm */
.sheet:nth-child(even) > * { direction: ltr; }

.sheet__img {
  margin: 0;
  background: var(--paper-pure);
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.sheet__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sheet__name {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.sheet__role {
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---- Tvåtals-spec i mono, diskret — datablads-disciplin ---- */
.spec { margin: 0 0 1.5rem; }
.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}
.spec__row:first-child { border-top: 1px solid var(--hairline); }
.spec dt {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.005em;
}
.spec dd {
  margin: 0;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.spec--inline {
  max-width: 32rem;
  margin: 2rem auto 0;
}

.link-sheet {
  display: inline-block;
  font-size: 0.8125rem;
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.link-sheet:hover { opacity: 0.55; }

/* ============================================================
   SERVICE — siffrorna lugnt, inte som datablad
   ============================================================ */
.figures {
  text-align: center;
  margin: 1.75rem auto 0;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.9;
}
.figures__line { white-space: nowrap; margin-inline: 0.35rem; }

/* ============================================================
   BEGAGNAT — familjenamn + typ-badge, INGA påhittade siffror
   ============================================================ */
.families {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 2rem auto 0;
  max-width: 36rem;
}
.fam {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--hairline);
}
.fam__name {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
}
.fam__type {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   CTA — människorna
   ============================================================ */
.people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 2.75rem auto 0;
  text-align: center;
}
.person {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.person__role {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.person__name {
  font-weight: 700;
  font-size: 1.0625rem;
}
.person .link-cta { font-size: 1.0625rem; }
.person__mail {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--f-mono);
}
.person__mail:hover { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--air) 0 calc(var(--air) * 0.7);
  margin-top: var(--air);
}
.footer .col { text-align: center; }
.footer__depots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}
.depot {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.depot__city {
  display: block;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}
.depot a {
  font-family: var(--f-mono);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.depot a:hover { border-color: var(--ink); }
.footer__mail { margin: 0 0 1.25rem; }
.footer__mail a {
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline);
}
.footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ============================================================
   STICKY MOBIL-RINGLIST (<768px) — tumzonen
   ============================================================ */
.ringbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-pure);
  border-top: 1px solid var(--hairline);
}
.ringbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0.7rem 0.5rem calc(0.7rem + env(safe-area-inset-bottom));
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--red);
}
.ringbar a:first-child { border-right: 1px solid var(--hairline); }
.ringbar__role {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   Reveal — diskret fade-up. Default DOLT endast när JS lever.
   ============================================================ */
.is-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

/* ============================================================
   Responsiv
   ============================================================ */
@media (max-width: 768px) {
  body { padding-bottom: 4.25rem; }   /* lämna plats för ringlisten */
  .ringbar { display: grid; }
  .nav__links a:not(.nav__call) { display: none; }   /* mobil: bara numret kvar i nav */

  .sheet {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 26rem;
  }
  .sheet:nth-child(even) { direction: ltr; }
  .sheet__img { aspect-ratio: 4 / 3; max-width: 18rem; margin-inline: auto; }
  .sheet__text { text-align: center; }
  .sheet__name, .sheet__role { text-align: center; }
  .spec { max-width: 22rem; margin-inline: auto; }
}

@media (max-width: 480px) {
  .statement { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .figures { font-size: 1.05rem; line-height: 2; }
  .figures__line { display: inline-block; }
}

/* ============================================================
   prefers-reduced-motion — allt statiskt synligt, Lenis av (i JS)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .is-reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
  html { scroll-behavior: auto; }
  .link-cta, .nav__links a { transition: none; }
}
