/* ============================================================
   base.css — design tokens, reset, shared primitives
   ============================================================ */

:root {
  /* Colors */
  --bg: #e8f0f7;
  --surface: #ffffff;
  --surface-2: #f2f7fb;

  --navy-900: #14304d;
  --navy-800: #1c3d5e;
  --steel-700: #345b7d;
  --steel-600: #3f6b90;

  --primary: #2f80b9;
  --primary-soft: #d9eafb;
  --primary-softer: #ecf4fc;

  --text-1: #1e2a38;
  --text-2: #5b6d7f;
  --text-3: #93a5b5;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #a9bccd;

  --border: #e3ebf2;
  --border-strong: #d3dfe9;

  --green: #27a866;
  --green-soft: #e3f5ec;
  --amber: #d99a2b;
  --amber-soft: #faf1de;
  --red: #e05252;
  --red-soft: #fdeeee;

  /* Logo inks — the two teal loops and the sand swoosh of the OMNIA mark */
  --logo-teal: #7bc4cd;
  --logo-teal-deep: #5aa8af;
  --logo-sand: #cdbfa6;
  --logo-teal-wash: #eaf6f7;
  --logo-sand-wash: #f6f2ea;

  /* Shape & elevation */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-card: 0 2px 10px rgba(20, 48, 77, 0.05);
  --shadow-pop: 0 10px 30px rgba(20, 48, 77, 0.18);

  /* Typography */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

/* The hidden attribute must always win, even over display:flex/grid rules */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* Shared icon sizing — swap the inline SVGs for your icon set later */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Generic white rounded card */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---------- Narrow screens ---------- */

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

img,
video {
  max-width: 100%;
}

@media (max-width: 900px) {
  /* A stray wide element scrolls inside its own box, never the whole page.
     clip (not hidden) keeps position: sticky working on the section shells. */
  body {
    overflow-x: clip;
  }
}
