/* ===========================================================
   C&M Body Works — interior page design system
   Shared by every /services, /locations and /guides page.
   Homepage keeps its own inline styles.
   =========================================================== */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* palette */
  --orange:       #f07e26;
  --orange-dark:  #d9681a;
  --orange-soft:  rgba(240, 126, 38, .12);
  --black:        #080808;
  --surface:      #111111;
  --surface2:     #1a1a1a;
  --surface3:     #232323;
  --border:       rgba(255, 255, 255, .07);
  --border-lit:   rgba(240, 126, 38, .28);
  --text:         #f0f0f0;
  --muted:        #8b8b8b;
  --muted-bright: #b4b4b4;

  /* type */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
  --text-hero:    clamp(2.6rem, 1.4rem + 4.4vw, 5.2rem);
  --text-h2:      clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  --text-h3:      clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  --text-body:    clamp(1rem, .96rem + .18vw, 1.075rem);

  /* space */
  --space-section: clamp(3.5rem, 2.4rem + 4.2vw, 7rem);
  --gutter:        clamp(1.25rem, .8rem + 1.6vw, 2.5rem);
  --maxw:          1180px;

  /* motion */
  --dur-fast:   150ms;
  --dur-normal: 320ms;
  --ease:       cubic-bezier(.16, 1, .3, 1);
}

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

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.68;
  overflow-x: hidden;
  /* faint diagonal shop-floor texture so surfaces are not dead flat */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(240,126,38,.09), transparent 70%);
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--orange); color: #0a0a0a; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 840px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--orange); color: #0a0a0a; padding: 12px 20px;
  font-weight: 800; letter-spacing: .04em;
}
.skip-link:focus { left: 0; }

/* ─── NAV ──────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 900;
  letter-spacing: .05em; color: var(--orange); white-space: nowrap;
}
.nav-links { display: none; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  transition: color var(--dur-fast);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  background: var(--orange); color: #0a0a0a !important;
  padding: 9px 18px; border-radius: 4px; font-weight: 800;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
.nav-phone {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  letter-spacing: .03em; color: var(--text); white-space: nowrap;
}
@media (min-width: 940px) { .nav-links { display: flex; } .nav-phone-mobile { display: none; } }
@media (max-width: 939px) { .nav-phone-mobile { display: block; } }

/* ─── BREADCRUMBS ──────────────────────────────────────── */
.crumbs {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px var(--gutter) 0;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs a { color: var(--muted); border-bottom: 1px solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast); }
.crumbs a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #444; }
.crumbs [aria-current="page"] { color: var(--muted-bright); }

/* ─── PAGE HERO ────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: clamp(2.5rem, 1.6rem + 3.4vw, 5rem) 0 clamp(2.5rem, 1.6rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::after {
  /* angled light shaft — depth without a stock gradient blob */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(112deg, transparent 38%, rgba(240,126,38,.10) 52%, transparent 66%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--orange); display: block; }

h1 {
  font-family: var(--font-display); font-size: var(--text-hero);
  font-weight: 900; line-height: .95; letter-spacing: -.01em;
  text-transform: uppercase; text-wrap: balance;
}
h1 .accent { color: var(--orange); }

.lede {
  max-width: 62ch; margin-top: 22px;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  color: var(--muted-bright); line-height: 1.62;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 100px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted-bright);
}
.pill strong { color: var(--orange); font-weight: 800; }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 4px; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast), box-shadow var(--dur-normal);
}
.btn-primary { background: var(--orange); color: #0a0a0a; border: 2px solid var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(240,126,38,.6); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid rgba(255,255,255,.18); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ─── SECTIONS + PROSE ─────────────────────────────────── */
section { padding: var(--space-section) 0; }
section.tight { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
section.surface { background: var(--surface); border-block: 1px solid var(--border); }

h2 {
  font-family: var(--font-display); font-size: var(--text-h2);
  font-weight: 900; line-height: 1; letter-spacing: -.005em;
  text-transform: uppercase; margin-bottom: 20px; text-wrap: balance;
}
h2 .accent { color: var(--orange); }
h3 {
  font-family: var(--font-display); font-size: var(--text-h3);
  font-weight: 800; line-height: 1.15; letter-spacing: .01em;
  text-transform: uppercase; margin-bottom: 10px;
}

.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--muted-bright); max-width: 68ch; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a {
  color: var(--orange); border-bottom: 1px solid var(--border-lit);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.prose a:hover { border-bottom-color: var(--orange); color: #ff9445; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--muted-bright); max-width: 68ch; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--orange); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--text); }

/* ─── CARD GRIDS (deliberately non-uniform) ────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 24px 24px;
  transition: border-color var(--dur-normal), transform var(--dur-normal) var(--ease), background var(--dur-normal);
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px;
  background: var(--orange); opacity: 0; transition: opacity var(--dur-normal);
}
.card:hover { border-color: var(--border-lit); transform: translateY(-4px); background: linear-gradient(160deg, var(--surface3), var(--surface2)); }
.card:hover::before { opacity: 1; }
.card .num {
  font-family: var(--font-display); font-size: .8rem; font-weight: 800;
  letter-spacing: .18em; color: var(--orange); margin-bottom: 12px; display: block;
}
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .go {
  margin-top: 18px; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  display: inline-flex; align-items: center; gap: 8px;
}
.card:hover .go span { transform: translateX(4px); }
.card .go span { transition: transform var(--dur-normal) var(--ease); display: inline-block; }
a.card:hover h3 { color: var(--orange); }
.card h3 { transition: color var(--dur-fast); }

/* editorial: first card in a 3-up spans wide on desktop */
@media (min-width: 1000px) { .grid-3 > .card.feature { grid-column: span 2; } }

/* ─── SPEC / FACT STRIP ────────────────────────────────── */
.facts {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface); padding: 22px 20px; }
.fact dt {
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.fact dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--text); line-height: 1.1; }
.fact dd.small { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }

/* ─── FAQ ──────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--border); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: .01em; color: var(--text);
  transition: color var(--dur-fast);
}
.faq-q:hover { color: var(--orange); }
.faq-icon { color: var(--orange); font-size: 1.5rem; line-height: 1; flex-shrink: 0; transition: transform var(--dur-normal) var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-normal) var(--ease); }
.faq-item.open .faq-a { max-height: 700px; }
.faq-a > div { padding: 0 0 22px; color: var(--muted-bright); max-width: 70ch; }

/* ─── INTERNAL LINK CLUSTERS ───────────────────────────── */
.linkwall { display: flex; flex-wrap: wrap; gap: 10px; }
.linkwall a {
  background: var(--surface2); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 100px;
  font-size: .84rem; font-weight: 600; color: var(--muted-bright);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.linkwall a:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

/* ─── CTA BAND ─────────────────────────────────────────── */
.cta-band {
  background:
    linear-gradient(120deg, rgba(240,126,38,.16), transparent 55%),
    var(--surface);
  border-block: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted-bright); max-width: 56ch; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ─── MAP ──────────────────────────────────────────────── */
.map-wrap { width: 100%; height: 380px; overflow: hidden; border-block: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(30%) invert(10%) contrast(1.1); }

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: clamp(3rem,2.4rem+2vw,4.5rem) 0 0; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 38px; grid-template-columns: 1fr;
}
@media (min-width: 760px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-heading {
  font-family: var(--font-display); font-size: .95rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  margin-bottom: 16px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-list a { font-size: .9rem; color: var(--muted); transition: color var(--dur-fast); }
.footer-list a:hover { color: var(--orange); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 38px; width: auto; }
.footer-logo span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 900; letter-spacing: .05em; color: var(--orange); }
.footer-about { font-size: .9rem; color: var(--muted); max-width: 40ch; }
.footer-nap { margin-top: 18px; font-size: .9rem; color: var(--muted); font-style: normal; }
.footer-nap a { color: var(--muted); }
.footer-nap a:hover { color: var(--orange); }
.footer-nap strong { color: var(--text); }
.footer-bottom {
  max-width: var(--maxw); margin: 44px auto 0; padding: 20px var(--gutter);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem; color: var(--muted); /* WCAG AA on --surface */
}

/* ─── MOBILE STICKY CTA ────────────────────────────────── */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,.96); backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta a {
  padding: 15px 8px; text-align: center;
  font-family: var(--font-display); font-size: .98rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.mobile-cta .call { color: var(--text); }
.mobile-cta .book { background: var(--orange); color: #0a0a0a; }
@media (min-width: 940px) { .mobile-cta { display: none; } }
@media (max-width: 939px) { body { padding-bottom: 56px; } }

/* ─── REVEAL ANIMATION ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
