/* =============================================================================
   Base: reset, typography, layout primitives, accessibility helpers.
   Uses logical properties throughout so RTL (ar) and LTR (nl/fr/en) share one stylesheet.
   ============================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

h1, h2, h3, h4 {
  margin: 0 0 var(--s-3);
  line-height: var(--lh-heading);
  color: var(--c-navy-900);
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(var(--fs-2xl), 4vw + 1rem, var(--fs-3xl)); }
h2 { font-size: clamp(var(--fs-xl), 2vw + 1rem, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); font-weight: 700; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-block-end: 0; }

a { color: var(--c-blue-600); text-underline-offset: .2em; }
a:hover { color: var(--c-navy-700); }

img, svg, video { max-inline-size: 100%; }
img { display: block; block-size: auto; }

/* :where() keeps this reset at zero specificity so component classes can set their own spacing */
:where(ul[class], ol[class]) { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary, [role="button"], label[for], input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }

/* Visible, consistent focus for keyboard users */
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Layout */
.container {
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--s-5); }
}

.section { padding-block: var(--s-7); }
@media (min-width: 1024px) {
  .section { padding-block: var(--s-8); }
}

.section-head { margin-block-end: var(--s-6); max-inline-size: 720px; }
.section-head p { color: var(--c-text-2); font-size: var(--fs-md); }

.lead { font-size: var(--fs-md); color: var(--c-text-2); }

/* ---------------------------------------------------------------- Icons */
.icon { inline-size: 1.25em; block-size: 1.25em; flex: none; vertical-align: middle; }
/* Arrows and chevrons point the other way in right-to-left languages */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

/* ---------------------------------------------------------------- A11y */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--s-4);
  inset-block-start: calc(-1 * var(--s-8));
  z-index: calc(var(--z-drawer) + 1);
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap);
  padding-inline: var(--s-4);
  border-radius: var(--r-sm);
  background: var(--c-navy-900);
  color: var(--c-on-dark);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: var(--s-3); color: var(--c-on-dark); }

/* Scroll lock while the mobile drawer is open */
.has-drawer-open { overflow: hidden; }

/* ---------------------------------------------------------------- Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
