:root {
  --ink: #101317;
  --ink-soft: #20252b;
  --slate: #5d6670;
  --paper: #f7f7f5;
  --white: #ffffff;
  --line: #dde1e5;
  --yellow: #f5c518;
  --yellow-deep: #dcae00;
  --blue: #1a344e;
  --shadow: 0 18px 45px rgba(16, 19, 23, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

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

button { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.eyebrow {
  margin: 0 0 0.72rem;
  color: #806600;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow.on-dark { color: var(--yellow); }

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

h1, h2, h3, .brand-name {
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Roboto Condensed", Arial, sans-serif;
  font-stretch: condensed;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.94;
}

h2 {
  max-width: 17ch;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  line-height: 1;
}

h3 { margin-bottom: 0.45rem; font-size: 1.35rem; line-height: 1.08; }

.lede { max-width: 57ch; color: var(--slate); font-size: clamp(1.04rem, 1.5vw, 1.22rem); }

.on-dark .lede, .hero-copy .lede { color: rgba(255, 255, 255, 0.78); }

.topbar { color: #e5e8eb; background: var(--ink); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 34px;
  font-size: 0.78rem;
}

.topbar a { color: var(--yellow); font-weight: 750; white-space: nowrap; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(245, 197, 24, 0.28);
  background: linear-gradient(180deg, #1b242c 0%, #12181e 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 950;
}

.brand-name {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.brand-name span { color: #9b7d00; }

.brand-tag {
  display: block;
  margin-top: 0.24rem;
  color: var(--slate);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

/* Official AutoStop badge styling. */
.brand > span:last-child { display: none; }
.brand-mark {
  width: 96px;
  height: 59px;
  border: 1px solid rgba(155, 125, 0, 0.38);
  border-radius: 8px;
  background: #210300 url("assets/autostop-mechanic-logo.jpg") center / contain no-repeat;
  box-shadow: 0 4px 12px rgba(16, 19, 23, 0.12);
  color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-links a {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: #e5e8eb;
  font-size: 0.9rem;
  font-weight: 750;
}

.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--white); background: #2a343d; }

.nav-links .nav-cta { margin-left: 0.35rem; color: var(--ink); background: var(--yellow); }
.nav-links .nav-cta:hover, .nav-links .nav-cta:focus-visible { background: #f9d642; }

.menu-toggle {
  display: none;
  width: auto;
  min-width: 4.3rem;
  min-height: 2.75rem;
  height: auto;
  padding: .55rem .7rem;
  border: 1px solid rgba(245, 197, 24, 0.46);
  border-radius: 9px;
  color: var(--white);
  background: rgba(16, 19, 23, 0.55);
  font-weight: 900;
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.55rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(245, 197, 24, 0.72); outline-offset: 3px; }
.button-primary { color: var(--ink); background: var(--yellow); }
.button-primary:hover { background: #f9d642; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #2d3339; }
.button-outline { border-color: #737b84; color: var(--white); background: transparent; }
.button-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.button-plain { border-color: var(--line); color: var(--ink); background: var(--white); }
.button-plain:hover { border-color: var(--ink); }

.call-prompt {
  margin: 1.85rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
  font-weight: 700;
}

.call-link {
  color: var(--yellow);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

.call-link:hover, .call-link:focus-visible { color: var(--white); }

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  align-items: stretch;
  min-height: 535px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.2rem, 8vw, 6rem) clamp(0rem, 4vw, 4rem) clamp(3.2rem, 8vw, 6rem) 0;
}

.hero-copy h1 { margin-bottom: 1.15rem; }

.hero-visual { position: relative; min-height: 300px; overflow: hidden; }

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--ink) 0%, rgba(16, 19, 23, 0.12) 28%, rgba(16, 19, 23, 0.08) 100%);
}

.hero-visual img { height: 100%; object-fit: cover; object-position: center; }

.hero-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  color: var(--ink);
  background: var(--line);
}

.hero-highlights > div { min-width: 0; padding: 1.25rem 1.35rem; background: var(--white); }
.hero-highlights strong { display: block; margin-bottom: 0.15rem; font-size: 0.95rem; }
.hero-highlights span { display: block; color: var(--slate); font-size: 0.83rem; }

.section { padding: clamp(3.6rem, 8vw, 6.2rem) 0; }
.section-tight { padding: clamp(2.7rem, 5vw, 4.2rem) 0; }
.section-white { background: var(--white); }
.section-ink { color: var(--white); background: var(--ink); }
.section-yellow { background: var(--yellow); }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 2rem; align-items: end; margin-bottom: 2.1rem; }
.section-heading .lede { margin-bottom: 0; }

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

.service-card {
  display: flex;
  min-width: 0;
  min-height: 215px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card p { margin-bottom: 1.2rem; color: var(--slate); }
.service-card a { color: #655100; font-size: 0.9rem; font-weight: 850; }
.service-number { display: grid; width: 34px; height: 34px; margin-bottom: 1.9rem; place-items: center; border-radius: 50%; color: var(--ink); background: #f8df68; font-size: 0.8rem; font-weight: 900; }

.split-feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split-feature.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split-feature.reverse .photo-panel { order: 2; }

.photo-panel { min-height: 385px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-panel img { height: 100%; object-fit: cover; }
.photo-panel.tall img { object-position: 50% 40%; }

.bullet-list { display: grid; gap: 0.72rem; margin: 1.45rem 0 0; padding: 0; list-style: none; }
.bullet-list li { position: relative; padding-left: 1.45rem; color: #cbd2d8; }
.bullet-list li::before { position: absolute; left: 0; top: 0.52rem; width: 0.52rem; height: 0.52rem; border-radius: 50%; content: ""; background: var(--yellow); }
.section-white .bullet-list li, .section-yellow .bullet-list li { color: #4e555d; }
.section-white .bullet-list li::before, .section-yellow .bullet-list li::before { background: #957600; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 2rem; align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; color: var(--ink); font-weight: 850; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: #957600; font-size: 1.4rem; font-weight: 500; }
.accordion details[open] summary::after { content: "−"; }
.accordion p { max-width: 62ch; margin: -0.05rem 0 1.15rem; color: var(--slate); }

.action-banner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1.65rem, 3vw, 2.4rem); padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); color: var(--white); background: var(--blue); }
.action-banner h2 { max-width: 20ch; margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.action-banner .button { flex: 0 0 auto; }
.banner-call { display: grid; flex: 0 0 auto; gap: 0.45rem; margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.94rem; font-weight: 700; }
.banner-call .call-link { width: max-content; }

.page-hero { color: var(--white); background: var(--ink); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr); min-height: 350px; }
.page-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3.2rem, 7vw, 5.8rem) clamp(0rem, 4.4vw, 4.5rem) clamp(3.2rem, 7vw, 5.8rem) 0; }
.page-hero h1 { max-width: 12ch; font-size: clamp(2.55rem, 5.4vw, 4.75rem); }
.page-hero-image { min-height: 255px; overflow: hidden; }
.page-hero-image img { height: 100%; object-fit: cover; }
.page-hero-image.tires img { object-position: center 45%; }
.page-hero-image.engine img { object-position: center; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.info-card { min-width: 0; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.info-card p { margin-bottom: 0; color: var(--slate); }
.info-card h3 { margin-bottom: 0.5rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature-card { min-height: 185px; padding: 1.45rem; border-radius: var(--radius-sm); color: var(--white); background: #20272e; }
.feature-card:nth-child(2) { background: #3a454f; }
.feature-card:nth-child(3) { background: #1d3a51; }
.feature-card:nth-child(4) { color: var(--ink); background: #f7df70; }
.feature-card p { margin-bottom: 0; color: inherit; opacity: 0.82; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.contact-details { display: grid; gap: 1rem; }
.contact-detail { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail:first-child { padding-top: 0; }
.contact-detail h3 { margin-bottom: 0.3rem; font-size: 1rem; }
.contact-detail p { margin-bottom: 0; color: var(--slate); }
.contact-detail a { color: #685300; font-weight: 800; }

.form-card { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 0.45rem; font-size: clamp(1.85rem, 3vw, 2.45rem); }
.form-card > p { color: var(--slate); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.45rem; }
.field { display: grid; gap: 0.42rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 800; }
.field input, .field textarea { width: 100%; min-width: 0; padding: 0.78rem 0.85rem; border: 1px solid #cbd1d6; border-radius: 8px; color: var(--ink); background: var(--white); }
.field textarea { min-height: 135px; resize: vertical; }
.form-actions { margin-bottom: 1.35rem; }
.form-message { display: none; margin: 0; padding: 0.85rem 0.95rem; border: 1px solid #b8ddc2; border-radius: 8px; color: #193325; background: #dff0e4; font-weight: 750; }
.form-message.is-visible, .form-message:target { display: block; }

.hours { display: grid; gap: 0.42rem; margin: 1.2rem 0 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.42rem; border-bottom: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.84); }
.hours strong { color: var(--white); }

.site-footer { color: #d8dde1; background: #0d1014; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 3.35rem 0 2rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-tag { color: #aab2ba; }
.footer-brand { position: relative; padding-top: 6.6rem; }
.footer-brand::before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 148px;
  max-width: 100%;
  aspect-ratio: 554 / 343;
  content: "";
  border: 1px solid rgba(245, 197, 24, 0.24);
  border-radius: 10px;
  background: #210300 url("assets/autostop-mechanic-logo.jpg") center / contain no-repeat;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.footer-brand .brand-name, .footer-brand .brand-tag {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.footer-brand p { max-width: 27ch; margin: 0; color: #b7c0c8; }
.footer-col h2 { margin-bottom: 0.8rem; color: var(--yellow); font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; }
.footer-col p, .footer-col a { display: block; margin-bottom: 0.35rem; color: #d8dde1; font-size: 0.9rem; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid rgba(255,255,255,0.12); color: #9da7b0; font-size: 0.78rem; }

.mobile-actions { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-wrap { flex-wrap: wrap; min-height: 70px; }
  .nav-links { display: none; width: 100%; order: 3; padding: .35rem 0 1rem; border-top: 1px solid rgba(245, 197, 24, 0.22); background: #171f26; }
  .nav-links.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a { padding: 0.82rem 0.25rem; border-radius: 0; color: #e5e8eb; }
  .nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--white); background: #2a343d; }
  .nav-links .nav-cta { margin: 0; padding-left: 0.65rem; border-radius: 8px; }
  .nav-links .nav-cta { grid-column: 1 / -1; color: var(--ink); background: var(--yellow); }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-copy, .page-hero-copy { padding-right: 0; }
  .hero-visual { min-height: 315px; }
  .hero-visual::after { background: linear-gradient(180deg, rgba(16,19,23,0.16), rgba(16,19,23,0.22)); }
  .page-hero-image { min-height: 265px; }
  .section-heading, .split-feature, .split-feature.reverse, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .split-feature.reverse .photo-panel { order: 0; }
  .photo-panel { min-height: 310px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 30px, 1120px); }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner span { display: none; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-mark { width: 84px; height: 52px; }
  .brand-name { font-size: 1.12rem; }
  .brand-tag { font-size: 0.56rem; }
  h1 { font-size: clamp(2.55rem, 13vw, 4.1rem); }
  h2 { font-size: clamp(1.9rem, 9.5vw, 2.8rem); }
  .hero-copy { padding-top: 3.4rem; padding-bottom: 3.15rem; }
  .page-hero-copy { padding-top: 3.2rem; padding-bottom: 3rem; }
  .hero-highlights { grid-template-columns: 1fr; }
  .hero-highlights > div { padding: 0.95rem 1rem; }
  .service-grid, .info-grid, .feature-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .section { padding: 3.65rem 0; }
  .section-heading { gap: 0.7rem; margin-bottom: 1.6rem; }
  .action-banner { align-items: flex-start; flex-direction: column; gap: 1.7rem; }
  .action-banner .button { width: 100%; }
  .banner-call { gap: 0.55rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.55rem; padding-top: 2.8rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .mobile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; padding: 0.6rem 0.75rem; border-top: 1px solid #cdd2d6; background: #eef0f1; }
  .mobile-actions .button { min-height: 44px; padding-inline: 0.55rem; font-size: 0.9rem; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
/* Desktop phone numbers remain readable text; mobile restores tap-to-call. */
@media (min-width: 768px) {
  a[data-phone-desktop="true"] {
    display: inline !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    pointer-events: none !important;
    cursor: default !important;
  }
  a[data-phone-desktop="true"]::before,
  a[data-phone-desktop="true"]::after,
  a[data-phone-desktop="true"] [aria-hidden="true"] {
    content: none !important;
    display: none !important;
  }
}
