/* ==========================================================================
   Base — design tokens, reset, typography, utilities
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #061e29;
  --navy-2: #1d546d;
  --teal: #5f9598;
  --teal-2: #1d546d;
  --gray: #4a6a72;
  --light: #f3f4f4;
  --border: #d8e2e3;
  --text: #061e29;

  --white: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f7f9f9;
  --navy-tint: rgba(6, 30, 41, 0.04);
  --teal-tint: rgba(95, 149, 152, 0.12);
  --gold: #c8922a;

  /* Typography */
  --font-display: 'Urbanist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(6, 30, 41, 0.06), 0 1px 2px rgba(6, 30, 41, 0.04);
  --shadow-md: 0 8px 24px rgba(6, 30, 41, 0.08);
  --shadow-lg: 0 20px 50px rgba(6, 30, 41, 0.12);
  --shadow-xl: 0 32px 80px rgba(6, 30, 41, 0.16);

  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- Reset -- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

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

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: var(--navy);
  color: #fff;
}

/* ----------------------------------------------------------- Utilities -- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  color: #fff;
  background: var(--navy);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

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

.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.4rem 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-2);
  background: var(--teal-tint);
  border-radius: var(--r-pill);
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--navy);
}

.section-sub {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--gray);
}

.text-teal {
  color: var(--teal);
}

/* -------------------------------------------------------------- Buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s,
    border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--navy-2);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  color: var(--navy);
  background: transparent;
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--navy-2);
  background: var(--white);
  border-color: var(--teal);
}

.btn--teal {
  color: #fff;
  background: var(--teal);
}

.btn--teal:hover {
  background: var(--navy-2);
}

.btn--light {
  color: var(--navy);
  background: #fff;
}

.btn--light:hover {
  background: var(--light);
}

.btn--outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn--lg {
  padding: 1.05rem 2.25rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------- Scroll reveal -- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
