/* ============================================================
   VORXS — site styles
   Pulls every value from /assets/tokens.css (the design system).
   Nothing here invents new colors, fonts, radii, or shadows.
   ============================================================ */

@import url("assets/tokens.css");

/* ---------- baseline reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, iframe, video, embed, object { max-width: 100%; height: auto; }
iframe { border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ============================================================
   Housecall Pro Lead Capture iframe — responsive sizing
   ============================================================ */
.housecall-lead-frame {
  width: 100%;
  min-height: 920px;
  height: 920px;
  border: 0;
  display: block;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero-card,
.desktop-lead-form,
.contact-form { overflow: visible; }

@media (max-width: 768px) {
  .housecall-lead-frame { display: none; }
  .desktop-lead-form { display: none; }
  .mobile-booking-cta { display: block; }
}
@media (min-width: 769px) {
  .mobile-booking-cta { display: none; }
  .desktop-lead-form { display: block; }
}

/* Prevent any embedded widget (Elfsight Maps/Instagram/Reviews/etc.)
   from causing horizontal scroll on small screens. */
[class*="elfsight-app-"] {
  max-width: 100%;
  overflow: hidden;
}
[class*="elfsight-app-"] iframe,
[class*="elfsight-app-"] > div {
  max-width: 100% !important;
}

/* Ensure all forms and inputs stay within the screen */
@media (max-width: 560px) {
  input, select, textarea {
    font-size: 16px !important; /* prevent iOS zoom on focus */
    max-width: 100%;
  }
  .field input, .field select, .field textarea { width: 100%; }
  .btn { width: auto; }
}

/* Tighter hero text sizing on small phones */
@media (max-width: 430px) {
  .vx-h1 { font-size: clamp(34px, 9vw, 56px); }
  .vx-h2 { font-size: clamp(28px, 7vw, 44px); }
}

/* Tighten section padding on phones */
@media (max-width: 560px) {
  .section { padding-block: 56px; }
  .section--tight { padding-block: 40px; }
  .page-head { padding-block: 56px 40px; }
  .cta-band { padding-block: 56px; }
}

/* Footer columns: tighter on small phones */
@media (max-width: 420px) {
  .site-footer { padding-block: 56px 24px; }
  .site-footer .footer-grid { gap: 32px; }
}

/* Ensure the sticky mobile call bar doesn't overlap content */
@media (max-width: 1024px) {
  body { padding-bottom: 90px; }
}

/* ============================================================
   Checkmark lists (.checks) — brand-red icons, properly aligned
   Used on city pages, service pages, thank-you page, etc.
   ============================================================ */
ul.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--fg);
}
ul.checks li svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  height: 16px;
}
ul.checks li > span { display: inline; }
ul.checks li a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
ul.checks li a:hover { text-decoration: none; }

/* ============================================================
   EXTRA MOBILE SAFETY — small phones (≤430px) and extra-small (≤360px).
   Tightens spacing, prevents overflow, keeps things tappable.
   Does NOT change desktop layout or any Housecall Pro behavior.
   ============================================================ */

/* Universal: nothing escapes the viewport horizontally */
html, body { max-width: 100%; overflow-x: hidden; }

/* Make every container respect the viewport */
.container { padding-inline: clamp(16px, 5vw, 40px); }

/* Small phones — 430px and under */
@media (max-width: 430px) {
  .container { padding-inline: 18px; }
  .page-head { padding-block: 48px 32px; }
  .page-head .vx-h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .page-head .vx-lead { font-size: 16px; line-height: 1.55; }
  .cta-band .vx-h2 { font-size: clamp(26px, 7vw, 38px); }

  /* CTA actions stack with full-width buttons */
  .page-head .actions, .cta-band .actions, .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .page-head .actions .btn,
  .cta-band .actions .btn,
  .hero-actions .btn { width: 100%; }

  /* All major card grids → 1 column on small phones */
  .services-grid, .gallery-grid, .reviews-grid, .areas-grid,
  .cities-grid, .fin-grid, .offer-grid, .plans-grid,
  .code-cards, .values-grid, .reason-list, .project-grid,
  .trust-grid, .process-grid, .blog-grid, .stories-grid,
  .compare-wrap, .neighbors-grid, .why-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hero stat strip stacks 2x2 on small phones */
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .trust-strip ul { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Iframes and embeds */
  .map-frame, .map-wrap { aspect-ratio: 4/3; }
  .serving-map { padding: 8px; min-height: 320px; }
  .serving-map > div { min-height: 280px; }

  /* Footer rows */
  .site-footer .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer-hours { grid-template-columns: 1fr auto; gap: 4px 16px; }

  /* Quotes, code-cards, large numerals shrink */
  .code-card .letter { font-size: 56px; }
  .legacy-stat-val { font-size: 22px; }
  .stat-num { font-size: clamp(32px, 8vw, 48px); }
}

/* Extra-small (older phones, 360px and under) */
@media (max-width: 360px) {
  .container { padding-inline: 14px; }
  .vx-h1 { font-size: clamp(28px, 9vw, 40px); }
  .vx-h2 { font-size: clamp(24px, 8vw, 36px); }
  .nav-phone { display: none; } /* already hidden via nav-toggle breakpoint, but belt+suspenders */
}

/* Tablet portrait fine-tune (≥561 and ≤768) */
@media (min-width: 561px) and (max-width: 768px) {
  .services-grid, .gallery-grid, .reviews-grid,
  .cities-grid, .fin-grid, .offer-grid, .plans-grid,
  .code-cards, .values-grid, .project-grid, .blog-grid, .stories-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tap targets ≥ 44px everywhere on touch devices */
@media (max-width: 1024px) {
  .btn, .nav-link, .nav-toggle, .social-list a, .footer-hours dt,
  .nav-dropdown-item, .city-card { min-height: 44px; }
  .social-list a { width: 44px; height: 44px; }
}

/* Sticky call bar should never overlap the Elfsight accessibility widget */
@media (max-width: 1024px) {
  .sticky-bar { bottom: 12px; }
  /* Elfsight accessibility widget sits bottom-right — give it room above the call bar */
  .elfsight-app-79aab769-1997-489a-8f08-86683e155250 { z-index: 70; }
}

/* ============================================================ */

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container--md { max-width: var(--container-md); }
.container--xl { max-width: var(--container-xl); }

.section { padding-block: clamp(64px, 9vw, var(--space-24)); }
.section--tight { padding-block: clamp(48px, 6vw, var(--space-20)); }
.section--dark { background: var(--vorxs-ink-900); color: #fff; }
.section--bone { background: var(--vorxs-bone); }

/* ============================================================
   TYPOGRAPHY — uses the design-system semantic classes
   from tokens.css; this adds tighter responsive sizing.
   ============================================================ */
.vx-h1 { font-size: clamp(40px, 7vw, var(--fs-96)); }
.vx-h2 { font-size: clamp(32px, 5vw, var(--fs-72)); }
.vx-h3 { font-size: clamp(24px, 3.5vw, var(--fs-56)); }
.vx-h4 { font-size: clamp(20px, 2.5vw, var(--fs-32)); }
.vx-lead { font-size: clamp(17px, 1.4vw, var(--fs-20)); }

.vx-eyebrow.with-dot::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand);
  margin-right: 10px;
  vertical-align: 2px;
}
.vx-rule {
  height: 2px;
  width: 56px;
  background: var(--brand);
  margin: 0 0 var(--space-5);
}

/* ============================================================
   BUTTONS — exact spec from the design system
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-16);
  letter-spacing: 0;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast), border-color var(--dur-fast);
  min-height: 48px;
  white-space: nowrap;
}
.btn .btn-icon { width: 18px; height: 18px; }
.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:active { background: var(--brand-pressed); }
.btn--secondary {
  background: var(--vorxs-ink-900);
  color: #fff;
}
.btn--secondary:hover { background: var(--vorxs-ink-700); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--fg);
}
.btn--ghost:hover { background: rgba(10,10,12,0.08); }
.btn--white {
  background: #fff;
  color: var(--vorxs-ink-900);
  box-shadow: 0 4px 14px rgba(10,10,12,0.18);
}
.btn--white:hover { background: var(--vorxs-bone); }
.btn--white svg { color: var(--brand); }
.section--dark .btn--ghost,
.vorxs-dark .btn--ghost {
  color: #fff;
  border-color: #fff;
}
.section--dark .btn--ghost:hover,
.vorxs-dark .btn--ghost:hover { background: rgba(255,255,255,0.08); }

.btn--link {
  background: transparent;
  color: inherit;
  border-bottom: 2px solid var(--brand);
  border-radius: 0;
  padding: 14px 0;
  min-height: 0;
}
.btn--lg { padding: 18px 28px; font-size: var(--fs-18); min-height: 56px; }
.btn--sm { padding: 10px 16px; font-size: var(--fs-14); min-height: 40px; }

/* ============================================================
   WORDMARK
   The licensed Times Roman serif wordmark — recreated in HTML
   so the red "O" stays crisp at any size.
   Reserve --font-serif for THIS USE ONLY.
   ============================================================ */
.vx-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
}
.vx-wordmark .v-o {
  color: transparent;
  -webkit-text-stroke: 2px var(--brand);
  display: inline-block;
}
.vx-wordmark--lg { font-size: 56px; }
.vx-wordmark--md { font-size: 28px; }
.vx-wordmark--sm { font-size: 22px; }
.vx-wordmark--inverse { color: #fff; }
.vx-wordmark .tagline {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.22em;
  letter-spacing: 0.04em;
  margin-top: 0.18em;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.vorxs-dark .site-header,
.site-header--dark {
  background: rgba(10,10,12,0.92);
  border-bottom: 1px solid var(--border-inverse);
}
.site-header--dark .nav-link,
.vorxs-dark .nav-link { color: rgba(255,255,255,0.78); }
.site-header--dark .nav-link.active,
.site-header--dark .nav-link:hover,
.vorxs-dark .nav-link.active,
.vorxs-dark .nav-link:hover { color: #fff; }

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 80px;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-14);
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
  min-height: 44px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--fg); }
.nav-link.active {
  position: relative;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 14px; right: 14px;
  height: 2px;
  background: var(--brand);
}

/* Dropdown nav */
.nav-item { position: relative; }
.nav-link--menu {
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  letter-spacing: inherit;
}
.nav-link--menu .nav-caret {
  color: var(--brand) !important;
  opacity: 1;
  transition: transform var(--dur-fast);
  margin-left: 6px;
  display: inline-block;
  flex-shrink: 0;
}
.nav-item--has-menu.open .nav-link--menu .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
  z-index: 65;
}
.nav-item--has-menu.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--fg);
  transition: background var(--dur-fast);
}
.nav-dropdown-item:hover,
.nav-dropdown-item:focus,
.nav-dropdown-item.active {
  background: var(--vorxs-bone);
}
.nav-dropdown-item.active { background: rgba(225,29,42,0.07); }
.nav-dropdown-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-14);
  color: var(--fg);
  letter-spacing: 0.01em;
}
.nav-dropdown-item.active .nav-dropdown-label { color: var(--brand); }
.nav-dropdown-desc {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* Dark header variants */
.site-header--dark .nav-dropdown,
.vorxs-dark .nav-dropdown {
  background: var(--vorxs-ink-800);
  border-color: rgba(255,255,255,0.12);
}
.site-header--dark .nav-dropdown-item,
.vorxs-dark .nav-dropdown-item { color: #fff; }
.site-header--dark .nav-dropdown-item:hover,
.vorxs-dark .nav-dropdown-item:hover { background: rgba(255,255,255,0.06); }
.site-header--dark .nav-dropdown-desc,
.vorxs-dark .nav-dropdown-desc { color: rgba(255,255,255,0.55); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--fg);
  padding: 10px 16px;
  margin-right: 8px;
  border-right: 1px solid var(--border);
  padding-right: 24px;
  white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.site-header--dark .nav-phone,
.vorxs-dark .nav-phone { color: #fff; border-right-color: var(--border-inverse); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
}
.site-header--dark .nav-toggle,
.vorxs-dark .nav-toggle { border-color: var(--border-inverse); color: #fff; }

@media (max-width: 1024px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { grid-template-columns: auto 1fr auto; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--vorxs-ink-900);
  color: #fff;
  padding: 80px 28px 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
}
body.nav-open .mobile-drawer { transform: translateX(0); }
body.nav-open { overflow: hidden; }
.mobile-drawer-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-inverse);
  display: grid; place-items: center;
  color: #fff;
}
.mobile-drawer a {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-inverse);
}
.mobile-drawer a:last-of-type { border-bottom: 0; }
.mobile-group {
  border-bottom: 1px solid var(--border-inverse);
}
.mobile-group:last-of-type { border-bottom: 0; }
.mobile-group summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary .nav-caret { transition: transform var(--dur-base); opacity: 0.7; }
.mobile-group[open] summary .nav-caret { transform: rotate(180deg); }
.mobile-sub-list {
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-sub {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-transform: none !important;
  color: rgba(255,255,255,0.78) !important;
  padding: 8px 0 8px 16px !important;
  border-bottom: 0 !important;
}
.mobile-sub:hover { color: #fff !important; }
.mobile-drawer .footer-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   STICKY MOBILE CALL BAR — design-system "fixed brand element"
   ============================================================ */
.sticky-bar {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 65;
  background: rgba(10,10,12,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  padding: 6px 6px 6px 22px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}
.sticky-bar .call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-16);
  color: #fff;
  padding: 12px 18px;
  flex: 1;
  justify-content: center;
}
.sticky-bar .call svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
@media (max-width: 1024px) {
  .sticky-bar { display: flex; }
  body { padding-bottom: 80px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--vorxs-ink-900);
  color: rgba(255,255,255,0.7);
  padding-block: 80px 28px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.site-footer .footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.78); transition: color var(--dur-fast); font-size: var(--fs-14); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-inverse);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.4);
  gap: 24px;
}
.site-footer .vorxs-code {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-md);
  font-size: var(--fs-12);
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.55);
}
@media (max-width: 980px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FORMS
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  color: var(--fg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: var(--fs-16);
  min-height: 48px;
  transition: border-color var(--dur-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(225,29,42,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.vorxs-dark .field input, .vorxs-dark .field select, .vorxs-dark .field textarea,
.section--dark .field input, .section--dark .field select, .section--dark .field textarea {
  background: var(--vorxs-ink-800);
  color: #fff;
  border-color: var(--border-inverse);
}
.vorxs-dark .field label, .section--dark .field label { color: rgba(255,255,255,0.55); }

/* ============================================================
   BADGES / PILLS — from components-badges.html
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.badge--red { background: var(--brand); color: #fff; }
.badge--ink { background: var(--vorxs-ink-900); color: #fff; }
.badge--out { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.badge--out-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.badge--light { background: var(--vorxs-ink-50); color: var(--fg); }
.badge--success {
  background: rgba(31,154,90,0.12);
  color: #0f6b3c;
}
.badge--emergency {
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
}
.badge--emergency::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #fff;
  margin-right: 4px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ============================================================
   CARDS — 8px radius, no left-border accents, no gradients
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base), border-color var(--dur-base);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card--dark {
  background: var(--vorxs-ink-700);
  border: 0;
  color: #fff;
}
.card--dark:hover { background: var(--vorxs-ink-600); }
.card--flat { box-shadow: none; }

/* ============================================================
   PHOTO PLACEHOLDERS — labeled, scrimmed, contractor-photo slots
   Used until real job-site photography is dropped in.
   ============================================================ */
.photo {
  position: relative;
  background: var(--vorxs-ink-800);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}
.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 12px,
      transparent 12px,
      transparent 24px),
    radial-gradient(ellipse at 30% 30%, rgba(225,29,42,0.08), transparent 60%);
}
.photo .photo-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  background: rgba(10,10,12,0.78);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.12);
  max-width: 85%;
  text-align: center;
}
.photo .photo-label::before {
  content: "PHOTO";
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.16em;
}
.photo--has-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim-bottom);
  pointer-events: none;
}
.photo--scrim-left::after {
  background: var(--scrim-left);
}

/* ============================================================
   STAT TILE
   ============================================================ */
.stat-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--fg);
}
.section--dark .stat-num, .vorxs-dark .stat-num { color: #fff; }
.stat-num .unit { color: var(--brand); }
.stat-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 6px;
}
.section--dark .stat-label, .vorxs-dark .stat-label { color: rgba(255,255,255,0.55); }

/* ============================================================
   CTA BAND — used at bottom of every page
   ============================================================ */
.cta-band {
  background: var(--vorxs-ink-900);
  color: #fff;
  padding-block: 96px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--brand);
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-head {
  background: var(--vorxs-ink-900);
  color: #fff;
  padding-block: 96px 80px;
  position: relative;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--brand);
}
.page-head .breadcrumb {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}
.page-head .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-head .breadcrumb a:hover { color: var(--brand); }
.page-head .breadcrumb .sep { color: rgba(255,255,255,0.25); }
.page-head .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Reveal-on-scroll (subtle fades only — per design system motion)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.hr {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}
.section--dark .hr, .vorxs-dark .hr { background: var(--border-inverse); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.muted { color: var(--fg-muted); }
.section--dark .muted, .vorxs-dark .muted { color: rgba(255,255,255,0.6); }
