/* ============================================
   MINZO Mobile Mechanics - Main Stylesheet
   Colors: Yellow #fffc08, Blue #0003ff
   Dynamic, vivid, trust-building design
   ============================================ */

:root {
  --yellow: #fffc08;
  --yellow-dark: #fffc08;
  --blue: #0003ff;
  --blue-hover: #0002cc;
  --blue-light: rgba(0, 3, 255, 0.12);
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #444;
  --gray-light: #e2e8f0;
  --shadow: 0 2px 6px rgba(0, 3, 255, 0.2);
  --shadow-hover: 0 6px 16px rgba(0, 3, 255, 0.35);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

/* ========== Header & Nav ========== */
.page-header {
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.logo-link:hover {
  color: var(--yellow) !important;
  text-decoration: none !important;
}

.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Inner pages: full-width yellow header bar; logo height matches the yellow strip (slightly above minimal). */
body:not(.home-page) {
  --inner-header-bar-h: clamp(42px, 6vw, 66px);
  --inner-header-gap: 0.6rem;
  --inner-header-row-gap: 0.35rem;
  --inner-header-nav-py: 0.35rem;
  --inner-header-nav-px: 0.55rem;
}

body:not(.home-page) .page-header {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  box-shadow: var(--shadow);
  color: var(--blue);
  padding: 0 1.25rem;
  box-sizing: border-box;
}
body:not(.home-page) .header-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  min-height: var(--inner-header-bar-h);
  align-items: stretch;
  gap: var(--inner-header-gap);
  row-gap: var(--inner-header-row-gap);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
body:not(.home-page) .page-header nav {
  display: flex;
  align-items: center;
}
body:not(.home-page) .nav-toggle {
  align-self: center;
}
/* Inner pages: match homepage nav after scroll (.home-page.home-nav-revealed) */
body:not(.home-page) .nav-menu a {
  color: #ffffff;
  font-weight: 500;
  padding: var(--inner-header-nav-py) var(--inner-header-nav-px);
  text-shadow:
    0 0 1px #ffffff,
    0 0 2px #ffffff,
    0 0 4px rgba(0, 3, 255, 1),
    0 0 8px rgba(0, 3, 255, 1),
    0 0 14px rgba(0, 3, 255, 1),
    0 0 24px rgba(0, 3, 255, 0.95),
    0 0 38px rgba(0, 3, 255, 0.85),
    0 0 52px rgba(0, 3, 255, 0.65);
  background: transparent;
  border-radius: var(--radius-sm);
}
body:not(.home-page) .nav-menu a:hover {
  color: #0002cc;
  text-shadow:
    0 0 2px #ffffff,
    0 0 6px rgba(0, 3, 255, 1),
    0 0 12px rgba(0, 3, 255, 1),
    0 0 22px rgba(0, 3, 255, 0.95),
    0 0 36px rgba(0, 3, 255, 0.8);
  background: rgba(0, 3, 255, 0.1);
}
body:not(.home-page) .nav-toggle {
  color: #0003ff;
  text-shadow:
    0 0 1px #ffffff,
    0 0 4px rgba(0, 3, 255, 0.95),
    0 0 10px rgba(0, 3, 255, 0.85);
}
body:not(.home-page) .nav-menu a:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 3px;
}
body:not(.home-page) .logo-link {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  flex-shrink: 0;
  color: var(--blue) !important;
}
body:not(.home-page) .logo-icon {
  width: auto;
  height: 100%;
  min-height: var(--inner-header-bar-h);
  max-height: var(--inner-header-bar-h);
  object-fit: contain;
  object-position: left center;
  display: block;
}
body:not(.home-page) .logo-link:hover {
  color: var(--blue-hover) !important;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
}

.nav-menu a {
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--yellow);
  text-decoration: none;
}

/* ≤991px: compact header + hamburger (covers phones in landscape & small tablets) */
@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  /* One-row header: yellow bar does not grow when menu opens — dropdown is position:absolute below nav */
  .page-header {
    overflow: visible;
  }
  .page-header .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    row-gap: 0;
    position: relative;
  }
  body:not(.home-page) .page-header .header-inner {
    justify-content: flex-start;
  }
  .page-header .logo-link {
    order: 1;
    flex-shrink: 0;
  }
  .page-header .nav-toggle {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }
  .page-header nav {
    order: 3;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    position: relative;
    z-index: 1002;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    width: auto;
    max-width: min(340px, 94vw);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
    box-sizing: border-box;
    z-index: 10050;
  }
  .nav-menu.is-open,
  body.nav-open #navMenu {
    display: flex !important;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    white-space: nowrap;
  }

  /* Readable dropdown on mobile: solid panel + blue text (fixes white-on-yellow after scroll) */
  body:not(.home-page) .nav-menu.is-open {
    margin-top: 0;
    padding: 0.65rem 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 3, 255, 0.1);
  }
  body:not(.home-page) .nav-menu.is-open a {
    color: var(--blue) !important;
    text-shadow: none !important;
    font-weight: 600;
  }
  body:not(.home-page) .nav-menu.is-open a:hover {
    background: rgba(0, 3, 255, 0.07) !important;
    color: var(--blue-hover) !important;
  }

  .home-page .nav-menu.is-open {
    margin-top: 0;
    padding: 0.65rem 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 3, 255, 0.12);
  }
  .home-page .nav-menu.is-open a,
  .home-page.home-nav-revealed .nav-menu.is-open a {
    color: var(--blue) !important;
    text-shadow: none !important;
    font-weight: 600;
  }
  .home-page .nav-menu.is-open a:hover {
    background: rgba(0, 3, 255, 0.08) !important;
    color: var(--blue-hover) !important;
  }

  /* Hero CTA — max-width 991px (phones / small tablets) */
  .hero-banner-book {
    left: 35%;
    transform: translateX(-50%);
    bottom: clamp(46.5%, 18vw, 42%);
    max-width: min(94vw, 400px);
    padding: 0 0.65rem;
  }
  .hero-banner-book a.btn.btn-primary.btn-book-hero {
    padding: 0.2rem 1.1rem !important;
    font-size: 0.35rem !important;
    line-height: 1.15 !important;
    width: auto;
    max-width: min(260px, 92vw);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 3, 255, 0.35);
  }
}

/* Homepage: nav over hero (light strip); on scroll → yellow bar fades in */
/* No transform on this fixed header — transform + position:fixed breaks touch targeting on some mobile Safari builds */
.home-page .page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  opacity: 1;
  pointer-events: auto;
  transition: background 0.55s ease, box-shadow 0.55s ease, opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  box-shadow: none;
}
.home-page.home-nav-revealed .page-header {
  background: linear-gradient(
    90deg,
    rgba(255, 252, 8, 0) 0%,
    rgba(255, 252, 8, 0.65) 6%,
    var(--yellow) 14%,
    var(--yellow) 86%,
    rgba(255, 252, 8, 0.65) 94%,
    rgba(255, 252, 8, 0) 100%
  );
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}
.home-page .header-inner {
  justify-content: flex-end;
}

/*
 * Homepage nav: full neon — match hero.png “MINZO” electric blue signage (bright core + #0003ff bloom).
 * Over hero: ice-white fill. On yellow scroll bar: #0003ff fill + white core so it stays readable.
 */
.home-page .nav-menu a {
  color: #f0fbff;
  font-weight: 500;
  text-shadow:
    0 0 1px #ffffff,
    0 0 2px #ffffff,
    0 0 4px #ffffff,
    0 0 8px #0003ff,
    0 0 12px #0003ff,
    0 0 20px #0003ff,
    0 0 32px #0003ff,
    0 0 48px rgba(0, 3, 255, 0.98),
    0 0 64px rgba(0, 3, 255, 0.9),
    0 0 80px rgba(0, 3, 255, 0.75),
    0 0 96px rgba(0, 3, 255, 0.55),
    0 0 112px rgba(0, 3, 255, 0.38);
  background: transparent;
  border-radius: var(--radius-sm);
}
.home-page .nav-menu a:hover {
  color: #ffffff;
  text-shadow:
    0 0 2px #ffffff,
    0 0 6px #ffffff,
    0 0 12px #0003ff,
    0 0 20px #0003ff,
    0 0 32px #0003ff,
    0 0 48px #0003ff,
    0 0 64px rgba(0, 3, 255, 1),
    0 0 84px rgba(0, 3, 255, 0.92),
    0 0 104px rgba(0, 3, 255, 0.72),
    0 0 120px rgba(0, 3, 255, 0.5);
  background: rgba(0, 3, 255, 0.15);
}
.home-page.home-nav-revealed .nav-menu a {
  color: #ffffff;
  text-shadow:
    0 0 1px #ffffff,
    0 0 2px #ffffff,
    0 0 4px rgba(0, 3, 255, 1),
    0 0 8px rgba(0, 3, 255, 1),
    0 0 14px rgba(0, 3, 255, 1),
    0 0 24px rgba(0, 3, 255, 0.95),
    0 0 38px rgba(0, 3, 255, 0.85),
    0 0 52px rgba(0, 3, 255, 0.65);
}
.home-page.home-nav-revealed .nav-menu a:hover {
  color: #0002cc;
  text-shadow:
    0 0 2px #ffffff,
    0 0 6px rgba(0, 3, 255, 1),
    0 0 12px rgba(0, 3, 255, 1),
    0 0 22px rgba(0, 3, 255, 0.95),
    0 0 36px rgba(0, 3, 255, 0.8);
  background: rgba(0, 3, 255, 0.1);
}
.home-page .nav-toggle {
  color: #f0fbff;
  text-shadow:
    0 0 1px #ffffff,
    0 0 4px #0003ff,
    0 0 10px #0003ff,
    0 0 20px rgba(0, 3, 255, 0.85),
    0 0 32px rgba(0, 3, 255, 0.65);
}
.home-page.home-nav-revealed .nav-toggle {
  color: #0003ff;
  text-shadow:
    0 0 1px #ffffff,
    0 0 4px rgba(0, 3, 255, 0.95),
    0 0 10px rgba(0, 3, 255, 0.85);
}

.home-page .nav-menu a:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 3px;
}

/*
 * Mobile / tablet open-menu: must appear AFTER homepage neon link rules (~368+) or colors lose cascade.
 * max-width 991px matches hamburger breakpoint above.
 */
@media (max-width: 991px) {
  body.nav-open .page-header {
    z-index: 10050;
  }
  .home-page .page-header nav {
    z-index: 1002;
  }
  .home-page .nav-menu.is-open a,
  .home-page.home-nav-revealed .nav-menu.is-open a {
    color: var(--blue) !important;
    text-shadow: none !important;
    font-weight: 600;
  }
}

/* Hero banner: full-width image with logo overlay on left */
.hero-banner {
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
}
.hero-banner-inner {
  position: relative;
  width: 100%;
}

/* Book appointment CTA: shared shell; desktop-only placement (avoids later rules undoing mobile @media) */
.hero-banner-book {
  position: absolute;
  z-index: 2;
  width: 100%;
  text-align: center;
  pointer-events: none;
  box-sizing: border-box;
}

/* Large screens (≥992px): hero placement + larger CTA — does not apply to phones */
@media (min-width: 992px) {
  .hero-banner-book {
    left: 32.5%;
    transform: translateX(-50%);
    bottom: clamp(45%, 12vw, 34%);
    max-width: min(96vw, 720px);
    padding: 0 1rem;
  }
  .hero-banner-book .btn-book-hero {
    padding: 1.5rem 2.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 0.35;
    box-shadow: 0 4px 12px rgba(0, 3, 255, 0.4);
  }
}

.hero-banner-book .btn-book-hero {
  pointer-events: auto;
  font-weight: 700;
}

.hero-banner-book .btn-book-hero:hover {
  box-shadow: 0 6px 16px rgba(0, 3, 255, 0.5);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  object-position: center center;
  display: block;
  vertical-align: top;
}

/* Homepage: hero text section below banner (after scroll) */
.home-page .hero.hero-below-banner {
  background: #f8fafc;
  padding: 3rem 1.5rem;
}
.home-page .hero.hero-below-banner::before {
  display: none;
}
.home-page .hero.hero-below-banner h1 {
  color: var(--blue);
}
.home-page .hero.hero-below-banner .subheadline {
  color: var(--gray);
}
.home-page .hero.hero-below-banner .subheadline-line2 {
  color: var(--gray);
}
.home-page .hero.hero-below-banner .badge {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

/* Scroll reveal: always visible (JS may still add .is-visible for any future animation hooks) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Contact us banner (replaces yellow CTA on homepage) */
.contactus-banner {
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
}
/* Tighten gap before white footer on homepage */
.home-page main {
  padding-bottom: 0.5rem;
}
.home-page main > .section:last-of-type {
  padding-bottom: 1rem;
}
.home-page .home-footer.site-footer {
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
}
.contactus-banner a {
  display: block;
}
.contactus-banner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* ========== Main content wrapper ========== */
main {
  min-height: 60vh;
  padding-bottom: 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--blue);
  margin-bottom: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero .subheadline {
  font-size: 1.1rem;
  color: var(--black);
  max-width: 560px;
  margin: 0 auto 0.35rem;
}
.hero .subheadline.subheadline-line2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Trust badges in hero */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cert-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 1.35rem;
}

.cert-badge-row--why {
  margin-top: 1.75rem;
}

.cert-badge-img {
  height: clamp(48px, 11vw, 76px);
  width: auto;
  max-width: min(200px, 32vw);
  object-fit: contain;
  vertical-align: middle;
}

.badge {
  background: var(--white);
  color: var(--blue);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--blue);
  transition: var(--transition);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 3, 255, 0.4);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 3, 255, 0.5);
}

/* Anchor styled as primary button: keep text visible on hover */
a.btn.btn-primary,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus {
  color: var(--white) !important;
  text-decoration: none !important;
}

.btn-secondary {
  background: var(--yellow);
  color: var(--black);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

/* ========== Sections ========== */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.75rem;
  color: var(--blue);
  margin-bottom: 1rem;
  font-weight: 800;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.mechanics-intro-lead {
  margin-bottom: 0.4rem;
}

.mechanics-intro-follow {
  margin-top: 0;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding-bottom: 0.15rem;
}

/* Legal (Terms / Privacy) */
.legal-page {
  max-width: 52rem;
  margin: 0 auto;
}

.legal-intro {
  margin-bottom: 1.75rem;
}

.legal-body {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: left;
}

@media (min-width: 768px) {
  .legal-body {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.legal-body p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--gray);
  font-size: 0.98rem;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-section-heading {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--blue);
  margin: 1.75rem 0 0.65rem;
  line-height: 1.35;
}

.legal-section-heading:first-child {
  margin-top: 0;
}

.legal-loading {
  color: var(--gray);
  font-style: italic;
  margin: 0;
}

.legal-load-error {
  color: var(--gray);
  margin: 0;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  opacity: 0.9;
}

.legal-load-error a {
  color: var(--blue);
}

.appt-time-hint {
  display: block;
  margin-top: 0.35rem;
}

/* Services preview (home) - 3 cards with dynamic effects */
.services-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  min-height: 160px;
}
.service-card.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.service-card.service-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-card h3 {
  color: var(--blue);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.service-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: var(--shadow-hover);
}

.services-disclaimer {
  text-align: center;
  color: #666;
  font-style: italic;
  font-weight: 700;
}

/* How it works */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.step-card {
  background: linear-gradient(145deg, var(--blue-light), var(--white));
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}

.step-card .step-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.why-item {
  text-align: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--gray-light);
  transition: var(--transition);
}

.why-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.why-item strong {
  color: var(--blue);
  display: block;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.testimonial-card .stars {
  color: var(--yellow-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--blue);
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-block .btn {
  margin-bottom: 0.75rem;
}

.cta-block .help-line {
  font-size: 0.95rem;
  color: var(--black);
}

.cta-block .help-line a {
  color: var(--blue);
  font-weight: 700;
}

/* ========== Services Page - Two big boxes ========== */
.services-page-hero {
  background: var(--blue);
  color: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}

.services-page-hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Services page only: soft gray-blue background (like home sections), no heavy blue/red hero */
.services-page-main .services-page-hero {
  background: #f8fafc;
  color: var(--black);
  border-bottom: 1px solid var(--gray-light);
}
.services-page-main .services-page-hero h1 {
  color: var(--blue);
}
.services-page-main .services-page-hero p {
  color: var(--gray);
}

.emergency-banner {
  background: #ff0000;
  color: var(--yellow);
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.services-page-main .emergency-banner {
  background: #eef2f8;
  color: var(--blue);
  border: 1px solid var(--gray-light);
  font-weight: 600;
}
.emergency-banner .emergency-banner-link {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: underline;
}
.services-page-main .emergency-banner .emergency-banner-link {
  color: var(--blue);
}
.emergency-banner .emergency-banner-link:hover {
  color: var(--yellow-dark);
}
.services-page-main .emergency-banner .emergency-banner-link:hover {
  color: var(--blue-hover);
}

.service-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.service-box {
  border: 3px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--yellow-dark);
}

.service-box-header {
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.service-box-content {
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.service-item {
  border: 1px solid var(--gray-light);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.service-item:hover {
  box-shadow: 0 4px 12px rgba(0, 3, 255, 0.25);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.service-item h4 {
  color: var(--blue);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.service-item .price-range {
  font-weight: 700;
  color: var(--black);
  font-size: 0.9rem;
}

.service-item .desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.35rem;
}

/* ========== Booking Page ========== */
.booking-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
}

.booking-choice-card {
  border: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}

.booking-choice-card:hover {
  background: var(--blue-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.booking-choice-card.selected {
  background: var(--blue-light);
  border-color: var(--yellow-dark);
  box-shadow: var(--shadow-hover);
}

.form-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-section h2 {
  color: var(--blue);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group .hint {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.form-group .error-msg {
  color: #c62828;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #c62828;
}

/* Date/time picker wrapper */
.date-time-wrapper {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.date-time-wrapper input {
  flex: 1;
  min-width: 140px;
}

.calendar-icon-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.calendar-icon-btn:hover {
  background: var(--blue-hover);
}

/* Order summary & Stripe */
.order-summary-box {
  background: #f8fafc;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1rem 0;
}

.order-summary-box .line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.order-summary-box .total {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--gray-light);
}

.trust-msg {
  background: #fffef5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  font-weight: 600;
  color: var(--black);
  border: 1px solid rgba(255, 252, 8, 0.45);
}

.booking-cancellation-note {
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: 0.5rem;
  line-height: 1.45;
  max-width: 42rem;
}

/* Confirmation */
.confirmation-box {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.confirmation-box h3 {
  color: #2e7d32;
  margin-bottom: 0.75rem;
}

/* ========== How it works page ========== */
.how-content .step-list {
  list-style: none;
}

.how-content .step-list li {
  padding: 1rem 0;
  padding-left: 3rem;
  position: relative;
  border-left: 4px solid var(--blue);
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

.how-content .step-list li::before {
  content: attr(data-step);
  position: absolute;
  left: -0.9rem;
  top: 1rem;
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* ========== Our Mechanics ========== */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.mechanic-card {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.mechanic-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.mechanic-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  background: var(--gray-light);
}

.mechanic-card .card-body {
  padding: 1.25rem;
}

.mechanic-card h3 {
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.mechanic-card .rating {
  color: var(--yellow-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mechanic-card .snippet {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.mechanic-card .mechanic-ase,
.mechanic-card .mechanic-cert,
.mechanic-card .mechanic-vehicles {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

.mechanic-card .mechanic-ase {
  margin-top: 0.5rem;
}

.mechanic-card .mechanic-cert {
  color: var(--blue);
  font-weight: 600;
}

.mechanic-card .mechanic-cert-extra {
  font-size: 0.86rem;
  color: var(--blue);
  margin: 0.2rem 0 0;
  line-height: 1.45;
  font-weight: 600;
}

.mechanic-card .mechanic-vehicles {
  margin-bottom: 0.15rem;
}

.profile-modal-inner .profile-ase,
.profile-modal-inner .profile-cert-line,
.profile-modal-inner .profile-vehicles {
  font-size: 0.95rem;
  margin: 0.35rem 0;
  line-height: 1.5;
}

.profile-modal-inner .profile-cert-line {
  color: var(--blue);
  font-weight: 600;
}

.profile-modal-inner .profile-cert-extra {
  font-size: 0.92rem;
  margin: 0.25rem 0 0.35rem;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.45;
}

.profile-modal-inner .profile-vehicles {
  color: var(--gray);
}

/* Mechanic profile modal */
.profile-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.profile-modal.is-open {
  display: flex;
}

.profile-modal-inner {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.profile-modal-inner h2 {
  color: var(--blue);
  margin-bottom: 1rem;
}

.profile-modal-inner .close-btn {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

/* ========== Fleets ========== */
.fleet-intro {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--blue-light), var(--white));
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.fleet-intro p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.fleet-contact {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #eef2f8;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--gray);
}
.fleet-contact a {
  color: var(--blue);
  font-weight: 700;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 1rem 0.85rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 0.95rem;
}

.contact-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.contact-card a[href^="tel"] {
  font-weight: 700;
  font-size: 1.1rem;
}

.map-placeholder {
  background: var(--gray-light);
  height: 280px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-weight: 600;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-cert-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.45rem;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.footer-cert-badge-img {
  height: clamp(36px, 7vw, 52px);
  width: auto;
  max-width: min(160px, 28vw);
  object-fit: contain;
  vertical-align: middle;
}

.footer-badges .badge {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-color: var(--white);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.footer-social a {
  color: var(--white);
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.footer-social a:hover {
  color: var(--yellow);
  text-decoration: none;
  opacity: 0.85;
}

.footer-links {
  margin: 1rem 0;
}

.footer-links a {
  color: var(--white);
  margin: 0 0.75rem;
}

.footer-links a:hover {
  color: var(--yellow);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 1rem;
}

/* Homepage footer: white background, blue text for links & copyright */
.home-footer {
  background: var(--white);
  color: var(--blue);
}
.home-footer .footer-badges .badge {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.home-footer .footer-links a,
.home-footer .copyright,
.home-footer .footer-legal a {
  color: var(--blue);
  font-weight: 700;
}
.home-footer .footer-links a:hover,
.home-footer .footer-legal a:hover {
  color: var(--blue-hover);
}
.home-footer .copyright {
  opacity: 1;
}
.home-footer .footer-legal {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.home-footer .footer-legal-sep {
  font-weight: 700;
  color: var(--blue);
}

/* ========== Admin ========== */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue) 0%, #0002aa 100%);
  padding: 1rem;
}

.admin-login-box {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.admin-login-box h1 {
  color: var(--blue);
  text-align: center;
  margin-bottom: 1.5rem;
}

.admin-dashboard {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-light);
}

.admin-tabs button {
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.admin-tabs button:hover,
.admin-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

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

.orders-table th,
.orders-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.orders-table th {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
}

.orders-table tr:hover {
  background: #f8fafc;
}

.order-source-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.order-source-customer {
  background: #e3f2fd;
  color: #1565c0;
}

.order-source-admin {
  background: #fff3e0;
  color: #e65100;
}

.btn-cancel-order {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-order:hover {
  background: #b71c1c;
}

/* ========== Utilities ========== */
.hide {
  display: none !important;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* Meta viewport is in HTML */
@media (max-width: 480px) {
  .hero { padding: 2rem 1rem; }
  .service-boxes { grid-template-columns: 1fr; }
  .booking-choices { grid-template-columns: 1fr; }
}

/* ---------- Mobile home nav: last in file so #navMenu.is-open always wins ---------- */
@media (max-width: 991px) {
  html.nav-menu-open .home-page #navMenu.is-open,
  .home-page #navMenu.is-open {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    right: 0 !important;
    left: auto !important;
    width: auto !important;
    max-width: min(340px, 94vw) !important;
    margin: 0 !important;
  }
  .home-page .page-header .header-inner {
    position: relative;
    z-index: 10060;
  }
  .home-page .nav-toggle {
    position: relative;
    z-index: 10061;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 3, 255, 0.2);
  }
}
