/* ==========================================================================
   Rapha Medical Center  public design system
   Palette sampled from the client artwork: olive green, clinic red, warm yellow.
   Layout: hand-built CSS Grid/Flexbox (no framework defaults to fight against).
   ========================================================================== */

:root {
  --green-900: #35431d;
  --green-800: #47592b;
  --green-700: #5F7735;
  --green-600: #6f8a40;
  --green-200: #d8e1c4;
  --green-100: #eef2e4;
  --green-50: #f6f8f0;

  --red-700: #8d241f;
  --red-600: #a32a25;
  --red-500: #b12f2a;

  --yellow: #f5db19;
  --yellow-soft: #fdf4bf;

  --ink: #242821;
  --ink-soft: #43493e;
  --muted: #6a7166;
  --line: #e2e6da;
  --line-strong: #cdd4c2;
  --white: #ffffff;
  --paper: #f8f9f6;

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

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --pill: 999px;

  --shadow-xs: 0 1px 2px rgba(36, 40, 33, .06);
  --shadow-sm: 0 4px 14px rgba(36, 40, 33, .06);
  --shadow-md: 0 12px 32px rgba(36, 40, 33, .09);
  --shadow-lg: 0 26px 60px rgba(36, 40, 33, .14);

  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --header-height: 78px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

img, svg, picture, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.012em;
  color: var(--green-900);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li + li { margin-top: .35rem; }

strong { font-weight: 650; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--green-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .72rem 1.35rem;
  border-radius: var(--pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 .95rem/1.2 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: var(--shadow-xs);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--green-700); }
.btn--primary:hover { --btn-bg: var(--green-900); }
.btn--accent { --btn-bg: var(--red-500); }
.btn--accent:hover { --btn-bg: var(--red-700); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--green-900);
  --btn-border: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--green-50); --btn-border: var(--green-200); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--green-900); }
.btn--light:hover { --btn-bg: var(--green-50); }
.btn--whatsapp { --btn-bg: #1f7a4d; }
.btn--whatsapp:hover { --btn-bg: #175e3b; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--green-700); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.text-link:hover { border-bottom-color: var(--green-700); color: var(--green-900); }

/* ---------------------------------------------------------------- topbar */
.topbar {
  background: var(--green-900);
  color: #e7ecd9;
  font-size: .8rem;
  letter-spacing: .01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.topbar__item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.topbar__item--hours { color: #cfd8bb; }
.topbar__link {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--white); font-weight: 600; text-decoration: none;
}
.topbar__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.topbar__link:hover { color: var(--yellow); }
@media (max-width: 900px) {
  .topbar__item--hours { display: none; }
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.5rem);
  min-height: var(--header-height);
  flex-wrap: nowrap;
  overflow: visible;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; min-width: 0; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
.brand__mark {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
}
.brand__mark svg { width: 34px; height: 34px; fill: var(--green-600); stroke: var(--green-900); stroke-width: 1.6; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--green-900);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__descriptor {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: .28rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--green-900);
  font: 600 .85rem var(--font-sans);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.primary-nav { display: flex; align-items: center; gap: clamp(.5rem, 1.2vw, 1rem); margin-left: auto; flex-wrap: nowrap; }
.primary-nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.primary-nav__item { position: relative; margin: 0; }
.primary-nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .55rem;
  white-space: nowrap;
  border-radius: var(--pill);
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.primary-nav__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-nav__link:hover, .primary-nav__link.is-active { background: var(--green-50); color: var(--green-900); }

.primary-nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 268px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .45rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.primary-nav__dropdown ul { list-style: none; margin: 0; padding: 0; }
.primary-nav__dropdown li { margin: 0; }
.primary-nav__dropdown a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--ink-soft); font-size: .9rem; font-weight: 500; text-decoration: none;
}
.primary-nav__dropdown a:hover { background: var(--green-50); color: var(--green-900); }
.primary-nav__item.is-open > .primary-nav__dropdown,
.primary-nav__item:hover > .primary-nav__dropdown,
.primary-nav__item:focus-within > .primary-nav__dropdown {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

.primary-nav__actions { display: flex; align-items: center; gap: .4rem; flex: none; flex-wrap: nowrap; }
.primary-nav__actions .btn { min-height: 44px; padding: .6rem .9rem; font-size: .9rem; white-space: nowrap; }
.primary-nav__actions .btn svg { width: 16px; height: 16px; }

@media (max-width: 1180px) {
  .primary-nav__actions .btn--ghost span { display: none; }
  .primary-nav__actions .btn--ghost { padding: .6rem; }
}
@media (max-width: 1080px) {
  .primary-nav__link { font-size: .88rem; padding: .5rem .48rem; }
  .brand__name { font-size: 1rem; }
  .brand__descriptor { font-size: .58rem; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: calc(var(--header-height) + 2px) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    margin-left: 0;
  }
  .site-header.nav-open .primary-nav { display: flex; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__item { border-bottom: 1px solid var(--line); }
  .primary-nav__link { width: 100%; justify-content: space-between; padding: .9rem .2rem; border-radius: 0; font-size: 1rem; }
  .primary-nav__link.is-active { background: transparent; color: var(--green-700); }
  .primary-nav__dropdown {
    position: static; opacity: 1; transform: none; pointer-events: auto;
    border: 0; box-shadow: none; padding: 0 0 .7rem 1rem; display: none; min-width: 0;
  }
  .primary-nav__item.is-open > .primary-nav__dropdown { display: block; }
  .primary-nav__actions { flex-direction: column; align-items: stretch; margin-top: 1rem; }
  .primary-nav__actions .btn { width: 100%; }
  .primary-nav__actions .btn--ghost { display: inline-flex; }
  /* clip the open menu requires the header to not clip its own dropdown */
}

/* ---------------------------------------------------------------- flash */
.flash-stack { padding-top: 1.1rem; display: grid; gap: .6rem; }
.flash {
  display: flex; align-items: flex-start; gap: .7rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  box-shadow: var(--shadow-xs);
}
.flash p { margin: 0; font-size: .93rem; }
.flash__icon {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-900);
  font-weight: 700; font-size: .8rem;
}
.flash--success { border-left-color: #2f7d4f; }
.flash--error { border-left-color: var(--red-500); }
.flash--error .flash__icon { background: #fbe9e8; color: var(--red-700); }
.flash--warning { border-left-color: #b8860b; }
.flash--warning .flash__icon { background: var(--yellow-soft); color: #6b5200; }
.flash__close {
  margin-left: auto; background: none; border: 0; color: var(--muted);
  font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 .2rem;
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }
.section--paper { background: var(--paper); }
.section--green { background: var(--green-900); color: #e9eedd; }
.section--green h2, .section--green h3 { color: var(--white); }
.section--green a { color: var(--yellow); }

.section-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.03rem; margin-bottom: 0; }
.section-head--wide { max-width: 900px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-700); margin: 0 0 .8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--yellow); border-radius: 2px; }
.section--green .eyebrow { color: #cfe0a8; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 86% -12%, var(--green-100) 0%, rgba(238, 242, 228, 0) 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  padding-block: clamp(38px, 6vw, 82px);
}
.hero__content { max-width: 580px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--white);
  border: 1px solid var(--green-200);
  color: var(--green-900);
  padding: .4rem .8rem .4rem .55rem;
  border-radius: var(--pill);
  font-size: .78rem; font-weight: 650; letter-spacing: .02em;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.1rem;
}
.hero__eyebrow span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 219, 25, .22); }
.hero h1 { margin-bottom: .7rem; }
.hero h1 em { font-style: normal; color: var(--green-700); }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.5rem; }
.hero__actions { margin-bottom: 1.7rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
  list-style: none; padding: 0; margin: 0;
  font-size: .87rem; color: var(--ink-soft);
}
.hero__meta li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.hero__meta svg { width: 16px; height: 16px; fill: none; stroke: var(--green-700); stroke-width: 1.9; }

.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.35;
  background: var(--green-100);
}
.hero__frame img, .hero__frame picture img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36, 40, 33, 0) 46%, rgba(36, 40, 33, .45) 100%);
  pointer-events: none;
}
.hero__badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255, 255, 255, .95);
  border-radius: var(--pill);
  padding: .5rem .9rem;
  font-size: .8rem; font-weight: 650; color: var(--green-900);
  box-shadow: var(--shadow-sm);
}
.hero__badge svg { width: 16px; height: 16px; fill: none; stroke: var(--green-700); stroke-width: 2; }

.hero-card {
  position: absolute; right: -6px; top: 26px; z-index: 3;
  width: min(240px, 62%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}
.hero-card__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 .35rem; }
.hero-card__value { font-family: var(--font-display); font-size: 1.18rem; color: var(--green-900); margin: 0 0 .25rem; line-height: 1.25; }
.hero-card__note { font-size: .78rem; color: var(--ink-soft); margin: 0; }
.hero-card__accent { display: block; width: 34px; height: 3px; background: var(--yellow); border-radius: 3px; margin: .6rem 0 0; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 34px 44px; }
  .hero__visual { order: -1; }
  .hero__frame { aspect-ratio: 16 / 11; }
  .hero-card { display: none; }
  .hero__content { max-width: none; }
}

/* ---------------------------------------------------------------- page hero */
.page-hero {
  background:
    radial-gradient(800px 380px at 88% -30%, var(--green-100) 0%, rgba(238, 242, 228, 0) 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(30px, 5vw, 58px);
}
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem; align-items: center; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .6rem; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; margin-bottom: 0; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 10; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__actions { margin-top: 1.4rem; }
@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .page-hero__media { order: -1; aspect-ratio: 16 / 9; }
}

.breadcrumbs { background: var(--white); border-bottom: 1px solid var(--line); font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: .7rem 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-700); }

/* ---------------------------------------------------------------- grids & cards */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-200); text-decoration: none; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-50); position: relative; }
.card__media img, .card__media picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__kicker { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--green-700); font-weight: 700; margin: 0; }
.card__title { font-family: var(--font-display); font-size: 1.2rem; margin: 0; color: var(--green-900); }
.card__text { font-size: .91rem; color: var(--ink-soft); margin: 0; }
.card__foot { margin-top: auto; padding-top: .8rem; }
.card__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; font-size: .86rem; color: var(--green-700); }
.card__link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; }
.card--service .card__body { padding-block: 1.05rem 1.2rem; }

.card--icon { padding: 1.35rem 1.3rem; gap: .5rem; }
.card--icon .card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); border: 1px solid var(--green-200); margin-bottom: .4rem;
}
.card--icon .card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green-700); stroke-width: 1.7; }
.card--icon h3 { font-size: 1.08rem; margin: 0; }
.card--icon p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* condition pills */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .7rem; }
.chip-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600; font-size: .93rem;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.chip-link svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--green-700); stroke-width: 1.9; }
.chip-link:hover { border-color: var(--green-200); background: var(--green-50); transform: translateY(-1px); text-decoration: none; }
.chip-link span { flex: 1; }
.chip-link .arrow { stroke: var(--muted); }

/* ---------------------------------------------------------------- split / feature blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4.4vw, 62px); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media { position: relative; }
.split__frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5 / 4; background: var(--green-50); }
.split__frame img { width: 100%; height: 100%; object-fit: cover; }
.split__content p { color: var(--ink-soft); }
.split__aside { display: grid; gap: .6rem; }

.feature-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.feature-list li { display: flex; gap: .65rem; margin: 0; font-size: .95rem; color: var(--ink-soft); }
.feature-list svg { width: 20px; height: 20px; flex: none; margin-top: .12rem; fill: none; stroke: var(--green-700); stroke-width: 2; }
.feature-list strong { display: block; color: var(--ink); font-weight: 650; }

/* trust strip — sourced facts only, no invented statistics */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: 1.05rem 1.35rem;
}
.trust + .trust { border-left: 1px solid var(--line); }
.trust__icon {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-50);
  border: 1px solid var(--green-200);
}
.trust__icon svg { width: 17px; height: 17px; fill: none; stroke: var(--green-700); stroke-width: 1.8; }
.trust__label { margin: 0; font-size: .9rem; font-weight: 650; color: var(--green-900); line-height: 1.3; }
.trust__note { margin: .2rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust:nth-child(3) { border-left: 0; }
  .trust:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .trust { padding: .9rem .8rem; } }

/* ---------------------------------------------------------------- therapy index */
.therapy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.therapy-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.therapy-card__body { padding: 1.1rem 1.15rem 1.2rem; }
.therapy-card h3 { font-size: 1.02rem; margin: 0 0 .35rem; }
.therapy-card p { font-size: .87rem; color: var(--ink-soft); margin: 0; }

.therapy-index {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
}
.therapy-index__item {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: .35rem 1rem;
  padding: 1.15rem 0 1.2rem;
  border-top: 1px solid var(--line);
}
.therapy-index__item:nth-child(-n+2) { border-top: 0; }
.therapy-index__num {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em;
  color: var(--green-600); padding-top: .2rem;
}
.therapy-index h3 { font-size: 1.04rem; margin: 0 0 .3rem; }
.therapy-index p { font-size: .88rem; color: var(--ink-soft); margin: 0; max-width: 46ch; }
@media (max-width: 820px) {
  .therapy-index { grid-template-columns: 1fr; }
  .therapy-index__item:nth-child(2) { border-top: 0; }
  .therapy-index__item + .therapy-index__item { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- home visit band */
.visit-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--green-900) 0%, #46592a 62%, #566b33 100%);
  color: #eef2e2;
}
.visit-band__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; }
.visit-band__content { padding: clamp(26px, 4vw, 54px); }
.visit-band h2 { color: var(--white); margin-bottom: .65rem; }
.visit-band p { color: #dbe4c8; }
.visit-band__media { min-height: 260px; position: relative; }
.visit-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(53, 67, 29, .55), rgba(53, 67, 29, 0) 55%); }
@media (max-width: 880px) {
  .visit-band__grid { grid-template-columns: 1fr; }
  .visit-band__media { min-height: 220px; order: -1; }
  .visit-band__media::after { background: linear-gradient(180deg, rgba(53, 67, 29, .3), rgba(53, 67, 29, 0)); }
}

/* ---------------------------------------------------------------- gallery */
.gallery-strip { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; }
.gallery-strip figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-50); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.1; }
.gallery-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .9rem .8rem;
  background: linear-gradient(180deg, rgba(36, 40, 33, 0), rgba(36, 40, 33, .72));
  color: var(--white); font-size: .8rem; font-weight: 600;
}
@media (max-width: 760px) { .gallery-strip { grid-template-columns: 1fr 1fr; } .gallery-strip figure:first-child { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: .6rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 650; font-size: .98rem; color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1;
  color: var(--green-700); font-family: var(--font-sans);
}
.faq-item[open] summary::after { content: ""; }
.faq-item[open] summary { color: var(--green-900); }
.faq-item__answer { padding: 0 1.15rem 1.15rem; color: var(--ink-soft); font-size: .93rem; }
.faq-item__answer p:last-child { margin-bottom: 0; }
.faq-item__source { display: inline-block; margin-top: .5rem; font-size: .72rem; color: var(--muted); }

/* ---------------------------------------------------------------- contact / hours */
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-xs);
}
.info-card h2, .info-card h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.info-list li { display: flex; gap: .7rem; margin: 0; font-size: .93rem; color: var(--ink-soft); }
.info-list svg { width: 19px; height: 19px; flex: none; margin-top: .1rem; fill: none; stroke: var(--green-700); stroke-width: 1.8; }
.info-list strong { display: block; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .1rem; }
.info-list a { color: var(--green-700); font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--green-50); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------------------------------------------------------------- forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.2vw, 38px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 650; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 400 .95rem/1.45 var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b6c0a8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(95, 119, 53, .14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red-500); box-shadow: 0 0 0 4px rgba(177, 47, 42, .1); }
.field__error { font-size: .8rem; color: var(--red-700); font-weight: 600; margin: 0; }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; color: var(--ink-soft); }
.checkbox input { width: 18px; height: 18px; margin-top: .18rem; accent-color: var(--green-700); flex: none; }
.form-note { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-side { display: grid; gap: 1rem; }
.required-flag { color: var(--red-600); }

/* ---------------------------------------------------------------- article/prose */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.1rem; }
.prose blockquote {
  margin: 1.4rem 0; padding: .9rem 1.2rem;
  border-left: 4px solid var(--yellow);
  background: var(--green-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; }
.prose th { background: var(--green-50); }

.callout {
  border: 1px solid var(--green-200);
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.callout--pending { border-color: #ecd98d; background: #fef9e3; }
.callout strong { color: var(--ink); }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--green-900);
  color: #eef2e2;
  padding: clamp(26px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.6rem;
  align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: .5rem; font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.cta-band p { margin: 0; color: #d9e2c5; max-width: 56ch; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; border: 30px solid rgba(245, 219, 25, .12);
}
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: var(--section); background: var(--green-900); color: #c9d3b7; font-size: .9rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(22px, 3vw, 44px);
  padding-block: clamp(38px, 5vw, 62px) 34px;
}
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--white); font-family: var(--font-sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .45rem; }
.site-footer a { color: #d5dfc2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: rgba(255, 255, 255, .06); padding: 4px; margin-bottom: .8rem; }
.site-footer__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); margin: 0 0 .25rem; }
.site-footer__descriptor { margin: 0 0 .2rem; color: #b9c7a0; font-size: .82rem; }
.site-footer__tagline { margin: 0 0 .9rem; color: #e6ecd7; font-size: .92rem; font-style: italic; }
.site-footer__note { margin: 0; color: #a9b795; font-size: .84rem; max-width: 34ch; }
.site-footer address { font-style: normal; margin: 0 0 .6rem; color: #d5dfc2; }
.site-footer__hours { color: #a9b795; font-size: .84rem; }
.site-footer__directions { font-weight: 650; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.1rem;
  font-size: .8rem; color: #a9b795;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.site-footer__legal li { margin: 0; }
.site-footer__disclaimer { margin: 0; padding-bottom: 1.6rem; font-size: .74rem; color: #94a382; max-width: 96ch; }

/* ---------------------------------------------------------------- mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 780px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(36, 40, 33, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem;
    padding: .55rem .3rem .6rem;
    color: var(--ink-soft); text-decoration: none; font-size: .7rem; font-weight: 650;
  }
  .mobile-bar__item svg { width: 20px; height: 20px; fill: none; stroke: var(--green-700); stroke-width: 1.8; }
  .mobile-bar__item:first-child svg { fill: var(--green-700); stroke: none; }
  .mobile-bar__item--primary { color: var(--green-900); background: var(--green-50); }
  body { padding-bottom: 64px; }
  .wa-float { bottom: 78px !important; }
}

.wa-float {
  position: fixed; right: 16px; bottom: 18px; z-index: 110;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f7a4d; color: var(--white);
  box-shadow: var(--shadow-md);
}
.wa-float svg { width: 27px; height: 27px; fill: currentColor; }
.wa-float:hover { background: #175e3b; }

/* ---------------------------------------------------------------- misc */
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--green-50); border: 1px solid var(--green-200);
  color: var(--green-900); border-radius: var(--pill);
  padding: .3rem .7rem; font-size: .78rem; font-weight: 600;
}
.pill--red { background: #fbeceb; border-color: #f0c9c6; color: var(--red-700); }
.pill--yellow { background: #fef9dd; border-color: #f0e39a; color: #5d4c00; }

.availability {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 650; color: var(--green-900);
  background: var(--green-50); border: 1px solid var(--green-200);
  padding: .35rem .8rem; border-radius: var(--pill);
}
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f8f57; box-shadow: 0 0 0 3px rgba(63, 143, 87, .18); }

.empty-state {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; color: var(--muted); background: var(--paper);
}

.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-size: .88rem;
}
.pagination .is-current { background: var(--green-700); border-color: var(--green-700); color: var(--white); font-weight: 700; }

/* ---------------------------------------------------------------- 404 */
.error-page { padding-block: clamp(50px, 9vw, 110px); text-align: center; }
.error-page__code { font-family: var(--font-display); font-size: clamp(3.6rem, 10vw, 6.5rem); line-height: 1; color: var(--green-200); margin: 0; }
.error-page h1 { margin-top: -.4rem; }
.error-page p { max-width: 52ch; margin-inline: auto; color: var(--ink-soft); }
.error-page__links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }

/* ---------------------------------------------------------------- print */
@media print {
  .site-header, .topbar, .site-footer, .mobile-bar, .wa-float, .breadcrumbs, .flash-stack, .cta-band { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}
