/* ============================================================
   NeuroBehavioral Specialists Inc. — Exact Match
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy:       #0d1b2a;
  --teal:       #2a7a6f;
  --teal-btn:   #3a8f82;
  --white:      #ffffff;
  --cream:      #f7f5f2;
  --grey-light: #f2f2f2;
  --grey-mid:   #e0e0e0;
  --text:       #111111;
  --text-muted: #666666;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --radius:     50px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1 { font-weight: 300; font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1.1; color: var(--text); }
h2 { font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; color: var(--text); }
h3 { font-weight: 600; font-size: 1rem; color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 6rem 0; }
.section--alt { background: var(--cream); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--black  { background: var(--text); color: var(--white); border-color: var(--text); }
.btn--black:hover { background: #333; border-color: #333; }
.btn--outline-dark { background: transparent; color: var(--text); border-color: var(--grey-mid); }
.btn--outline-dark:hover { border-color: var(--text); }
.btn--teal   { background: var(--teal-btn); color: var(--white); border-color: var(--teal-btn); }
.btn--teal:hover { background: var(--teal); border-color: var(--teal); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline-white:hover { border-color: var(--white); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  transition: background var(--transition);
}
/* Logo sits over white left half — needs dark color */
.nav__logo {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  max-width: 160px;
  position: relative;
  z-index: 2;
}
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a {
  font-size: 0.88rem; font-weight: 400;
  color: var(--white);
  transition: color var(--transition);
}
.nav__links a:hover { color: rgba(255,255,255,0.7); }
.nav__cta {
  padding: 0.55rem 1.2rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  background: var(--teal-btn) !important;
  border-color: var(--teal-btn) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
}
.nav__cta:hover { background: var(--teal) !important; border-color: var(--teal) !important; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; }

/* ── HERO — exact 50/50 split ────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.hero__left {
  background: var(--white);
  display: flex;
  align-items: center;
  /* Push content to right side of left panel, away from edge */
  padding: 8rem 4rem 5rem 10vw;
}
.hero__content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: 0;
}
.hero__content h1 { margin-bottom: 2.5rem; }
.hero__actions { display: flex; gap: 0.75rem; align-items: center; }
.hero__right {
  position: relative;
  overflow: hidden;
  /* Dark bg as fallback while image loads */
  background: #0d1520;
}
.hero__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── ABOUT STRIP ─────────────────────────────────────────── */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.about-strip__image { overflow: hidden; }
.about-strip__image img { width: 100%; height: 100%; object-fit: cover; }
.about-strip__content { background: var(--white); display: flex; align-items: center; padding: 4rem 5rem; }
.about-strip__inner { max-width: 480px; }
.about-strip__inner h2 { margin-bottom: 1.2rem; }
.about-strip__inner p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.credential {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--grey-light); border-radius: 50px;
  padding: 0.35rem 0.9rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.2rem;
}

/* ── SERVICES GRID ───────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.service-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.07); transition: transform var(--transition), box-shadow var(--transition); }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.service-card__image { height: 200px; overflow: hidden; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 1.8rem 2rem; }
.service-card__body h3 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.service-card__body ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.4rem; }
.service-card__body li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--text-muted); }
.service-card__body li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-btn); flex-shrink: 0; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }
.contact-link { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.2rem; color: var(--text); transition: color var(--transition); }
.contact-link:hover { color: var(--teal); }
.contact-link__icon { width: 36px; height: 36px; background: var(--grey-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-link__icon img { width: 16px; height: 16px; }
.contact-link__text strong { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-link__text span { font-size: 0.9rem; }
.contact-notice { background: #fffbeb; border-left: 3px solid #f59e0b; padding: 0.9rem 1.1rem; font-size: 0.83rem; color: #78350f; border-radius: 4px; margin-top: 1.5rem; line-height: 1.65; }

/* ── FORM ────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form__group { display: flex; flex-direction: column; gap: 0.35rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { font-size: 0.82rem; font-weight: 500; color: var(--text); }
.form input, .form select, .form textarea {
  padding: 0.75rem 1rem; border: 1.5px solid var(--grey-mid); border-radius: 8px;
  font-family: var(--font); font-size: 0.9rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal-btn); box-shadow: 0 0 0 3px rgba(58,143,130,0.1); }
.form textarea { resize: vertical; min-height: 120px; }
.form__radio-group { display: flex; gap: 1.5rem; }
.form__radio { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.form__radio input[type="radio"] { accent-color: var(--teal-btn); width: 16px; height: 16px; }
.form__checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.83rem; color: var(--text-muted); }
.form__checkbox input { accent-color: var(--teal-btn); margin-top: 2px; flex-shrink: 0; }
.form__checkbox a { color: var(--teal); text-decoration: underline; }
.form__success { display: none; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 1rem; color: #166534; font-size: 0.9rem; }
.form__error   { display: none; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 1rem; color: #991b1b; font-size: 0.9rem; }

/* ── CONTACT SECTION BG IMAGE SPLIT ─────────────────────── */
.contact-section-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.contact-section-wrap__image { overflow: hidden; }
.contact-section-wrap__image img { width: 100%; height: 100%; object-fit: cover; }
.contact-section-wrap__form { display: flex; align-items: center; background: var(--white); padding: 4rem 4rem 4rem 5rem; }
.contact-section-wrap__form > div { width: 100%; max-width: 500px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand { }
.footer__brand-name { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 0.3rem; }
.footer__brand-sub  { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.footer__col h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col a { font-size: 0.86rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--white); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.84rem; margin-bottom: 0.7rem; line-height: 1.5; }
.footer__contact-item img { width: 14px; height: 14px; opacity: 0.4; margin-top: 2px; flex-shrink: 0; filter: invert(1); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; font-size: 0.8rem; text-align: center; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { background: var(--navy); padding: 9rem 0 4rem; }
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-header p  { color: rgba(255,255,255,0.55); margin-top: 0.6rem; font-size: 1rem; font-weight: 300; }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__left { padding: 7rem 2.5rem 3rem; }
  .hero__right { height: 60vw; min-height: 280px; order: -1; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip__image { height: 280px; }
  .about-strip__content { padding: 3rem 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 3rem; }
  .contact-section-wrap { grid-template-columns: 1fr; }
  .contact-section-wrap__image { height: 280px; }
  .contact-section-wrap__form { padding: 3rem 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; gap: 0.4rem; }
}
