/* =========================================================
   Car Parts Altea — stylesheet
   Palette derived from the logo: ink (black), lime, white.
   Warm cream/sand surfaces carry the "warm" direction.
   ========================================================= */

/* ---------- Fonts (self-hosted, latin subset; licence in fonts/OFL.txt) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800-italic.woff2") format("woff2"); }

:root {
  /* colour tokens */
  --ink: #141311;
  --ink-2: #1f1d19;
  --ink-3: #2a2723;
  --cream: #f7f2e9;
  --sand: #ede5d6;
  --sand-2: #dfd4bf;
  --lime: #8ac900;          /* sampled from logo.png (dominant #88c800) */
  --lime-2: #9fdd1a;        /* hover */
  --lime-deep: #3f6b00;     /* lime-family text on light surfaces (5.7:1 on cream) */
  --white: #ffffff;
  --text: #1a1917;
  --muted: #5c574f;         /* 6.3:1 on cream */
  --muted-on-dark: #b9b3a7; /* 8.9:1 on ink */
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --focus: var(--lime-deep);

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* shape and depth */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 19, 17, 0.05), 0 6px 16px rgba(20, 19, 17, 0.06);
  --shadow-md: 0 2px 4px rgba(20, 19, 17, 0.07), 0 16px 36px rgba(20, 19, 17, 0.12);

  /* layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;
  --section-pad: clamp(3rem, 6vw, 5rem);
  --cut: 4vw;

  /* motion */
  --dur: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
a, button { touch-action: manipulation; }

.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--lime); color: var(--ink); padding: 0.75rem 1.25rem; border-radius: 8px;
  font-weight: 600; transition: top var(--dur);
}
.skip-link:focus { top: 1rem; }

/* ---------- Icons ---------- */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon-facebook, .icon-tiktok, .icon-whatsapp { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-pad); position: relative; }

/* slanted edges echo the logo's underline and wings */
.cut-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding-bottom: calc(var(--section-pad) + var(--cut));
}
.cut-top {
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section-pad) + var(--cut));
  margin-top: calc(-1 * var(--cut));
}
.cut-top.cut-bottom {
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1.display { font-size: clamp(2.75rem, 7vw, 5.25rem); }
h1.display em { font-style: italic; color: var(--lime); }
h2.display { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3.display { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--lime-deep);
  margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 2rem; height: 3px; background: var(--lime); transform: skewX(-20deg); }
.kicker-on-dark { color: var(--lime); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.lead-on-dark { color: var(--muted-on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .display { margin-bottom: 1rem; }

/* ---------- Buttons (slanted, like the logo) ---------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.5rem;
  font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--btn-fg);
  white-space: nowrap; cursor: pointer;
  transition: transform var(--dur) var(--ease), color var(--dur);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg); border-radius: 8px;
  transform: skewX(-10deg);
  box-shadow: var(--btn-shadow, none);
  transition: background var(--dur), box-shadow var(--dur), border-color var(--dur);
  border: 1.5px solid var(--btn-border, transparent);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-shadow: 0 8px 22px rgba(143, 212, 0, 0.28); }
.btn-primary:hover::before { background: var(--lime-2); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover::before { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn-dark:hover::before { background: var(--ink-3); }
.btn-lg { min-height: 56px; padding: 0.9rem 1.9rem; font-size: 1.05rem; }
.btn .icon { width: 1.35em; height: 1.35em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
  color: var(--lime-deep); font-weight: 600;
}
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
/* fixed, not sticky: the header shrinks on scroll (is-compact), and in the page flow that would
   pull the content up and make the page jump. The body reserves the full header height instead. */
body { padding-top: calc(var(--header-h) + 1px); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  border-bottom: 1px solid var(--line-on-dark);
  --focus: var(--lime);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease);
}
.site-header.is-compact .header-inner { min-height: 62px; }

.brand { display: block; width: 176px; flex: none; border-radius: 4px; }
.brand img { width: 100%; height: auto; }
.site-header.is-compact .brand { width: 150px; }
.brand { transition: width var(--dur) var(--ease); }

/* the logo PNG has a black background: screen-blend it into any dark surface */
.logo { mix-blend-mode: screen; }
@supports not (mix-blend-mode: screen) {
  .site-header, .hero, .site-footer { background: #000; }
}

.nav { display: flex; align-items: center; margin-left: auto; margin-right: clamp(0.5rem, 2vw, 1.5rem); }
.nav-list { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.25rem); }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.35rem;
  font-weight: 500; color: rgba(255, 255, 255, 0.86);
  transition: color var(--dur);
}
.nav-link::after {
  content: ""; position: absolute; left: 0.35rem; right: 0.35rem; bottom: 8px; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--white); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-lang {
  display: inline-flex; align-items: center; gap: 0.15rem; flex: none;
  padding: 0.2rem 0.2rem 0.2rem 0.6rem; border: 1px solid var(--line-on-dark); border-radius: 999px;
}
.nav-lang-icon { width: 1.1rem; height: 1.1rem; color: var(--muted-on-dark); margin-right: 0.25rem; }
.nav-lang-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 36px; padding: 0 0.5rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em;
  color: var(--muted-on-dark);
  transition: background var(--dur), color var(--dur);
}
.nav-lang-link:hover { color: var(--white); }
.nav-lang-link.is-active { background: var(--lime); color: var(--ink); }

.btn-nav { min-height: 44px; padding: 0.5rem 1.15rem; font-size: 0.95rem; margin-left: 0.75rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--white);
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding-top: clamp(2rem, 4.5vw, 3.5rem);
  padding-bottom: calc(var(--section-pad) * 0.8 + var(--cut));
  --focus: var(--lime);
}
.hero::before {
  /* subtle speed lines, echoing the wings in the logo */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background:
    repeating-linear-gradient(-20deg, transparent 0 46px, rgba(255, 255, 255, 0.035) 46px 48px);
  mask-image: linear-gradient(90deg, transparent 5%, #000 50%, transparent 95%);
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 50%, transparent 95%);
}
.hero-glow {
  position: absolute; left: 50%; top: -30%; transform: translateX(-50%); width: 70vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(143, 212, 0, 0.32), rgba(143, 212, 0, 0.08) 38%, transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; }
.hero-copy { max-width: 820px; margin-inline: auto; text-align: center; }
.hero-copy .lead { margin: 1.5rem auto 0; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 1rem; margin-top: 2.25rem; }


/* ---------- Parts ---------- */
.parts { background: var(--cream); }
.parts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.part-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.75rem; background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(20, 19, 17, 0.06); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.part-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease);
}
.part-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.part-card:hover::after { transform: scaleX(1); }
.part-icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--lime); transform: skewX(-8deg);
}
.part-icon .icon { width: 28px; height: 28px; transform: skewX(8deg); }
.part-card h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; font-style: italic; text-transform: uppercase; line-height: 1; }
.part-card p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { font-size: 0.85rem; font-weight: 500; padding: 0.3rem 0.6rem; background: var(--sand); border-radius: 6px; }
.part-card .link-arrow { margin-top: auto; }


.notfound {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 1.5rem 2rem;
  border: 1.5px dashed var(--sand-2); border-radius: var(--radius);
}
.notfound h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-style: italic; text-transform: uppercase; }

/* ---------- The space ---------- */
.space { background: var(--ink); color: var(--white); --focus: var(--lime); }
.space-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.space-copy .display { margin-bottom: 1rem; }
.space-facts { display: grid; gap: 1.25rem; margin: 2rem 0 2.25rem; }
.space-facts li { display: flex; gap: 1rem; align-items: flex-start; }
.space-fact-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--ink-3); color: var(--lime); }
.space-fact-icon .icon { width: 22px; height: 22px; }
.space-facts h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; font-style: italic; text-transform: uppercase; line-height: 1.1; }
.space-facts p { color: var(--muted-on-dark); font-size: 0.98rem; }

.shop-illustration { width: 100%; height: auto; color: rgba(255, 255, 255, 0.55); }
.il-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-line-soft { stroke: rgba(255, 255, 255, 0.25); }
.il-floor { stroke: var(--lime); stroke-width: 3; opacity: 0.7; }
.il-lamp { fill: var(--lime); opacity: 0.9; }
.il-box { fill: var(--ink-3); stroke: currentColor; stroke-width: 1.5; }
.il-box-lime { fill: var(--lime); fill-opacity: 0.85; stroke: none; }
.il-can { fill: var(--ink-3); stroke: currentColor; stroke-width: 1.5; }
.il-counter { fill: var(--ink-2); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.il-disc { fill: var(--ink-3); }
.il-dot { fill: var(--lime); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

/* form (front-end only for now; see TODO-before-launch.md) */
.contact-form { padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-form h3 { margin-bottom: 0.35rem; }
.form-lead { color: var(--muted); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-weight: 400; }
.hint { color: var(--muted); font-size: 0.85rem; }
.req { color: var(--lime-deep); font-weight: 700; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.95rem;
  font: inherit; color: var(--text); background: var(--cream);
  border: 1.5px solid var(--sand-2); border-radius: 10px;
  transition: border-color var(--dur), background var(--dur);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: #c9bda3; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime-deep); background: var(--white); box-shadow: 0 0 0 3px rgba(138, 201, 0, 0.25); }
.field input::placeholder, .field textarea::placeholder { color: #8d877c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.form-privacy { margin: 0.25rem 0 1rem; }
.field-error { color: #a4161a; font-size: 0.875rem; font-weight: 500; }
.field-error:empty { display: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a4161a; background: #fff7f6; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-status {
  margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 10px;
  font-weight: 500; border-left: 4px solid currentColor;
}
.form-status:empty { display: none; }
.form-status.is-success { color: var(--lime-deep); background: #eef6dc; }
.form-status.is-error { color: #a4161a; background: #fdeceb; }
.contact-list { display: grid; gap: 0.75rem; }
.contact-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
  background: var(--white); border-radius: var(--radius); border: 1px solid rgba(20, 19, 17, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--ink); color: var(--lime); }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.contact-label { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 1.15rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.contact-arrow { margin-left: auto; color: var(--lime-deep); transition: transform var(--dur) var(--ease); }
.contact-list a:hover .contact-arrow { transform: translateX(4px); }

.contact-side { display: grid; gap: 1rem; }
.card { padding: 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid rgba(20, 19, 17, 0.06); box-shadow: var(--shadow-sm); }
.card h3 { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; font-style: italic; text-transform: uppercase; margin-bottom: 1rem; }
.card h3 .icon { color: var(--lime-deep); }
.hours th, .hours td { padding: 0.55rem 0; border-top: 1px solid var(--sand); text-align: left; vertical-align: top; }
.hours th { font-weight: 500; color: var(--muted); padding-right: 1rem; }
.hours td { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.social-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-list a {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 12px; background: var(--sand);
  transition: background var(--dur), color var(--dur), transform var(--dur) var(--ease);
}
.social-list a:hover { background: var(--ink); color: var(--lime); transform: translateY(-2px); }
.social-list .icon { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; --focus: var(--lime); }
.footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.footer-tagline { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.7; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; transition: color var(--dur); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-on-dark); font-size: 0.9rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; }
.footer-bottom a[aria-current] { color: var(--white); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Legal pages ---------- */
.legal-hero {
  position: relative; background: var(--ink); color: var(--white); --focus: var(--lime);
  padding-top: clamp(2rem, 4.5vw, 3.5rem); padding-bottom: calc(var(--section-pad) * 0.6 + var(--cut));
}
.legal-hero h1.display { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.legal-updated { margin-top: 1rem; color: var(--muted-on-dark); }
.prose, .legal-hero .container { max-width: 75ch; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem); line-height: 1.1; margin: 2.5rem 0 0.75rem;
}
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose li::marker { color: var(--lime-deep); }
.prose a { color: var(--lime-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-thickness: 2px; }
.legal-note { padding: 1rem 1.25rem; background: var(--sand); border-left: 4px solid var(--lime); border-radius: var(--radius-sm); }
.form-privacy a { color: var(--lime-deep); text-decoration: underline; text-underline-offset: 0.15em; }
mark.todo { background: #ffd84d; color: var(--ink); padding: 0 0.25em; border-radius: 3px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-width: 56px; height: 56px; padding: 0 1rem; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 600;
  box-shadow: 0 10px 28px rgba(20, 19, 17, 0.28);
  transition: transform var(--dur) var(--ease), background var(--dur);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--lime);
  animation: wa-pulse 1.6s ease-out 1.2s 2; opacity: 0;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-2px); background: var(--lime-2); }
body.menu-open .wa-float { display: none; }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .parts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header.is-compact .header-inner { min-height: 60px; }
  .header-inner { gap: 0.5rem; }
  .brand { width: 140px; margin-right: auto; }
  .site-header.is-compact .brand { width: 128px; }
  .btn-nav { display: none; }
  .nav-lang { padding: 2px; gap: 0; }
  .nav-lang-icon { display: none; }
  .nav-lang-link { min-width: 38px; min-height: 40px; padding: 0 0.35rem; font-size: 0.9rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
    background: var(--ink);
    transform: translateX(100%); visibility: hidden;
    transition: transform 280ms var(--ease), visibility 0s linear 280ms;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform 280ms var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { min-height: 56px; padding: 0 0.25rem; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; font-style: italic; text-transform: uppercase; border-bottom: 1px solid var(--line-on-dark); }
  .nav-link::after { display: none; }
  .nav { margin: 0; }

  .space-grid, .contact-grid { grid-template-columns: 1fr; }
  .space-visual { max-width: 560px; }
  .wa-float { padding: 0; width: 56px; justify-content: center; }
  .site-footer { padding-bottom: 5.5rem; } /* keep the last footer links clear of the floating WhatsApp button */
  .wa-float-label { display: none; }
}

@media (max-width: 600px) {
  :root { --cut: 6vw; }
  body { font-size: 1rem; }
  .parts-grid { grid-template-columns: 1fr; }
  .part-card { padding: 1.5rem; }
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .notfound { padding: 1.25rem; }
  .notfound .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer .btn { width: 100%; }
  .wa-float { right: 1rem; bottom: 1rem; }
  /* contact rows: smaller icon tile and spacing so the street address fits on one line */
  .contact-list a { gap: 0.75rem; padding: 1rem; }
  .contact-icon { width: 40px; height: 40px; border-radius: 10px; }
  .contact-icon .icon { width: 20px; height: 20px; }
  .contact-value { font-size: 1.0625rem; }
}

@media (max-width: 340px) {
  /* very narrow phones: the whole row is the link, so the arrow can go to make room for the address */
  .contact-arrow { display: none; }
  .contact-value { font-size: 1rem; }
}

@media (max-width: 380px) {
  .brand { width: 112px; }
  .site-header.is-compact .brand { width: 104px; }
  .nav-lang-link { min-width: 34px; }
}

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