/* UNITED ABA LLC — shared stylesheet
   Mobile-first, no frameworks, no external fonts.
   Colors from the logo: navy #16164e / #0e0e38, sky blue #0090e0,
   cyan #40e0f0 as a small accent, soft blue #eff7ff backgrounds.
   Red #d92b2b appears only in the slogan image (the heart).
   Nunito (rounded, warm, friendly) for headings and body — suits children's ABA therapy. */

:root {
  --navy: #16164e;
  --navy-dark: #0e0e38;
  --blue: #0090e0;
  --blue-dark: #0073ad;
  --blue-darker: #005b86;
  --cyan: #40e0f0;
  --sky-soft: #eff7ff;
  /* --red is the slogan heart only (image); not used in the CSS */
  --red: #d92b2b;
  --bg-soft: var(--sky-soft);
  --ink: #16164e;
  --muted: #4a5878;
  --line: #d5e3f0;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 22px;
  --shadow: 0 8px 28px rgba(22, 22, 78, 0.10);
  --shadow-soft: 0 4px 16px rgba(22, 22, 78, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

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

:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: var(--white); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--blue-dark); text-decoration: underline; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.lang-switch a { color: var(--blue-dark); text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch [aria-current="page"] { color: var(--navy); text-decoration: underline; }
.lang-switch span { color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--blue);
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-phone { white-space: nowrap; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-light:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--navy); }

/* ---------- Sections ---------- */

section { padding: 3.2rem 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #dfe6f5; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blue-dark);
  margin: 0 0 0.5rem;
}
.section-navy .eyebrow { color: var(--cyan); }

h1, h2, h3 {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section-navy .lead { color: #dfe6f5; }

/* ---------- Hero: two columns ---------- */

.hero {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--white) 100%);
  padding: 3.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero p { max-width: 46rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.hero-badge {
  display: inline-block;
  margin: 0.25rem 0 0;
  padding: 0.85rem 1.5rem;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 144, 224, 0.45);
  animation: badge-pulse 2.2s ease-in-out infinite;
}
.hero-badge:hover { background: var(--blue-dark); }
.hero-badge:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(0, 144, 224, 0.45); }
  50% { transform: scale(1.05); box-shadow: 0 6px 28px rgba(0, 144, 224, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
}
.hero-badge::before { content: "✓ "; color: var(--cyan); }
.trust {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-weight: 600;
  color: var(--navy);
}
.trust li::before { content: "✓ "; color: var(--blue-dark); font-weight: 800; }

.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 62%;
  height: 62%;
  background: var(--blue);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero-photo::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 74px;
  height: 74px;
  background: var(--cyan);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.9;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Gallery strip ---------- */

.gallery { background: var(--white); }
.gallery-strip {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.gallery-strip figure {
  margin: 0;
  flex: 0 0 220px;
  scroll-snap-align: start;
}
.gallery-strip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.gallery-strip figcaption {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-align: center;
}

/* ---------- Check list ---------- */

.check-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: 0.55rem; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

/* ---------- Services: numbered cards with photos ---------- */

.services-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 1.6rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service-body { padding: 1.3rem 1.4rem 1.5rem; }
.service-number {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  margin: 0 0 0.4rem;
}
.service-body p { margin: 0.3rem 0 0; color: var(--muted); }

/* ---------- Steps ---------- */

.steps-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: 1.6rem;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}
.step-card p { margin: 0.3rem 0 0; color: var(--muted); }
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

/* ---------- Meet your BCBA ---------- */

.bcba-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.6rem;
  background: var(--sky-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}
.bcba-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 9px var(--blue);
}
.bcba-text blockquote {
  margin: 0 0 1rem;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--navy);
}
.bcba-name { font-weight: 800; color: var(--navy); margin: 0; }
.bcba-role { font-weight: 600; color: var(--blue-dark); margin: 0 0 0.6rem; }
.bcba-text p:last-child { margin: 0; color: var(--muted); }

/* ---------- Insurance ---------- */

.insurance-logos { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.insurance-card {
  flex: 1 1 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.insurance-card strong { display: block; font-size: 1.2rem; color: var(--navy); font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.insurance-card p { margin: 0.3rem 0 0; color: var(--muted); }
.insurance-card img { display: block; max-width: 160px; height: auto; margin-bottom: 0.6rem; }
.insurance-note { margin-top: 1.2rem; }

/* ---------- Areas ---------- */

.area-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  color: var(--navy);
}
.area-group { margin-top: 1.4rem; }
.area-group h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.area-group .area-list { margin-top: 0; }
.area-note { margin-top: 1.5rem; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}
.faq summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.08rem;
}
.faq summary:hover { color: var(--blue-dark); }
.faq details p { color: var(--muted); margin: 0.6rem 0 0; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact-info p { margin: 0.35rem 0; }
.contact-info a { font-weight: 600; color: var(--cyan); }
.contact-info a:hover { color: var(--white); }
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.form-card h3 { margin-bottom: 0.9rem; }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.25rem; color: var(--navy); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.field input:focus,
.field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0, 144, 224, 0.35); }
.form-note { font-size: 0.92rem; color: var(--ink); margin-top: 0.7rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #c9d2ea;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.98rem;
}
.site-footer a { color: var(--cyan); }
.site-footer h2, .site-footer h3 { color: var(--white); }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
.footer-brand img { height: 58px; width: auto; }
.footer-brand img.footer-slogan { height: 32px; width: auto; margin: 0.4rem 0 0.6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2rem;
  padding-top: 1.1rem;
  font-size: 0.9rem;
  color: #9aa7c7;
}

/* ---------- Careers ---------- */

.career-cards { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.career-card {
  flex: 1 1 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.career-card strong { display: block; font-size: 1.2rem; color: var(--navy); font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.career-card p { margin: 0.3rem 0 0; color: var(--muted); }
.career-note { margin-top: 1.2rem; }

/* ---------- Page head (subpáginas) ---------- */

.page-head {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--white) 100%);
  padding: 2.8rem 0 2.4rem;
}
.page-head .lead { margin-bottom: 0; }

/* ---------- FAQ CTA ---------- */

.faq-cta { margin-top: 1.4rem; }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .bcba-card { flex-direction: row; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: visible;
  }
  .gallery-strip figure { flex: none; }
  .brand img { height: 60px; }
}

@media (min-width: 1000px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Social links: header (icons only, desktop), hero (pills), contact (navy section) */
.header-social { display: none; align-items: center; gap: 0.7rem; }
.header-social a { color: var(--navy); display: inline-flex; }
.header-social a:hover { color: var(--blue); }
.header-social svg { width: 21px; height: 21px; fill: currentColor; display: block; }
@media (min-width: 1000px) { .header-social { display: inline-flex; } }
.hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 1.1rem 0 0; font-weight: 800; color: var(--navy); }
.hero-social a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border: 2px solid var(--blue); border-radius: 999px; color: var(--blue-dark); text-decoration: none; font-weight: 800; background: var(--white); }
.hero-social a:hover { background: var(--sky-soft); }
.hero-social svg { width: 18px; height: 18px; fill: currentColor; }
.contact-social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 1rem 0 0; font-weight: 700; color: #dfe6f5; }
.contact-social a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--white); }
.contact-social a:hover { color: var(--cyan); }
.contact-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Insurance logo carousel (insurance pages only) ---------- */

.insurance-carousel { margin-top: 1.4rem; }
.carousel-viewport { position: relative; }
.insurance-logos--carousel {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin-top: 0;
  padding: 0.25rem 0.15rem 0.9rem;
}
.insurance-logos--carousel::-webkit-scrollbar { display: none; }
.insurance-logos--carousel .insurance-card {
  flex: 0 0 min(300px, 85%);
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0 0 0.15rem;
}
.carousel-btn:hover { background: var(--sky-soft); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-prev { left: 0.2rem; }
.carousel-next { right: 0.2rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.4rem; }
.carousel-dots button {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 0;
  background: #c3d2e8;
  cursor: pointer;
  padding: 0;
}
.carousel-dots button[aria-current="true"] { background: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .insurance-logos--carousel { scroll-behavior: auto; }
}
