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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400; /* Bebas Neue só tem regular */
  line-height: var(--lh-heading);
  margin: 0;
  letter-spacing: 0.04em; /* tracking 4% do Figma */
  text-transform: uppercase;
}

p { margin: 0; max-width: 68ch; }

/* Numeric data — tabular figures for specs, prices, tables */
.data, .price, td.num {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

/* Layout primitives */
.container {
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}

.section {
  padding-block: var(--space-7);   /* tablet/telemóvel: --space-6 */
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.section--alt {
  background: var(--color-bg-alt);
}

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

/* Typography utility classes */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.75rem + 0.8vw, 1.5rem); /* 24px a 1440 no Figma */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-amber-ink);
}

.section--navy .eyebrow { color: var(--color-amber); }

.text-muted { color: var(--color-muted); }
.section--navy .text-muted { color: var(--color-muted-on-navy); }
