/* ============================================================
   Dr. Nicholas Deebel — Site Stylesheet
   Matches Wix design: cream background, Fraunces serif headings
   (navy), Arial body, blue pill buttons.
   ============================================================ */

:root {
  --navy: #1B3A6B;
  --accent: #2E6DA4;
  --rule: #E3DED2;            /* warm hairline on cream */
  --cream: #FDFBF7;          /* page background */
  --cream-2: #F6F1E7;        /* alt section tint */
  --text-dark: #1B3A6B;      /* headings: navy */
  --text-med: #3A3A3A;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(27, 58, 107, 0.07);
  --shadow-hover: 0 10px 30px rgba(27, 58, 107, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text-med);
  line-height: 1.65;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.12; font-weight: 600; }
h1 { font-size: 3.6rem; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 72px 0; }
.section--tint { background: var(--cream-2); }
.section-lead { max-width: 780px; margin: 0 auto 44px; text-align: center; color: var(--text-light); font-size: 1.08rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: bold; font-family: Arial, sans-serif; color: var(--accent); margin-bottom: 12px; }
.center { text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(160%) blur(8px);
}
.nav {
  display: flex; align-items: center; justify-content: flex-start;
  max-width: 1520px; margin: 0 auto; padding: 14px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand a { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand-logo { flex: 0 0 auto; height: 42px; width: auto; }
.brand-full { flex: 0 0 auto; height: 80px; width: auto; display: block; }
@media (max-width: 580px) { .brand-full { height: 58px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.brand-sub { font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.02em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; flex-wrap: nowrap; flex: 1 1 auto; margin-left: 40px; justify-content: space-between; }
.nav-links a {
  color: var(--navy); font-size: 1.04rem; font-weight: bold; padding: 9px 8px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent) !important; color: #fff !important; font-weight: bold;
  padding: 10px 18px !important; border-radius: 45px !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--navy) !important; color:#fff !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 45px; font-weight: bold;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent; text-decoration: none;
  font-family: Arial, sans-serif; transition: all 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--navy); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-light { background: var(--accent); color: #fff; }
.btn-light:hover { background: var(--navy); text-decoration: none; color:#fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 70px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--navy); margin-bottom: 22px; font-size: 2.9rem; white-space: nowrap; }
.hero .lead { color: var(--navy); font-size: 1.2rem; max-width: 560px; margin-bottom: 14px; }
.hero .institution { color: var(--text-light); font-size: 1rem; margin-bottom: 30px; }
.hero-photo {
  width: 100%; aspect-ratio: 1/1.05; border-radius: 22px; background: #e8eef6;
  display: flex; align-items: center; justify-content: center;
  color: #9bb0c9; font-size: 0.95rem; text-align: center; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Enlarge the headshot slightly beyond its column, anchored to the right */
.hero-photo:has(img) { transform: scale(1.12); transform-origin: right center; }
.hero-photo:has(img) span { display: none; }

/* Page hero (subpages) */
.page-hero { background: var(--cream-2); padding: 60px 0 56px; border-bottom: 1px solid var(--rule); }
/* Photo hero variant: background image with text overlaid */
.page-hero.page-hero--photo { position: relative; border-bottom: 0; padding: 96px 0 88px; background: #14100a; overflow: hidden; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; background: url(pp-hero-bg.jpg) center 34% / cover no-repeat; }
.page-hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,3,0.86) 0%, rgba(8,6,3,0.72) 42%, rgba(8,6,3,0.45) 100%); }
.page-hero.page-hero--photo > .container { position: relative; z-index: 2; }
.page-hero.page-hero--photo .breadcrumb, .page-hero.page-hero--photo .breadcrumb a { color: rgba(255,255,255,0.9); }
.page-hero.page-hero--photo h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.page-hero.page-hero--photo p { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
@media (max-width: 700px) { .page-hero.page-hero--photo { padding: 70px 0 64px; } .page-hero--photo::after { background: linear-gradient(180deg, rgba(8,6,3,0.72), rgba(8,6,3,0.78)); } }
.hero-split { display: grid; grid-template-columns: 1.9fr 1fr; gap: 64px; align-items: start; }
.hero-split .hero-copy h1 { margin-top: 0; }
.hero-photo-box {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: #e8eef6; border: 1px solid var(--rule); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  color: #9bb0c9; font-size: 0.9rem; text-align: center;
}
.hero-photo-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-box--tall { aspect-ratio: 3 / 4; max-width: 340px; margin-left: auto; }
.hero-photo-box--tall img { object-position: center top; }
.hero-photo-box--wide { aspect-ratio: 3 / 2; }
.hero-photo-box--wide img { object-position: center 40%; }
/* Portrait photo that fits within the hero band */
.hero-portrait { display: block; width: auto; height: auto; max-height: 430px; max-width: 100%; margin: 0 0 0 auto; border-radius: 16px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
@media (max-width: 820px) { .hero-portrait { margin: 0 auto; max-height: 460px; } }
.hero-photo-box:has(img) span { display: none; }
@media (max-width: 820px) { .hero-split { grid-template-columns: 1fr; gap: 26px; } .hero-photo-box { max-width: 480px; } }
.page-hero h1 { color: var(--navy); font-size: 3rem; }
.page-hero p { color: var(--text-med); max-width: 760px; font-size: 1.12rem; margin-top: 8px; }
.breadcrumb { font-size: 0.85rem; color: var(--accent); margin-bottom: 16px; font-family: Arial, sans-serif; }
.breadcrumb a { color: var(--accent); }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 30px 16px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--accent); display: block; }
.stat-label { font-size: 0.92rem; color: var(--text-light); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-center-row { grid-column: 1 / -1; max-width: calc(50% - 12px); margin: 0 auto; }
@media (max-width: 580px) { .card-center-row { max-width: 100%; } }
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.97rem; margin-bottom: 0; }
.card-link { display: block; }
.card-link:hover { text-decoration: none; }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--accent); font-size: 1.1rem; font-weight: bold; font-family: Arial, sans-serif;
}
.card-more { display: inline-block; margin-top: 14px; font-weight: bold; font-size: 0.9rem; color: var(--accent); font-family: Arial, sans-serif; }

/* Video (YouTube) cards */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.video-card { display: block; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #12233b; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 2; }
.video-thumb:has(video) .video-play { display: none; }
.video-play { position: relative; z-index: 1; width: 62px; height: 44px; border-radius: 12px; background: rgba(214, 30, 30, 0.92); display: flex; align-items: center; justify-content: center; }
.video-play::before { content: ""; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.video-card:hover .video-play { background: #d61e1e; }
.video-ph { position: absolute; z-index: 1; bottom: 10px; left: 0; right: 0; text-align: center; color: #9db2cc; font-size: 0.78rem; font-family: Arial, sans-serif; }
.video-meta { padding: 18px 20px 22px; }
.video-meta h3 { font-size: 1.12rem; margin-top: 8px; }
@media (max-width: 940px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .video-grid { grid-template-columns: 1fr; } }
.video-grid.cols-1 { grid-template-columns: 1fr; margin: 0 auto; }
.video-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 0 auto; }
@media (max-width: 580px) { .video-grid.cols-2 { grid-template-columns: 1fr; } }
.video-grid.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 1120px; margin: 0 auto; }
@media (max-width: 940px) { .video-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .video-grid.cols-3 { grid-template-columns: 1fr; } }
.video-grid.cols-4 { grid-template-columns: repeat(4, 1fr); max-width: 1440px; margin: 0 auto; }
@media (max-width: 1100px) { .video-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .video-grid.cols-4 { grid-template-columns: 1fr; } }
.video-grid.cols-5 { grid-template-columns: repeat(5, 1fr); max-width: 1560px; margin: 0 auto; }
@media (max-width: 1240px) { .video-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .video-grid.cols-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .video-grid.cols-5 { grid-template-columns: 1fr; } }
/* Article (webpage) card: external-link corner instead of play button */
.video-thumb .video-ext { position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(46,109,164,0.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }

/* ---------- Two-column content (about/training) ---------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.sidebar-box { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.sidebar-box h3 { margin-bottom: 16px; }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; color: var(--text-med); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list strong { color: var(--navy); display: block; font-family: Arial, sans-serif; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: bold; font-family: var(--serif);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; color: var(--text-light); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 10px; }
.tl-item { position: relative; padding: 0 16px; text-align: center; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); margin: 0 auto 16px; position: relative; }
.tl-item:not(:last-child) .tl-dot::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 100%; height: 3px; background: var(--rule); z-index: -1;
}
.tl-phase { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.tl-time { font-size: 0.76rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; font-family: Arial, sans-serif; font-weight: bold; }
.tl-item p { font-size: 0.9rem; color: var(--text-light); }

/* ---------- Highlight band ---------- */
.band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 40px; margin: 8px 0; }
.band h3 { color: #fff; }
.band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.band .eyebrow { color: #bcd6f0; }
.band--split { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 32px 40px; }
.band-photo { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,0.28); }
.band-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.band-copy .eyebrow { margin-bottom: 12px; }
@media (max-width: 760px) { .band--split { grid-template-columns: 1fr; gap: 24px; } .band-photo { max-width: 360px; } }
.band--soft { background: var(--cream-2); border: 1px solid var(--rule); }
.band--soft h3 { color: var(--navy); }
.band--soft p { color: var(--text-med); }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.compare > .card { display: flex; flex-direction: column; }
.card-fig { margin: 18px 0 0; }
.compare > .card .card-fig { margin-top: auto; }
.card-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; border-radius: 10px; border: 1px solid var(--rule); background: #fff; padding: 10px; box-sizing: border-box; }
.card-fig figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--text-light); text-align: center; }
.img-credit { margin-top: 18px; font-size: 0.72rem; line-height: 1.5; color: var(--text-light); text-align: center; }
.img-credit a { color: var(--accent); }

/* ---------- Tabs ---------- */
.tabs { margin-top: 10px; }
.tab-buttons { display: flex; gap: 8px; border-bottom: 2px solid var(--rule); margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px;
  padding: 12px 22px; font-size: 1.05rem; font-weight: 600; font-family: var(--serif); color: var(--text-light); cursor: pointer;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Specialized services: left list + center copy + right image ---------- */
.spec-layout { display: grid; grid-template-columns: 270px 1fr; gap: 44px; margin-top: 8px; align-items: start; }
.spec-list { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.spec-list .tab-btn {
  text-align: left; font-family: var(--serif); font-size: 1.06rem; font-weight: 600; line-height: 1.25;
  color: var(--text-light); background: none; border: none; border-left: 3px solid transparent;
  margin-left: -1px; padding: 14px 20px; cursor: pointer; width: 100%;
}
.spec-list .tab-btn:hover { color: var(--navy); }
.spec-list .tab-btn.active { color: var(--navy); border-left-color: var(--accent); }
.spec-panels .tab-panel { display: none; }
.spec-panels .tab-panel.active { display: grid; grid-template-columns: 1fr 1.55fr; gap: 40px; align-items: start; }
.spec-copy .eyebrow { margin-bottom: 14px; }
.spec-copy h3 { font-size: 2rem; margin-bottom: 6px; }
.spec-copy .spec-sub { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.8rem; font-weight: bold; color: var(--text-light); font-family: Arial, sans-serif; margin-bottom: 20px; }
.spec-copy p { color: var(--text-med); margin-bottom: 26px; }
.spec-img { position: relative; border-radius: var(--radius); overflow: hidden; background: #e7edf5; box-shadow: var(--shadow); }
.spec-img:not(:has(img)) { aspect-ratio: 3 / 2; }
.spec-img img { display: block; width: 100%; height: auto; }
.spec-img .spec-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; padding: 20px 22px; color: #fff; font-family: Arial, sans-serif; font-weight: bold; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.78rem; background: linear-gradient(transparent, rgba(20,35,60,0.72)); }
.spec-img .spec-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #9db2cc; font-size: 0.85rem; padding: 0 20px; font-family: Arial, sans-serif; }
.spec-img:has(img) .spec-ph { display: none; }
@media (max-width: 860px) {
  .spec-layout { grid-template-columns: 1fr; gap: 22px; }
  .spec-list { flex-direction: row; flex-wrap: wrap; border-left: none; border-bottom: 1px solid var(--rule); }
  .spec-list .tab-btn { border-left: none; border-bottom: 3px solid transparent; margin: 0 0 -1px; padding: 9px 12px; font-size: 0.96rem; }
  .spec-list .tab-btn.active { border-left: none; border-bottom-color: var(--accent); }
  .spec-panels .tab-panel.active { grid-template-columns: 1fr; gap: 24px; }
  .spec-img { min-height: 240px; }
}
.tag { display: inline-block; font-size: 0.72rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.04em; font-family: Arial, sans-serif;
  padding: 4px 11px; border-radius: 20px; background: var(--cream-2); color: var(--accent); margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; font-size: 1.1rem; font-weight: 600; font-family: var(--serif); color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--accent); flex: 0 0 auto; }
.faq-q.open::after { content: "\2013"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding-bottom: 22px; color: var(--text-light); margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #fff; text-align: center; padding: 68px 0; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.9); max-width: 580px; margin: 0 auto 28px; }
.cta .btn-light { background:#fff; color: var(--navy); }
.cta .btn-light:hover { background: var(--cream-2); color: var(--navy); }

/* ---------- Appointment request form ---------- */
/* FAQ with a photo alongside */
.faq-photo-col { margin: 6px 0 0; align-self: stretch; }
.faq-photo-col img { width: 100%; height: 100%; min-height: 320px; max-height: 560px; object-fit: cover; border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 14px 34px rgba(0,0,0,0.14); display: block; position: sticky; top: 24px; }
@media (max-width: 820px) { .faq-photo-col { max-width: 560px; } .faq-photo-col img { min-height: 0; position: static; } }

/* REI partner section heading — fit on one line on desktop */
.partner-heading { white-space: nowrap; font-size: clamp(1.4rem, 2.7vw, 2rem); }
@media (max-width: 1080px) { .partner-heading { white-space: normal; } }

/* REI partner practice cards */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); margin: 0; text-align: center; }
.partner-img { aspect-ratio: 3 / 2; background: #fff; display: flex; align-items: center; justify-content: center; padding: 22px; box-sizing: border-box; }
.partner-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-body { padding: 16px 18px 20px; border-top: 1px solid var(--rule); }
.partner-body h3 { margin: 0 0 6px; font-size: 1.06rem; }
.partner-phone { display: block; color: var(--accent); font-family: Arial, sans-serif; font-size: 0.98rem; font-weight: bold; text-decoration: none; }
.partner-phone + .partner-phone { margin-top: 4px; }
.partner-phone:hover { text-decoration: underline; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } }

/* Physician pull-quote */
.quote { max-width: 860px; margin: 0 auto; text-align: center; border: 0; padding: 0; }
.quote p { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.7rem; line-height: 1.4; margin: 0; text-wrap: balance; }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--accent); font-family: Arial, sans-serif; }
.quote-box { max-width: 960px; background: var(--cream-2); border: 1px solid var(--rule); border-radius: 18px; padding: 44px 48px; box-shadow: var(--shadow); }
.quote-box p { font-size: 1.5rem; }
.quote-headshot { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center 18%; margin: 0 auto 26px; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.18); }
@media (max-width: 640px) { .quote p { font-size: 1.35rem; } .quote-box { padding: 30px 24px; } .quote-box p { font-size: 1.25rem; } }

/* FAQ with certificate to the right */
.faq-wide { max-width: 1460px; }
.faq-split { display: grid; grid-template-columns: 1.5fr 1.15fr; gap: 56px; align-items: start; margin-top: 18px; }
.faq-split .faq-list { min-width: 0; }
.faq-cert { margin: 6px 0 0; align-self: start; }
.faq-cert img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); box-shadow: 0 14px 34px rgba(0,0,0,0.14); display: block; }
@media (max-width: 1000px) { .faq-split { grid-template-columns: 1fr; gap: 30px; } .faq-cert { max-width: 640px; } }

/* FAQ section with photo background */
.faq-photo { position: relative; background-color: #1c2a1a; overflow: hidden; }
.faq-photo::before {
  content: ""; position: absolute; inset: 0;
  background: url(faq-bg.jpg) right center / cover no-repeat;
}
.faq-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,18,0.55), rgba(20,28,18,0.62));
}
.faq-photo > .container { position: relative; z-index: 2; }
.faq-photo .eyebrow { color: #e4eddb; }
.faq-photo > .container > h2 { color: #fff; }
.faq-card { background: #fff; border-radius: 16px; padding: 8px 34px; box-shadow: 0 24px 60px rgba(0,0,0,0.28); max-width: 720px; margin-left: 0; margin-right: auto; }
@media (max-width: 900px) { .faq-card { max-width: none; } }
@media (max-width: 560px) { .faq-card { padding: 6px 20px; } }

/* Contact section with photo background */
.contact-photo { position: relative; background-color: #241c14; overflow: hidden; }
.contact-photo::before {
  content: ""; position: absolute; inset: 0;
  background: url(contact-bg.jpg) center center / cover no-repeat;
}
.contact-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,22,14,0.60), rgba(30,22,14,0.68));
}
.contact-photo > .container { position: relative; z-index: 2; }
.contact-photo .eyebrow { color: #f0e6d6; }
.contact-photo .center h2 { color: #fff; }
.contact-photo .section-lead { color: rgba(255,255,255,0.9); }
.contact-photo .section-lead a { color: #fff; text-decoration: underline; }
.appt-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 24px 60px rgba(0,0,0,0.28); }
.appt-card .form-note { margin-bottom: 0; }
@media (max-width: 560px) { .appt-card { padding: 26px 20px; } }

.appt-form { margin-top: 8px; text-align: left; }
.form-row { margin-bottom: 20px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label { display: block; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; font-weight: bold; color: var(--text-light); font-family: Arial, sans-serif; margin-bottom: 8px; }
.form-label .opt { text-transform: none; letter-spacing: 0; font-weight: normal; }
.appt-form input, .appt-form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--rule); border-radius: 10px;
  background: #fff; font-family: inherit; font-size: 1rem; color: var(--text-dark); box-sizing: border-box;
}
.appt-form textarea { resize: vertical; }
.appt-form input:focus, .appt-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,109,164,0.14); }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; background: #fff; cursor: pointer; font-size: 0.95rem; color: var(--text-med); }
.opt-box:hover { border-color: var(--accent); }
.opt-box input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; margin: 0; }
.form-submit { width: 100%; margin-top: 6px; font-size: 1.05rem; }
.form-note { font-size: 0.86rem; color: var(--text-light); margin-top: 22px; line-height: 1.6; }
.form-note strong { color: var(--navy); }
@media (max-width: 560px) { .form-two, .reason-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); padding: 52px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: #fff; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 9px; font-size: 0.93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 34px; padding-top: 22px; font-size: 0.82rem; color: rgba(255,255,255,0.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.disclaimer { font-size: 0.84rem; color: rgba(255,255,255,0.6); max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 1480px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap;
    margin-left: 0; flex: 0 1 auto; justify-content: flex-start;
    background: var(--cream); border-bottom: 1px solid var(--rule); padding: 8px 28px 18px;
  }
  .nav-links > li:last-child { margin-left: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; border-bottom: 1px solid var(--rule); font-size: 0.98rem; }
  .nav-cta { text-align: center; margin: 10px 0 0; }
}
@media (max-width: 940px) {
  h1 { font-size: 2.6rem; } h2 { font-size: 2rem; }
  .hero h1 { white-space: normal; font-size: 2.4rem; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; margin: 0 auto; }
  .grid-3, .grid-4, .compare, .stats, .timeline { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--rule); padding: 8px 20px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; border-bottom: 1px solid var(--rule); }
  .nav-cta { text-align: center; margin-top: 10px; }
}
@media (max-width: 580px) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4, .compare, .stats, .timeline { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .tl-item:not(:last-child) .tl-dot::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile menu fix: full-width rows with a clean divider under each link */
@media (max-width: 1480px) {
  .nav-links a { display: block; border-radius: 0; }
  .nav-links a.nav-cta { border-bottom: none; border-radius: 45px !important; }
}

/* Appointment form: spam trap + status message */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; text-align: center; min-height: 1.2em; }
.form-status.is-ok { color: #1f7a3d; font-weight: bold; }
.form-status.is-err { color: #b3261e; font-weight: bold; }

/* Mobile fixes */
@media (max-width: 1480px) {
  .nav-toggle { margin-left: auto; }
}
@media (max-width: 940px) {
  .hero-photo:has(img) { transform: none; }
}
@media (max-width: 580px) {
  .stats { gap: 10px; }
  .stat { min-width: 0; padding: 18px 6px; }
  .stat-num { font-size: 1.7rem; }
  .stat-label { font-size: 0.78rem; line-height: 1.3; display: block; overflow-wrap: anywhere; }
}

/* Keep phone numbers on one line */
a[href^="tel:"] { white-space: nowrap; }

/* Very small phones: keep long heading words on screen */
@media (max-width: 400px) {
  h1, .page-hero h1 { font-size: 1.85rem; }
  h1 { overflow-wrap: break-word; }
}
