/*
  Balboa Therapy Group closure notice.
  Colors match the previous site: warm cream, taupe, sage and terracotta.
  Every text/background pair is WCAG AA (ratios are listed in README.md).
*/

:root {
  --bg: #F8F4EC;          /* warm cream page background */
  --surface: #FFFFFF;     /* therapist cards */
  --text: #2E2C29;        /* charcoal body text */
  --muted: #57524A;       /* warm taupe secondary text, footer band */
  --border: #DDD5C6;      /* decorative card borders */
  --sage: #5B6B53;        /* heading rules, link underlines, status badges */
  --sage-ink: #3F4A39;    /* link hover */
  --terra: #A4532F;       /* focus ring */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
  --gutter: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;   /* 18px */
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;      /* avoid a single word alone on the last line */
}

a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--sage-ink);
  text-decoration-thickness: 2px;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  z-index: 10;
}

.skip-link:focus {
  top: var(--gutter);
}

/* Header */
.site-header {
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.logo {
  display: inline-block;
  vertical-align: middle;
  width: 216px;
  height: auto;
}

/* Main layout */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3rem;
}

.intro h1 {
  font-size: 2.125rem;
  margin: 0 0 1.25rem;
}

.lede {
  font-size: 1.1875rem;
}

.section {
  margin-top: 3rem;
}

.section h2 {
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sage);
}

/* Therapist cards: identical layout for both */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
}

.card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card__photo {
  flex: none;
  width: 120px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--border);
}

.card__name {
  font-size: 1.5rem;
  margin: 0 0 0.375rem;
}

.card__formerly {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--muted);
}

/* Title and license: legally required, kept small */
.card__meta {
  margin: 0 0 0.375rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.card__status {
  margin: 0 0 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--sage);
  background: var(--surface);
  color: var(--sage);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

/* The only difference between badges: filled dot vs hollow ring */
.badge__dot {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.badge--open .badge__dot {
  background: currentColor;
}

/* Contact rows: icon plus link text; the whole row is the tap target */
.contact {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  border-top: 1px solid var(--border);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.25rem 0;
}

.contact__link span {
  min-width: 0;
}

.contact__icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Insurance: good to know, so quieter than the contact links */
.card__insurance {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.card__insurance-label {
  display: block;
}

/* Inline links in paragraphs: enlarge the tap area to 44px without moving text */
.section p a {
  padding-block: 0.625rem;
}

.closing {
  margin-top: 3rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--muted);
  color: var(--bg);
  text-align: center;
  padding: 2rem var(--gutter) 2.5rem;
}

.site-footer__wave {
  display: block;
  margin: 0 auto 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__name {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.site-footer__crisis {
  margin-top: 0.5rem;
}

.site-footer__updated {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.site-footer a {
  color: var(--bg);
  text-decoration-color: var(--bg);
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 0.5rem;
  margin: 0 -0.5rem;
}

.site-footer a:hover {
  color: var(--bg);
}

.site-footer :focus-visible {
  outline-color: var(--bg);
}

/* Small phones: square thumbnail so the name and credentials fit beside it */
@media (max-width: 29.99rem) {
  .card__photo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-position: 50% 15%;
  }
}

/* Wider screens */
@media (min-width: 48rem) {
  :root {
    --measure: 50rem;
    --gutter: 2rem;
  }

  main {
    padding-top: 4rem;
  }

  .intro h1 {
    font-size: 2.75rem;
  }

  .logo {
    width: 270px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    padding: 1.75rem;
  }
}

@media print {
  .site-footer {
    background: none;
    color: var(--text);
  }

  .site-footer a {
    color: var(--text);
  }
}
