/* =========================================================================
   STX CHIROPRACTIC — page-specific components
   ========================================================================= */

/* ---- DOCTORS BLOCK ------------------------------------------------------- */

.doctors-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.doctors-intro h2 { max-width: 18ch; }
.doctors-intro .lead { color: var(--ink); }

.doctor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.doctor-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.doctor-card__photo {
  aspect-ratio: 4 / 3;
  background: var(--sage-tint);
  position: relative; overflow: hidden;
}
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
/* monogram avatar — used where we don't have an authentic portrait yet (no stock faces) */
.doctor-card__photo--mono {
  display: grid; place-items: center;
  background: linear-gradient(155deg, var(--slate) 0%, var(--slate-deep) 100%);
}
.doctor-card__mono {
  display: grid; place-items: center; text-align: center; gap: 8px; color: #fff;
}
.doctor-card__mono .mono-initials {
  width: 96px; height: 96px; border-radius: 50%;
  border: 2px solid var(--cyan);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 38px; font-weight: 400; color: var(--cyan-tint);
  background: rgba(42,169,212,.10);
}
.doctor-card__mono .mono-label {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.62);
}
.doctor-card__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--bone); color: var(--ink);
  padding: 6px 12px; border-radius: var(--r-pill);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}
.doctor-card__body { padding: 30px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.doctor-card__name { font-family: var(--f-display); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; margin: 0 0 6px; }
.doctor-card__name span { color: var(--terra-deep); font-size: .65em; vertical-align: super; margin-left: 4px; }
.doctor-card__role { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 18px; }
.doctor-card__bio { color: var(--ink-mute); margin: 0 0 22px; font-size: 15.5px; line-height: 1.6; }
.rd-badge { height: 40px; width: auto; margin: 0 0 16px; opacity: .92; }
.doctor-card__meta { border-top: 1px solid var(--rule); padding-top: 18px; }
.doctor-card__meta dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 4px; }
.doctor-card__meta dd { margin: 0 0 14px; font-size: 14.5px; }
.doctor-card__meta ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.7; color: var(--ink); }
@media (max-width: 880px) { .doctors-intro { grid-template-columns: 1fr; } .doctor-grid { grid-template-columns: 1fr; } }

/* ---- PHILOSOPHY ---------------------------------------------------------- */

.philosophy { background: linear-gradient(160deg, var(--slate) 0%, var(--slate-deep) 100%); color: #fff; padding: var(--section-y) 0; position: relative; overflow: hidden; }
.philosophy .wrap { position: relative; z-index: 2; }
.philosophy h2 { color: #fff; max-width: 22ch; margin-bottom: 56px; }
.philosophy .eyebrow { color: var(--bone-soft); }
.philosophy .eyebrow::before { background: var(--bone-soft); }
.philosophy__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.philosophy__cell { border-top: 1px solid rgba(244,237,223,.32); padding: 24px 0 0; }
.philosophy__cell dt { font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; margin: 0 0 14px; color: var(--bone); }
.philosophy__cell dd { margin: 0; color: rgba(244,237,223,.82); font-size: 15.5px; line-height: 1.65; }
@media (max-width: 880px) { .philosophy__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .philosophy__grid { grid-template-columns: 1fr; } }

/* ---- CONDITIONS ---------------------------------------------------------- */

.conditions-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.conditions-head h2 { max-width: 16ch; }
.conditions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.condition {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 24px 32px;
  background: var(--bone);
  transition: background .25s ease;
}
.condition:hover { background: var(--bone-soft); }
.condition__num { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 18px; }
.condition__name { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.15; margin: 0 0 12px; }
.condition__blurb { color: var(--ink-mute); margin: 0; font-size: 14.5px; line-height: 1.6; }
@media (max-width: 1100px) { .conditions { grid-template-columns: repeat(2, 1fr); } .conditions-head { grid-template-columns: 1fr; } }
@media (max-width: 540px)  { .conditions { grid-template-columns: 1fr; } }

/* ---- TREATMENT APPROACH (split editorial) -------------------------------- */

.treatments-head { max-width: 60ch; margin: 0 auto clamp(48px, 6vw, 88px); text-align: center; }
.treatments-head h2 { margin: 16px auto 18px; }
.treatments-head .eyebrow { display: inline-flex; }
.treatments-head .eyebrow::before { background: var(--terra); }

.treatment-row {
  display: grid; grid-template-columns: 100px 1fr 1.4fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.treatment-row:last-of-type { border-bottom: 1px solid var(--rule); }
.treatment-row__num { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); padding-top: 6px; }
.treatment-row__name { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.treatment-row__name sup { color: var(--terra-deep); font-size: .55em; vertical-align: super; }
.treatment-row__blurb { color: var(--ink); font-size: 16px; line-height: 1.65; margin: 0; }

/* treatment row with real photo thumbnail */
.treatment-row--media {
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.treatment-row--media .treatment-row__info {
  display: flex; flex-direction: column; gap: 0;
}
.treatment-row--media .treatment-row__info .treatment-row__num { padding-top: 0; margin-bottom: 8px; }
.treatment-row--media .treatment-row__info .treatment-row__name { margin: 0 0 14px; }
.treatment-row--media .treatment-row__info .treatment-row__blurb { margin: 0; }
.treatment-row--media .treatment-row__img {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sage-tint);
  flex-shrink: 0;
}
.treatment-row--media .treatment-row__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.treatment-row--media:hover .treatment-row__img img { transform: scale(1.04); }

@media (max-width: 880px) {
  .treatment-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .treatment-row__num { padding: 0; }
  .treatment-row--media { grid-template-columns: 1fr; }
  .treatment-row--media .treatment-row__img { aspect-ratio: 16 / 9; }
}

/* ---- NEW PATIENT EXPERIENCE --------------------------------------------- */

.np-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.np-grid h2 { margin-bottom: 20px; }
.np-steps { list-style: none; margin: 28px 0 0; padding: 0; }
.np-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.np-step:last-child { border-bottom: 0; }
.np-step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bone-soft); color: var(--terra-deep);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 22px; font-weight: 400;
  border: 1px solid var(--rule);
}
.np-step h4 { margin: 0 0 6px; font-size: 18px; }
.np-step p  { margin: 0; color: var(--ink-mute); font-size: 15px; line-height: 1.6; }
.np-photo {
  aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden;
  background: var(--sage-tint); box-shadow: var(--shadow-card);
  position: sticky; top: 100px;
}
.np-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .np-grid { grid-template-columns: 1fr; } .np-photo { position: relative; top: 0; aspect-ratio: 4/3; } }

/* ---- INSURANCE BAND ------------------------------------------------------ */

.insurance { background: var(--bone-soft); }
.insurance__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.insurance__list { columns: 2; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.insurance__list li {
  break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; display: flex; align-items: center; gap: 10px;
}
.insurance__list li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: 0 0 8px;
}
.insurance__notes { display: grid; gap: 22px; margin-top: 32px; }
.insurance__note { padding: 22px 24px; background: var(--bone); border: 1px solid var(--rule); border-radius: var(--r-md); }
.insurance__note h4 { margin: 0 0 8px; font-size: 17px; }
.insurance__note p { margin: 0; color: var(--ink-mute); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 880px) { .insurance__inner { grid-template-columns: 1fr; } .insurance__list { columns: 1; } }

/* ---- REVIEWS ------------------------------------------------------------- */

.reviews-head { text-align: center; max-width: 56ch; margin: 0 auto clamp(40px, 5vw, 72px); }
.reviews-head .eyebrow { display: inline-flex; }
.reviews-head h2 { margin: 16px auto 14px; }
.reviews-head .star {
  display: inline-block; color: var(--terra); margin: 0 1px; font-size: 18px;
}
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.review {
  background: var(--bone); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 32px 30px;
  position: relative;
}
.review__mark {
  position: absolute; top: -22px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--terra); color: var(--bone);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 30px; line-height: 1; padding-bottom: 6px;
}
.review p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.review__by { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.review__by strong { color: var(--ink); font-weight: 500; }
@media (max-width: 880px) { .review-grid { grid-template-columns: 1fr; } }

/* ---- FAQ ----------------------------------------------------------------- */

.faq-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.faq-head h2 { max-width: 18ch; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  font-family: var(--f-display); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--f-display); font-size: 28px; color: var(--terra-deep);
  transition: transform .25s ease;
  line-height: 1; width: 28px; text-align: center;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 60px 26px 0; color: var(--ink-mute); font-size: 16px; line-height: 1.65; margin: 0; }
@media (max-width: 880px) { .faq-head { grid-template-columns: 1fr; } .faq-item p { padding-right: 0; } }

/* ---- BOOK / FORM --------------------------------------------------------- */

.book { background: var(--ink); color: var(--bone); }
.book h2 { color: var(--bone); max-width: 18ch; }
.book .eyebrow { color: var(--bone-soft); }
.book .eyebrow::before { background: var(--terra); }
.book__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 880px) { .book__grid { grid-template-columns: 1fr; } }
.book__intro { color: rgba(244,237,223,.78); font-size: 16px; line-height: 1.65; }
.book__phone { margin-top: 28px; padding: 18px 20px; border: 1px solid rgba(244,237,223,.22); border-radius: var(--r-md); display: flex; align-items: center; gap: 14px; }
.book__phone strong { font-family: var(--f-display); font-size: 26px; color: var(--bone); }
.book__phone small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,237,223,.6); display: block; margin-top: 2px; }
.book__phone svg { width: 28px; height: 28px; color: var(--terra-tint); }

.form { background: var(--bone); color: var(--ink); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-card); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form__row--single { grid-template-columns: 1fr; }
.form__field label { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.form__field input, .form__field textarea, .form__field select {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 15px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  transition: border-color .2s ease;
}
.form__field input:focus, .form__field textarea:focus, .form__field select:focus { border-color: var(--sage-deep); outline: none; }
.form__field textarea { min-height: 100px; resize: vertical; }
.form__notice {
  background: var(--bone-soft); border: 1px dashed var(--sage);
  padding: 14px 16px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--ink-mute); margin: 4px 0 18px;
}
.form__notice strong { color: var(--sage-deep); }
.form button[type="submit"] { width: 100%; justify-content: center; padding: 16px 24px; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }

/* ---- VISIT BLOCK --------------------------------------------------------- */

.visit__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.visit__details { display: grid; gap: 24px; }
.visit__row { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.visit__row dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 6px; }
.visit__row dd { margin: 0; font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }
.visit__row dd small { display: block; font-family: var(--f-body); font-size: 14px; color: var(--ink-mute); margin-top: 4px; }
.visit__hours { list-style: none; margin: 0; padding: 0; }
.visit__hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.visit__hours li:last-child { border-bottom: 0; }
.visit__hours strong { font-weight: 500; }
.visit__map {
  aspect-ratio: 4 / 5;
  background: var(--sage-tint);
  border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.visit__map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 880px) { .visit__grid { grid-template-columns: 1fr; } .visit__map { aspect-ratio: 4/3; } }

/* ---- PAGE HEADER (inner pages) ------------------------------------------ */

.page-head { padding: clamp(48px, 8vw, 120px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.page-head__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; max-width: 14ch; }
.page-head h1 em { color: var(--terra-deep); font-style: italic; font-variation-settings: "SOFT" 100; }
.page-head__lede { max-width: 50ch; color: var(--ink-mute); font-size: clamp(16px, 1.3vw, 19px); }
@media (max-width: 880px) { .page-head__inner { grid-template-columns: 1fr; } }

/* ---- LARGE CTA BANNER --------------------------------------------------- */

.cta-band { background: linear-gradient(120deg, var(--slate-deep) 0%, var(--slate) 42%, var(--cyan-deep) 130%); color: #fff; padding: clamp(56px, 8vw, 112px) 0; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band .lead { color: rgba(255,255,255,.9); max-width: 56ch; }
.cta-band__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.cta-band__inner .btn--bone:hover { color: var(--cyan-deep); }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(42,169,212,.35), transparent 65%); pointer-events: none; }
@media (max-width: 880px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---- PHOTO STRIP --------------------------------------------------------- */

.strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; padding: var(--section-y) 0; }
.strip__tile { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--sage-tint); }
.strip__tile:first-child { aspect-ratio: 4 / 5; }
.strip__tile img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .strip { grid-template-columns: 1fr 1fr; } .strip__tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }

/* ---- 404 ----------------------------------------------------------------- */

.notfound { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound__num { font-family: var(--f-display); font-size: clamp(96px, 18vw, 240px); line-height: .9; color: var(--terra-deep); font-style: italic; font-variation-settings: "SOFT" 100; }
.notfound h1 { font-size: clamp(28px, 3vw, 40px); margin: 16px 0 12px; }
.notfound p { color: var(--ink-mute); max-width: 44ch; margin: 0 auto 28px; }

/* ---- SCHEMA-SPECIFIC (treatment intro panel) ---------------------------- */
.panel-quote { background: var(--bone-soft); border-left: 4px solid var(--terra); padding: 28px 28px; border-radius: 4px; margin: 36px 0; }
.panel-quote p { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--ink); margin: 0; }
.panel-quote cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
