/* ============================================================
   redesign.css — shared design system that matches the homepage.
   Loaded AFTER main.css on every inner page; overrides by class.
   Tokens: cream #F7F4EC · navy #1A2332 · orange #EE5424 · teal #0E6F66
   Type: Inter (body) + Inter Tight (headings)
   ============================================================ */

:root {
  --color-navy: #1A2332;
  --color-orange: #EE5424;
  --color-orange-hover: #E8663C;
  --color-teal: #0E6F66;
  --color-cream: #F7F4EC;
  --bg-primary: #F7F4EC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F7F4EC;
  --text-primary: #1A2332;
  --text-body: #3A4456;
  --text-muted: #5A6475;
  --text-accent: #0E6F66;
  --border-color: rgba(26, 35, 50, 0.08);
  --dark-bg: #1A2332;
  --dark-bg-deep: #141B27;
  --dark-text-primary: #FFFFFF;
  --dark-text-body: rgba(255, 255, 255, 0.85);
  --dark-text-muted: rgba(255, 255, 255, 0.7);
  --dark-text-accent: #EE5424;
}

/* ---- Type ---- */
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .section-title, .hero-headline, .page-header h1,
.footer-heading {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.hero-headline, .page-header h1, h1 {
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.eyebrow, .section-subtitle.eyebrow {
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ---- Focus / a11y ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Header: floating, brand-matched ---- */
.site-header {
  background: transparent;
  box-shadow: none;
  border: none;
  padding-top: 1rem;
}
.site-header .header-inner {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.06), 0 8px 24px -12px rgba(26, 35, 50, 0.12);
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
}
.nav-link, .dropdown-trigger {
  color: var(--text-body);
  font-weight: 500;
  border-radius: 9999px;
}
.nav-link:hover, .dropdown-trigger:hover { color: var(--color-navy); }
.dropdown-panel {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 60px -20px rgba(26, 35, 50, 0.18);
}
.dropdown-link:hover { color: var(--color-orange); }

/* ---- Buttons: orange pill, large+bold so white passes AA (3:1 large-text) ---- */
.btn-primary, .nav-cta, .hero-cta .btn-primary, .pain-cta .btn-primary,
.services-cta .btn-primary, a.btn-primary {
  background: var(--color-orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem; /* large-text: white-on-orange clears 3:1 */
  border-radius: 9999px;
  border: none;
  box-shadow: 0 1px 3px rgba(26,35,50,.06), 0 8px 24px -12px rgba(26,35,50,.18);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover, .nav-cta:hover, a.btn-primary:hover { background: var(--color-orange-hover); }
.nav-cta { padding: 0.5rem 1.25rem; }
.btn-outline, .btn-ghost {
  border-radius: 9999px;
  border: 1px solid rgba(26,35,50,.15);
  color: var(--color-navy);
  font-weight: 600;
  min-height: 44px;
}
.btn-outline:hover, .btn-ghost:hover { background: var(--color-cream); }

/* ---- Cards: white, rounded, soft shadow (homepage style) ---- */
.card, .service-card, .stat-card, .how-card, .pain-card, .why-card,
.proof-grid > *, .testimonial {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 22px;
  box-shadow: 0 1px 3px rgba(26,35,50,.05), 0 24px 60px -28px rgba(26,35,50,.16);
}
.service-card:hover, .card:hover, .why-card:hover, .how-card:hover {
  transform: translateY(-3px);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.stat-num { color: var(--color-navy); font-family: 'Inter Tight','Inter',sans-serif; }
.stat-label { color: var(--text-muted); }

/* ---- Breadcrumb ---- */
.breadcrumb { color: var(--text-muted); font-size: .875rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--color-orange); }

/* ---- Dark sections / footer band ---- */
.section-dark { background: var(--dark-bg); color: var(--dark-text-body); }

/* ---- Footer: keep the dark navy treatment (brand navy via --dark-bg);
   light text already meets AA on dark. Do NOT force white bg (would break
   the light footer text contrast). ---- */
.site-footer { background: var(--dark-bg); } /* brand navy #1A2332, light text keeps AA */
.footer-link:hover { color: var(--color-orange); }

/* ---- Reveal (CSS, reduced-motion-safe) ---- */
@keyframes rdFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fade-in { animation: rdFadeUp .6s cubic-bezier(.22,1,.36,1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
