/* ABQ Reclaimed — global styles & design tokens.
   Design system adapted from the New Mexico Literacy Project house style
   (warm Santa-Fe palette, Cinzel display headings). Standalone — this site
   shares no files with any other project. */

:root {
  --color-charcoal: #2c2c2c;
  --color-terracotta: #C7522A;
  --color-terracotta-deep: #b04421;
  --color-turquoise: #2E8B8B;
  --color-turquoise-deep: #1f6a6a;
  --color-gold: #D4AF37;
  --color-gold-readable: #8B6914;   /* WCAG AA on white/cream */
  --color-cream: #faf9f6;
  --color-adobe: #F5E6CC;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --elev-1: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --elev-2: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.05);
  --elev-3: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --elev-4: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

h1, h2, h3, h4, h5, h6, .font-cinzel {
  font-family: 'Cinzel', serif;
  font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1;
}
.font-serif { font-family: 'Playfair Display', serif; }

h1, h2, h3 {
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h4, h5, h6 {
  line-height: var(--leading-snug);
  letter-spacing: -0.005em;
}
h1 { overflow-wrap: break-word; hyphens: auto; }

article p, .prose p { line-height: var(--leading-relaxed); }

/* Focus ring — keyboard-only */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}
a.btn-primary:focus-visible,
a.btn-secondary:focus-visible,
button.btn-primary:focus-visible,
button.btn-secondary:focus-visible,
.trust-chip:focus-visible { outline-offset: 4px; }

::selection { background: rgba(199, 82, 42, 0.18); color: var(--color-charcoal); }

/* Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* ============================================================
   HERO — gradient-based, no photo dependency. A deep charcoal /
   turquoise / terracotta blend that reads as "high desert dusk".
   ============================================================ */
.hero-reclaimed {
  position: relative;
  background: linear-gradient(135deg, #262626 0%, #1f3d3d 48%, #3b2418 100%);
  overflow: hidden;
}
.hero-reclaimed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 82% 8%, rgba(46,139,139,0.30), transparent 62%),
    radial-gradient(ellipse 50% 55% at 8% 92%, rgba(199,82,42,0.26), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero-reclaimed > * { position: relative; z-index: 1; }
.hero-reclaimed h1 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 8px 30px rgba(0,0,0,0.40);
  font-weight: 800;
}

/* Gradient text */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #5EC6D0, #F0D060);
}
.text-gradient-terracotta {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-terracotta), var(--color-gold));
}

/* Hover effects */
.hover-lift {
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.hover-lift:hover,
.hover-lift:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--elev-4);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-adobe); }
::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-terracotta); }

/* ============================================================
   BUTTON SYSTEM — primary (filled), secondary (outline), text.
   ============================================================ */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--color-terracotta);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.25s var(--ease-out-quart),
    border-color 0.25s var(--ease-out-quart),
    color 0.25s var(--ease-out-quart),
    transform 0.25s var(--ease-out-expo),
    box-shadow 0.25s var(--ease-out-expo);
}
.btn-primary {
  background: var(--color-terracotta);
  color: #fff;
  box-shadow: var(--elev-2);
}
.btn-primary:hover {
  background: var(--color-terracotta-deep);
  border-color: var(--color-terracotta-deep);
  transform: translateY(-2px);
  box-shadow: var(--elev-3), 0 0 0 4px rgba(199,82,42,0.08);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--elev-1); }
.btn-secondary { background: transparent; color: var(--color-terracotta); }
.btn-secondary:hover {
  background: rgba(199,82,42,0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(199,82,42,0.06);
}
/* On dark backgrounds the outline button turns white */
.on-dark .btn-secondary,
.hero-reclaimed .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.85);
}
.on-dark .btn-secondary:hover,
.hero-reclaimed .btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-turquoise);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-text::after { content: "\2192"; transition: transform 0.2s ease; }
.btn-text:hover { color: var(--color-terracotta); }
.btn-text:hover::after { transform: translateX(3px); }

/* ============================================================
   TRUST CHIP — pill credibility markers.
   ============================================================ */
.trust-chip-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 0.6rem;
  max-width: 64rem; margin: 0 auto;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(212,175,55,0.45);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
}
.trust-chip svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--color-gold); }
.trust-chip-light {
  border-color: rgba(44,44,44,0.18);
  background: rgba(250,249,246,0.7);
  color: var(--color-charcoal);
}
.trust-chip-light svg { color: var(--color-terracotta); }
@media (max-width: 640px) {
  .trust-chip { font-size: 0.78rem; padding: 0.35rem 0.75rem; }
}

/* Section divider rule */
.rule-gold {
  width: 64px; height: 3px; border-radius: 2px;
  background: var(--color-gold);
}

/* Step number badge */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.25rem;
  background: var(--color-turquoise); color: #fff;
  flex-shrink: 0;
}

/* Mobile sticky call bar */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.12);
}
.mobile-callbar a {
  flex: 1; text-align: center;
  padding: 0.85rem 0.5rem;
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
@media (min-width: 1024px) { .mobile-callbar { display: none; } }
body { padding-bottom: 56px; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* Accessible gold on light backgrounds */
.text-gold-readable { color: var(--color-gold-readable); }

/* ============================================================
   ACCESSIBILITY + PRINT
   ============================================================ */
@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;
  }
  .hover-lift:hover, .btn-primary:hover, .btn-secondary:hover { transform: none !important; }
}
@media (prefers-contrast: more) {
  body { color: #1a1a1a; }
  .btn-primary, .btn-secondary { border-width: 3px; }
}
@media print {
  nav, footer, .mobile-callbar, .no-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; padding-bottom: 0; }
  a[href^="http"]::after, a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}
