/* =========================================================
   ALIGN SPINE CENTER - PHYSICAL THERAPY
   Load after assets/css/style.css. All rules are page-scoped.
   1. Foundation   2. Hero   3. Layout   4. Programs
   5. Care panels  6. Sidebar  7. CTA   8. Responsive/accessibility
   ========================================================= */

/* 1. Page palette and baseline safeguards */
.pt-page {
  --pt-purple: #211548;
  --pt-purple-light: #392a65;
  --pt-teal: #086b82;
  --pt-ink: #213c49;
  --pt-muted: #586c77;
  --pt-lavender: #f1edfd;
  --pt-lavender-line: #ddd4f1;
  --pt-peach: #fff3e8;
  --pt-orange: #b95424;
  --pt-line: #dce7eb;
  --pt-shadow: 0 18px 48px rgba(11, 38, 53, 0.08);
}

.pt-page #main { overflow-wrap: break-word; }
.pt-page #main [id] { scroll-margin-top: 116px; }
.pt-page .top .container { flex-wrap: wrap; }
.pt-page :where(a, button, summary):focus-visible {
  outline: 3px solid var(--pt-teal);
  outline-offset: 5px;
}
.pt-page :where(.pt-hero-copy, .pt-callout, .pt-sidebar-card--contact) a:focus-visible {
  outline-color: #a4eef4;
}
.pt-page .pt-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--pt-teal);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pt-page .pt-kicker--light { color: #b2e6ef; }
.pt-page .pt-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pt-teal);
  font-size: 0.9rem;
  font-weight: 800;
}
.pt-page .pt-text-link:hover { text-decoration: underline; }
.pt-page .pt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  max-width: 100%;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.pt-page .pt-button--white { background: #fff; color: var(--pt-purple); }
.pt-page .pt-button--white:hover { background: #e8f6fa; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12); }
.pt-page .pt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 2. Hero: picture and text sit beside each other, not on top.
   Only the photograph is positioned absolutely; content sets height. */
.pt-page .pt-hero {
  padding: 24px 0 0;
  background: linear-gradient(180deg, #fff 65%, #f7fafc);
}
.pt-page .pt-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--pt-muted);
  font-size: 0.81rem;
}
.pt-page .pt-breadcrumbs [aria-current] { color: var(--pt-purple); font-weight: 700; }
.pt-page .pt-breadcrumbs a:hover { color: var(--pt-teal); }
.pt-page .pt-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  overflow: hidden;
  border: 1px solid var(--pt-lavender-line);
  border-radius: 30px;
  background: var(--pt-purple);
  box-shadow: var(--pt-shadow);
}
.pt-page .pt-hero-media {
  position: relative;
  min-width: 0;
  min-height: 360px;
  margin: 0;
  background: #dde9ef;
}
.pt-page .pt-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
}
.pt-page .pt-hero-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(11, 38, 53, 0.88);
  color: #fff;
  font-size: 0.7rem;
}
.pt-page .pt-hero-copy {
  min-width: 0;
  padding: clamp(28px, 3.6vw, 50px);
  background: linear-gradient(135deg, var(--pt-purple), var(--pt-purple-light));
  color: #fff;
}
.pt-page .pt-hero-copy h1 {
  margin: 12px 0 16px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.65rem, 4.4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.07;
}
.pt-page .pt-hero-copy .pt-hero-subtitle {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}
.pt-page .pt-hero-copy > p {
  max-width: 54ch;
  margin: 0;
  color: #e6e0f0;
  font-size: 0.96rem;
  line-height: 1.8;
}
.pt-page .pt-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 26px;
}
.pt-page .pt-hero-link {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.pt-page .pt-jump-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 26px 0 28px;
}
.pt-page .pt-jump-label {
  margin-right: 10px;
  color: var(--pt-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
.pt-page .pt-jump-nav a {
  padding: 9px 13px;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  color: var(--pt-purple);
  background: #fff;
  font-size: 0.81rem;
  font-weight: 600;
}
.pt-page .pt-jump-nav a:hover { border-color: var(--pt-teal); background: #eef8fa; }

/* 3. Two-column content layout */
.pt-page .pt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 48px;
  padding-top: 58px;
  padding-bottom: 50px;
}
.pt-page .pt-main-column { min-width: 0; }
.pt-page .pt-block { margin-bottom: 46px; }
.pt-page .pt-section-heading { margin-bottom: 21px; }
.pt-page .pt-main-column h2 {
  margin: 0 0 16px;
  color: var(--pt-purple);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.85rem, 2.6vw, 2.55rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.pt-page .pt-main-column p {
  margin: 0 0 16px;
  color: var(--pt-muted);
  font-size: 0.97rem;
  line-height: 1.8;
}
.pt-page .pt-main-column .pt-lead { color: var(--pt-ink); font-size: 1.09rem; }
.pt-page .pt-section-heading p { margin-bottom: 0; }

/* 4. Therapy programs and photography */
.pt-page .pt-program-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}
.pt-page .pt-program-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pt-page .pt-program {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--pt-line);
}
.pt-page .pt-program:first-child { padding-top: 0; }
.pt-page .pt-program:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-page .pt-program-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff1e6;
  color: var(--pt-orange);
  font-size: 0.68rem;
  font-weight: 800;
}
.pt-page .pt-program h4 {
  margin: 3px 0 6px;
  color: var(--pt-purple);
  font-size: 0.91rem;
  line-height: 1.45;
  font-weight: 700;
}
.pt-page .pt-program p { margin: 0; font-size: 0.83rem; line-height: 1.65; }
.pt-page .pt-program-photo {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  background: #f4f8fa;
}
.pt-page .pt-program-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 57% center;
}
.pt-page .pt-program-photo figcaption {
  padding: 9px 13px;
  color: var(--pt-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}
.pt-page .pt-program-note {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--pt-line);
  border-radius: 18px;
  background: #f4fafb;
}
.pt-page .pt-program-note h3 { margin: 0 0 9px; color: var(--pt-purple); font-size: 1.12rem; }
.pt-page .pt-program-note p { font-size: 0.87rem; }
.pt-page .pt-program-note .pt-text-link { font-size: 0.81rem; }

/* 5. Home-based, chiropractic and acupuncture panels */
.pt-page .pt-home-panel {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #d7e6e9;
  border-radius: 24px;
  background: linear-gradient(145deg, #f8fcfd, #eef8f9);
}
.pt-page .pt-mdt {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #d2e2e7;
}
.pt-page .pt-mdt h3 { margin: 0 0 3px; color: var(--pt-purple); font-size: 1.15rem; }
.pt-page .pt-mdt .pt-mdt-subtitle { margin-bottom: 12px; color: var(--pt-teal); font-size: 0.84rem; font-weight: 600; }
.pt-page .pt-chiro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--pt-lavender-line);
  border-radius: 24px;
  background: var(--pt-lavender);
}
.pt-page .pt-assessment-photo { overflow: hidden; margin: 0; border-radius: 16px; background: #fff; }
.pt-page .pt-assessment-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 65% center;
}
.pt-page .pt-assessment-photo figcaption { padding: 10px 12px; color: #5d586e; font-size: 0.68rem; line-height: 1.5; }
.pt-page .pt-chiro-copy h2 { font-size: clamp(1.65rem, 2.3vw, 2rem); }
.pt-page .pt-chiro-copy p { color: #5b546c; font-size: 0.9rem; }
.pt-page .pt-chiro-copy .pt-text-link { font-size: 0.85rem; }
.pt-page .pt-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.pt-page .pt-info-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--pt-lavender-line);
  border-radius: 20px;
  background: #f7f4fe;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.pt-page .pt-info-card--warm { background: #fff7ef; border-color: #f0dbc9; }
.pt-page .pt-info-card:hover { border-color: var(--pt-teal); box-shadow: var(--pt-shadow); }
.pt-page .pt-info-tag { color: var(--pt-teal); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pt-page .pt-info-card h3 { margin: 12px 0 10px; color: var(--pt-purple); font-size: 1.07rem; line-height: 1.4; }
.pt-page .pt-info-card p { font-size: 0.85rem; }
.pt-page .pt-info-link { margin-top: auto; color: var(--pt-teal); font-size: 0.81rem; font-weight: 800; }
.pt-page .pt-medical-note { padding: 20px 23px; border-left: 3px solid var(--pt-teal); border-radius: 0 16px 16px 0; background: #f5f9fa; }
.pt-page .pt-medical-note strong { display: block; margin-bottom: 5px; color: var(--pt-ink); font-size: 0.9rem; }
.pt-page .pt-medical-note p { margin: 0; font-size: 0.84rem; }
.pt-page .pt-sources { margin-top: 22px; border-top: 1px solid var(--pt-line); color: var(--pt-muted); font-size: 0.84rem; }
.pt-page .pt-sources summary { padding: 16px 0; color: var(--pt-purple); font-weight: 700; cursor: pointer; }
.pt-page .pt-sources ul { display: grid; gap: 12px; margin: 0 0 16px; padding-left: 20px; }
.pt-page .pt-sources a { text-decoration: underline; text-underline-offset: 3px; }

/* 6. Related care sidebar. Static, so the long provider list stays accessible. */
.pt-page .pt-sidebar { display: grid; gap: 20px; min-width: 0; }
.pt-page .pt-sidebar-card { padding: 24px; border: 1px solid var(--pt-line); border-radius: 20px; }
.pt-page .pt-sidebar-card--treatments { background: var(--pt-lavender); border-color: var(--pt-lavender-line); }
.pt-page .pt-sidebar-card--providers { background: var(--pt-peach); border-color: #eedfcf; }
.pt-page .pt-sidebar-card h2 { margin: 0 0 18px; color: var(--pt-purple); font-size: 1.1rem; line-height: 1.4; letter-spacing: -0.015em; }
.pt-page .pt-sidebar-card .pt-kicker { font-size: 0.65rem; }
.pt-page .pt-related-links, .pt-page .pt-provider-links { display: grid; gap: 8px; }
.pt-page .pt-related-links a, .pt-page .pt-provider-links a {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(33, 21, 72, 0.05);
  border-radius: 10px;
  background: #fff;
  color: var(--pt-purple);
}
.pt-page .pt-related-links a { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; line-height: 1.5; }
.pt-page .pt-related-links a:hover, .pt-page .pt-provider-links a:hover { border-color: #a6c5d0; background: #f9fcfd; }
.pt-page .pt-provider-links strong { display: block; font-size: 0.78rem; }
.pt-page .pt-provider-links span { display: block; margin-top: 3px; color: #665d68; font-size: 0.69rem; line-height: 1.5; }
.pt-page .pt-all-providers { display: inline-flex; gap: 9px; margin-top: 16px; color: var(--pt-teal); font-weight: 700; font-size: 0.81rem; }
.pt-page .pt-sidebar-card--contact { background: #0b2635; color: #fff; border-color: #0b2635; }
.pt-page .pt-sidebar-card--contact h2 { color: #fff; margin-bottom: 12px; }
.pt-page .pt-sidebar-card--contact p { margin: 0 0 20px; color: #d3e4e9; font-size: 0.85rem; line-height: 1.7; }
.pt-page .pt-sidebar-card--contact .pt-button { width: 100%; }

/* 7. Footer call to action */
.pt-page .pt-cta-section { padding: 28px 0 64px; background: linear-gradient(180deg, #fff, #f4f9fb); }
.pt-page .pt-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: linear-gradient(130deg, #0b2635, #17475a);
  box-shadow: var(--pt-shadow);
  color: #fff;
}
.pt-page .pt-callout h2 { max-width: 24ch; margin: 0 0 14px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; letter-spacing: -0.03em; }
.pt-page .pt-callout p { max-width: 68ch; margin: 0; color: #d4e5ec; font-size: 0.94rem; line-height: 1.75; }
.pt-page .pt-image-note { max-width: 90ch; margin: 18px 0 0; color: var(--pt-muted); font-size: 0.73rem; }

/* 8. Responsive, reduced motion and print */
@media (max-width: 1120px) {
  .pt-page .pt-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
  .pt-page .pt-program-layout { grid-template-columns: 1fr; }
  .pt-page .pt-program-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .pt-page .pt-program-note { margin-top: 0; }
  .pt-page .pt-program-photo img { aspect-ratio: 3 / 2; }
  .pt-page .pt-chiro-panel { grid-template-columns: 1fr; }
  .pt-page .pt-assessment-photo img { aspect-ratio: 16 / 9; object-position: 50% 35%; }
  .pt-page .pt-sidebar-card { padding: 20px; }
}
@media (max-width: 920px) {
  .pt-page .pt-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; }
  .pt-page .pt-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
  .pt-page .pt-sidebar-card--contact { grid-column: 1 / -1; }
  .pt-page .pt-sidebar-card--contact .pt-button { width: auto; }
  .pt-page .pt-program-layout { grid-template-columns: 1.1fr 0.9fr; }
  .pt-page .pt-program-aside { display: block; }
  .pt-page .pt-program-note { margin-top: 18px; }
  .pt-page .pt-program-photo img { aspect-ratio: 4 / 5; }
  .pt-page .pt-chiro-panel { grid-template-columns: 0.82fr 1.18fr; }
  .pt-page .pt-assessment-photo img { aspect-ratio: 4 / 5; object-position: 65% center; }
  .pt-page .pt-callout { grid-template-columns: 1fr; gap: 24px; }
  .pt-page .pt-callout .pt-button { justify-self: start; }
}
@media (max-width: 760px) {
  .pt-page .pt-hero-card { grid-template-columns: 1fr; }
  .pt-page .pt-hero-media { min-height: 0; aspect-ratio: 16 / 8; }
  .pt-page .pt-hero-media img { object-position: 50% 55%; }
  .pt-page .pt-hero-copy { padding: 32px; }
  .pt-page .pt-hero-copy h1 { font-size: clamp(2.6rem, 8vw, 3.5rem); }
  .pt-page .pt-jump-label { flex-basis: 100%; margin-bottom: 4px; }
  .pt-page .pt-program-layout, .pt-page .pt-chiro-panel { grid-template-columns: 1fr; }
  .pt-page .pt-program-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .pt-page .pt-program-note { margin-top: 0; }
  .pt-page .pt-program-photo img { aspect-ratio: 1; }
  .pt-page .pt-assessment-photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .pt-page .pt-hero { padding-top: 18px; }
  .pt-page .pt-breadcrumbs { font-size: 0.73rem; margin-bottom: 18px; }
  .pt-page .pt-hero-card { border-radius: 22px; }
  .pt-page .pt-hero-copy { padding: 28px 24px; }
  .pt-page .pt-hero-copy h1 { font-size: 2.65rem; }
  .pt-page .pt-hero-actions { align-items: flex-start; flex-direction: column; }
  .pt-page .pt-jump-nav a { font-size: 0.75rem; padding: 9px 10px; }
  .pt-page .pt-block { margin-bottom: 36px; }
  .pt-page .pt-program-aside, .pt-page .pt-info-grid, .pt-page .pt-sidebar { grid-template-columns: 1fr; }
  .pt-page .pt-program-photo img { aspect-ratio: 3 / 2; }
  .pt-page .pt-chiro-panel { padding: 20px; }
  .pt-page .pt-sidebar-card--contact { grid-column: auto; }
  .pt-page .pt-callout { border-radius: 22px; }
  .pt-page .phone-popup { width: min(260px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-page *, .pt-page *::before, .pt-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .pt-page .header, .pt-page .top, .pt-page .footer, .pt-page .fab,
  .pt-page .pt-sidebar, .pt-page .pt-jump-nav, .pt-page .pt-hero-actions,
  .pt-page .pt-cta-section { display: none !important; }
  .pt-page .container { width: 100%; }
  .pt-page .pt-hero-card, .pt-page .pt-layout { display: block; }
  .pt-page .pt-hero-copy { background: #fff; color: #000; padding: 20px 0; }
  .pt-page .pt-hero-copy :is(h1, p, span) { color: #000; }
  .pt-page .pt-hero-media { display: none; }
  .pt-page .pt-block { break-inside: avoid; }
}
