/* Safe Haven Family Therapy — internal homepage preview
   Colors and type drawn from the live site: teal #35616C, plum #815A6D,
   Bitter headings, Source Sans 3 as a web-safe stand-in for DIN Next. */
:root {
  --teal: #35616c;
  --teal-dark: #2a4f58;
  --teal-deep: #1a2e33;
  --teal-mid: #4a7a86;
  --teal-soft: #e7eef0;
  --teal-wash: #f3f6f6;
  --plum: #815a6d;
  --plum-dark: #69485a;
  --plum-soft: #f3ecef;
  --ink: #1a2e33;
  --muted: #3d555b;
  --line: #c5d3d6;
  --white: #ffffff;
  --cream: #f4f6f6;
  --focus: #815a6d;
  --font-serif: "Bitter", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(26, 46, 51, 0.08);
  --shadow-sm: 0 2px 10px rgba(26, 46, 51, 0.06);
  --max: 1140px;
  --header-h: 4.5rem;
  --preview-h: 2.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--preview-h) + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-dark); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus { top: calc(var(--preview-h) + 0.5rem); }

/* ----- Internal review chrome (not part of the client-facing design) ----- */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--teal-deep);
  color: #e8eef0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 1rem;
  text-align: center;
  min-height: var(--preview-h);
}
.preview-bar strong { color: #fff; font-weight: 600; }

.preview-notes {
  background: #fff8e8;
  border: 1px dashed #b0892e;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 2.5rem auto 0;
  max-width: var(--max);
  color: #3a3018;
  font-size: 0.95rem;
}
.preview-notes h2 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: #6b5420;
}
.preview-notes ul { margin: 0; padding-left: 1.15rem; }
.preview-notes li { margin: 0.35rem 0; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: var(--preview-h);
  z-index: 50;
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.header-inner {
  max-width: calc(var(--max) + 2rem);
  margin: 0 auto;
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img {
  height: 52px;
  width: auto;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #f3f7f8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  display: inline-block;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.4rem 0.35rem;
}
.header-phone:hover { color: #fff; text-decoration: underline; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { display: block; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-on-teal {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}
.btn-on-teal:hover { background: var(--teal-soft); color: var(--teal-deep); }
.btn-ghost-on-teal {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.75);
}
.btn-ghost-on-teal:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-plum {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum);
}
.btn-plum:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }

.hero-actions, .cta-actions, .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ----- Layout ----- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 4rem 0; }
.section-tight { padding: 3.25rem 0; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 0.55rem;
}
h1, h2, h3, .h-like {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); margin: 0 0 0.85rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.4rem;
}
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-left: auto; margin-right: auto; }

/* ----- Hero ----- */
.hero {
  background: var(--white);
  padding: 2.25rem 0 2.75rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
}
.hero-copy p.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--teal);
  margin: 0 0 0.7rem;
}
.hero-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center 35%;
}
.hero-photo figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ----- Specialties ----- */
.specialties { background: var(--cream); }
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 1.75rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,97,108,0.08);
}
.card p { margin: 0; color: var(--muted); }
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}
.card-icon svg { width: 22px; height: 22px; }

/* ----- Team ----- */
.team { background: var(--white); }
.team-intro { max-width: 40rem; }
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-top: 1.85rem;
}
.card-grid-4 > *,
.card-grid-3 > * { min-width: 0; }
.clinician {
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(53,97,108,0.08);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.clinician img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 15%;
}
.clinician-body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.clinician-body h3 { margin: 0; font-size: 1.12rem; }
.clinician-role {
  font-size: 0.92rem;
  color: var(--teal);
  font-weight: 650;
  margin: 0;
}
.clinician-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.pill-warn {
  background: var(--plum-soft);
  color: var(--plum-dark);
}
.clinician-meta {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.clinician-meta a { font-weight: 650; }

/* ----- Insurance / visit ----- */
.split { background: var(--teal-wash); }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(53,97,108,0.08);
}
.panel ul { margin: 0.4rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.panel li { margin: 0.3rem 0; }
.panel p { margin: 0 0 0.6rem; color: var(--muted); }
.fineprint { font-size: 0.88rem; color: var(--muted); }

/* ----- Testimonials ----- */
.quotes { background: var(--white); }
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.6rem;
}
blockquote {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  border-left: 4px solid var(--plum);
}
blockquote p { margin: 0 0 0.8rem; font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; color: var(--ink); }
blockquote footer { font-size: 0.9rem; color: var(--muted); font-style: normal; font-family: var(--font-sans); }

/* ----- Awards / CTA band ----- */
.awards {
  background: var(--teal);
  color: #fff;
  padding: 3.25rem 0;
}
.awards h2, .awards .eyebrow { color: #fff; }
.awards .eyebrow { color: #f0d6e0; }
.awards p { color: #e4eef0; max-width: 38rem; }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0 1.75rem;
}
.badge-row img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

/* ----- Contact page ----- */
.page-hero {
  background: var(--teal);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: #e4eef0; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.75rem 0 4rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(53,97,108,0.08);
}
.contact-card h2 { font-size: 1.45rem; }
.nap { list-style: none; margin: 0; padding: 0; }
.nap li { margin: 0.7rem 0; }
.nap a { font-weight: 650; text-decoration: none; }
.nap a:hover { text-decoration: underline; }
.nap span.lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 0.15rem;
}

form.contact-form {
  display: grid;
  gap: 0.9rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
label { font-weight: 650; font-size: 0.95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-height: 44px;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--plum);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
}
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex-shrink: 0; }
.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 600;
}
.form-status.show { display: block; }

/* ----- Footer ----- */
.site-footer {
  background: var(--teal-deep);
  color: #d5e0e3;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d6e0;
  margin: 0 0 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.footer-logo { height: 44px; width: auto; margin-bottom: 0.7rem; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #adc0c4;
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding-top: 1.25rem; }
  .hero-photo { order: -1; }
}

@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .nav-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--teal-dark);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.1rem 1.1rem;
    box-shadow: var(--shadow);
  }
  .nav-wrap.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0.15rem; }
  .site-nav a { padding: 0.7rem 0.6rem; font-size: 1.05rem; }
  .header-actions { margin-left: auto; }
  .card-grid-3, .split-grid, .quote-grid, .contact-grid, .field-row, .footer-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 3rem 0; }
  .logo img { height: 44px; }
  .badge-row img { width: 88px; height: 88px; }
  .btn { width: auto; }
}

@media (max-width: 560px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .header-inner { padding-inline: 0.85rem; }
  .logo img { height: 40px; }
  .header-actions .btn { padding-inline: 0.8rem; font-size: 0.92rem; }
}

