/* ==========================================================================
   Fast Pace Health — Virtual Behavioral Health
   Shared stylesheet
   Design language matched to primarycare.fastpacehealth.com
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-soft: #3d5166;
  --red: #c8102e;
  --red-dark: #a80d27;
  --pink-bg: #fbe6e9;
  --pink-bg-strong: #f7d2d8;
  --blue-bg: #dbedfb;
  --blue-bg-soft: #eef7fd;
  --stat-blue: #7fb8e8;
  --white: #ffffff;
  --gray-border: #e4e9ee;
  --gray-bg: #f6f8fa;
  --shadow: 0 12px 30px rgba(11, 31, 58, 0.08);
  --radius-pill: 100px;
  --radius-card: 16px;
  --max-width: 1180px;
  --font: "Sora", -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 16px;
}

h1 { font-size: 54px; line-height: 1.08; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }

p { margin: 0 0 16px; }

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-center { text-align: center; }
.section-blue { background: var(--blue-bg); }
.section-blue-soft { background: var(--blue-bg-soft); }
.section-gray { background: var(--gray-bg); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.85); }
.section-navy h2, .section-navy h1, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  background: var(--pink-bg);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.lede {
  font-size: 18px;
  color: var(--navy-soft);
  max-width: 640px;
}
.section-center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-sm { padding: 10px 22px; }
/* Booking buttons: brand cross-and-arrow icon after the label (the art is about 1.12:1) */
.btn-book::after {
  content: ""; flex-shrink: 0; width: 20px; height: 18px;
  background: url("images/cta_icon_white.svg") center / contain no-repeat;
}
.btn-sm.btn-book::after { width: 18px; height: 16px; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-white { background: var(--white); color: var(--red); }

.link-arrow {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--gray-border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  line-height: 1.05;
  flex-shrink: 0;
}
/* Brand logo files (assets/images/fph_bh_logo*.svg); the art is about 4:1 */
.logo-img { display: block; height: 46px; width: auto; }
.logo-img-footer { height: 52px; }
@media (max-width: 640px) { .logo-img { height: 38px; } .logo-img-footer { height: 46px; } }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  flex: 1;
  justify-content: center;
}
.main-nav a:hover { color: var(--red); }

/* Treatments dropdown */
.nav-item { position: relative; }
.nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding: 0;
}
.nav-item:hover .nav-link.dropdown-toggle,
.nav-item.open .nav-link.dropdown-toggle { color: var(--red); }
.nav-link.dropdown-toggle .caret { font-size: 12px; transition: transform 0.15s ease; }
.nav-item:hover .caret, .nav-item.open .caret { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 18px;
  min-width: 460px;
  display: none;
  z-index: 300;
}
.nav-item:hover .dropdown-panel,
.nav-item.open .dropdown-panel { display: block; }
.dropdown-panel-inner {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
  margin-bottom: 14px;
}
.dropdown-grid a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-soft);
  padding: 8px 6px;
  border-radius: 8px;
}
.dropdown-grid a:hover { color: var(--red); background: var(--pink-bg); }
.dropdown-view-all {
  display: block;
  border-top: 1px solid var(--gray-border);
  padding-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  white-space: nowrap;
}

.crisis-banner {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.crisis-banner strong { color: #ffb3bd; }
.crisis-banner a { text-decoration: underline; }

/* Hero */
.hero {
  padding: 64px 0 0;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-checks { margin: 20px 0 24px; }
.hero-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--navy-soft);
  margin-bottom: 10px;
}
.hero-checks li::before {
  content: "\2713";
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}
.hero-emergency {
  font-size: 13px;
  color: #8a95a3;
  margin: 18px 0 22px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.hero-subtle-link { font-size: 14px; color: var(--navy-soft); text-decoration: underline; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: 100%; }

/* Divider strip under hero */
.hero-strip { height: 6px; background: var(--red); }

/* Finder card (symptom / feelings input) */
.finder-section { padding: 64px 0 72px; position: relative; }
/* "Start Here" background art (assets/images/start_here_bg.jpg): scaled to the section's height and
   centered; the flat color matches the art's own background so wide screens blend past its edges */
.finder-bg { background: #e6f3fc url("images/start_here_bg.jpg") center / auto 100% no-repeat; }
.finder-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.finder-input-row {
  display: flex;
  gap: 12px;
  margin: 8px 0 18px;
  text-align: left;
}
.finder-label {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.finder-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-border);
  font-family: var(--font);
  font-size: 15px;
  color: var(--navy-soft);
  background: var(--white);
}
.finder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}
.tag {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-border);
  color: var(--navy);
}
.tag.tag-accent { background: var(--pink-bg); color: var(--red); border-color: var(--pink-bg); }
.finder-disclaimer { font-size: 13px; color: #8a95a3; margin: 0; }
.finder-disclaimer strong { color: var(--red); font-weight: 700; }

/* Stats band */
.stats-band {
  background: var(--navy);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
  text-align: center;
}
.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--stat-blue);
  margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.75); }
.stat-sub { font-size: 12px; text-decoration: underline; color: rgba(255,255,255,0.6); }

/* Card grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.card h3 { font-size: 19px; }
.card p { font-size: 15px; margin-bottom: 14px; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--red);
}

.service-card { overflow: hidden; padding: 0; }
.service-card .service-art {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .service-body { padding: 24px 28px 28px; }

.section-head { max-width: 680px; margin: 0 auto 44px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps-grid.steps-3 { grid-template-columns: repeat(3, 1fr); }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; }
.step p { font-size: 15px; }
.step-visual { position: relative; width: 112px; margin: 0 0 18px; }
.step-icon { display: block; width: 112px; height: 112px; mix-blend-mode: multiply; }
.step-visual .step-num { position: absolute; left: 0; bottom: 0;   /* centered on the circle's bottom-left edge, so it half overlaps */ margin: 0; width: 34px; height: 34px; font-size: 15px; box-shadow: 0 0 0 4px var(--white); }
.step-link { color: var(--red); font-weight: 700; white-space: nowrap; }
.step-link:hover { text-decoration: underline; }

/* Insurance icon cards */
.insurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insurance-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  text-align: center;
}
.insurance-card p { font-size: 14px; }

/* FAQ accordion */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-border); }
.faq-item:first-child { border-top: 1px solid var(--gray-border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-q .icon { color: var(--red); font-size: 20px; font-weight: 400; flex-shrink: 0; margin-left: 16px; transition: transform 0.2s ease; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 15px;
  color: var(--navy-soft);
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }
.faq-a p { padding: 0 4px; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--navy);
  border-radius: 24px;
  text-align: center;
  padding: 56px 40px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 26px; }
.cta-band-wrap { padding: 0 24px; }

/* Soft inline CTA (used inline between content sections) */
.soft-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--pink-bg);
  border: 1px solid var(--pink-bg-strong);
  border-radius: var(--radius-card);
  padding: 28px 36px;
}
.soft-cta-text h3 { margin-bottom: 4px; font-size: 20px; }
.soft-cta-text p { margin: 0; font-size: 15px; color: var(--navy-soft); }
.soft-cta .btn { flex-shrink: 0; }

/* Repeated crisis reminder near the bottom of condition pages */
.crisis-reminder {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 18px 24px;
  font-size: 14px;
  color: var(--navy-soft);
}
.crisis-reminder .cr-label {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.crisis-reminder strong { color: var(--red); }

/* Footer */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-desc { font-size: 14px; margin: 16px 0; max-width: 280px; }
.footer-phone { font-size: 14px; color: var(--white); font-weight: 700; }
.footer-col h4 {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 12.5px; line-height: 1.7; }
.footer-bottom a { text-decoration: underline; }
.footer-bottom .legal-links { margin-bottom: 14px; }
.footer-bottom .legal-links a { margin-right: 16px; }

/* Prose blocks */
.prose { max-width: 760px; }
.prose p { font-size: 16px; color: var(--navy-soft); }
.prose.center { margin: 0 auto; text-align: center; }

/* Symptom groups */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.symptom-group {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 26px 28px;
}
.symptom-group h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 16px;
}
.symptom-group ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--navy-soft);
  margin-bottom: 10px;
  line-height: 1.5;
}
.symptom-group ul li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 8px;
}

/* Causes list */
.causes-panel {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 32px 36px;
}
.causes-list {
  columns: 2;
  column-gap: 32px;
}
.causes-list li {
  break-inside: avoid;
  font-size: 15px;
  color: var(--navy-soft);
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid var(--gray-border);
}
.causes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

/* Treatment columns */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.treatment-panel {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 30px 32px;
}
.treatment-panel.therapy { border-top: 4px solid var(--red); }
.treatment-panel.medication { border-top: 4px solid var(--navy); }
.treatment-panel .panel-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a95a3;
  margin-bottom: 6px;
}
.treatment-panel h3 { font-size: 21px; margin-bottom: 10px; }
.treatment-panel > p { font-size: 15px; margin-bottom: 18px; }
.treatment-item { margin-bottom: 16px; }
.treatment-item:last-child { margin-bottom: 0; }
.treatment-item .t-name { font-weight: 700; color: var(--navy); font-size: 15px; display: block; margin-bottom: 3px; }
.treatment-item .t-desc { font-size: 14.5px; color: var(--navy-soft); }
.treatment-note {
  margin-top: 20px;
  font-size: 13px;
  color: #8a95a3;
  border-top: 1px solid var(--gray-border);
  padding-top: 16px;
}

/* Treats grid with descriptions */
.treats-card p { font-size: 14px; color: var(--navy-soft); margin: 0; }

/* Blobs / decorative */
.blob-decor { position: absolute; z-index: 0; pointer-events: none; }

/* Responsive */
@media (max-width: 980px) {
  h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-4, .grid-3, .grid-2, .steps-grid, .insurance-grid, .symptom-grid, .treatment-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .steps-grid, .insurance-grid, .symptom-grid, .treatment-grid { grid-template-columns: 1fr; }
  .causes-list { columns: 1; }
  .causes-panel { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .finder-card { padding: 28px 22px; }
  .finder-input-row { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 32px; }
  .site-header .wrap { flex-wrap: wrap; }
  .header-phone span.num { display: none; }
  .soft-cta { flex-direction: column; align-items: flex-start; text-align: left; padding: 24px; }
  .soft-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .crisis-reminder { flex-direction: column; gap: 4px; }
}

/* Landing: "Don't see your concern?" note under the conditions grid */
.conditions-note {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--navy-soft);
}
.conditions-note a { color: var(--red); font-weight: 700; white-space: nowrap; }

/* Phone links inside CTA band / insurance cards */
.cta-band p a { color: var(--white); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.insurance-card p a { color: var(--red); font-weight: 700; white-space: nowrap; }

/* Footer: operating-entity disclosure */
.footer-bottom .footer-entities { font-size: 11.5px; opacity: 0.8; margin-top: 10px; }

/* Hero photos (replace the placeholder SVG illustrations as images arrive) */
.hero-photo { position: relative; width: 100%; max-width: 580px; margin: 0 0 48px auto; }
.hero-photo::before {            /* soft light-blue shape behind the photo */
  content: ""; position: absolute; z-index: 0;
  inset: 28px -22px -26px 34px; border-radius: 32px; background: var(--blue-bg);
}
.hero-photo::after {             /* small brand-red accent dot */
  content: ""; position: absolute; z-index: 2;
  width: 64px; height: 64px; top: -20px; right: -14px; border-radius: 50%;
  background: var(--red); opacity: 0.9;
}
.hero-photo img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px;
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.16);
}
@media (max-width: 980px) {
  .hero-photo { order: -1; max-width: 520px; margin: 0 auto 8px; }
  .hero-photo::before { inset: 18px -10px -14px 22px; }
  .hero-photo::after { width: 44px; height: 44px; top: -12px; right: -6px; }
}

/* Condition page hero photo: circular crop, echoing the original circle illustration */
.hero-photo.round { max-width: 400px; margin: 0 auto 48px; }
.hero-photo.round::before { inset: -18px; border-radius: 50%; background: var(--blue-bg-soft); box-shadow: inset 0 0 0 26px var(--blue-bg); }
.hero-photo.round::after { width: 52px; height: 52px; top: 14px; right: 6px; }
.hero-photo.round img { aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 16px 36px rgba(11, 31, 58, 0.18); }
@media (max-width: 980px) {
  .hero-photo.round { max-width: 300px; margin: 18px auto 8px; }
  .hero-photo.round::before { inset: -14px; box-shadow: inset 0 0 0 18px var(--blue-bg); }
}

/* Services section photos */
.service-card .service-art.service-photo { padding: 0; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.service-art.service-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Condition cards: the whole card is one link */
.card-link {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-link .link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }
.card-link .arrow { display: inline-block; transition: transform 0.2s ease; }
.card-link .card-photo { transition: transform 0.4s ease; }
.card-link h3 { transition: color 0.2s ease; }
.card-link:hover, .card-link:focus-visible {
  transform: scale(1.02);
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.14);
}
.card-link:hover h3, .card-link:focus-visible h3 { color: var(--red); }
.card-link:hover .arrow, .card-link:focus-visible .arrow { transform: translateX(4px); }
.card-link:hover .card-photo, .card-link:focus-visible .card-photo { transform: scale(1.08); }
.card-link:hover .link-arrow { text-decoration: none; }
.card-link:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .card-link, .card-link .arrow, .card-link .card-photo { transition: none; }
  .card-link:hover, .card-link:focus-visible { transform: none; }
  .card-link:hover .arrow, .card-link:hover .card-photo,
  .card-link:focus-visible .arrow, .card-link:focus-visible .card-photo { transform: none; }
}

/* Condition cards: square photo across the top of the card */
.card .card-photo-frame {      /* clips the photo so its hover zoom stays inside the frame */
  display: block; width: calc(100% + 56px); max-width: none; margin: -28px -28px 20px;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.card .card-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Condition page hero: full-width background photo, subject in the right third */
.hero.hero-bg { position: relative; padding: 0; overflow: hidden; }
.hero-bg .hero-bg-media { position: absolute; inset: 0 0 6px 0; z-index: 0; }
.hero-bg .hero-bg-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; display: block; }
/* Desktop: the photo is locked to the hero's height and pinned to the right edge, so a wider window never
   zooms or crops it; extra width opens up white space on the left, and the photo's left edge fades into it. */
@media (min-width: 981px) {
  .hero-bg .hero-bg-media img {
    position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; object-fit: fill;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  }
}
.hero-bg .hero-bg-media::after {      /* keeps the left-side text readable */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 38%,
                                     rgba(255,255,255,0.55) 56%, rgba(255,255,255,0) 72%);
}
.hero-bg .wrap { position: relative; z-index: 1; grid-template-columns: 1fr; align-content: center; min-height: 716px; padding-top: 72px; padding-bottom: 64px; }  /* same height on every page, so every hero photo shows at the same size */
.hero-bg .hero-text { max-width: 600px; }
.hero-bg .hero-strip { position: relative; z-index: 1; }
@media (max-width: 980px) {
  .hero-bg .hero-bg-media { position: relative; inset: auto; height: 260px; }
  .hero-bg .hero-bg-media img { object-position: 80% 35%; }
  .hero-bg .hero-bg-media::after { background: none; }
  .hero-bg .wrap { min-height: 0; padding-top: 28px; padding-bottom: 40px; }
}
/* Phones: zoom in and center on the subject. Each page sets --fx/--fy (the subject's position in the
   photo, 0-1) and --z (zoom) on .hero-bg-media; clamp() stops the photo from leaving a gap at any edge. */
@media (max-width: 640px) {
  .hero-bg .hero-bg-media { height: auto; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size; }
  .hero-bg .hero-bg-media img {
    position: absolute; max-width: none; height: auto; object-fit: fill;
    width: calc(var(--z, 1.8) * 100cqw);
    left: clamp(calc((1 - var(--z, 1.8)) * 100cqw), calc(50cqw - var(--fx, 0.78) * var(--z, 1.8) * 100cqw), 0px);
    top: clamp(calc(75cqw - var(--z, 1.8) * 66.667cqw), calc(37.5cqw - var(--fy, 0.4) * var(--z, 1.8) * 66.667cqw), 0px);
  }
}
/* Even out headline line lengths so short headlines don't leave a single word on the last line */
.hero h1 { text-wrap: balance; }

/* Two-column content sections (condition pages) */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.intro-split .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }   /* illustration on the left */
.intro-split .split-art img { display: block; width: 100%; max-width: 440px; height: auto; margin-right: auto; mix-blend-mode: multiply; }  /* drops the art's off-white backdrop into the page */
.journey .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.journey h2 { margin-bottom: 14px; }
.journey p { color: var(--navy-soft); margin-bottom: 14px; }
.journey .btn { margin-top: 10px; }
.journey-photo { position: relative; }
.journey-photo::before {          /* soft blue shape offset behind the photo */
  content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 28px; background: var(--blue-bg);
}
.journey-photo img {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 24px; box-shadow: 0 18px 40px rgba(11, 31, 58, 0.14);
}
@media (max-width: 980px) {
  .split, .journey .split, .intro-split .split { grid-template-columns: 1fr; gap: 32px; }
  .intro-split .split-art img { max-width: 340px; margin: 0 auto; }
  .journey-photo { max-width: 560px; margin-right: 18px; }
}

/* Mobile menu (980px and below): header button + drop-down panel under the sticky header */
.nav-toggle { display: none; }
.mobile-menu[hidden] { display: none; }
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; margin-right: -6px;
    background: none; border: 0; border-radius: 10px; cursor: pointer;
  }
  .nav-toggle:hover, .nav-toggle:focus-visible { background: var(--blue-bg-soft); }
  .nav-toggle-bar { display: block; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .mobile-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-top: 1px solid var(--gray-border);
    box-shadow: 0 18px 30px rgba(11, 31, 58, 0.12);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .site-header .mobile-menu .wrap {        /* undo the header bar's row layout */
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 0;
    padding-top: 8px; padding-bottom: 24px;
  }
  .mobile-menu-section, .mobile-menu-link {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 16px 0; border: 0; border-bottom: 1px solid var(--gray-border); background: none;
    font-family: var(--font); font-size: 17px; font-weight: 600; color: var(--navy); text-align: left; cursor: pointer;
  }
  .mobile-menu-section .caret { font-size: 14px; transition: transform 0.15s ease; }
  .mobile-menu-section[aria-expanded="true"] { color: var(--red); }
  .mobile-menu-section[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .mobile-treatments { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 10px 0 14px; border-bottom: 1px solid var(--gray-border); }
  .mobile-treatments[hidden] { display: none; }
  .mobile-treatments a { padding: 9px 0; font-size: 15px; color: var(--navy-soft); }
  .mobile-treatments a:hover, .mobile-menu-link:hover { color: var(--red); }
  .mobile-treatments .mobile-view-all { grid-column: 1 / -1; font-weight: 700; color: var(--red); }
  .mobile-menu-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; }
  .mobile-menu-phone { font-weight: 700; color: var(--navy); }
  .mobile-menu-actions .btn { justify-content: center; }
}
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .header-phone { display: none; }   /* the phone number lives in the menu on phones */
  .header-actions .btn-sm { padding: 9px 14px; }
  .nav-toggle { width: 40px; padding: 0 9px; margin-right: -4px; }
  .mobile-treatments { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .logo-img { height: 34px; } }
@media (max-width: 380px) {
  .logo-img { height: 32px; }
  .header-actions .btn-sm { font-size: 13px; padding: 8px 12px; gap: 6px; }
}
@media (max-width: 340px) { .header-actions .btn-sm { display: none; } }   /* still in the menu */

/* Phone icon (header + mobile menu): same navy as the number */
.phone-icon { flex-shrink: 0; display: block; color: inherit; }
.mobile-menu-phone { display: inline-flex; align-items: center; gap: 8px; }

/* Footer layout (v2): four balanced columns, then legal */
footer.site-footer { padding: 72px 0 36px; }
.footer-top { grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(170px, 200px) minmax(110px, 130px); gap: 44px; margin-bottom: 48px; align-items: start; }
.footer-brand .footer-desc { max-width: 270px; margin: 18px 0 22px; line-height: 1.65; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.footer-phone .phone-icon { color: var(--white); }
.footer-conditions ul { columns: 2; column-gap: 28px; }
.footer-conditions li { break-inside: avoid; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.72); line-height: 1.45; }
.footer-bottom { padding-top: 28px; }
.footer-bottom .footer-legal { max-width: 980px; margin-bottom: 18px; }
.footer-bottom .footer-legal strong { color: var(--white); }
.footer-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-meta p { margin: 0; }
.footer-bottom .footer-meta .legal-links { margin: 0; display: flex; gap: 20px; white-space: nowrap; }
.footer-bottom .footer-meta .legal-links a { margin: 0; }
@media (max-width: 1120px) {
  .footer-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: end; }
  .footer-brand .footer-desc { margin-bottom: 0; max-width: 460px; }
  .footer-brand .logo { grid-column: 1 / -1; }
  .footer-contact { align-items: flex-end; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { display: block; }
  .footer-brand .footer-desc { margin-bottom: 22px; }
  .footer-contact { align-items: flex-start; }
  .footer-conditions { grid-column: 1 / -1; }
  .footer-conditions ul { column-gap: 20px; }
  .footer-meta { flex-direction: column; }
}

/* Footer link columns (v3): white headings, tighter link spacing, thin dividers between the three groups */
.footer-col h4 {
  color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none;
  margin-bottom: 14px;
}
.footer-col h4::after {               /* short brand-red accent under each heading */
  content: ""; display: block; width: 24px; height: 2px; margin-top: 10px; border-radius: 2px; background: var(--red);
}
.footer-col ul li { margin-bottom: 6px; }
.footer-col:not(.footer-conditions) {  /* divider sits centered in the column gap */
  border-left: 1px solid rgba(255,255,255,0.14); padding-left: 22px; margin-left: -22px; align-self: stretch;
}
@media (max-width: 640px) {
  .footer-col:not(.footer-conditions) { padding-left: 12px; margin-left: -12px; }
}

/* Footer grouping: brand | the three link groups (their dividers stop at the longest list) */
.footer-top { grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); }
.footer-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 200px) minmax(110px, 130px); gap: 44px; align-items: stretch; }
@media (max-width: 1120px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; }
  .footer-col:not(.footer-conditions) { padding-left: 16px; margin-left: -16px; }
}
@media (max-width: 640px) {
  .footer-links { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-col:not(.footer-conditions) { padding-left: 12px; margin-left: -12px; }
  .footer-col:not(.footer-conditions):nth-child(2) { border-left: 0; padding-left: 0; margin-left: 0; }  /* Services starts its row */
}
.footer-col ul li { font-size: 14px; line-height: 1.4; margin-bottom: 8px; }   /* ~half the original gap between links */
.footer-col a { line-height: 1.4; }

/* Footer contact: Get Started with the phone to its right; the phone wraps underneath when there isn't room */
.footer-contact { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.footer-phone { white-space: nowrap; }
@media (max-width: 1120px) { .footer-contact { justify-content: flex-end; } }
@media (max-width: 640px) { .footer-contact { justify-content: flex-start; } }
@media (min-width: 1121px) { .footer-top { grid-template-columns: minmax(220px, 332px) minmax(0, 1fr); } }
.footer-contact { column-gap: 18px; }
@media (min-width: 1121px) {
  .footer-top { column-gap: 40px; }
  .footer-links { grid-template-columns: minmax(0, 1fr) minmax(170px, 190px) minmax(105px, 120px); gap: 36px; }
  .footer-col:not(.footer-conditions) { padding-left: 18px; margin-left: -18px; }
}

/* Homepage hero on phones: a shorter photo and smaller headline so the Get Started button is above the
   fold on common phones (Kyle, 2026-11-05). Same subject-centering math as above, for a 9:4 frame. */
@media (max-width: 640px) {
  .hero-home .hero-bg-media { aspect-ratio: 9 / 4; }
  .hero-home .hero-bg-media img {
    top: clamp(calc(44.444cqw - var(--z, 1.8) * 66.667cqw), calc(22.222cqw - var(--fy, 0.4) * var(--z, 1.8) * 66.667cqw), 0px);
  }
  .hero-home .wrap { padding-top: 22px; }
  .hero-home h1 { font-size: 26px; margin-bottom: 12px; }
}

/* Existing-patient check-in (Kyle, 2026-11-05): header, mobile menu and hero buttons open a state picker
   modal; each state links to that state's check-in form on checkin.fastpacehealth.com. */
.btn-checkin { line-height: inherit; }                 /* <button> doesn't inherit it; match the <a> buttons */
/* Header bar + mobile menu: a smaller, quieter "Check-In" so Get Started stays the main call to action
   (Kyle, 2026-11-05). Thin soft-navy outline, smaller type and padding; firms up on hover/focus. */
.btn-checkin-light {
  padding: 7px 16px; font-size: 13px; border-width: 1.5px; border-color: rgba(11, 31, 58, 0.28);
}
.btn-checkin-light:hover, .btn-checkin-light:focus-visible {
  background: var(--blue-bg-soft); color: var(--navy); border-color: var(--navy);
}
.header-actions .btn-checkin-light { margin-right: -6px; }   /* sits as a pair with Get Started */
/* Mobile menu (Kyle, 2026-11-05): Get Started and Check-In side by side, phone number centered under them.
   Check-In matches Get Started's height here so the row lines up, but keeps its lighter outline. */
.mobile-menu-actions { align-items: stretch; width: 100%; max-width: 440px; }   /* buttons don't stretch wide on tablets */
.mobile-menu-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mobile-menu-buttons .btn { justify-content: center; min-width: 0; padding-left: 12px; padding-right: 12px; }
.mobile-menu-buttons .btn-checkin-light { font-size: 14px; border-width: 2px; padding-top: 14px; padding-bottom: 14px; }
.mobile-menu-actions .mobile-menu-phone { align-self: center; padding: 4px 0; }
@media (min-width: 768px) and (max-width: 1100px) { .header-phone span.num { display: none; } }
@media (max-width: 767px) { .header-actions .btn-checkin { display: none; } }   /* in the menu on phones */
body.checkin-open { overflow: hidden; }
.checkin-modal {
  width: min(640px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--navy-soft);
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.25); overflow-y: auto; overscroll-behavior: contain;
}
.checkin-modal::backdrop { background: rgba(11, 31, 58, 0.6); }
.checkin-modal-inner { position: relative; padding: 36px 36px 28px; text-align: center; }
.checkin-modal h2 { font-size: 28px; margin-bottom: 10px; }
.checkin-desc { font-size: 16px; max-width: 460px; margin: 0 auto 24px; }
.checkin-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: none; color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer;
}
.checkin-close:hover, .checkin-close:focus-visible { background: var(--blue-bg-soft); }
.checkin-states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.checkin-state {
  display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%;
  padding: 16px 8px 14px; border: 2px solid var(--gray-border); border-radius: var(--radius-card);
  font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkin-state img { width: 56px; height: 56px; }
.checkin-state:hover, .checkin-state:focus-visible { border-color: var(--red); background: var(--pink-bg); }
.checkin-state:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.checkin-new { font-size: 14px; margin: 0; }
.checkin-new a { color: var(--red); font-weight: 700; }
.checkin-new a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .checkin-modal-inner { padding: 30px 18px 22px; }
  .checkin-modal h2 { font-size: 23px; }
  .checkin-desc { font-size: 15px; margin-bottom: 18px; }
  .checkin-states { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
  .checkin-state { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; text-align: left; }
  .checkin-state img { width: 40px; height: 40px; }
}
