/* Chiroport PI landing — system fonts only (no Google Fonts; logs IPs without BAA). */

:root {
  --ink: #1a1a1a;
  --ink-soft: #444;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #f7f5ef;
  --gold: #b88a2c;
  --gold-deep: #8e6a1f;
  --line: #e5e0d4;
  --max: 1100px;
  --col: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  /* room for sticky-call so footer never hides behind it on mobile */
  padding-bottom: 76px;
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
}

.container { max-width: var(--col); margin: 0 auto; padding: 0 20px; }

/* Wider container only for hero + doctor band, which use 2-col layouts. */
.hero-grid,
.doctor-grid { max-width: var(--max); }

a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .55em; }
h1 { font-size: clamp(28px, 6.2vw, 44px); font-weight: 700; }
h2 { font-size: clamp(22px, 4.4vw, 28px); font-weight: 700; margin-top: .25em; }
p  { margin: .55em 0; }
ul, ol { margin: .55em 0 .55em 1.25em; padding: 0; }
li { margin: .3em 0; }
em { font-style: italic; color: var(--ink-soft); }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

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

/* ----- Hero ----- */
.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
}
.hero-photo {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.hero-photo img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 8px 24px rgba(26, 26, 26, .12);
}
.hero-photo-cap {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(26, 26, 26, .72);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
}
@media (min-width: 880px) {
  .hero-photo { max-width: none; }
  .hero-photo img { aspect-ratio: 4 / 5; max-height: 540px; }
}

/* Hero variant: scene photo (e.g., car-crash) — keep subject (right side) in frame when cropped. */
.hero-photo-scene img { object-position: right center; }
@media (min-width: 880px) {
  .hero-photo-scene img { aspect-ratio: 5 / 4; max-height: 480px; }
}

/* In-section photo (above content) */
.section-photo {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(26, 26, 26, .10);
}
.section-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Doctor band — photo + copy on desktop */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 720px) {
  .doctor-grid { grid-template-columns: 280px 1fr; gap: 36px; }
}
.doctor-photo { margin: 0; }
.doctor-photo img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 6px 18px rgba(26, 26, 26, .10);
}
.doctor-photo figcaption {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--gold-deep);
  margin: 0 0 14px;
  font-weight: 600;
}
.hero h1 { margin-bottom: 12px; }
.subhead { font-size: clamp(17px, 2.4vw, 19px); color: var(--ink-soft); }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 22px 0 18px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  font-size: 17px; font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  min-height: 48px;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }

.trust-strip {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: var(--ink-soft);
  font-size: .95rem;
}
@media (min-width: 560px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
}

/* ----- Bands ----- */
.band { padding: 32px 0; border-bottom: 1px solid var(--line); }
.band-alt { background: var(--bg-alt); }
.band-form { background: var(--bg-alt); }

.visit-steps { padding-left: 1.25em; }
.visit-steps li { margin: .55em 0; }

.payment-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: .95rem;
}
.payment-table th,
.payment-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.payment-table th { font-weight: 600; color: var(--ink); }

blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  color: var(--ink-soft);
  font-style: italic;
  background: rgba(184, 138, 44, .06);
}

.reviews blockquote { margin: 10px 0; }

.two-col {
  list-style: disc;
  padding-left: 1.25em;
  columns: 1;
}
@media (min-width: 560px) {
  .two-col { columns: 2; column-gap: 28px; }
}

/* ----- Doctor band ----- (photo lives in hero, this section is text-only) */

/* ----- Form ----- */
form { margin-top: 14px; }
.form-promise {
  background: rgba(184, 138, 44, .08);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}
.field { margin: 14px 0; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: #b00020; }
input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  border: 1px solid #b8b3a4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0; }
.radio {
  display: inline-flex; align-items: center;
  margin: 4px 14px 4px 0;
  font-weight: 400;
}
.radio input { margin-right: 6px; }
.btn-submit { width: 100%; margin-top: 8px; font-size: 18px; padding: 16px; }
.consent { margin-top: 12px; }
.form-status { margin-top: 14px; min-height: 1.2em; font-weight: 600; }
.form-status.error { color: #b00020; }
.form-status.success { color: #2a6b2a; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- FAQ ----- */
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 0;
  font-size: 22px;
  color: var(--gold-deep);
  line-height: 1;
}
details[open] summary::after { content: "−"; }
details p { margin-top: 8px; color: var(--ink-soft); }

/* ----- Footer ----- */
footer {
  padding: 24px 0 36px;
  background: var(--ink);
  color: #d8d3c7;
  font-size: .92rem;
}
footer a { color: #f0e5c8; }
footer a:hover { color: #fff; }
.footer-line { margin: .35em 0; }
.disclaimer { margin-top: 12px; font-style: italic; color: #b3ad9b; }

/* ----- Sticky mobile call bar ----- */
.sticky-call {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 12px;
  box-shadow: 0 -4px 12px rgba(26, 26, 26, .12);
  z-index: 50;
}
.sticky-call:hover { background: var(--gold-deep); color: #fff; }
.sticky-call-icon { font-size: 18px; }

@media (min-width: 720px) {
  .sticky-call { display: none; }
}
