/* =====================================================================
 * Agency Landing Page — vanilla CSS, mobile-first.
 * No Tailwind, no preprocessor, no framework.
 * Theming is controlled via CSS custom properties on :root; per-customer
 * overrides for --primary-color and --accent-color are injected inline by
 * base.html.j2 from `customer.extra.branding`.
 * ===================================================================== */

:root {
  /* Colors */
  --primary-color: #0d4f8b;
  --primary-color-dark: #093560;
  --accent-color: #f59e0b;
  --text-color: #1a1a1a;
  --text-muted: #6b6b6b;
  --bg-color: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --error: #b91c1c;
  --success: #047857;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;

  /* Layout */
  --max-content-width: 1100px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-display: var(--font-body);
}

/* ----- Reset / normalize ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: underline;
}

a:hover {
  color: var(--primary-color-dark);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  color: var(--text-color);
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
}

h2 {
  font-size: clamp(22px, 3.5vw, 32px);
}

h3 {
  font-size: clamp(18px, 2.5vw, 24px);
}

/* ----- Skip link (a11y) ----- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--primary-color);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--accent-color);
}

/* ----- Header ----- */
.lp-header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-content-width);
  margin: 0 auto;
  gap: var(--space-md);
}

.lp-brand {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
}

.lp-brand-text {
  font-size: 18px;
}

.lp-logo {
  height: 72px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .lp-logo { height: 88px; }
}

.lp-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--primary-color);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.lp-cta-phone:hover {
  background: var(--primary-color-dark);
  color: #fff;
}

/* ----- Generic section wrapper ----- */
.lp-section {
  padding: var(--space-xl) var(--space-md);
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.lp-section-heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ----- Hero (rendered by condition templates via {% block hero %}) ----- */
.lp-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
  color: #fff;
  padding: var(--space-xl) var(--space-md);
}

.lp-hero-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.lp-hero h1 {
  color: #fff;
}

.lp-hero-trust-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.lp-hero-trust-bar .star {
  color: var(--accent-color);
}

.lp-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.lp-hero-cta {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  background: var(--accent-color);
  color: var(--text-color);
}

.lp-hero-cta-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

/* Split-hero layout: copy left, lead form right (above the fold). */
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}
@media (min-width: 900px) {
  .lp-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-xl);
    align-items: stretch;
  }
}

.lp-hero-copy h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.lp-hero-subhead {
  font-size: 1.35rem !important;
  line-height: 1.5;
  opacity: 0.95;
  margin-bottom: var(--space-md);
  max-width: 42ch;
  font-weight: 400;
}
@media (min-width: 900px) {
  .lp-hero-subhead {
    font-size: 1.55rem !important;
    max-width: 52ch;
  }
}

.lp-hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  background: transparent;
  padding: 0;
}
.lp-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lp-trust-rating .star {
  color: var(--accent-color);
  font-size: 1rem;
  margin-right: 2px;
}

.lp-hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-hero-visual {
  margin-top: var(--space-md);
}
@media (min-width: 900px) {
  .lp-hero-visual {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
  }
}
.lp-hero-svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: var(--radius-md);
}
.lp-hero-headshot {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.5);
}
@media (min-width: 900px) {
  .lp-hero-headshot {
    max-width: 320px;
  }
}
.lp-hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  max-width: 420px;
}
@media (min-width: 900px) {
  .lp-hero-image {
    max-width: 100%;
    max-height: 560px;
    object-fit: cover;
  }
}

/* Hero form panel (above the fold, right column on desktop). */
.lp-hero-form-panel {
  background: #fff;
  color: var(--text-color);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  align-self: start;
}
@media (min-width: 900px) {
  .lp-hero-form-panel {
    align-self: stretch;
    margin-top: 0;
  }
}
.lp-hero-form-heading {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--primary-color);
}
.lp-hero-form-sub {
  margin: 0 0 var(--space-md);
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.75;
}
.lp-form-compact .lp-form-row {
  margin-bottom: var(--space-sm);
}
.lp-form-compact label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-color);
}
.lp-form-compact input,
.lp-form-compact select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.lp-form-compact input:focus,
.lp-form-compact select:focus {
  outline: 2px solid var(--accent-color);
  border-color: var(--accent-color);
}
.lp-form-compact .lp-form-submit {
  width: 100%;
  padding: 14px 16px;
  margin-top: var(--space-xs);
  background: var(--accent-color);
  color: var(--text-color);
  border: 0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.lp-form-compact .lp-form-submit:hover {
  filter: brightness(1.05);
}
.lp-form-compact .lp-form-privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.65;
  margin: var(--space-xs) 0 0;
}

/* Providers / "Meet the Doctors" section — same shape as .locations-grid. */
.providers-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 700px) {
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
}
.provider-card {
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.provider-headshot {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  display: block;
  border: 4px solid var(--primary-color);
}
.provider-name {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--primary-color);
}
.provider-credentials {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Doctible appointment widget styling — overrides their default to match brand. */
.location-card-appointment {
  margin-top: var(--space-sm);
}
a.appointment-button {
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  fill: #fff !important;
  color: #fff !important;
  background-color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 20px !important;
  text-decoration: none !important;
  display: inline-block !important;
}
a.appointment-button:hover {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: var(--text-color) !important;
}
@media (min-width: 768px) {
  a.appointment-button { font-size: 15px !important; padding: 14px 22px !important; }
}

/* ----- Problem / treatments / why-us shared layout ----- */
.lp-prose {
  max-width: 680px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-color);
}
.lp-prose p {
  margin: 0 0 1.1em;
}
.lp-prose p:last-child {
  margin-bottom: 0;
}
@media (min-width: 900px) {
  .lp-prose {
    font-size: 20px;
    line-height: 1.7;
  }
}

.lp-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .lp-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lp-list li {
  background: var(--surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* ----- Locations grid ----- */
.lp-locations {
  background: var(--surface);
}

.locations-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 700px) {
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
}

.location-card {
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.location-card-name {
  margin: 0 0 var(--space-xs);
}

.location-card-address {
  font-style: normal;
  color: var(--text-muted);
}

.location-card-phone,
.location-card-map {
  display: inline-block;
  margin-top: var(--space-xs);
  color: var(--primary-color);
  font-weight: 600;
}

.location-card-hours {
  margin-top: var(--space-xs);
  color: var(--text-muted);
  font-size: 14px;
}

/* "Book Online" CTA on each location card (Weave / Calendly / etc.) */
.location-card-book {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 10px 16px;
  background: var(--accent-color);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.location-card-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* ═══════════════════════════════════════════════════════════════════════
   Per UI Designer audit 2026-05-13:
   Defensive `text-decoration: none !important` on EVERY CTA class —
   the global `a { text-decoration: underline }` rule (line 71-73) wins
   the cascade in some loads and was rendering CTAs as plain underlined
   text-links. !important kills the regression for good.
   ═══════════════════════════════════════════════════════════════════════ */

/* Final CTA section — Stripe/Linear-grade button stack */
.lp-form-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-color, #f5f7fa) 100%);
  padding: 72px 16px 88px;
  text-align: center;
}
.lp-form-section .lp-section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.lp-form-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.lp-final-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .lp-final-cta-row {
    flex-direction: row;
    max-width: 720px;
    gap: 14px;
  }
}
.lp-final-cta,
.lp-final-cta:hover,
.lp-final-cta:focus,
.lp-final-cta:visited {
  text-decoration: none !important;
}
.lp-final-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: transform 120ms ease, box-shadow 200ms ease,
              background-color 150ms ease, color 150ms ease;
  cursor: pointer;
  will-change: transform;
}
.lp-final-cta:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}
.lp-final-cta:active { transform: translateY(1px); }
.lp-final-cta-call {
  background: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(13,79,139,0.2),
              0 4px 12px rgba(13,79,139,0.18);
}
.lp-final-cta-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.lp-final-cta-label {
  font-size: 0.78em;
  font-weight: 500;
  opacity: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lp-final-cta-phone {
  font-size: 1.05em;
  font-weight: 700;
  white-space: nowrap;
}
.lp-final-cta-call:hover {
  background: #0a3d6e;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(13,79,139,0.25),
              0 12px 24px rgba(13,79,139,0.22);
}
.lp-final-cta-book {
  background: var(--accent-color);
  color: #1a1a1a !important;
  box-shadow: 0 1px 2px rgba(245,158,11,0.25),
              0 4px 12px rgba(245,158,11,0.2);
}
.lp-final-cta-book:hover {
  background: #d97706;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(245,158,11,0.3),
              0 12px 24px rgba(245,158,11,0.25);
}
.lp-final-cta-text {
  background: #ffffff;
  color: var(--primary-color) !important;
  border-color: #d4dbe3;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.lp-final-cta-text:hover {
  border-color: var(--primary-color);
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Hero CTAs — defensive text-decoration override + accent primary */
.lp-hero-cta,
.lp-hero-cta:hover,
.lp-hero-cta:focus,
.lp-hero-cta:visited {
  text-decoration: none !important;
}
.lp-hero-cta-book {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
}
.lp-hero-cta-book:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
}
.lp-hero-cta-text {
  background: transparent !important;
  border: 0 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline !important;
}

/* Hide the hero quick-facts card on desktop sidebar — moves into a slim
   trust strip in the main column via the existing .lp-hero-trust-bar. */
.lp-hero-facts {
  display: none;
}

/* Sticky bottom Text CTA — outlined, sits between Call and Book. */
.sticky-cta-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: #fff;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
}
.sticky-cta-phone,
.sticky-cta-book {
  text-decoration: none !important;
}

/* Location-card book button — defensive too. */
.location-card-book,
.location-card-book:hover,
.location-card-book:visited {
  text-decoration: none !important;
}

/* ── Booking modal (Weave / Calendly iframe popup) ─────────────────── */
.booking-modal {
  border: 0;
  padding: 0;
  border-radius: 14px;
  max-width: min(960px, 96vw);
  width: 96vw;
  height: 88vh;
  max-height: 720px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}
.booking-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
body.booking-modal-open {
  overflow: hidden;
}
.booking-modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--primary-color);
  color: #fff;
}
.booking-modal-title {
  font-weight: 700;
  font-size: 16px;
}
.booking-modal-close {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
}
.booking-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}
.booking-modal-iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #f8fafc;
}

.location-card-note {
  margin-top: var(--space-xs);
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

/* ----- Form ----- */
.lp-form-section {
  background: var(--bg-color);
}

.lp-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lp-form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.lp-form label {
  font-weight: 600;
  font-size: 14px;
}

.lp-form input,
.lp-form select {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-color);
  min-height: 44px; /* mobile tap target */
}

.lp-form input:focus-visible,
.lp-form select:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-color: var(--accent-color);
}

.lp-form-submit {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  min-height: 48px;
}

.lp-form-submit:hover,
.lp-form-submit:focus-visible {
  background: var(--primary-color-dark);
}

.lp-form-submit:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.lp-form-privacy-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ----- Reviews ----- */
.lp-reviews {
  background: var(--surface);
}

.lp-reviews-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .lp-reviews-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.lp-review {
  background: var(--bg-color);
  border-left: 4px solid var(--accent-color);
  padding: var(--space-md);
  margin: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.lp-review-text {
  font-style: italic;
  margin: 0 0 var(--space-sm);
}

.lp-review-attribution {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

/* ----- FAQ ----- */
.lp-faq {
  background: var(--bg-color);
}

.lp-faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item > summary {
  cursor: pointer;
  padding: var(--space-md);
  font-weight: 600;
  list-style-position: outside;
}

.faq-item > summary:hover {
  background: var(--surface);
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

.faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-muted);
}

/* ----- Sticky CTA (mobile-only) ----- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  z-index: 200;
}

.sticky-cta-phone,
.sticky-cta-book {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
}

.sticky-cta-phone {
  background: var(--primary-color);
  color: #fff;
}

.sticky-cta-book {
  background: var(--accent-color);
  color: var(--text-color);
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ----- Footer ----- */
.lp-footer {
  background: var(--primary-color-dark);
  color: #e5e7eb;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  margin-bottom: 80px; /* leave room for mobile sticky-cta */
}

@media (min-width: 768px) {
  .lp-footer {
    margin-bottom: 0;
  }
}

.lp-footer-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .lp-footer-inner {
    /* auto-fit avoids the 2/3/1/1 blowout when some partials are absent
       (social URLs / links list optional per customer). */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ── Locations grid — primary/secondary split (2026-05-24 audit) ── */
.locations-primary {
  max-width: 720px;
  margin: 0 auto var(--space-lg, 24px);
  padding: 24px 28px;
  background: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(13, 79, 139, 0.10);
  text-align: center;
}
.locations-primary .location-card-name {
  font-size: 22px;
  margin-bottom: 8px;
}
.locations-primary .loc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.locations-primary .location-card-address {
  font-size: 15px;
  margin-bottom: 6px;
}
.locations-primary .location-card-hours {
  margin: 6px 0 16px;
}
.locations-primary-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 14px auto 0;
}
@media (min-width: 640px) {
  .locations-primary-cta-row {
    flex-direction: row;
    max-width: none;
    flex-wrap: wrap;
  }
  .locations-primary-cta-row .lp-final-cta {
    flex: 1 1 200px;
  }
}

/* Secondary offices — collapsed by default, half visual weight */
.locations-secondary {
  max-width: 900px;
  margin: 0 auto;
}
.locations-secondary > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-color);
  text-align: center;
  list-style: none;
  border-radius: 8px;
  transition: background 0.15s;
}
.locations-secondary > summary::-webkit-details-marker { display: none; }
.locations-secondary > summary::before {
  content: '▸ ';
  color: var(--accent-color);
}
.locations-secondary[open] > summary::before { content: '▾ '; }
.locations-secondary > summary:hover { background: rgba(13, 79, 139, 0.05); }
.locations-secondary .locations-grid {
  margin-top: 16px;
}
.location-card--secondary {
  opacity: 1;
  background: #fafbfd;
}
.lp-final-cta-locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 20px;
}
@media (min-width: 900px) {
  .lp-final-cta-locations {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 32px;
  }
}
.lp-final-cta-location-block {
  background: #ffffff;
  border: 1px solid rgba(13, 79, 139, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lp-final-cta-location-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-final-cta-location-name .loc-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.location-card-cta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
@media (min-width: 640px) {
  .location-card-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .location-card-cta-row .lp-final-cta {
    flex: 1 1 130px;
  }
}
.lp-final-cta--compact {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
}
.lp-final-cta--compact .lp-final-cta-label { font-size: 0.7em; }
.lp-final-cta--compact .lp-final-cta-phone { font-size: 0.95em; }

.lp-footer a {
  color: #fff;
}

.lp-footer-name {
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.lp-footer-address {
  font-style: normal;
  font-size: 14px;
  color: #cbd5e1;
}

.lp-footer-credentials {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: var(--space-xs);
}

.lp-footer-disclaimer p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
}

.lp-footer-social,
.lp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ----- Print stylesheet ----- */
@media print {
  .sticky-cta,
  .lp-form-section,
  .lp-cta-phone {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}

/* ----- Reduced motion preference ----- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
