/* ===================================
   APPALACHIAN SPEECH PATHOLOGY ASSOC
   Stylesheet — teal + slate grey palette
   =================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --white: #ffffff;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,.1), 0 2px 4px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.08);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-600); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: .9375rem;
  padding: 12px 24px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.btn-primary {
  background: var(--teal-700); color: var(--white); border-color: var(--teal-700);
}
.btn-primary:hover { background: var(--teal-800); border-color: var(--teal-800); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.btn-outline-dark {
  background: transparent; color: var(--teal-700); border-color: var(--teal-700);
}
.btn-outline-dark:hover { background: var(--teal-50); color: var(--teal-800); }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-md); }

/* ── Section Tags & Titles ── */
.section-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700; color: var(--slate-900); line-height: 1.2; margin-bottom: 16px;
}
.section-sub { font-size: 1.0625rem; color: var(--slate-600); max-width: 640px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate-900); font-weight: 700; font-size: 1.125rem; }
.nav-logo-icon { color: var(--teal-700); }
.nav-logo-text { font-family: var(--font-serif); }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links a { padding: 8px 14px; font-size: .9rem; font-weight: 500; color: var(--slate-700); border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-links a:hover { color: var(--teal-700); background: var(--teal-50); }
.nav-cta { background: var(--teal-700) !important; color: var(--white) !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--teal-800) !important; color: var(--white) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle-line { width: 22px; height: 2px; background: var(--slate-700); border-radius: 2px; transition: all var(--transition); }
.nav-toggle.active .nav-toggle-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--slate-900) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; color: var(--teal-200);
  background: rgba(20,184,166,.15); border: 1px solid rgba(20,184,166,.3);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-serif); font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.hero-sub { font-size: 1.125rem; color: var(--slate-300); line-height: 1.75; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: .8125rem; color: var(--slate-400); font-weight: 500; }
.hero-stat-divider { width: 1px; background: var(--slate-700); align-self: stretch; margin: 4px 0; }
.hero-image { position: relative; }
.hero-img-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.hero-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-accent {
  position: absolute; top: -20px; right: -20px; width: 120px; height: 120px;
  background: var(--teal-600); border-radius: var(--radius-lg); z-index: 0; opacity: .4;
}

/* ── Services ── */
.services { padding: 100px 0; background: var(--slate-50); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px;
  border: 1px solid var(--slate-200); transition: all var(--transition);
}
.service-card:hover { border-color: var(--teal-200); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--teal-50); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-card:hover .service-icon { background: var(--teal-700); color: var(--white); }
.service-title { font-size: 1.125rem; font-weight: 700; color: var(--slate-900); margin-bottom: 10px; }
.service-desc { font-size: .9375rem; color: var(--slate-600); line-height: 1.7; }

/* ── Approach ── */
.approach { padding: 100px 0; }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.approach-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.approach-image img { width: 100%; height: 100%; object-fit: cover; }
.approach-text { font-size: 1.0625rem; color: var(--slate-600); line-height: 1.8; margin-bottom: 28px; }
.approach-list { display: flex; flex-direction: column; gap: 16px; }
.approach-item { display: flex; align-items: flex-start; gap: 14px; }
.approach-check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.approach-item span:last-child { font-size: .9375rem; color: var(--slate-700); line-height: 1.6; }

/* ── Populations ── */
.populations { padding: 100px 0; background: var(--slate-900); }
.populations .section-tag { color: var(--teal-300); }
.populations .section-title { color: var(--white); }
.populations .section-sub { color: var(--slate-400); }
.populations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pop-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--slate-800); border: 1px solid var(--slate-700); transition: all var(--transition); }
.pop-card:hover { border-color: var(--teal-600); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.pop-card-img { height: 200px; overflow: hidden; }
.pop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pop-card:hover .pop-card-img img { transform: scale(1.05); }
.pop-card-body { padding: 28px; }
.pop-card-title { font-size: 1.1875rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.pop-card-desc { font-size: .9375rem; color: var(--slate-400); line-height: 1.7; }

/* ── About ── */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text { font-size: 1.0625rem; color: var(--slate-600); line-height: 1.8; margin-bottom: 20px; }
.about-values { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.about-value { display: flex; gap: 20px; align-items: flex-start; }
.about-value-num { font-size: 1.5rem; font-weight: 800; color: var(--teal-200); font-family: var(--font-serif); line-height: 1; flex-shrink: 0; width: 36px; }
.about-value strong { display: block; font-size: 1rem; color: var(--slate-900); margin-bottom: 4px; }
.about-value span { font-size: .9375rem; color: var(--slate-600); line-height: 1.6; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── FAQ ── */
.faq { padding: 100px 0; background: var(--slate-50); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--slate-200); overflow: hidden; transition: border-color var(--transition); }
.faq-item.active { border-color: var(--teal-300); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--slate-800);
  text-align: left; gap: 16px; transition: color var(--transition);
}
.faq-question:hover { color: var(--teal-700); }
.faq-toggle { flex-shrink: 0; color: var(--slate-400); transition: transform var(--transition); }
.faq-item.active .faq-toggle { transform: rotate(45deg); color: var(--teal-700); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 24px 20px; font-size: .9375rem; color: var(--slate-600); line-height: 1.7; }
.faq-answer a { color: var(--teal-700); font-weight: 600; }

/* ── CTA ── */
.cta { padding: 80px 0; background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-content { flex: 1; min-width: 280px; }
.cta-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.cta-text { font-size: 1.0625rem; color: var(--teal-200); line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Contact ── */
.contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: flex-start; }
.contact-text { font-size: 1.0625rem; color: var(--slate-600); line-height: 1.7; margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--teal-50); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
}
.contact-detail strong { display: block; font-size: .9375rem; color: var(--slate-900); margin-bottom: 4px; }
.contact-detail p { font-size: .9375rem; color: var(--slate-600); line-height: 1.6; }
.contact-detail a { color: var(--teal-700); }

.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--slate-200); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--slate-700); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-sans); font-size: .9375rem; color: var(--slate-800);
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-sm);
  padding: 10px 14px; transition: all var(--transition); outline: none; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal-500); background: var(--white);
  box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success { text-align: center; padding: 48px 24px; }
.form-success-icon { color: var(--teal-600); margin-bottom: 16px; }
.form-success h3 { font-size: 1.375rem; color: var(--slate-900); margin-bottom: 8px; }
.form-success p { font-size: .9375rem; color: var(--slate-600); }

/* ── Map ── */
.map-section { height: 320px; background: var(--slate-200); }

/* ── Footer ── */
.footer { background: var(--slate-950); padding: 64px 0 0; color: var(--slate-400); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 1rem; margin-bottom: 16px; }
.footer-logo .nav-logo-icon { color: var(--teal-500); }
.footer-desc { font-size: .9375rem; line-height: 1.7; color: var(--slate-500); max-width: 300px; }
.footer-col h4 { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-300); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .9375rem; color: var(--slate-500); transition: color var(--transition); }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid var(--slate-800); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8125rem; color: var(--slate-500); }
.footer-bottom a { color: var(--teal-400); }

/* ── Mobile Menu ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 24px; gap: 4px;
    border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-md);
    transform: translateY(-120%); opacity: 0; transition: all var(--transition);
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { padding: 12px 16px; width: 100%; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; max-width: 480px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .populations-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 0 60px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-wrap { padding: 24px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
