/* Bluebonnet design tokens — shared across all pages.
   Loaded after Google Fonts, before each page's own <style> block. */

:root {
  /* Color */
  --color-brand: #4B96D2;
  --color-brand-dark: #0848A7;
  --color-brand-soft: #8FC7F5;
  --color-navy: #14171C;
  --color-text-muted: #4A515C;
  --color-text-subtle: #7A828F;
  --color-text-faint: #9AA1AB;
  --color-border: #E2E3E6;
  --color-border-soft: #ECEDEF;
  --color-tint: #EAF1FC;
  --color-footer-link: #C5CAD2;
  --color-footer-label: #6B7280;
  --color-success: #1E9D5B;
  --color-accent-amber: #C9821A;
  --color-white: #FFFFFF;

  /* Hero gradient stops (consolidates one-off navy shades used only in hero overlays) */
  --color-hero-grad-1: #0A0F16;
  --color-hero-grad-2: #0E1319;
  --color-hero-grad-3: #101A28;

  /* Type scale — clamp(min, preferred, max) */
  --font-display: clamp(2.75rem, 2.1rem + 3vw, 4.75rem);   /* 44px → 76px, home hero only */
  --font-h1: clamp(2.125rem, 1.7rem + 1.8vw, 3.625rem);      /* 34px → 58px, internal page H1 */
  --font-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.75rem);       /* 28px → 44px */
  --font-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6875rem);      /* 20px → 27px */
  --font-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);    /* 18px → 21px */
  --font-body: clamp(1rem, 0.96rem + 0.16vw, 1.0625rem);     /* 16px → 17px */
  --font-body-sm: clamp(0.9375rem, 0.92rem + 0.08vw, 1rem);  /* 15px → 16px */

  /* Spacing — desktop value; mobile override applied per-breakpoint where used */
  --space-section-lg: 128px;
  --space-section: 96px;
  --space-section-sm: 72px;
  --space-section-lg-mobile: 64px;
  --space-section-mobile: 56px;
  --space-section-sm-mobile: 48px;
}

/* Typography utilities — opt-in per element; inline font-size overrides still win,
   so these apply cleanly only where no conflicting inline style is set. */
.token-display { font-size: var(--font-display); line-height: 1.02; }
.token-h1 { font-size: var(--font-h1); line-height: 1.08; }
.token-h2 { font-size: var(--font-h2); line-height: 1.12; }
.token-h3 { font-size: var(--font-h3); line-height: 1.2; }
.token-h4 { font-size: var(--font-h4); line-height: 1.3; }
.token-body { font-size: var(--font-body); line-height: 1.6; }
.token-body-sm { font-size: var(--font-body-sm); line-height: 1.55; }

/* Button system */
.btn-primary,
.btn-secondary,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 150ms ease;
  min-height: 48px;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
  border: 1px solid var(--color-brand);
  border-radius: 10px;
  padding: 14px 28px;
}
.btn-primary:hover { background: var(--color-brand-dark); border-color: var(--color-brand-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 28px;
}
.btn-secondary:hover { border-color: var(--color-brand); color: var(--color-brand); }
.btn-secondary:active { transform: translateY(1px); }

.btn-text {
  background: none;
  border: none;
  color: var(--color-brand);
  padding: 4px 0;
  min-height: auto;
  border-bottom: 1.5px solid transparent;
}
.btn-text:hover { border-bottom-color: var(--color-brand); }

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-text:focus-visible {
  outline: 2px solid var(--color-brand-dark);
  outline-offset: 2px;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-secondary, .btn-text { transition: none; }
}
