/* Shared styles for The Happy Baby Check® site */
@font-face { font-family: 'Baloo 2 Local'; src: url('/assets/Baloo2-ExtraBold.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Baloo 2 Local'; src: url('/assets/Baloo2-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #0A6EA8; outline-offset: 3px; border-radius: 6px; }
button { -webkit-tap-highlight-color: transparent; }
button[disabled] { opacity: .6; cursor: wait !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: #0A6EA8; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.form-status { font-weight: 700; font-size: 15px; min-height: 0; margin: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: #0A6EA8; }
.form-status.err { color: #B3124F; }
.field-error { outline: 2px solid #B3124F !important; outline-offset: 2px; }

/* Header + mobile navigation */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 2px solid #E3EEF6; background: #fff; color: #0A6EA8; cursor: pointer; }
@media (max-width: 920px) {
  header .site-logo img { height: 54px !important; }
  .nav-toggle { display: inline-flex; }
  header nav.site-nav { display: none !important; flex-basis: 100%; flex-direction: column; align-items: stretch !important; gap: 4px !important; padding: 8px 0 4px; }
  header nav.site-nav.open { display: flex !important; }
  header nav.site-nav a { padding: 12px 8px; border-radius: 14px; border-bottom: 0 !important; }
  header nav.site-nav a:last-child { justify-content: center; margin-top: 6px; }
}

/* Layout safety on small screens */
@media (max-width: 640px) {
  section > div[style*="padding"], footer > div { padding-left: 20px !important; padding-right: 20px !important; }
  form[action="/find-a-practitioner"] { border-radius: 28px !important; }
  form[action="/find-a-practitioner"] > * { flex-basis: 100% !important; }
}

/* Find a practitioner */
.pr-card { border: 2px solid #F3E6EE; border-radius: 32px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; background: #fff; }
.pr-card.active { border-color: #F9C4DE; box-shadow: 0 12px 30px rgba(194,24,111,.10); }
.pr-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', 'Baloo 2 Local', sans-serif; font-weight: 800; font-size: 30px; background: #E6F5FC; color: #0A6EA8; }
.pr-body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pr-body h2 { margin: 0; font-family: 'Baloo 2', 'Baloo 2 Local', sans-serif; font-weight: 800; font-size: 24px; line-height: 1.15; }
.pr-prof { font-weight: 700; color: #C2186F; font-size: 15px; }
.pr-meta { color: #45526A; font-size: 15px; }
.pr-bio { color: #45526A; font-size: 15px; margin: 6px 0 0; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn { text-decoration: none; background: #0A6EA8; color: #fff !important; font-weight: 700; padding: 12px 22px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.pill-btn:hover { background: #075783; }
.pill-btn.pink { background: #C2186F; }
.pill-btn.pink:hover { background: #9E1259; }
.pill-btn.ghost { background: #fff; color: #0A6EA8 !important; border: 2px solid #0A6EA8; }
.pill-btn.ghost:hover { background: #E6F5FC; }
.distance { display: inline-block; background: #E6F5FC; color: #0A6EA8; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-top: 4px; align-self: flex-start; }
.leaflet-popup-content { font-family: 'Nunito Sans', system-ui, sans-serif; }
@media (max-width: 960px) { #map { position: relative !important; min-height: 340px !important; order: -1; } }
