/* ==========================================================================
   base.css — design tokens, reset, typography
   ========================================================================== */

:root {
  /* Brand colours */
  --navy:        #0A1931;
  --navy-deep:   #08142a;
  --navy-mid:    #122a5a;
  --navy-light:  #1e3a7a;
  --red:         #DC2626;
  --red-dark:    #b91c1c;
  --amber:       #F59E0B;
  --blue:        #2563EB;
  --green:       #059669;
  --brown:       #b45309;
  --whatsapp:    #25D366;
  --whatsapp-dark: #1fba5a;

  /* Neutrals */
  --ink:         #0F172A;
  --muted:       #64748B;
  --placeholder: #94A3B8;
  --line:        #E2E8F0;
  --surface:     #F8FAFC;
  --white:       #ffffff;

  /* Shape & spacing */
  --radius:      6px;
  --radius-lg:   8px;
  --section-pad: clamp(2.5rem, 6vw, 4.5rem);
  --gap:         clamp(1rem, 2.5vw, 1.5rem);
  --container-pad: 1rem;
  --container-max: 1200px;

  /* Sticky header geometry (used for scroll offsets) */
  --nav-h:       60px;   /* 56px bar + 4px red border */
  --subnav-h:    58px;

  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 768px) {
  :root { --container-pad: 1.5rem; }
}

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

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

body, h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: 0; padding: 0; }

table { border-collapse: collapse; }

/* Typography ------------------------------------------------------------- */
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1, "kern" 1, "liga" 1;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Skip link --------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 700;
  color: var(--navy);
}
.skip-link:focus { top: 0.5rem; }
