/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  /* Brand */
  --c-navy: #011142;
  --c-blue: #0231bd;
  --c-ink: #0c0c0d;

  /* Surfaces */
  --c-bg: #f4f5f7;
  --c-bg-alt: #e5e6e9;
  --c-surface: #ffffff;
  --c-slot: #e9ebef;

  /* Text */
  --c-text: #4a4d57;
  --c-text-soft: #5b5f6b;
  --c-muted: #6b6f7a;
  --c-muted-light: #9da1ae;
  --c-muted-dark: #6f7789;

  /* Lines */
  --c-line: rgba(12, 12, 13, 0.1);
  --c-line-strong: rgba(12, 12, 13, 0.15);
  --c-line-card: rgba(12, 12, 13, 0.09);
  --c-line-field: rgba(12, 12, 13, 0.18);
  --c-line-navy: rgba(1, 17, 66, 0.24);
  --c-line-blue: rgba(2, 49, 189, 0.28);

  /* State */
  --c-error: #c0392b;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Furore", "Unbounded", var(--font-body);

  /* Metrics */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;
  --radius: 8px;
  --radius-sm: 4px;
  --section-y: clamp(56px, 7vw, 108px);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

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

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

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

button {
  cursor: pointer;
}

::placeholder {
  color: var(--c-muted-light);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section {
  position: relative;
}

.section__inner {
  padding-block: var(--section-y);
}

.section--divided {
  border-top: 1px solid var(--c-line);
}

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

.section--muted {
  background: var(--c-bg);
}

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

.section--navy {
  background: var(--c-navy);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.kicker--muted {
  color: var(--c-muted-light);
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 74px);
  font-weight: 600;
  line-height: 1.04;
  color: var(--c-navy);
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--c-navy);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--c-navy);
}

.lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--c-text);
  text-wrap: pretty;
}

.body-text {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.75;
  color: var(--c-text);
  text-wrap: pretty;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 19px 30px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn--primary {
  background: var(--c-blue);
  color: var(--c-surface);
}

.btn--primary:hover {
  background: var(--c-navy);
  color: var(--c-surface);
}

.btn--navy {
  background: var(--c-navy);
  color: var(--c-surface);
}

.btn--navy:hover {
  background: var(--c-blue);
  color: var(--c-surface);
}

.btn--ghost {
  border-color: var(--c-line-navy);
  color: var(--c-navy);
}

.btn--ghost:hover {
  border-color: var(--c-navy);
  color: var(--c-navy);
}

.btn--sm {
  padding: 14px 22px;
  font-size: 14px;
}

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

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line-card);
  border-radius: var(--radius);
  padding: clamp(22px, 2.2vw, 30px);
  transition: border-color 0.2s var(--ease);
}

.card:hover {
  border-color: rgba(2, 49, 189, 0.4);
}

/* ==========================================================================
   Photo slots
   --------------------------------------------------------------------------
   Placeholder until real photography lands. Drop an <img class="media__img">
   inside and delete the hint — no other change needed.
   ========================================================================== */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-slot);
  box-shadow: inset 0 0 0 1px var(--c-line-card);
}

.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reproduces the design's slot crop, which sits below centre. */
.media__img--low {
  object-position: 50% 74%;
}

.media__hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--c-muted);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

/* ==========================================================================
   Breakpoints — shared primitives
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --header-h: 69px;
    --gutter: 20px;
    --section-y: 40px;
  }

  .h1 {
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .h2 {
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -0.03em;
  }

  .h3 {
    font-size: 17px;
    letter-spacing: -0.025em;
  }

  .kicker {
    letter-spacing: 0.1em;
  }

  .lead,
  .body-text {
    font-size: 15px;
  }

  .btn {
    /* comfortable tap target */
    min-height: 52px;
    padding: 18px 24px;
  }

  .card {
    padding: 20px 18px;
  }
}

