/* Mechanics / Auto Repair Template - Fresh Style */
:root {
  --ink: #111111;
  --ink-2: #1d1f22;
  --ink-3: #2b2f33;
  --bone: #ffffff;
  --bone-2: #f7f6f2;
  --paper: #ece9df;
  --signal: #f6c744;
  --signal-2: #d9a91f;
  --red: #c54132;
  --steel: #5d6670;
  --steel-2: #b5bdc5;
  --rule: #dedbd2;
  --rule-dark: #34383d;
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.45);
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --max: 82rem;
  --h1: clamp(2.6rem, 7vw, 5.7rem);
  --h2: clamp(1.9rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--max);
  margin-inline: auto;
}

.proof-strip {
  background: var(--signal);
  color: var(--ink);
  padding: 0.52rem 1rem;
  text-align: center;
  font: 700 0.7rem/1.3 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--bone);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.top-strip {
  background: var(--ink-2);
  border-bottom: 1px solid var(--rule-dark);
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-2);
}

.top-strip-inner {
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.65rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.top-strip a { color: var(--bone); text-decoration: none; }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.5rem;
  border-radius: 99px;
  background: var(--signal);
}

.nav {
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--max);
  margin-inline: auto;
  padding: 1rem 0;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--bone);
  text-decoration: none;
}

.logo-glyph {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 900;
  font-size: 1.5rem;
}

.logo-text { display: grid; line-height: 1.1; }
.logo-text strong { font-size: 1rem; }
.logo-text small {
  color: var(--steel-2);
  font: 700 0.68rem/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--steel-2);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links .is-active { color: var(--bone); }

.menu-btn {
  display: none;
  flex-shrink: 0;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--rule-dark);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.mobile-menu {
  display: none;
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 0 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--bone);
  text-decoration: none;
  border-top: 1px solid var(--rule-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.btn--signal {
  background: var(--signal);
  color: var(--ink) !important;
}

.btn--signal:hover { background: var(--signal-2); }

.btn--ghost {
  color: var(--bone);
  border-color: rgba(255,255,255,0.35);
}

.btn--ghost-dark {
  color: var(--ink);
  border-color: rgba(17,17,17,0.25);
}

.btn--sm {
  min-height: 2.3rem;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}

.btn--large {
  min-height: 3.4rem;
  padding: 1rem 1.8rem;
  font-size: 1rem;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--red);
  font: 800 0.72rem/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: currentColor;
}

.meta--dark { color: var(--signal); }

.hero {
  position: relative;
  min-height: 720px;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.56;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,0.95), rgba(17,17,17,0.72) 42%, rgba(17,17,17,0.18));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: grid;
  align-items: center;
}

.hero-copy { max-width: 52rem; padding: 5rem 0; }

.hero-copy > * {
  animation: hero-rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

h1,
h2,
h3,
p { margin-top: 0; }

.hero h1 {
  margin: 1rem 0 1.15rem;
  max-width: 13ch;
  font-size: var(--h1);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

.hero p,
.page-hero p,
.section-head p,
.copy-wide p,
.split p,
.cta-band p {
  max-width: 48rem;
  color: var(--steel);
  font-size: 1.08rem;
}

.hero p { color: #d4dae0; font-size: 1.2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 38rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.28);
}

.hero-proof div {
  padding: 1.1rem;
  border-right: 1px solid rgba(255,255,255,0.18);
}

.hero-proof div:last-child { border-right: 0; }
.hero-proof strong { display: block; color: var(--signal); font-size: 1.45rem; line-height: 1; }
.hero-proof span { color: var(--steel-2); font-size: 0.85rem; }

.trust-bar {
  background: var(--ink-2);
  color: var(--bone);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.trust-row span {
  padding: 1.1rem 0;
  color: var(--steel-2);
  font: 800 0.78rem/1.3 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section,
.answer-block,
.page-hero { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section--paper,
.answer-block { background: var(--bone-2); }

.section-head {
  max-width: 60rem;
  margin-bottom: 2.3rem;
}

.section-head h2,
.copy-wide h2,
.split h2,
.cta-band h2,
.page-hero h1 {
  margin: 0.8rem 0 1rem;
  font-size: var(--h2);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.answer-block h2 { max-width: 60rem; font-size: clamp(1.7rem, 3.5vw, 2.6rem); line-height: 1.12; }
.answer-block p { max-width: 64rem; font-size: 1.1rem; color: var(--steel); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  min-height: 100%;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }
.reveal:nth-child(5) { transition-delay: 0.2s; }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card span {
  display: block;
  padding: 1.2rem 1.2rem 0.45rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.service-card p {
  margin: 0;
  padding: 0 1.2rem 1.35rem;
  color: var(--steel);
  font-size: 0.96rem;
}

.service-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.focus-card {
  padding: 1.35rem;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.focus-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.2;
}

.focus-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--steel);
}

.focus-card li + li { margin-top: 0.45rem; }

.service-action-strip,
.urgent-advice-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--ink);
  color: var(--bone);
  border-radius: 8px;
}

.service-action-strip h2,
.urgent-advice-panel h2 {
  margin: 0.65rem 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.service-action-strip p,
.urgent-advice-panel p {
  max-width: 48rem;
  margin: 0;
  color: #d4dae0;
}

.urgent-hero-actions { margin-top: 1.4rem; }

.service-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-tile {
  display: block;
  min-height: 8.25rem;
  padding: 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bone);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-tile strong {
  display: block;
  margin-bottom: 0.55rem;
  line-height: 1.2;
}

.service-tile span {
  display: block;
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.45;
}

.alice-grid { max-width: 70rem; }

.alice-card {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bone);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.alice-card img {
  width: 10rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper);
}

.alice-card h2 {
  margin: 0.65rem 0 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.alice-card p {
  max-width: 50rem;
  color: var(--steel);
}

.alice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-panel {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bone);
}

.map-pin {
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
}

.map-pin span {
  width: 2.9rem;
  height: 2.9rem;
  position: relative;
  display: block;
  border-radius: 50% 50% 50% 0;
  background: var(--signal);
  transform: rotate(-45deg);
}

.map-pin span::after {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: 50%;
  background: var(--ink);
}

.map-panel h2 {
  margin: 0.65rem 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.map-panel p {
  color: var(--steel);
  max-width: 48rem;
}

.split-grid,
.page-hero-grid,
.detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-grid > *,
.page-hero-grid > *,
.detail-grid > * {
  min-width: 0;
}

.page-hero {
  background: var(--ink);
  color: var(--bone);
}

.page-hero img,
.split img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.mode-grid,
.local-grid,
.urgent-grid,
.contact-grid,
.intake-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mode-grid div,
.local-grid div,
.urgent-grid div,
.contact-card,
.intake-grid div,
.detail-card {
  padding: 1.3rem;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.mode-grid strong,
.local-grid strong,
.urgent-grid strong,
.contact-card strong,
.detail-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 900;
}

.mode-grid span,
.local-grid span,
.urgent-grid p,
.contact-card span,
.detail-card li {
  color: var(--steel);
}

.intake-grid div {
  background: var(--ink);
  color: var(--signal);
  font: 800 0.9rem/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.copy-wide { max-width: 64rem; }

.detail-grid { align-items: start; }
.detail-card ul { margin: 0.8rem 0 0; padding-left: 1.2rem; }

.faq details {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  padding: 1rem 1.2rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p { margin: 0.7rem 0 0; color: var(--steel); }

.cta-band {
  padding: 4.5rem 0;
  background: var(--ink);
  color: var(--bone);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band p { color: var(--steel-2); }

.site-footer {
  padding: 3rem 0 6rem;
  background: var(--ink-2);
  color: var(--steel-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 2rem;
}

.footer-grid strong { color: var(--bone); }

.sticky-call {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: none;
  padding: 1rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink);
  text-align: center;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sticky-call.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body:has(.sticky-call.is-visible) #alice-bubble {
  bottom: calc(5.8rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex;
    position: absolute;
    right: 4.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav { gap: 0.75rem; }
  .logo-mark { min-width: 0; }
  .logo-text { min-width: 0; }
  .logo-text strong {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-menu.is-open { display: block; }
  .top-strip-inner span:nth-child(2) { display: none; }
  .hero,
  .hero-inner { min-height: 660px; }
  .hero::after { background: linear-gradient(180deg, rgba(17,17,17,0.92), rgba(17,17,17,0.72)); }
  .service-grid,
  .service-focus-grid,
  .service-tile-grid,
  .mode-grid,
  .local-grid,
  .urgent-grid,
  .contact-grid,
  .intake-grid,
  .trust-row,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-grid,
  .page-hero-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .service-action-strip,
  .urgent-advice-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .alice-card,
  .map-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .proof-strip { font-size: 0.58rem; }
  .container,
  .nav,
  .top-strip-inner {
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
  }
  .top-strip-inner { font-size: 0.58rem; }
  .top-strip-inner a { display: none; }
  .logo-glyph { width: 2.7rem; height: 2.7rem; }
  .hero h1 { max-width: 10ch; }
  .page-hero h1 {
    font-size: 1.85rem;
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
  }
  .page-hero p {
    font-size: 0.98rem;
    line-height: 1.55;
    overflow-wrap: normal;
  }
  .hero-proof,
  .service-grid,
  .service-focus-grid,
  .service-tile-grid,
  .mode-grid,
  .local-grid,
  .urgent-grid,
  .contact-grid,
  .intake-grid,
  .trust-row,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-proof div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .hero-proof div:last-child { border-bottom: 0; }
  .cta-inner { display: block; }
  .sticky-call { display: block; }
  .alice-card img,
  .map-pin {
    width: 6rem;
    height: 6rem;
  }
}
