/* Peter J Doran, DC PA — shared styles */
:root {
  --paper: #f4f1ea;
  --paper-deep: #ebe6db;
  --ink: #1f2a28;
  --ink-soft: #4a5855;
  --muted: #6b7673;
  --line: #d7d0c3;
  --white: #fffcf7;
  --teal: #2f5d58;
  --teal-dark: #214440;
  --teal-mid: #3d736d;
  --gold: #b08948;
  --gold-soft: #d4b483;
  --shadow: 0 10px 30px rgba(33, 44, 41, 0.08);
  --radius: 14px;
  --max: 1080px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 0 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.mark,
img.mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 11px;
}
.brand-text { min-width: 0; }
.legal-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--teal-dark);
}
.doctor-line {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.12rem;
  display: block;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.nav a:hover { background: var(--paper-deep); color: var(--teal-dark); }
.nav a[aria-current="page"] {
  background: var(--teal);
  color: var(--white);
}

/* Hero */
.hero {
  padding: 2.4rem 0 2.1rem;
  background:
    radial-gradient(1200px 280px at 80% -40%, rgba(176, 137, 72, 0.12), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin: 0 0 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--gold-soft);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.22; color: var(--teal-dark); }
h1 { font-size: clamp(1.85rem, 5.4vw, 2.75rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.espanol {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-style: italic;
}

/* Split hero — copy + photo */
.hero-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-figure {
  margin: 0;
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Photo ribbon */
.photo-ribbon {
  padding: 0 0 2.4rem;
}
.photo-ribbon-inner {
  display: grid;
  gap: 1rem;
}
.photo-ribbon figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo-ribbon img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

/* About split — portrait + prose */
.about-split {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}
.about-portrait {
  margin: 0;
}
.about-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.spine-figure {
  margin: 1.6rem 0 0;
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  max-width: 22rem;
}
.spine-figure img {
  width: 5.25rem;
  height: 13.5rem;
  object-fit: contain;
  object-position: center top;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem;
  flex-shrink: 0;
}


.photo-pair {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.6rem;
}
.photo-pair img,
.rehab-photo {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.photo-ribbon .rehab-photo { height: 14rem; box-shadow: none; border-radius: 0; }

/* Wide figure (services) */
.wide-figure {
  margin: 0 0 1.6rem;
}
.wide-figure img {
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Full-bleed photo hero (locations) */
.photo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 18rem;
  color: var(--paper);
}
.photo-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(33, 68, 64, 0.52) 0%, rgba(26, 38, 36, 0.82) 100%);
  z-index: -1;
}
.photo-hero-inner {
  position: relative;
  padding: 3.1rem 0 2.5rem;
}
.photo-hero h1 { color: var(--paper); }
.photo-hero .eyebrow { color: var(--gold-soft); }
.photo-hero .lede {
  color: #e8efe9;
  max-width: 38rem;
}
.photo-hero .espanol {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}

/* Figures */
figure { margin: 0; }
figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

/* Sections */
.section { padding: 2.4rem 0; }
.section + .section { padding-top: 0; }
.section-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.gold-rule {
  width: 3rem;
  height: 2px;
  background: var(--gold-soft);
  border: 0;
  margin: 0 0 1.1rem;
}

/* Cards */
.grid {
  display: grid;
  gap: 1rem;
}
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}
.card p { margin: 0.35rem 0 0; color: var(--ink-soft); }
.loc-city {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--teal-dark);
  margin: 0 0 0.45rem;
}
.loc-meta { margin: 0.25rem 0; font-size: 0.98rem; }
.loc-meta a { color: var(--ink); text-decoration: none; }
.loc-meta a:hover { color: var(--teal); text-decoration: underline; }
.hours { color: var(--muted); font-size: 0.92rem; margin-top: 0.7rem; }

.conditions { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.conditions li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.conditions li strong { display: block; font-family: var(--serif); color: var(--teal-dark); font-size: 1.08rem; }
.conditions li span { color: var(--ink-soft); font-size: 0.95rem; }

.note {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.1rem;
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
}

.prose p { color: var(--ink-soft); max-width: 42rem; }
.prose p + p { margin-top: 0.9rem; }

.cta-band {
  background: var(--teal-dark);
  color: #eef4f3;
  padding: 2rem 0;
  margin-top: 1rem;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d5e4e1; max-width: 38rem; }
.cta-band .btn-primary { background: var(--gold); color: var(--teal-dark); }
.cta-band .btn-primary:hover { background: var(--gold-soft); color: var(--teal-dark); }
.cta-band .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* Footer */
.site-footer {
  background: #1a2624;
  color: #c9d4d1;
  padding: 1.8rem 0 1.4rem;
  font-size: 0.92rem;
}
.site-footer a { color: #e8efe9; }
.foot-legal {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.foot-legal .mark,
.foot-legal img.mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.foot-copy { color: #9aaba7; margin: 0.8rem 0 0; }
.foot-offices { display: grid; gap: 0.85rem; margin: 1rem 0 0; }
.foot-offices h3 { color: var(--gold-soft); font-size: 0.95rem; margin: 0 0 0.2rem; font-family: var(--sans); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.foot-offices p { margin: 0.15rem 0; }

@media (min-width: 680px) {
  .hero-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.1rem;
  }
  .photo-ribbon-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .photo-ribbon img { height: 17.5rem; }
  .photo-pair { grid-template-columns: 1fr 1fr; }
  .photo-pair img { height: 20rem; }
  .about-split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2.2rem;
  }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .foot-offices { grid-template-columns: repeat(3, 1fr); }
}

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