:root {
  --bg: #f3f5f0;
  --bg-deep: #e4e9e0;
  --surface: #fbfcf9;
  --text: #1c2420;
  --muted: #5a665e;
  --olive: #4a5c3a;
  --olive-deep: #344128;
  --brick: #9a4a3c;
  --brick-soft: rgba(154, 74, 60, 0.12);
  --line: rgba(28, 36, 32, 0.1);
  --shadow: 0 18px 40px rgba(28, 36, 32, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --focus: 0 0 0 3px var(--surface), 0 0 0 6px rgba(74, 92, 58, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: clip;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(74, 92, 58, 0.16), transparent 58%),
    radial-gradient(720px 480px at 96% 8%, rgba(154, 74, 60, 0.1), transparent 52%),
    linear-gradient(180deg, #f7f8f4 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(28, 36, 32, 0.045) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

/* ——— Hero ——— */

.hero {
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vh, 88px) 0 clamp(48px, 8vh, 96px);
  text-align: center;
}

.hero-inner {
  width: min(720px, 92%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  animation: hero-in 900ms var(--ease) both;
}

.brand {
  display: block;
  border-radius: 8px;
  transition: transform 280ms var(--ease);
}

.brand:hover {
  transform: scale(1.015);
}

.brand:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.site-logo {
  width: min(420px, 78vw);
  height: auto;
  display: block;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-cta {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--olive);
  color: #eef2e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(52, 65, 40, 0.22);
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--olive-deep);
  box-shadow: 0 14px 28px rgba(52, 65, 40, 0.28);
}

.hero-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* ——— Sections ——— */

.section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.section-head h2,
.visit-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p,
.visit-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.therapists {
  background: #fff;
  border-block: 1px solid var(--line);
}

/* ——— Staff ——— */

.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}

.staff-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--olive) 35%, var(--line));
  box-shadow: var(--shadow);
  background: #fff;
}

.person-photo {
  width: min(168px, 56vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 1rem;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 12px 28px rgba(28, 36, 32, 0.12);
}

.person-photo-placeholder {
  object-fit: contain;
  background: color-mix(in srgb, var(--bg-deep) 55%, #fff);
  padding: 0;
}

.staff-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.role {
  margin: 0 0 1.15rem;
  color: var(--brick);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.practice-link {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-height: 118px;
  padding: 0.85rem 0.75rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--olive-deep);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}

.practice-link:hover {
  background: var(--brick-soft);
  border-color: color-mix(in srgb, var(--brick) 22%, transparent);
}

.practice-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.brand-image {
  display: block;
  width: 100%;
  max-width: 168px;
  height: 56px;
  object-fit: contain;
}

.brand-image-small {
  max-width: 96px;
}

.link-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.practice-link:hover .link-label {
  color: var(--brick);
}

/* ——— Treatments ——— */

.treatments-section {
  border-block-end: 1px solid var(--line);
}

.treatment-list {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  max-width: 42rem;
  margin-inline: auto;
}

.treatment-item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  letter-spacing: -0.015em;
  color: var(--text);
}

.treatment-item p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.treatment-item a {
  color: var(--olive);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

.treatment-item a:hover {
  color: var(--brick);
}

.treatment-item a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

/* ——— FAQ ——— */

.faq-section {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-block-start: 1px solid var(--line);
}

.faq-list {
  max-width: 42rem;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--text);
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--olive);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item a {
  color: var(--olive);
  font-weight: 600;
}

.faq-item a:hover {
  color: var(--brick);
}

/* ——— Visit / map ——— */

.visit-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.visit-copy {
  text-align: center;
}

.treatments {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.visit-copy address {
  margin: 1.35rem 0 1.5rem;
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.visit-copy strong {
  color: var(--text);
  font-weight: 700;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--olive) 55%, transparent);
  color: var(--olive-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}

.map-link:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: #eef2e8;
}

.map-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.map-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 16 / 11;
  min-height: 280px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.88) contrast(1.02);
}

/* ——— Footer ——— */

.site-footer {
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--olive-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.site-footer p {
  margin: 0;
}

/* ——— Motion ——— */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.staff-card.reveal:nth-child(2) { transition-delay: 70ms; }
.staff-card.reveal:nth-child(3) { transition-delay: 140ms; }
.staff-card.reveal:nth-child(4) { transition-delay: 210ms; }
.staff-card.reveal:nth-child(5) { transition-delay: 280ms; }

.treatment-item.reveal:nth-child(2) { transition-delay: 60ms; }
.treatment-item.reveal:nth-child(3) { transition-delay: 120ms; }
.treatment-item.reveal:nth-child(4) { transition-delay: 180ms; }
.treatment-item.reveal:nth-child(5) { transition-delay: 240ms; }

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .treatment-list {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }

  .visit-grid {
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
    text-align: left;
  }

  .visit-copy {
    text-align: left;
  }

  .visit-copy h2,
  .visit-lead {
    text-align: left;
  }
}

@media (min-width: 1100px) {
  .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .staff-card {
    padding: 26px 16px 18px;
  }

  .person-photo {
    width: 140px;
  }

  .brand-image {
    max-width: 140px;
    height: 48px;
  }

  .brand-image-small {
    max-width: 84px;
  }

  .practice-link {
    min-height: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
