/* ==========================================================================
   Spring Drops — Global foundation
   Tokens, reset, typography, layout primitives, forms, buttons
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Manrope:wght@300..800&display=swap");

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy: #06202f;
  --navy-2: #0a2b40;
  --navy-3: #10384f;
  --ink: #08202f;
  --ink-80: rgba(8, 32, 47, 0.8);
  --ink-70: rgba(8, 32, 47, 0.68);
  --ink-55: rgba(8, 32, 47, 0.55);
  --ink-40: rgba(8, 32, 47, 0.4);

  --brand: #0b63b7;
  --brand-600: #0a57a0;
  --brand-700: #084a88;
  --aqua: #2fb6ce;
  --aqua-2: #79d3e2;
  --aqua-3: #c9edf4;

  --ice: #edf6fa;
  --ice-2: #f5fafc;
  --ice-3: #e3f1f7;
  --paper: #ffffff;
  --sand: #f7f4ee;

  --line: rgba(8, 32, 47, 0.13);
  --line-soft: rgba(8, 32, 47, 0.075);
  --line-strong: rgba(8, 32, 47, 0.22);

  --ok: #17805a;
  --warn: #b9760c;
  --danger: #b3372f;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --gutter: clamp(20px, 3.4vw, 44px);
  --section: clamp(64px, 8vw, 128px);
  --radius: 4px;
  --radius-sm: 3px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.42s;

  --shadow-sm: 0 1px 2px rgba(6, 32, 47, 0.05);
  --shadow-md: 0 22px 44px -28px rgba(6, 32, 47, 0.35);
  --shadow-lg: 0 40px 90px -50px rgba(6, 32, 47, 0.5);

  --header-h: 76px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

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

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: 1000px;
}

.wrap--wide {
  max-width: 1640px;
}

.section {
  padding-block: var(--section);
  position: relative;
}

.section--tight {
  padding-block: clamp(44px, 5vw, 76px);
}

.section--ice {
  background: var(--ice-2);
}

.section--ice-deep {
  background: var(--ice);
}

.section--dark {
  background: var(--navy);
  color: #fff;
}

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

.grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 36px);
}

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

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.stack-8 > * + * {
  margin-top: 8px;
}

.stack-16 > * + * {
  margin-top: 16px;
}

.stack-24 > * + * {
  margin-top: 24px;
}

.stack-32 > * + * {
  margin-top: 32px;
}

/* ---------- Typography ---------- */
.display,
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

h1,
.h1 {
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.028em;
}

h2,
.h2 {
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.024em;
}

h3,
.h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

h4,
.h4 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

.lede {
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.62;
  color: var(--ink-70);
  max-width: 58ch;
}

.body-sm {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-70);
}

.muted {
  color: var(--ink-70);
}

.small {
  font-size: 13px;
  line-height: 1.55;
}

.mono-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow--plain::before {
  display: none;
}

.section--dark .eyebrow {
  color: var(--aqua-2);
}

.serif-italic {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
}

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

/* ---------- Section head ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head__text {
  max-width: 720px;
}

.section-head__text .eyebrow {
  margin-bottom: 18px;
}

.section-head__text .lede {
  margin-top: 18px;
}

.section-head__aside {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 6px;
}

@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn .ico {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-out);
}

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

.btn:hover .ico {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}

.btn--light:hover {
  --btn-bg: var(--ice-3);
  --btn-fg: var(--ink);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
}

.btn--outline-light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: rgba(255, 255, 255, 0.78);
  --btn-bd: transparent;
}

.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.btn--lg {
  min-height: 58px;
  padding: 0 30px;
  font-size: 14px;
}

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

.btn--aqua {
  --btn-bg: var(--aqua);
  --btn-fg: #04222e;
}

.btn--aqua:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), background-size 0.35s var(--ease);
}

.link-arrow .ico {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease-out);
}

.link-arrow:hover {
  color: var(--brand);
  background-size: 0 1px;
}

.link-arrow:hover .ico {
  transform: translateX(4px);
}

.section--dark .link-arrow {
  color: #fff;
}

.section--dark .link-arrow:hover {
  color: var(--aqua-2);
}

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 2px;
  background: var(--ice);
  color: var(--ink-80);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--dark {
  background: var(--navy);
  color: #fff;
}

.badge--aqua {
  background: var(--aqua);
  color: #04222e;
}

.badge--ok {
  background: rgba(23, 128, 90, 0.1);
  color: var(--ok);
}

.badge--warn {
  background: rgba(185, 118, 12, 0.12);
  color: var(--warn);
}

.badge--danger {
  background: rgba(179, 55, 47, 0.1);
  color: var(--danger);
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-70);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field + .field {
  margin-top: 18px;
}

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.label .req {
  color: var(--brand);
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-40);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--line-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 99, 183, 0.12);
}

.textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2308202f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
  cursor: pointer;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-row + .field,
.field + .field-row,
.field-row + .field-row {
  margin-top: 18px;
}

.help {
  font-size: 12.5px;
  color: var(--ink-55);
  line-height: 1.5;
}

.error-text {
  font-size: 12.5px;
  color: var(--danger);
  display: none;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--danger);
}

.field.has-error .error-text {
  display: block;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-70);
}

.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  flex: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.check input:checked {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--navy);
}

.check a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.fill {
  width: 100%;
}

.center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

.hairline {
  height: 1px;
  background: var(--line-soft);
}

/* ---------- Motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

@media print {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header,
  .announce,
  .mobile-menu,
  .overlay,
  .search-overlay {
    display: none !important;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--ice-2);
}

::-webkit-scrollbar-thumb {
  background: rgba(8, 32, 47, 0.2);
  border: 3px solid var(--ice-2);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(8, 32, 47, 0.35);
}
