/* ==========================================================================
   EatGood — Design tokens
   Grounded in the product itself: Air Fry Technology replaces oil with
   steam, hot air and rotation. The signature motif is a thin "orbit ring" —
   a nod to the rotating drum — used sparingly behind headlines and as a
   progress/gauge shape for stats. Palette: EatGood's own brand orange
   (#F0941D, taken directly from eatgood.se) against a warm steel/charcoal
   industrial base, with a muted steam-teal as a quiet secondary accent.
   ========================================================================== */

:root {
  /* Color */
  --charcoal-950: #16130f;
  --charcoal-900: #201b16;
  --charcoal-800: #2c2620;
  --charcoal-700: #423a31;
  --steel-600: #6b6259;
  --steel-400: #9a9086;
  --steel-300: #c8c0b5;
  --steel-200: #e2ddd4;
  --paper: #f7f5f1;
  --paper-raised: #ffffff;
  --ink: #1b1814;

  --orange-700: #a34c0a;
  --orange-600: #c86a0b;
  --orange-500: #f0941d;
  --orange-400: #f6ac4c;
  --orange-100: #fdecd3;

  --steam-600: #4f6f6a;
  --steam-500: #7c9a96;
  --steam-200: #dce6e4;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing (8px rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  --container: 1280px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--sp-5); }
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

/* ==========================================================================
   Type scale
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 2px;
  background: var(--orange-500);
  display: inline-block;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem); }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.3rem, 1.2vw + 1rem, 1.75rem); }
h4 { font-size: 1.125rem; }

.lede {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  color: var(--charcoal-700);
  max-width: 54ch;
  line-height: 1.65;
}

.on-dark .lede { color: var(--steel-300); }
.on-dark { color: var(--paper); }

/* numeric / spec type */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.5em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange-500);
  color: var(--charcoal-950);
  font-weight: 600;
}
.btn--primary:hover { background: var(--orange-400); }

.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper);
}
.btn--ghost-dark:hover { border-color: var(--orange-500); color: var(--orange-400); }

.btn--ghost-light {
  border-color: var(--charcoal-700);
  color: var(--ink);
}
.btn--ghost-light:hover { border-color: var(--orange-600); color: var(--orange-700); }

.btn--arrow::after {
  content: "→";
  transition: transform 180ms var(--ease-out);
}
.btn--arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Orbit ring — signature motif
   ========================================================================== */

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--orange-500);
  border-right-color: transparent;
  border-bottom-color: transparent;
  opacity: 0.55;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .orbit-ring--spin { animation: spin 22s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.ring-stat {
  position: relative;
  width: 6.5rem;
  height: 6.5rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ring-stat svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-stat__value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal-950);
}
.ring-stat__track { stroke: var(--steel-200); stroke-width: 4; fill: none; }
.ring-stat__fill {
  stroke: var(--orange-500);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 19, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.site-header.is-compact {
  background: rgba(18, 15, 12, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  padding-block: 0.9rem;
  transition: padding 280ms var(--ease-out);
}
.site-header.is-compact .site-header__bar { padding-block: 0.5rem; }

.brand { display: flex; align-items: center; gap: var(--sp-1); }
.brand img {
  height: 2.1rem;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height 280ms var(--ease-out);
}
.site-header.is-compact .brand img { height: 1.5rem; }

.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
}
.nav-desktop a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--steel-300);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 160ms, border-color 160ms;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--orange-500);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--charcoal-950);
  color: var(--paper);
  overflow: hidden;
  padding-block: var(--sp-7) var(--sp-6);
}

.hero__grid {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); }
}

.hero h1 { margin-block: var(--sp-2) var(--sp-3); }
.hero__stats {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}
.hero__stat {
  border-left: 2px solid var(--orange-500);
  padding-left: var(--sp-2);
}
.hero__stat .num { display: block; font-size: 1.9rem; color: var(--paper); }
.hero__stat span:last-child { font-size: 0.8125rem; color: var(--steel-400); }

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--charcoal-800), var(--charcoal-950));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}
.hero__media img { width: 78%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)); }
.hero__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }

/* Video hero */
.hero--video {
  min-height: 42rem;
  display: flex;
  align-items: center;
  padding-block: var(--sp-6);
}
.hero__bg-videos {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.3s ease;
}
.hero__bg-video.is-active { opacity: 1; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(15,13,10,0.94) 0%, rgba(15,13,10,0.78) 42%, rgba(15,13,10,0.4) 75%, rgba(15,13,10,0.25) 100%),
    linear-gradient(0deg, rgba(15,13,10,0.7) 0%, transparent 40%);
}
.hero__grid--center { grid-template-columns: 1fr; }
.hero__grid--center > div { max-width: 40rem; }

/* Belt-and-suspenders legibility over unpredictable video content */
.hero--video h1,
.hero--video .lede,
.hero--video .eyebrow,
.hero--video .hero__stat .num,
.hero--video .hero__stat span:last-child {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg-video { display: none; }
  .hero--video { background: var(--charcoal-950) url("../img/lightfry-standard.jpg") center/cover; }
}

/* Simple page hero (non-home) */
.page-hero {
  background: var(--charcoal-950);
  color: var(--paper);
  padding-block: var(--sp-6) var(--sp-5);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { margin-top: var(--sp-2); max-width: 20ch; }
.page-hero .lede { margin-top: var(--sp-3); }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--raised { background: var(--paper-raised); }
.section--dark { background: var(--charcoal-950); color: var(--paper); }
.section--steel { background: var(--steel-200); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.section__head h2 { margin-top: var(--sp-1); }

/* ==========================================================================
   Category tiles (Electrolux-style)
   ========================================================================== */

.tiles {
  display: grid;
  gap: 1px;
  background: var(--charcoal-700);
  border: 1px solid var(--charcoal-700);
}
@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  position: relative;
  background: var(--charcoal-900);
  color: var(--paper);
  min-height: 22rem;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.tile__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: opacity 300ms var(--ease-out), transform 500ms var(--ease-out);
}
.tile:hover .tile__bg { opacity: 0.75; transform: scale(1.05); }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(22, 19, 15, 0.92) 100%);
}
.tile h3 { margin-bottom: 0.5rem; }
.tile p { color: var(--steel-300); font-size: 0.9375rem; margin: 0 0 var(--sp-2); }
.tile .btn { align-self: flex-start; }

/* ==========================================================================
   Feature rows (Liebherr-style alternating)
   ========================================================================== */

.feature-row {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--steel-200);
}
.feature-row:first-of-type { border-top: none; }
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .feature-row--reverse .feature-row__media { order: 2; }
}
.feature-row__media {
  aspect-ratio: 5 / 4;
  background: var(--steel-200);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row__index {
  font-family: var(--font-mono);
  color: var(--orange-600);
  font-size: 0.875rem;
}
.feature-row h3 { margin-block: var(--sp-1) var(--sp-2); }
.feature-row p { color: var(--charcoal-700); max-width: 46ch; }

/* ==========================================================================
   Stat / ring row
   ========================================================================== */

.stat-row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--paper-raised);
  border: 1px solid var(--steel-200);
}
.stat-card__label { font-size: 0.875rem; color: var(--steel-600); line-height: 1.35; }

/* ==========================================================================
   Cards: news / people / documents
   ========================================================================== */

.card-grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 700px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: var(--paper-raised);
  border: 1px solid var(--steel-200);
  display: flex;
  flex-direction: column;
  transition: border-color 200ms, transform 200ms var(--ease-out);
}
.news-card:hover { border-color: var(--orange-500); transform: translateY(-3px); }
.news-card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.news-card time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--orange-600);
  letter-spacing: 0.04em;
}
.news-card h3 { font-size: 1.15rem; }
.news-card p { color: var(--steel-600); font-size: 0.9375rem; margin: 0; flex: 1; }
.news-card__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--orange-100);
  color: var(--orange-700);
  padding: 0.25em 0.6em;
}

.person-card {
  background: var(--paper-raised);
  border: 1px solid var(--steel-200);
  padding: var(--sp-3);
}
.person-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-3)) var(--sp-3);
  background: var(--steel-200);
  overflow: hidden;
}
.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.person-card__photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--steel-400);
  background: linear-gradient(160deg, var(--steel-200), var(--paper-raised));
}
.person-card__photo.is-empty img { display: none; }
.person-card__photo.is-empty .person-card__photo-fallback { display: flex; }
.person-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); margin-bottom: 0.75rem; }
.person-card h3 { font-size: 1.2rem; }
.person-card__role { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--orange-600); }
.person-card p { color: var(--charcoal-700); font-size: 0.9375rem; }
.person-card__holding {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--steel-600);
  border-top: 1px dashed var(--steel-300);
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
}

.doc-list { border-top: 1px solid var(--steel-200); }
.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--steel-200);
}
.doc-row time { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--steel-600); min-width: 9ch; }
.doc-row__title { font-weight: 600; flex: 1; }
.doc-row .btn { flex-shrink: 0; }

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 46rem;
  padding-left: var(--sp-4);
  border-left: 2px solid var(--steel-200);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--sp-5);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-4) - 6px);
  top: 0.3rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px var(--paper-raised);
}
.section--steel .timeline-item::before,
.section--dark .timeline-item::before { box-shadow: 0 0 0 4px var(--steel-200); }
.timeline-item__year {
  font-family: var(--font-mono);
  color: var(--orange-600);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.35rem;
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.timeline-item p { color: var(--charcoal-700); max-width: 50ch; margin: 0; }

/* ==========================================================================
   Ticker (share info bar)
   ========================================================================== */

.ticker {
  background: var(--charcoal-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--steel-300);
  padding-block: var(--sp-2);
}
.ticker__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.ticker__row strong { color: var(--orange-400); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; gap: var(--sp-3); max-width: 42rem; }
@media (min-width: 640px) {
  .form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--charcoal-700);
}
.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--steel-300);
  background: var(--paper-raised);
  padding: 0.75em 0.9em;
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 160ms;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--orange-500); outline: none; }
.field textarea { resize: vertical; min-height: 8rem; }
.field-required::after { content: " *"; color: var(--orange-600); }
.form-note { font-size: 0.8125rem; color: var(--steel-600); }

/* ==========================================================================
   Contact block
   ========================================================================== */

.contact-card {
  background: var(--paper-raised);
  border: 1px solid var(--steel-200);
  padding: var(--sp-3);
}
.contact-card h3 { font-size: 1.1rem; }
.contact-card__role { font-family: var(--font-mono); color: var(--orange-600); font-size: 0.8125rem; margin-bottom: 0.75rem; display: block; }
.contact-card a { display: block; font-size: 0.9375rem; color: var(--charcoal-700); margin-top: 0.25rem; }
.contact-card a:hover { color: var(--orange-600); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--charcoal-950);
  color: var(--steel-300);
  padding-block: var(--sp-6) var(--sp-4);
}
.footer-grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-5); }
}
.footer-grid h4 { color: var(--paper); font-size: 0.9375rem; margin-bottom: var(--sp-2); font-family: var(--font-mono); letter-spacing: 0.03em; }
.footer-grid a, .footer-grid p { font-size: 0.9375rem; color: var(--steel-400); line-height: 1.9; }
.footer-grid a:hover { color: var(--orange-400); }
.footer-brand img { height: 1.7rem; filter: brightness(0) invert(1); margin-bottom: var(--sp-2); }
.footer-brand p { max-width: 32ch; color: var(--steel-400); }
.footer-bottom {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--steel-600);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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