/* ── Behavioral Medicine Associates — Design System v2 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #3a6b1e;
  --green-deep:  #254d12;
  --green-mid:   #4d7c2b;
  --green-light: #6a9e3f;
  --green-pale:  #f0f4eb;
  --green-border:#cdddb8;
  --gold:        #8a7340;
  --off-white:   #f7f5f0;
  --border:      #e2ddd5;
  --text:        #1a1a1a;
  --text-mid:    #3d3d3d;
  --text-light:  #666;
  --white:       #ffffff;
  --nav-h:       52px;  /* single-row nav height */
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--off-white);
}


/* ── ACCESSIBILITY: Skip navigation link ──────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #0f2848;
  color: white;
  padding: 12px 20px;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}

/* ── NAV ────────────────────────────────────────────────────
   Two rows: top row = logo + CTA; bottom row = all nav links.
────────────────────────────────────────────────────────── */
.bma-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Top row: logo left, CTA right */
.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  gap: 16px;
  min-height: 90px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 80px; width: auto; border-radius: 6px; flex-shrink: 0; }
.nav-logo-text {
  display: none;
}
.nav-logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  font-style: italic;
}

/* Nav tagline — desktop only, between logo and CTA */
.nav-tagline {
  flex: 1;
  text-align: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: #1c3f6e;
  opacity: 0.82;
  padding: 0 24px;
  line-height: 1.3;
  display: block;
}
.nav-tagline a {
  font-weight: 600;
  font-style: normal;
  color: #1c3f6e;
  text-decoration: none;
  border-bottom: 1px solid rgba(28,63,110,0.3);
  transition: border-color 0.15s, color 0.15s;
}
.nav-tagline a:hover {
  color: #0f2848;
  border-bottom-color: #0f2848;
}

/* CTA in top row */
.nav-cta-wrap { flex-shrink: 0; }
.nav-cta {
  display: inline-block;
  background: #1c3f6e;
  color: white;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-cta:hover { background: #0f2848; }
.nav-cta.hidden { display: none; }

/* Bottom row: all nav links in one scrollable row */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 0;
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}
.nav-links::-webkit-scrollbar { height: 6px; }
.nav-links::-webkit-scrollbar-thumb { background: #6F94DE; border-radius: 3px; }
.nav-links li a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  height: 38px;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #1c3f6e;
  border-bottom-color: #1c3f6e;
}

/* Hamburger — hidden on desktop */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-mid);
  flex-shrink: 0;
  padding: 4px;
}

/* ── PAGE HERO ── */
.page-hero {
  background: #162d52;
  padding: 52px 2rem 48px;
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8c87a;
  margin-bottom: 10px;
  font-family: 'Source Sans 3', Arial, sans-serif;
}
.page-hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-hero h1 em { font-style: italic; color: #c8e090; }
.page-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  line-height: 1.68;
}

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 2rem; }
.breadcrumb-inner { max-width: 960px; margin: 0 auto; font-size: 13px; color: #767676; font-family: 'Source Sans 3', Arial, sans-serif; }
.breadcrumb-inner a { color: var(--green-mid); text-decoration: none; }

/* ── CONTENT ── */
.main-content { max-width: 960px; margin: 0 auto; padding: 52px 2rem; }
.prose h2 { /* blue headings */
 font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(20px, 2.5vw, 26px); font-weight: 600; color: #0f2848; margin: 38px 0 12px; line-height: 1.25; }
.prose h3 { font-size: 18px; font-weight: 600; color: #1c3f6e; margin: 26px 0 10px; }
.prose p { font-size: 17px; color: var(--text-mid); line-height: 1.78; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 24px; margin-bottom: 18px; }
.prose ul li { font-size: 17px; color: var(--text-mid); line-height: 1.72; margin-bottom: 8px; }
.prose a { color: #1c3f6e; }
.prose a:hover { color: #0f2848; }
.prose strong { color: var(--text); font-weight: 600; }

/* ── CALL BOX ── */
.call-box {
  background: #eef2f8;
  border: 1px solid #b8cce0;
  border-left: 4px solid #1c3f6e;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
}
.call-box strong { color: #0f2848; }
.call-box a { color: #1c3f6e; font-weight: 600; text-decoration: none; }

/* ── BUTTONS ── */
.btn-primary { background: #1c3f6e; color: white; font-family: 'Source Sans 3', Arial, sans-serif; font-size: 15px; font-weight: 600; padding: 12px 26px; border-radius: 6px; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.15s; }
.btn-primary:hover { background: #0f2848; }
.btn-outline { background: transparent; color: #1c3f6e; font-size: 15px; font-weight: 600; padding: 11px 24px; border-radius: 6px; border: 1.5px solid #1c3f6e; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.15s, color 0.15s; }
.btn-outline:hover { background: #1c3f6e; color: white; }

/* ── FOOTER ── */
footer { background: #0f1e38; padding: 48px 2rem 28px; }
.footer-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 10px; }
.footer-brand a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; font-size: 14px; margin-top: 4px; }
.footer-brand a:hover { color: white; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 14px; font-family: 'Source Sans 3', Arial, sans-serif; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.12s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { max-width: 960px; margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.60); font-family: 'Source Sans 3', Arial, sans-serif; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .nav-cta { display: none; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    flex-direction: column;
    overflow-x: visible;
    border-top: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { height: auto; padding: 11px 20px; border-bottom: none !important; width: 100%; }
  .nav-mobile-toggle { display: block; }
  .nav-tagline { display: none; }
  .nav-top-row { padding: 8px 0; }
  .nav-logo img { height: 44px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .main-content { padding: 36px 1.25rem; }
  .page-hero { padding: 40px 1.25rem 36px; }
}
