/* Hallmark · macrostructure: Split Studio · approved Finexa refinement
 * Split hero, shared navigation and footer retained by request.
 * Pre-emit critique: P4 H5 E4 S5 R5 V4.
 * Checked: desktop and 320 / 375 / 414 / 768 px; booking and body contrast.
 */
@import url("tokens.css?v=20261029-booking") layer(refresh-tokens);

html, body { overflow-x: clip; }
html { scroll-padding-bottom: var(--booking-bottom-space); }
body { padding-bottom: var(--booking-bottom-space); }
.btn {
  min-height: var(--control-height);
  border-radius: var(--radius-control);
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.btn:focus-visible, .mobile-booking-call:focus-visible {
  outline: 3px solid var(--color-refresh-focus);
  outline-offset: 3px;
}
.hero .btn:focus-visible, .get-started .btn:focus-visible { outline-color: var(--color-refresh-paper); }
.btn:active { transform: translateY(1px); }
.btn.btn-primary:hover { background: var(--color-refresh-cta-hover); color: var(--color-refresh-ink); }
.header-cta { padding-inline: var(--refresh-space-lg); }
.service-hero .btn, .get-started .btn { min-height: var(--control-height); }

.mobile-booking-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--refresh-space-sm);
  min-height: var(--booking-bar-height);
  padding: var(--refresh-space-sm) max(var(--refresh-space-md), env(safe-area-inset-right)) calc(var(--refresh-space-sm) + env(safe-area-inset-bottom)) max(var(--refresh-space-md), env(safe-area-inset-left));
  border-top: 1px solid var(--color-refresh-rule);
  background: var(--color-refresh-paper);
  box-shadow: 0 -4px 24px var(--color-refresh-shadow);
}
.mobile-booking-primary { flex: 1 1 auto; max-width: 32rem; padding-inline: var(--refresh-space-md); font-size: var(--text-refresh-control); }
.mobile-booking-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: var(--refresh-space-xs);
  min-width: var(--call-control-width);
  min-height: var(--control-height);
  padding-inline: var(--refresh-space-sm);
  border: 1px solid var(--color-refresh-focus);
  border-radius: var(--radius-control);
  color: var(--color-refresh-ink);
  background: var(--color-refresh-paper);
  font-size: var(--text-refresh-control);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.mobile-booking-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mobile-booking-call:hover { background: var(--color-refresh-field); }
.mobile-booking-call:active { background: var(--color-refresh-rule); }
.finexa-assistant { right: var(--refresh-space-md); bottom: calc(var(--booking-bottom-space) + var(--refresh-space-md)); }
.finexa-assistant-panel { max-height: min(680px, calc(100dvh - var(--booking-bottom-space) - 208px)); }
.main-nav.open { max-height: calc(100dvh - 112px - var(--booking-bottom-space)); overflow-y: auto; }

.home-page .hero { padding-block: var(--refresh-space-2xl); }
.home-page .hero h1 { max-width: 19ch; font-size: var(--text-refresh-display); line-height: 1.08; }
.home-page .hero h1 span { display: block; }
.home-page .hero-sub { max-width: 53ch; font-size: var(--text-refresh-lead); line-height: 1.6; }
.home-page .section { padding-block: var(--refresh-section-space); }
.home-page .section h2 { font-size: var(--text-refresh-section); line-height: 1.15; }
.home-page .services-refresh { gap: var(--refresh-space-lg); margin-top: var(--refresh-space-xl); }
.home-page .service-grid-refresh { gap: var(--refresh-space-lg); }
.home-page .service-featured-refresh, .home-page .service-health-refresh, .home-page .service-grid-refresh article { border-radius: var(--radius-panel); }
.home-page .service-featured-refresh, .home-page .service-health-refresh { padding: var(--refresh-space-xl); }
.home-page .service-grid-refresh article { padding: var(--refresh-space-lg); }
.home-page .service-grid-refresh a { color: var(--color-refresh-link); }
.home-page .service-grid-refresh article::before { left: var(--refresh-space-lg); }
.home-page .service-featured-refresh p:first-child, .home-page .service-health-refresh p { letter-spacing: .04em; }
.home-page .who-we-help-head-refresh { margin-bottom: var(--refresh-space-xl); }
.home-page .google-reviews-grid { gap: var(--refresh-space-xl) var(--refresh-space-2xl); }
.home-page .hero-video-card { border-radius: var(--radius-panel); }

.home-workflow { background: var(--color-refresh-field); }
.home-workflow-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--refresh-space-xl); }
.home-workflow-intro { min-width: 0; }
.home-workflow-intro h2 { max-width: 16ch; }
.home-workflow-intro > p:not(.eyebrow) { max-width: 42ch; margin-top: var(--refresh-space-lg); color: var(--color-refresh-muted); line-height: 1.65; }
.home-workflow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--refresh-space-md) var(--refresh-space-lg); margin-top: var(--refresh-space-lg); }
.home-workflow-actions .text-link { white-space: nowrap; }
.home-workflow-steps { list-style: none; margin: 0; padding: 0; counter-reset: workflow-step; }
.home-workflow-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--refresh-space-md); padding-block: var(--refresh-space-lg); border-bottom: 1px solid var(--color-refresh-rule); counter-increment: workflow-step; }
.home-workflow-steps li:first-child { padding-top: 0; }
.home-workflow-steps li::before { content: "0" counter(workflow-step); padding-top: var(--refresh-space-xs); color: var(--color-refresh-link); font-family: var(--font-body); font-size: var(--text-refresh-control); font-weight: 700; }
.home-workflow-steps h3 { color: var(--color-refresh-ink); font-size: var(--text-refresh-step); line-height: 1.25; overflow-wrap: anywhere; }
.home-workflow-steps p { max-width: 58ch; margin-top: var(--refresh-space-sm); color: var(--color-refresh-muted); line-height: 1.65; }

@media (min-width: 48rem) {
  .home-workflow-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--refresh-space-2xl); }
}
@media (min-width: 70.0625rem) {
  :root { --booking-bottom-space: 0px; }
  .mobile-booking-bar { display: none; }
  .finexa-assistant { right: 22px; bottom: 22px; }
  .main-nav.open { max-height: none; overflow: visible; }
}
@media (max-width: 47.9375rem) {
  .home-page .hero { padding-block: var(--refresh-space-xl); }
  .home-page .hero h1 { font-size: var(--text-refresh-display-mobile); }
  .home-page .hero-sub { font-size: var(--text-refresh-body-mobile); }
  .home-page .services-overview-head { grid-template-columns: minmax(0, 1fr); gap: var(--refresh-space-md); }
  .home-page .service-featured-refresh, .home-page .service-health-refresh { padding: var(--refresh-space-lg); }
  .home-page .hero-ctas { flex-wrap: wrap; }
  .home-workflow-intro h2 { max-width: 100%; }
  .home-workflow-steps li { grid-template-columns: 1.5rem minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .finexa-assistant-panel { width: calc(100vw - 32px); right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .mobile-booking-call { transition: none; }
  .btn:active { transform: none; }
}
