/* Automotive Service Company — Precision Garage Design System
   Palette grounded in ASC's monument sign & emblem (#B91C1C shop red,
   steel neutrals, asphalt slate #0F172A, and ASE/ACDelco cobalt #1D4ED8). */

:root {
  --red-800: #7f1d1d;
  --red-700: #991b1b;
  --red-600: #b91c1c;
  --red-500: #dc2626;
  --red-100: #fee2e2;
  --red-50: #fef2f2;

  --cobalt-900: #0f2957;
  --cobalt-700: #1d4ed8;
  --cobalt-600: #2563eb;
  --cobalt-100: #dbeafe;
  --cobalt-50: #eff6ff;

  --slate-950: #0a101d;
  --slate-900: #0f172a;
  --slate-850: #162033;
  --slate-800: #1e293b;
  --slate-700: #334155;

  --white: #ffffff;
  --steel-50: #f8fafc;
  --steel-100: #f1f5f9;
  --steel-200: #e2e8f0;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --border-light: #dbe3ee;
  --border-dark: rgba(255, 255, 255, 0.12);

  --amber-400: #fbbf24;
  --amber-50: #fffbeb;
  --danger-700: #991b1b;
  --danger-50: #fef2f2;
  --success-700: #166534;
  --success-50: #f0fdf4;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 18px 38px -16px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 28px 64px -18px rgba(10, 16, 29, 0.55);

  --font-display: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-top: 0;
}

h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin-top: 0;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  background: var(--red-600);
  color: var(--white);
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Utility Top Bar & Sticky Header
   ========================================================================== */

.top-bar {
  background: var(--red-800);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 38px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  flex-wrap: wrap;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(255, 255, 255, 0.92);
}

.top-bar-item svg {
  color: #fca5a5;
  flex-shrink: 0;
}

.top-bar a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  background: rgba(10, 16, 29, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.rating-pill svg {
  color: var(--amber-400);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 9px;
  padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-mark img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
}

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

.nav-link {
  padding: 0.5rem 0.78rem;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(185, 28, 28, 0.32);
  box-shadow: inset 0 -2px 0 var(--red-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.48rem 0.78rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.header-phone:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
}

.header-phone svg {
  color: #fca5a5;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.13);
}

.mobile-nav {
  background: var(--slate-900);
  border-top: 1px solid var(--border-dark);
  padding: 1rem 0 1.4rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-inner > a {
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-xs);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.96rem;
}

.mobile-nav-inner > a:hover,
.mobile-nav-inner > a[aria-current="page"] {
  background: rgba(185, 28, 28, 0.25);
  color: var(--white);
}

.mobile-nav-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-dark);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.25;
  padding: 0.82rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  text-align: center;
  white-space: normal;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.56rem 0.98rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.96rem 1.55rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(185, 28, 28, 0.65);
}

.btn-primary:hover {
  background: var(--red-700);
}

.btn-cobalt {
  background: var(--cobalt-700);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(29, 78, 216, 0.55);
}

.btn-cobalt:hover {
  background: var(--cobalt-900);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-dark {
  background: var(--slate-900);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--slate-800);
}

.btn-outline {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--slate-700);
  background: var(--steel-50);
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: asc-spin 0.7s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

@keyframes asc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Hero & Page Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(29, 78, 216, 0.22), transparent 46%),
    radial-gradient(circle at 12% 85%, rgba(185, 28, 28, 0.24), transparent 50%),
    linear-gradient(155deg, var(--slate-950) 0%, var(--slate-900) 60%, #172136 100%);
  color: var(--white);
  padding: 4.25rem 0 4.5rem;
  border-bottom: 3px solid var(--red-600);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 95%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  margin-bottom: 1.15rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.35rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #fca5a5;
}

.hero-lead {
  font-size: 1.07rem;
  line-height: 1.68;
  color: #cbd5e1;
  max-width: 58ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.hero-proof svg {
  color: #93c5fd;
  flex-shrink: 0;
}

/* Framed Shop Spotlight Card (preserves crisp 593x400 image) */

.hero-card {
  background: rgba(22, 32, 51, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 540px;
  width: 100%;
  justify-self: end;
}

.hero-card-media {
  position: relative;
  aspect-ratio: 593 / 400;
  background: var(--slate-800);
  overflow: hidden;
  border-bottom: 2px solid var(--red-600);
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-emblem-pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  box-shadow: 0 8px 20px rgba(10, 16, 29, 0.45);
}

.hero-emblem-pill img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.hero-card-body {
  padding: 1.2rem 1.35rem 1.35rem;
}

.hero-card-meta {
  display: grid;
  gap: 0.8rem;
}

.hero-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-card-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.15rem;
}

.hero-card-val {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}

.hero-card-val a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-card-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.26);
  border: 1px solid rgba(252, 165, 165, 0.35);
  color: #fecaca;
  white-space: nowrap;
}

.hero-card-footer {
  margin-top: 1rem;
}

/* Subpage Architectural Hero */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 15%, rgba(29, 78, 216, 0.24), transparent 44%),
    linear-gradient(145deg, var(--slate-950) 0%, var(--slate-900) 70%, var(--slate-850) 100%);
  color: var(--white);
  padding: 3.4rem 0 3.6rem;
  border-bottom: 3px solid var(--red-600);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.95rem;
}

.breadcrumb a {
  color: #93c5fd;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  color: var(--white);
  margin-bottom: 0.85rem;
}

.page-hero h1 span {
  color: #fca5a5;
}

.page-hero p {
  font-size: 1.04rem;
  color: #cbd5e1;
  margin: 0;
  max-width: 64ch;
}

.error-hero {
  padding: 4.5rem 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   Stats & Trust Strip
   ========================================================================== */

.stats-band {
  background: var(--steel-100);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
  padding: 1.45rem 1.25rem;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.stat-value span {
  color: var(--red-600);
}

.stat-value .stat-star {
  color: #d97706;
}

.stat-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
}

/* ==========================================================================
   Section Shells & Typography
   ========================================================================== */

.section {
  padding: 4.5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-light {
  background: var(--white);
}

.section-steel {
  background: var(--steel-50);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background: var(--slate-900);
  color: var(--white);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header-left {
  margin: 0 0 2rem;
  text-align: left;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.3rem;
  flex-wrap: wrap;
}

.section-header-row .section-header {
  margin-bottom: 0;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.5rem;
}

.section-dark .section-eyebrow {
  color: #93c5fd;
}

.section-header h2,
.editorial-heading {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.65rem;
  color: var(--ink-900);
}

.section-dark .section-header h2,
.section-dark .editorial-heading {
  color: var(--white);
}

.section-header p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-700);
}

.section-dark .section-header p {
  color: #cbd5e1;
}

.lead-statement {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--cobalt-900);
  margin: 0 0 1rem;
}

.prose-copy p {
  margin: 0 0 1rem;
  color: var(--ink-700);
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red-600);
}

.card-action:hover {
  color: var(--red-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link {
  color: var(--cobalt-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--red-600);
}

.section-dark .inline-link {
  color: #93c5fd;
}

/* ==========================================================================
   Core Services Grid (Home) & Detailed Services Page
   ========================================================================== */

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

.service-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.service-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid var(--red-100);
  flex-shrink: 0;
}

.service-icon.is-cobalt {
  background: var(--cobalt-50);
  color: var(--cobalt-700);
  border-color: var(--cobalt-100);
}

.service-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  text-transform: uppercase;
}

.service-tile h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
  color: var(--ink-900);
}

.service-tile p {
  margin: 0 0 1.2rem;
  font-size: 0.94rem;
  color: var(--ink-700);
  flex-grow: 1;
}

.service-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--steel-100);
}

/* Filter Bar & Detailed Cards (/services/) */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--slate-700);
  color: var(--ink-900);
}

.filter-pill.is-active {
  background: var(--red-600);
  border-color: var(--red-600);
  color: var(--white);
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-detail-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.service-detail-card[hidden] {
  display: none;
}

.service-detail-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.75rem;
  align-items: center;
  background: var(--steel-50);
  border-color: #cbd5e1;
}

.service-detail-card.is-featured[hidden] {
  display: none;
}

.service-detail-media {
  aspect-ratio: 593 / 400;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  max-width: 540px;
  width: 100%;
  justify-self: end;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.service-detail-card h2,
.service-detail-card h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--ink-900);
}

.service-detail-card p {
  margin: 0 0 1rem;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.service-bullets {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.service-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.91rem;
  color: var(--ink-700);
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--red-600);
}

.service-detail-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--steel-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Convenience Band (Loaner / Shuttle / Towing)
   ========================================================================== */

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

.convenience-card {
  display: flex;
  flex-direction: column;
  background: var(--slate-850);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

.convenience-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.28);
  border: 1px solid rgba(252, 165, 165, 0.35);
  color: #fecaca;
  margin-bottom: 0.9rem;
}

.convenience-tag.is-cobalt {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
}

.convenience-card h3 {
  font-size: 1.18rem;
  color: var(--white);
  margin-bottom: 0.55rem;
}

.convenience-card p {
  margin: 0 0 1.15rem;
  color: #cbd5e1;
  font-size: 0.94rem;
  flex-grow: 1;
}

.convenience-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e2e8f0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.requirement-list {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.requirement-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--steel-50);
  border: 1px solid var(--border-light);
}

.requirement-list .req-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--red-600);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.requirement-list strong {
  display: block;
  color: var(--ink-900);
  font-size: 0.96rem;
}

.requirement-list div > span {
  font-size: 0.9rem;
  color: var(--ink-700);
}

.towing-partner-card {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.towing-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--steel-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Family Story, Real Shop Photos, & Credentials
   ========================================================================== */

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem;
  align-items: center;
}

.split-layout-top {
  align-items: flex-start;
}

.shop-photo-stack {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.shop-photo-frame {
  position: relative;
  aspect-ratio: 593 / 400;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: var(--slate-800);
}

.shop-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-photo-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(10, 16, 29, 0.86);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.35rem 0 1.6rem;
}

.about-highlight-box {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.about-highlight-box strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink-900);
  margin-bottom: 0.15rem;
}

.about-highlight-box span {
  font-size: 0.86rem;
  color: var(--ink-700);
}

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

.credential-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.credential-badge-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.credential-badge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  background: var(--cobalt-50);
  border: 1px solid var(--cobalt-100);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cobalt-900);
}

.credential-badge-mark.is-red {
  background: var(--red-50);
  border-color: var(--red-100);
  color: var(--red-700);
}

.credential-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.credential-card p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-700);
}

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

.gallery-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-media {
  aspect-ratio: 593 / 400;
  background: var(--slate-800);
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.9rem 1.05rem;
}

.gallery-caption strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-900);
  margin-bottom: 0.15rem;
}

.gallery-caption span {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-700);
}

/* ==========================================================================
   Makes & Models, Warranty Banner, Specials, Communities
   ========================================================================== */

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

.makes-group {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.makes-group h3 {
  font-size: 1.04rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--red-600);
}

.makes-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.make-pill {
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.28rem 0.62rem;
  border-radius: 6px;
  background: var(--steel-100);
  color: var(--ink-900);
  border: 1px solid var(--steel-200);
}

.warranty-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.65rem 1.9rem;
  border-radius: var(--radius-md);
  background: linear-gradient(125deg, var(--slate-900) 0%, var(--cobalt-900) 100%);
  color: var(--white);
  border-left: 5px solid var(--red-500);
  box-shadow: var(--shadow-md);
}

.warranty-banner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.warranty-banner p {
  margin: 0;
  color: #dbeafe;
  max-width: 62ch;
}

.specials-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 2.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-850) 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--red-600);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.specials-hero-card h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  color: var(--white);
  margin-bottom: 0.6rem;
}

.specials-hero-card p {
  margin: 0;
  color: #cbd5e1;
  max-width: 58ch;
}

.specials-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.value-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  font-size: 1.04rem;
  margin-bottom: 0.45rem;
}

.value-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-700);
}

.community-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.community-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--ink-900);
}

/* ==========================================================================
   Contact Info, Hours, Payments, Forms, & Map
   ========================================================================== */

.info-list {
  display: grid;
  gap: 1.15rem;
  margin: 1.5rem 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid var(--red-100);
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-900);
  margin-bottom: 0.15rem;
}

.info-item p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-700);
}

.hours-card {
  background: var(--steel-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-top: 1.4rem;
}

.hours-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours-table td {
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--steel-200);
}

.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-900);
}

.payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.payment-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.68rem;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--ink-900);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-md);
}

.form-card h2,
.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
  color: var(--ink-900);
}

.form-intro {
  margin: 0 0 1.35rem;
  font-size: 0.94rem;
  color: var(--ink-700);
}

.field-aux {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink-900);
  background: var(--steel-50);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xs);
  padding: 0.68rem 0.82rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--cobalt-600);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-footer {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.form-note {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-500);
  text-align: center;
}

.form-status {
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-error {
  background: var(--danger-50);
  color: var(--danger-700);
  border: 1px solid #fecaca;
}

.form-success {
  text-align: center;
  padding: 1.5rem 0.75rem;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--success-50);
  color: var(--success-700);
  border: 1px solid #bbf7d0;
  margin-bottom: 0.85rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
}

.form-success p {
  margin: 0 0 1.2rem;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--steel-200);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--slate-950);
  color: #cbd5e1;
  border-top: 3px solid var(--red-600);
  padding: 3.75rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-logo {
  display: inline-flex;
  background: var(--white);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.95rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 0.45rem;
}

.footer-about {
  margin: 0;
  font-size: 0.89rem;
  color: #94a3b8;
  max-width: 34ch;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.footer-links,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.52rem;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact-list a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-list strong {
  display: block;
  font-size: 0.77rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.15s ease;
}

.footer-powered strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.15s ease;
}

.footer-powered:hover,
.footer-powered:focus-visible {
  color: var(--white);
}

.footer-powered:hover strong,
.footer-powered:focus-visible strong {
  color: var(--white);
}

.footer-powered-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.footer-powered:hover .footer-powered-logo,
.footer-powered:focus-visible .footer-powered-logo {
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-layout,
  .split-layout,
  .service-detail-card.is-featured {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .service-detail-media {
    justify-self: start;
  }

  .services-grid,
  .convenience-grid,
  .gallery-grid,
  .makes-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credential-grid,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item {
    border-bottom: 1px solid var(--border-light);
  }

  .stat-item:nth-child(2n) {
    border-right: 0;
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
    gap: 0.6rem;
  }

  .brand-mark {
    padding: 3px 6px;
    flex-shrink: 0;
  }

  .brand-mark img {
    height: 26px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.61rem;
  }

  .nav-toggle {
    flex-shrink: 0;
  }

  .header-phone,
  .header-actions .btn-sm {
    display: none;
  }

  .top-bar-right {
    display: none;
  }

  .hero {
    padding: 3rem 0 3.25rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .services-grid,
  .convenience-grid,
  .credential-grid,
  .value-grid,
  .gallery-grid,
  .makes-groups,
  .about-highlights,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
