/* ==========================================================================
   ESBAP Design System — style.css
   Ethical Standards Board for ABA Providers
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors — Primary */
  --navy: #1a365d;
  --navy-light: #234876;
  --blue: #2b6cb0;
  --sky: #27AAE1;
  --green: #38a169;
  --logo-green: #8CC640;
  --gold: #d69e2e;
  --cream: #f7fafc;

  /* Colors — Neutral */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Colors — Semantic */
  --success: #38a169;
  --error: #e53e3e;
  --warning: #d69e2e;
  --info: #2b6cb0;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(26, 54, 93, 0.08);
  --shadow-card-hover: 0 4px 20px rgba(26, 54, 93, 0.14);
  --shadow-nav: 0 1px 4px rgba(26, 54, 93, 0.06);
  --shadow-lg: 0 8px 30px rgba(26, 54, 93, 0.12);
  --shadow-btn: 0 2px 6px rgba(26, 54, 93, 0.15);

  /* Radii */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --radius-sm: 4px;

  /* Layout */
  --max-width: 1200px;
  --max-width-wide: 1400px;
  --nav-height: 72px;

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

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

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

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

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

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--cream);
}

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

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.85);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section__header p {
  color: var(--gray-500);
  font-size: 1.125rem;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-nav);
  height: var(--nav-height);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sky);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--blue);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--white) !important;
  box-shadow: var(--shadow-btn);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1010;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
}

/* --------------------------------------------------------------------------
   6. Hero Sections
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 170, 225, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 198, 64, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  font-size: 3.25rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: var(--sky);
  margin-bottom: 16px;
  display: block;
  position: relative;
  z-index: 1;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.about-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.about-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   7. Search Bar
   -------------------------------------------------------------------------- */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.search-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
}

.search-input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(39, 170, 225, 0.15);
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-select {
  padding: 14px 36px 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-600);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  min-width: 140px;
  transition: border-color var(--duration) var(--ease);
}

.search-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(39, 170, 225, 0.15);
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--sky);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.search-btn:hover {
  background: var(--blue);
  box-shadow: var(--shadow-btn);
}

.filter-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
  text-decoration: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.filter-pill.active {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   8. Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stats bar on light backgrounds */
.stats-bar--light .stat-num {
  color: var(--navy);
}

.stats-bar--light .stat-label {
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

/* Info Card */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.info-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.info-card__icon--sky {
  background: rgba(39, 170, 225, 0.1);
  color: var(--sky);
}

.info-card__icon--green {
  background: rgba(56, 161, 105, 0.1);
  color: var(--green);
}

.info-card__icon--gold {
  background: rgba(214, 158, 46, 0.1);
  color: var(--gold);
}

.info-card__icon--navy {
  background: rgba(26, 54, 93, 0.08);
  color: var(--navy);
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.info-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Value Card */
.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.value-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
  background: rgba(39, 170, 225, 0.08);
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

/* Org Card (directory listing) */
.org-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.org-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.org-card__name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.org-card__name a {
  color: var(--navy);
  text-decoration: none;
}

.org-card__name a:hover {
  color: var(--blue);
}

.org-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.org-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.org-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* Claim Card */
.claim-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--gray-200);
  text-align: center;
}

.claim-card:hover {
  border-color: var(--sky);
}

/* --------------------------------------------------------------------------
   10. Directory Layout
   -------------------------------------------------------------------------- */
.directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.filters-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.filters-panel h3 {
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --------------------------------------------------------------------------
   11. Organization Profile
   -------------------------------------------------------------------------- */
.org-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 0 40px;
  color: var(--white);
}

.org-header h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.org-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.org-profile {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  padding-top: 32px;
}

.org-profile__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.org-profile__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row__label {
  color: var(--gray-500);
  font-weight: 500;
}

.info-row__value {
  color: var(--gray-800);
  font-weight: 600;
  text-align: right;
}

/* --------------------------------------------------------------------------
   12. Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--green {
  background: rgba(56, 161, 105, 0.1);
  color: var(--green);
}

.badge--red {
  background: rgba(229, 62, 62, 0.1);
  color: var(--error);
}

.badge--blue {
  background: rgba(43, 108, 176, 0.1);
  color: var(--blue);
}

.badge--gray {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge--gold {
  background: rgba(214, 158, 46, 0.1);
  color: var(--gold);
}

.badge--sky {
  background: rgba(39, 170, 225, 0.1);
  color: var(--sky);
}

.badge--navy {
  background: rgba(26, 54, 93, 0.08);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   13. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn--navy:hover {
  background: var(--navy-light);
  box-shadow: var(--shadow-btn);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover {
  background: #c08e1f;
  box-shadow: var(--shadow-btn);
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
}

.btn--blue:hover {
  background: var(--navy);
  box-shadow: var(--shadow-btn);
}

.btn--sky {
  background: var(--sky);
  color: var(--white);
}

.btn--sky:hover {
  background: var(--blue);
  box-shadow: var(--shadow-btn);
}

.btn--outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.btn--outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(26, 54, 93, 0.04);
}

.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

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

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.field-group {
  margin-bottom: 20px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.field-label--light {
  color: rgba(255, 255, 255, 0.8);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(39, 170, 225, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.form-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 4px;
}

.form-success {
  font-size: 0.875rem;
  color: var(--green);
  padding: 12px 16px;
  background: rgba(56, 161, 105, 0.08);
  border-radius: var(--radius);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   15. Toggle
   -------------------------------------------------------------------------- */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-600);
  user-select: none;
}

.toggle input {
  display: none;
}

.toggle__slider {
  width: 44px;
  height: 24px;
  background: var(--gray-300);
  border-radius: 12px;
  position: relative;
  transition: background var(--duration) var(--ease);
  flex-shrink: 0;
}

.toggle__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform var(--duration) var(--ease);
}

.toggle input:checked + .toggle__slider {
  background: var(--green);
}

.toggle input:checked + .toggle__slider::after {
  transform: translateX(20px);
}

/* --------------------------------------------------------------------------
   16. Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.pagination__btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(43, 108, 176, 0.04);
}

.pagination__btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   17. Loading
   -------------------------------------------------------------------------- */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--gray-400);
  font-size: 0.9375rem;
}

.loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   18. Empty State
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-400);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--gray-600);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9375rem;
  max-width: 400px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   19. Mission Section
   -------------------------------------------------------------------------- */
.mission {
  max-width: 800px;
  margin: 0 auto;
}

.mission__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  margin-bottom: 12px;
}

.mission__text {
  font-size: 1.25rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mission__quote {
  position: relative;
  padding: 32px 40px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--sky);
  margin: 32px 0;
}

.mission__quote p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}

.mission__quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   20. Signup Form (navy section)
   -------------------------------------------------------------------------- */
.signup-form {
  max-width: 560px;
  margin: 0 auto;
}

.signup-form .form-row {
  gap: 12px;
}

.signup-form input,
.signup-form select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.signup-form input:focus,
.signup-form select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(39, 170, 225, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.signup-form select {
  color: rgba(255, 255, 255, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.signup-form select option {
  background: var(--navy);
  color: var(--white);
}

.signup-form .btn {
  margin-top: 8px;
}

.signup-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-align: center;
  display: none;
}

.signup-message--success {
  display: block;
  background: rgba(56, 161, 105, 0.15);
  color: var(--logo-green);
}

.signup-message--error {
  display: block;
  background: rgba(229, 62, 62, 0.15);
  color: #fc8181;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer a:hover {
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand img {
  height: 36px;
  width: auto;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col li a {
  font-size: 0.875rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer__address {
  font-size: 0.8125rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   22. Location List
   -------------------------------------------------------------------------- */
.location-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.location-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
}

.location-item:last-child {
  border-bottom: none;
}

.location-item__address {
  color: var(--gray-600);
}

.location-item__badge {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   23. Divider
   -------------------------------------------------------------------------- */
.divider {
  border: none;
  height: 1px;
  background: var(--gray-200);
  margin: 32px 0;
}

.divider--light {
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   24. Results Header
   -------------------------------------------------------------------------- */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.results-count strong {
  color: var(--navy);
  font-weight: 700;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.results-sort select {
  width: auto;
  padding: 8px 32px 8px 12px;
  font-size: 0.8125rem;
  border-color: var(--gray-200);
}

/* --------------------------------------------------------------------------
   25. Grid helpers
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --------------------------------------------------------------------------
   26. Quote Section
   -------------------------------------------------------------------------- */
.quote-section {
  text-align: center;
  padding: 80px 24px;
}

.quote-section blockquote {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  max-width: 720px;
  margin: 0 auto 20px;
}

.quote-section cite {
  display: block;
  font-style: normal;
  font-size: 1rem;
  color: var(--gray-500);
}

.quote-section cite strong {
  color: var(--gray-700);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   27. Problem / Why Section
   -------------------------------------------------------------------------- */
.why-section {
  text-align: center;
}

.why-section .section__header {
  max-width: 760px;
}

.why-section .section__header p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.problem-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.problem-stat {
  text-align: center;
}

.problem-stat__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1.1;
}

.problem-stat__label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
  max-width: 160px;
}

/* --------------------------------------------------------------------------
   28. Responsive — Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .section {
    padding: 60px 0;
  }

  .directory-layout {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

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

  .org-profile {
    grid-template-columns: 1fr 300px;
    gap: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

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

  .stats-bar {
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   29. Responsive — Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  /* Nav — hamburger mode */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1005;
    padding: 80px 24px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-links .nav-cta {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 72px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Search */
  .search-box {
    margin: 0 16px 20px;
  }

  .search-row {
    flex-direction: column;
  }

  .search-select {
    min-width: auto;
    width: 100%;
  }

  .filter-pills {
    gap: 8px;
    padding: 0 16px;
  }

  .filter-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  /* Stats */
  .stats-bar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 24px 16px;
  }

  .stat {
    min-width: 100px;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }

  /* Cards */
  .value-card {
    padding: 28px 24px;
  }

  .info-card {
    padding: 24px;
  }

  /* Directory */
  .directory-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .org-grid {
    grid-template-columns: 1fr;
  }

  /* Org profile */
  .org-profile {
    grid-template-columns: 1fr;
  }

  .org-header h1 {
    font-size: 1.75rem;
  }

  /* Grids */
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Quote */
  .quote-section blockquote {
    font-size: 1.5rem;
  }

  .quote-section {
    padding: 48px 16px;
  }

  /* Mission */
  .mission__quote {
    padding: 24px;
  }

  .mission__quote p {
    font-size: 1.0625rem;
  }

  .mission__text {
    font-size: 1.0625rem;
  }

  /* Problem stats */
  .problem-stats {
    gap: 24px;
  }

  .problem-stat__num {
    font-size: 2rem;
  }

  /* Results */
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Signup */
  .signup-form {
    padding: 0 8px;
  }
}

/* --------------------------------------------------------------------------
   30. Responsive — Small Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .search-btn {
    padding: 12px 20px;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .section {
    padding: 40px 0;
  }

  .footer {
    padding: 48px 0 0;
  }
}

/* --------------------------------------------------------------------------
   31. Print
   -------------------------------------------------------------------------- */
@media print {
  .nav,
  .footer,
  .signup-form,
  .search-box,
  .filter-pills {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero,
  .section--navy {
    background: #eee !important;
    color: #000 !important;
  }

  .hero h1,
  .section--navy h2 {
    color: #000 !important;
  }
}
