/* ========== Design tokens ========== */
:root {
  --navy: #0b1f3a;
  --navy-700: #16345f;
  --ink: #1f2a3d;
  --muted: #55627a;
  --blue: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbe7ff;
  --blue-50: #eef4ff;
  --wa: #128c4a; /* darker WhatsApp green so white text meets contrast */
  --wa-dark: #0e7340;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --line: #e1e8f3;
  --danger: #b42318;
  --ok: #0e7340;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 28px rgba(11, 31, 58, 0.12);

  --header-h: 68px;
  --mobile-bar-h: 64px;
  --container: 1160px;

  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

/* ========== Layout helpers ========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section--tint {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.section-actions {
  margin-top: 36px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.block {
  display: block;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ========== Chips ========== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chips li {
  padding: 7px 14px;
  font-size: 0.92rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
}

.chips__more {
  background: transparent !important;
  border-style: dashed !important;
}

/* ========== 404 ========== */
.not-found {
  text-align: center;
}

.not-found__inner {
  max-width: 640px;
}

.not-found__code {
  margin: 0;
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue-100);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

/* ========== Responsive grids ========== */
@media (max-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Leave room for the fixed bottom contact bar */
  body {
    padding-bottom: var(--mobile-bar-h);
  }
}

@media (min-width: 1600px) {
  :root {
    --container: 1280px;
  }
}

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