/* ============================================================
   Jigsaw Developmental Services — v2 Design System
   Aesthetic: Warm pediatric care — soft sage greens, warm creams,
   gentle corals, clean white space. Nurturing but credentialed.
   Nunito (rounded, friendly) + Lora (trustworthy serif display).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  /* Palette */
  --sage:        #5B8C6B;
  --sage-mid:    #7AAD8A;
  --sage-light:  #C8DDD0;
  --sage-pale:   #EBF3EE;
  --coral:       #E07B5A;
  --coral-light: #F5C4B4;
  --coral-pale:  #FDF0EB;
  --cream:       #FBF7F0;
  --warm-white:  #FEFCF9;
  --sand:        #F0E8D8;
  --sand-mid:    #D9CEBA;
  --bark:        #5C4033;
  --bark-mid:    #8B6355;
  --text:        #2D2420;
  --text-mid:    #5A4A42;
  --text-muted:  #998880;
  --border:      rgba(92,64,51,0.1);
  --border-mid:  rgba(92,64,51,0.18);

  /* Typography */
  --font-body:    'Nunito', system-ui, sans-serif;
  --font-display: 'Lora', Georgia, serif;

  /* Radii */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(92,64,51,0.07);
  --shadow-md: 0 6px 28px rgba(92,64,51,0.10);
  --shadow-lg: 0 16px 56px rgba(92,64,51,0.12);

  --max-w: 1180px;
  --nav-h: 76px;
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--bark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
p  { color: var(--text-mid); max-width: 64ch; line-height: 1.75; }
.lead { font-size: 1.12rem; font-weight: 400; color: var(--text-mid); }
em { font-style: italic; }
strong { font-weight: 700; color: var(--bark); }

/* ── Layout ── */
.container { width: min(var(--max-w), 100% - 2.5rem); margin-inline: auto; }
.section    { padding-block: clamp(4rem, 8vw, 7rem); }
.section--alt { background: var(--sage-pale); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }

.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.85rem;
}
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header p { margin-top: 0.85rem; }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,252,249,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bark);
  line-height: 1.15;
}
.nav-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--sage);
  background: var(--sage-pale);
}
.nav-cta {
  background: var(--sage) !important;
  color: white !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: var(--r-pill) !important;
  margin-left: 0.5rem;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--bark) !important;
  transform: translateY(-1px);
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--warm-white);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.75rem 0.5rem 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1rem;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--text-mid) !important;
  background: transparent !important;
}
.dropdown a:hover { color: var(--sage) !important; background: var(--sage-pale) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bark);
  border-radius: 2px;
  transition: 0.25s;
}

/* ── Phone bar ── */
.phone-bar {
  background: var(--sage);
  color: white;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.phone-bar a { color: white; }

/* ── Hero ── */
.hero {
  background: var(--cream);
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center, var(--sage-pale) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, var(--coral-pale) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage-pale);
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.5rem;
  border: 1px solid var(--sage-light);
}
.hero h1 { margin-bottom: 1.25rem; font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.2; }
.hero h1 em { font-style: italic; color: var(--sage); }
.hero-sub { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-mid);
  flex-wrap: wrap;
}
.hero-trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--sage);
  line-height: 1;
}
.hero-trust-item span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.hero-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--sage-light);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sage-pale) 0%, var(--sage-light) 100%);
  gap: 1rem;
}
.hero-visual-placeholder svg { opacity: 0.35; }
.hero-visual-placeholder p {
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 600;
  max-width: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--sage);
  color: white;
}
.btn-primary:hover { background: var(--bark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}
.btn-outline:hover { background: var(--sage); color: white; }
.btn-coral {
  background: var(--coral);
  color: white;
}
.btn-coral:hover { background: var(--bark); transform: translateY(-2px); }
.btn-white {
  background: white;
  color: var(--sage);
}
.btn-white:hover { background: var(--cream); }
.btn-white-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-white-outline:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ── Trust bar ── */
.trust-bar {
  background: var(--sage);
  padding-block: 0.85rem;
  color: white;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.95;
  padding: 0 1.5rem;
}
.trust-dot {
  opacity: 0.35;
  font-size: 1rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .trust-bar-inner {
    animation: trust-scroll 18s linear infinite;
    width: max-content;
    justify-content: flex-start;
  }
  @keyframes trust-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* ── Why Jigsaw ── */
.section-header { text-align: center; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  max-width: 820px;
  margin-inline: auto;
}
.section-header p {
  max-width: 640px;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-top: 0.75rem;
  margin-inline: auto;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--sage-pale);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--sage-light);
}
.why-card h4 { margin-bottom: 0.5rem; color: var(--bark); }
.why-card p { font-size: 0.92rem; max-width: none; }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card-top {
  background: var(--sage-pale);
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--sage-light);
}
.service-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card-top h3 { font-size: 1.15rem; color: var(--bark); }
.service-card-body { padding: 1.5rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.service-card-body p { font-size: 0.9rem; max-width: none; flex: 1; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage);
  margin-top: 1.25rem;
  transition: gap 0.2s;
}
.service-link:hover { gap: 0.6rem; }

/* ── Areas served ── */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.area-pill {
  background: white;
  border: 1.5px solid var(--sage-light);
  color: var(--sage);
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s;
}
.area-pill:hover { background: var(--sage); color: white; border-color: var(--sage); }

/* ── Insurance ── */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.insurance-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.insurance-card:hover { border-color: var(--sage-light); box-shadow: var(--shadow-sm); }
.insurance-check {
  width: 28px;
  height: 28px;
  background: var(--sage-pale);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--sage);
  font-size: 0.85rem;
}

/* ── Process steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.5rem;
  top: 2.75rem;
  color: var(--sage-light);
  font-size: 1.5rem;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}
.process-step h4 { margin-bottom: 0.4rem; font-size: 0.95rem; }
.process-step p { font-size: 0.85rem; max-width: none; }

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.team-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--sage-pale);
  object-fit: cover;
  object-position: center 30%;
  object-position: top;
}
.team-photo-placeholder {
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--sage-pale), var(--sage-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.team-info { padding: 1.5rem; }
.team-name { font-size: 1.1rem; color: var(--bark); margin-bottom: 0.15rem; }
.team-title { font-size: 0.8rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.85rem; }
.team-bio { font-size: 0.875rem; max-width: none; line-height: 1.6; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(74,46,20,0.08);
  transform: translateY(-2px);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--sage-light);
  line-height: 0.8;
  display: block;
  margin-bottom: 0.25rem;
  user-select: none;
  aria-hidden: true;
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  margin-top: 1.75rem;
  color: var(--text-mid);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bark);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.testimonial-name { font-weight: 700; font-size: 0.88rem; color: var(--bark); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--bark);
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--bark-mid) 0%, transparent 70%);
  opacity: 0.5;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
  opacity: 0.2;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--sand); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-banner p { color: rgba(240,232,216,0.8); max-width: 54ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact form ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-icon {
  width: 46px; height: 46px;
  background: var(--sage-pale);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--sage-light);
}
.contact-info-item h4 { margin-bottom: 0.25rem; font-size: 0.9rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.9rem; max-width: none; }
.contact-info-item a { color: var(--sage); }

.form-card {
  background: white;
  border-radius: var(--r-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--warm-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(91,140,107,0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }
.form-status { padding: 0.85rem 1rem; border-radius: var(--r-md); margin-top: 1rem; font-size: 0.9rem; font-weight: 600; }
.form-status.success { background: var(--sage-pale); color: var(--sage); border: 1px solid var(--sage-light); }
.form-status.error   { background: var(--coral-pale); color: var(--coral); border: 1px solid var(--coral-light); }

/* ── Footer ── */
.site-footer {
  background: var(--bark);
  color: var(--sand);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(240,232,216,0.12);
}
.footer-brand-logo { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-brand-logo .nav-logo-text { color: var(--sand); }
.footer-brand-logo .nav-logo-text span { color: var(--sage-light); }
.footer-tagline { font-size: 0.88rem; color: rgba(240,232,216,0.65); margin-bottom: 1.25rem; max-width: none; }
.footer-contact { font-style: normal; font-size: 0.88rem; line-height: 2; }
.footer-contact a { color: var(--sage-light); }
.footer-contact a:hover { color: var(--sand); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); /* 6 cards = 3x2 */ gap: 2rem; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.875rem; color: rgba(240,232,216,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom {
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(240,232,216,0.4); max-width: none; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(240,232,216,0.1);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: rgba(240,232,216,0.6);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--sage); color: white; }

/* ── Utilities ── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 3px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fadeUp 0.6s var(--ease) both; animation-play-state: paused; }
.anim.visible { animation-play-state: running; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; flex-direction: column; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--warm-white); padding: 2rem; z-index: 99; overflow-y: auto; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; background: var(--sage-pale); opacity: 1; transform: none; pointer-events: all; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .process-step:not(:last-child)::after { display: none; }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-trust { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ── Client Stats Section ── */
.client-stats {
  padding: 5rem 0;
  background: #FAF7F4;
}
.client-stats h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  color: #4A2E14;
  margin-bottom: 0.75rem;
}
.section-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C17B4B;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: #6B5744;
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 6 cards = 3x2 */
  gap: 1px;
  background: var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.stat-number {
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 0.6rem;
}
.stat-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 18ch;
  margin-inline: auto;
}
.stats-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Legal / Policy Pages ── */
.legal-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
}
.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bark);
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bark);
    margin: 1.5rem 0 0.5rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-content li { margin-bottom: 0.4rem; }
.legal-content .legal-meta {
    background: var(--cream);
    border-left: 3px solid var(--terra);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.legal-content .legal-alert {
    background: var(--sage-pale);
    border: 1px solid var(--sage-light);
    border-radius: var(--r-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.6;
}
.legal-content .legal-contact {
    background: var(--cream);
    border-radius: var(--r-lg);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    border: 1px solid var(--border);
}
.legal-content a { color: var(--terra); text-decoration: underline; }
.legal-content a:hover { color: var(--bark); }

/* ── Accessibility Toolbar ──────────────────────────────────── */
.a11y-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bark);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(92,64,51,0.25);
  transition: background 0.2s, transform 0.2s;
}
.a11y-trigger:hover { background: var(--sage); transform: scale(1.05); }
.a11y-trigger:focus-visible {
  outline: 3px solid var(--coral) !important;
  outline-offset: 3px !important;
}
.a11y-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 999;
  background: white;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  width: 260px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.a11y-row:last-child { margin-bottom: 0; }
.a11y-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bark);
}
.a11y-btn-group { display: flex; gap: 0.4rem; }
.a11y-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-mid);
  background: var(--cream);
  color: var(--bark);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.a11y-btn:hover { background: var(--sage-pale); border-color: var(--sage); }
.a11y-btn:focus-visible { outline: 3px solid var(--sage) !important; outline-offset: 2px !important; }
.a11y-btn.active { background: var(--sage); color: white; border-color: var(--sage); }
.a11y-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-mid);
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.a11y-toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.a11y-toggle[aria-pressed="true"] { background: var(--sage); }
.a11y-toggle[aria-pressed="true"]::after { transform: translateX(20px); }
.a11y-toggle:focus-visible { outline: 3px solid var(--sage) !important; outline-offset: 2px !important; }
.a11y-reset {
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-mid);
  background: var(--cream);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.a11y-reset:hover { background: var(--coral-pale); color: var(--coral); border-color: var(--coral-light); }
.a11y-reset:focus-visible { outline: 3px solid var(--sage) !important; outline-offset: 2px !important; }

/* High contrast mode */
body.a11y-high-contrast {
  --sage:       #1a5c35;
  --bark:       #2a1a12;
  --text:       #000000;
  --text-mid:   #111111;
  --text-muted: #333333;
  --border:     rgba(0,0,0,0.3);
  --border-mid: rgba(0,0,0,0.4);
  --cream:      #ffffff;
  --warm-white: #ffffff;
  --sand:       #efefef;
  filter: contrast(1.25);
}

/* Dyslexia font mode */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');
body.a11y-dyslexia {
  --font-body: 'Atkinson Hyperlegible', sans-serif;
  font-family: 'Atkinson Hyperlegible', sans-serif !important;
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
  line-height: 1.9 !important;
}
body.a11y-dyslexia * {
  font-family: 'Atkinson Hyperlegible', sans-serif !important;
  line-height: inherit;
}

/* Large cursor */
body.a11y-large-cursor,
body.a11y-large-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M8 4l16 12-7 1 4 8-3 1-4-8-6 5z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 4, auto !important; }

/* Reduce animations */
body.a11y-reduce-motion *,
body.a11y-reduce-motion *::before,
body.a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}
