/* =========================================================
   HNDC — Habitual Neuro-Dysfunction Center
   Stylesheet — chronic pain solutions
   v2 · Public Sans everywhere, photo-driven hero, mobile-safe
   ========================================================= */

/* -------- Fonts: Public Sans (Aptos look-alike, free, robust) -------- */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

/* -------- Reset -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

img,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* -------- Design tokens -------- */
:root {
  /* Color */
  --red: #C0392B;
  --red-deep: #8E2A20;
  --red-glow: rgba(192, 57, 43, 0.18);
  --black: #0A0A0A;
  --ink: #141414;
  --white: #FFFFFF;
  --cream: #FAF8F4;
  --paper: #F4F1EB;
  --muted: #6B6B6B;
  --muted-light: #B5B5B5;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(10, 10, 10, 0.10);

  /* Type — Public Sans for everything */
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Sizing */
  --container: 1240px;
  --container-narrow: 760px;
  --radius: 2px;
}

/* -------- Base -------- */
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: inherit;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--red);
  color: var(--white);
}

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 120px 0;
}

.section-sm {
  padding: 80px 0;
}

.dark {
  background: var(--black);
  color: var(--cream);
}

.dark p,
.dark li {
  color: rgba(250, 248, 244, 0.82);
}

.dark h1, .dark h2, .dark h3 {
  color: var(--white);
}

.light {
  background: var(--white);
  color: var(--ink);
}

.cream {
  background: var(--cream);
  color: var(--ink);
}

/* -------- Eyebrow -------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--red);
}

.dark .eyebrow {
  color: var(--red);
}

/* -------- Headings (display sizes) -------- */
.h-display {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.h-display em {
  font-style: italic;
  font-weight: 800;
  color: var(--red);
}

.h-section {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.h-section em {
  font-style: italic;
  color: var(--red);
}

.h-sub {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.dark .lede {
  color: rgba(250, 248, 244, 0.72);
}

/* -------- Navigation -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--cream);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-mark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--white);
  position: relative;
  padding-bottom: 6px;
}

.brand-mark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.brand-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(250, 248, 244, 0.78);
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
}

.nav-cta {
  margin-left: 8px;
}

/* Dropdown */
.nav-group {
  position: relative;
}

.nav-group > a::after {
  content: '·';
  margin-left: 6px;
  opacity: 0.5;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: -20px;
  min-width: 240px;
  background: var(--black);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  list-style: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 10px 22px;
  font-size: 13.5px;
}

.nav-dropdown li a:hover {
  background: rgba(192, 57, 43, 0.12);
  color: var(--white);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--cream);
  transition: 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 4px; }

.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px var(--red-glow);
}

.btn::after {
  content: '→';
  font-weight: 400;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.btn:hover::after {
  transform: translateX(3px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--white);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
  box-shadow: none;
}

.btn-sm {
  padding: 12px 20px;
  font-size: 12px;
}

/* -------- Hero — rewritten for mobile safety with photo support -------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 50%, rgba(192, 57, 43, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 90%, rgba(192, 57, 43, 0.05), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin-bottom: 32px;
  animation: rise 0.8s ease 0.1s both;
}

.hero-copy .lede {
  margin-bottom: 40px;
  animation: rise 0.8s ease 0.25s both;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
}

.hero-copy .cta-row {
  animation: rise 0.8s ease 0.4s both;
}

/* Photo treatment */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  animation: rise 0.9s ease 0.3s both;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--black);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Red accent corners — branded frame device */
.hero-photo::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  width: 64px;
  height: 64px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  z-index: 2;
  pointer-events: none;
}

.hero-photo::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 64px;
  height: 64px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
  z-index: 2;
  pointer-events: none;
}

/* Photo caption strip */
.hero-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.78) 100%);
  z-index: 1;
}

.hero-photo-caption .who {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0;
}

.hero-photo-caption .what {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 4px 0 0;
}

/* CTA row */
.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* -------- Page header (non-home pages) -------- */
.page-header {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(192, 57, 43, 0.08), transparent 60%);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.page-header h1 {
  margin-bottom: 24px;
}

/* -------- Dr. Jason page — portrait + intro grid -------- */
.dr-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
  padding: 60px 0 40px;
  position: relative;
}

.dr-portrait-block {
  position: relative;
}

.dr-portrait-block img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.dr-portrait-block::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  width: 64px;
  height: 64px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  z-index: 2;
  pointer-events: none;
}

.dr-portrait-block::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 64px;
  height: 64px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
  z-index: 2;
  pointer-events: none;
}

.dr-credentials .name {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--white);
}

.dr-credentials .title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}

.dr-credentials p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(250, 248, 244, 0.82);
}

/* -------- Editorial body content -------- */
.prose {
  max-width: 65ch;
  font-size: 18px;
  line-height: 1.72;
}

.prose p {
  margin-bottom: 1.4em;
}

.prose .lead-p {
  font-weight: 500;
  font-size: 1.25em;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--cream);
  margin-bottom: 1.6em;
}

.dark .prose p {
  color: rgba(250, 248, 244, 0.85);
}

/* Drop cap for the long story */
.dropcap::first-letter {
  font-weight: 800;
  float: left;
  font-size: 4.6em;
  line-height: 0.9;
  padding: 0.06em 0.12em 0 0;
  color: var(--red);
  letter-spacing: -0.04em;
}

/* Pull quote */
.pullquote {
  margin: 60px 0;
  padding: 0 0 0 32px;
  border-left: 2px solid var(--red);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--white);
}

/* -------- Cards -------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Pillars variant: 3+2 centered, used when there are exactly 5 cards */
.pillars-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.pillars-grid > .card {
  flex: 1 1 280px;
  max-width: 360px;
}

.card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
  border-color: rgba(192, 57, 43, 0.4);
}

.card-num {
  font-weight: 800;
  font-style: italic;
  font-size: 48px;
  color: var(--red);
  line-height: 0.9;
  margin-bottom: 24px;
  display: block;
  letter-spacing: -0.03em;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Step card (numbered, more vertical) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.step {
  position: relative;
  padding: 40px 28px 36px;
  background: var(--cream);
  border-top: 2px solid var(--red);
  border-radius: var(--radius);
}

.step-num {
  position: absolute;
  top: -18px;
  left: 28px;
  background: var(--red);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 12px 0 14px;
  letter-spacing: -0.005em;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* -------- Conditions grid -------- */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.condition {
  background: var(--white);
  padding: 22px 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.condition::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}

.condition:hover {
  background: var(--cream);
  color: var(--red);
}

.condition:hover::before {
  opacity: 1;
}

/* -------- Pricing -------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.tier {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

.tier.featured {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
  transform: translateY(-12px);
}

.tier.featured:hover {
  transform: translateY(-16px);
  box-shadow: 0 40px 90px rgba(192, 57, 43, 0.2);
}

.tier.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
}

.tier-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.tier-price {
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.tier-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 8px;
  color: var(--muted);
}

.tier.featured .tier-price .currency {
  color: var(--muted-light);
}

.tier-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.tier.featured .tier-sub {
  color: rgba(250, 248, 244, 0.55);
}

.tier-features {
  list-style: none;
  margin-bottom: 40px;
  flex: 1;
}

.tier-features li {
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.tier.featured .tier-features li {
  border-color: var(--line-dark);
}

.tier-features li::before {
  content: '+';
  color: var(--red);
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

.tier .btn {
  width: 100%;
  justify-content: center;
}

.tier.featured .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.tier.featured .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* -------- Two column section -------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.two-col-flip {
  grid-template-columns: 1.2fr 1fr;
}

/* -------- Book cover mock -------- */
.book-cover {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--black) 0%, #1d1714 100%);
  border-radius: 2px;
  position: relative;
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    inset 4px 0 0 var(--red),
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
  color: var(--white);
  margin: 0 auto;
  transform: rotate(-2deg);
  transition: transform 0.5s ease;
}

.book-cover:hover {
  transform: rotate(0) translateY(-6px);
}

.book-spine {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}

.book-title {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.book-title em {
  font-style: italic;
  color: var(--red);
}

.book-sub {
  font-size: 11px;
  color: var(--muted-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
  font-weight: 500;
}

.book-author {
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

/* -------- Stats / strip -------- */
.strip {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 36px 0;
}

.dark .strip {
  border-color: var(--line-dark);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.strip-num {
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.03em;
}

.strip-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dark .strip-label {
  color: var(--muted-light);
}

/* -------- CTA Banner (page closer) -------- */
.cta-banner {
  background: var(--black);
  color: var(--cream);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(192, 57, 43, 0.18), transparent 60%);
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 28px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: rgba(250, 248, 244, 0.7);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* -------- Footer -------- */
.footer {
  background: var(--black);
  color: var(--muted-light);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 12px;
}

.footer a {
  font-size: 14px;
  color: var(--muted-light);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer-tag {
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: rgba(250, 248, 244, 0.62);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom .brand-mark {
  font-size: 16px;
  padding-bottom: 4px;
}

.footer-bottom .brand-mark::after {
  width: 18px;
}

/* -------- Misc helpers -------- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin: 32px 0;
}

.center { text-align: center; }
.center .divider { margin-left: auto; margin-right: auto; }
.center .lede { margin-left: auto; margin-right: auto; }

.tight p { margin-bottom: 0.6em; }

.section-head {
  margin-bottom: 60px;
  max-width: 720px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
}

/* Reveal animation */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: rise 0.8s ease both;
}

/* -------- Responsive -------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  /* On mobile: photo first, then copy */
  .hero-photo {
    order: -1;
    max-width: 380px;
  }
  .two-col, .two-col-flip { grid-template-columns: 1fr; gap: 48px; }
  .dr-intro { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .dr-portrait-block { max-width: 360px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .section { padding: 90px 0; }
  .cta-banner { padding: 80px 0; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open {
    max-height: 700px;
  }
  .nav-links > li > a,
  .nav-links > li > .btn {
    display: block;
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
  }
  .nav-cta { margin: 12px 28px; }
  .nav-cta .btn { width: 100%; justify-content: space-between; }
  .nav-group > a::after { display: none; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 8px 0;
  }
  .nav-dropdown li a {
    padding: 10px 44px;
    font-size: 13.5px;
    color: var(--muted-light);
  }
}

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 22px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 80px; }
  .hero-photo { max-width: 320px; }
  .hero-photo::before,
  .hero-photo::after {
    width: 44px;
    height: 44px;
  }
  .hero-photo::before {
    top: -10px;
    left: -10px;
  }
  .hero-photo::after {
    bottom: -10px;
    right: -10px;
  }
  /* Tighten typography for narrow screens */
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    gap: 10px;
  }
  .eyebrow::before { width: 24px; }
  .h-display {
    font-size: clamp(1.55rem, 7vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
  }
  .h-section {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }
  .lede {
    font-size: 1rem;
  }
  /* Safety: never let a hero copy block exceed its container */
  .hero-copy, .page-header-inner, .dr-credentials, .prose {
    max-width: 100%;
    min-width: 0;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .nav-inner { height: 64px; }
  .brand-tag { display: none; }
  .pullquote { margin: 40px 0; padding-left: 22px; font-size: 1.3rem; }
  .tier.featured { transform: none; }
  .tier.featured:hover { transform: translateY(-4px); }
  .dropcap::first-letter { font-size: 3.8em; }
  .cta-row { gap: 14px; }
  .cta-row .btn { width: 100%; justify-content: space-between; }
}
