/* ============================================
   ABA Therapy Microsite Template - Lukrah Marketing
   NC Lead Generation Template v2
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

/* --- Design Tokens --- */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-50: #eff6ff;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --green: #10b981;
  --green-light: #d1fae5;
  --teal: #0d9488;
  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg-warm: #fefcf9;
  --bg-section: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-w: 1200px;
  --max-w-narrow: 800px;
}

/* --- Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-secondary); }
.subheading { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.8; max-width: 680px; margin: 0 auto; }
.badge { display: inline-block; background: var(--blue-light); color: var(--blue); font-size: 0.8rem; font-weight: 700; padding: 6px 16px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-green { background: var(--green-light); color: var(--teal); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.25s ease; text-align: center; justify-content: center;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-secondary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: var(--blue-50); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn svg, .btn .icon { width: 20px; height: 20px; flex-shrink: 0; }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; max-width: var(--max-w); margin: 0 auto; padding-left: 20px; padding-right: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--blue); }
.logo img { height: 40px; width: auto; }
.logo span { line-height: 1.2; }
.logo small { display: block; font-size: 0.65rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.03em; }

/* Desktop Nav */
.nav-desktop { display: none; align-items: center; gap: 28px; }
.nav-desktop a { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); transition: color 0.2s; }
.nav-desktop a:hover { color: var(--blue); }
.nav-desktop .btn { padding: 10px 20px; font-size: 0.85rem; }
@media (min-width: 900px) { .nav-desktop { display: flex; } }

/* Mobile Nav Toggle */
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Mobile Nav Drawer */
.nav-mobile {
  display: none; position: fixed; top: 65px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99; padding: 24px; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block; padding: 14px 16px; font-size: 1rem; font-weight: 600;
  color: var(--text); border-radius: var(--radius); transition: background 0.2s;
}
.nav-mobile a:hover { background: var(--blue-50); color: var(--blue); }
.nav-mobile .btn { margin-top: 8px; text-align: center; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 50%, #1d4ed8 100%);
  padding: 60px 0 70px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600; }
.hero-trust-item svg { color: var(--orange); width: 18px; height: 18px; flex-shrink: 0; }
.hero-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Inner page hero (shorter) */
.hero-inner { padding: 40px 0 50px; }
.hero-inner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* --- Sections --- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-section); }
.section-warm { background: var(--bg-warm); }
.section-blue { background: var(--blue); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-blue p { color: rgba(255,255,255,0.85); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header .subheading { margin-top: 8px; }

/* --- Trust Bar --- */
.trust-bar { padding: 24px 0; border-bottom: 1px solid var(--border); }
.trust-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 36px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--text); }
.trust-item svg { color: var(--blue); width: 20px; height: 20px; }

/* --- Cards --- */
.card {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--blue); }
.card-icon-orange { background: #fef3c7; }
.card-icon-orange svg { color: var(--orange); }
.card-icon-green { background: var(--green-light); }
.card-icon-green svg { color: var(--green); }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* --- Stats --- */
.stat { text-align: center; padding: 24px; }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--blue); margin-bottom: 4px; }
.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.stat-sub { font-size: 0.8rem; color: var(--text-muted); }

/* --- Steps --- */
.step-number {
  font-size: 3rem; font-weight: 900; color: var(--blue-light); line-height: 1; margin-bottom: 12px;
  transition: color 0.3s;
}
.card:hover .step-number { color: var(--blue); opacity: 0.4; }

/* --- Testimonials --- */
.testimonial { padding: 28px; }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.testimonial-stars svg { width: 16px; height: 16px; color: var(--orange); fill: var(--orange); }
.testimonial blockquote { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-style: normal; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* --- Comparison --- */
.comparison-card { position: relative; }
.comparison-card.featured {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.1), var(--shadow-md);
  transform: scale(1.03);
}
.comparison-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 50px; white-space: nowrap;
}
.comparison-price { font-size: 1.5rem; font-weight: 900; color: var(--blue); margin: 8px 0 20px; }
.comparison-list { display: flex; flex-direction: column; gap: 10px; }
.comparison-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; }
.comparison-list .check { color: var(--green); flex-shrink: 0; width: 20px; height: 20px; }
.comparison-list .cross { color: #ef4444; flex-shrink: 0; width: 20px; height: 20px; }

/* --- FAQ Accordion --- */
.faq-item { border: 2px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; transition: border-color 0.3s; }
.faq-item.active { border-color: var(--blue); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--text); text-align: left; transition: color 0.2s;
}
.faq-question:hover { color: var(--blue); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s; color: var(--text-muted); }
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--blue); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-answer-inner { padding: 0 20px 20px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; }

/* --- Form Area --- */
.form-section { background: var(--bg-warm); }
.form-card { background: #fff; border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); }
.form-card iframe { border-radius: var(--radius); min-height: 744px; }

/* --- Breadcrumb --- */
.breadcrumb { padding: 12px 0; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* --- Insurance Logos / Grid --- */
.insurance-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.insurance-item {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px 24px; font-weight: 700; font-size: 0.9rem; color: var(--text);
  transition: all 0.2s;
}
.insurance-item:hover { border-color: var(--blue); color: var(--blue); }

/* --- Blog --- */
.blog-card { overflow: hidden; }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-section); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }
.blog-card-link { font-size: 0.9rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.blog-card-link:hover { gap: 8px; }

/* --- Location Cards --- */
.location-card { text-align: center; }
.location-card h3 a { color: var(--text); transition: color 0.2s; }
.location-card h3 a:hover { color: var(--blue); }
.location-card .distance { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* --- Footer --- */
.footer { background: #0f172a; color: #fff; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer p, .footer a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff; border-top: 2px solid var(--blue); padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.sticky-cta .btn { flex: 1; padding: 14px; font-size: 0.95rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* --- Thank You Page --- */
.thankyou-check {
  width: 80px; height: 80px; border-radius: 50%; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.thankyou-check svg { width: 40px; height: 40px; color: var(--green); }

/* --- Map Placeholder --- */
.map-placeholder {
  background: var(--bg-section); border: 2px dashed var(--border); border-radius: var(--radius-lg);
  height: 300px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-weight: 600;
}

/* --- Spacing helpers --- */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.pt-0 { padding-top: 0; }

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}

/* --- Bottom padding for sticky CTA on mobile --- */
@media (max-width: 899px) {
  body { padding-bottom: 72px; }
}

/* --- Print --- */
@media print {
  .header, .sticky-cta, .nav-mobile { display: none !important; }
  .hero { background: #fff !important; color: #000 !important; }
}
