/* BestAutoService responsive — mobile nav & layout fixes */
@media (max-width: 1024px) {
  /* footer keeps full info: brand full-width, services | contacts */
  .bas-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .bas-footer__grid > div:first-child { grid-column: 1 / -1; }

  .bas-hero__glass { max-width: none; }
}

@media (max-width: 860px) {
  .bas-topbar__inner { justify-content: center; flex-wrap: wrap; text-align: center; gap: 0 }

  .bas-topbar__inner > div {
    padding: 4px 0;
  }

  .bas-header__inner { flex-wrap: wrap; }

  .bas-nav { display: none; }
  .bas-nav.is-open {
    display: block;
    position: fixed;
    inset: 0;
    height: 100vh; /* fallback */
    height: 100dvh; /* full screen with dynamic iOS/Android chrome */
    z-index: 90; /* below sticky header (100), above page content */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bas-surface);
    padding: calc(var(--bas-header-h) + 16px) var(--bas-gutter) 32px;
  }
  .bas-nav.is-open > ul {
    flex-direction: column;
    gap: 16px;
  }

  /* Open menu owns the scroll: the page behind stays put. */
  body.bas-nav-open { overflow: hidden; }

  /* dropdown becomes a static stacked list inside the burger menu */
  .bas-dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--bas-line);
    margin-top: 12px;
  }

  .bas-header .bas-burger { display: inline-flex; }
  .bas-header__actions { display: flex; }

  .bas-hero--dark { padding: 32px 0 40px; }
  .bas-hero__glass { padding: 24px; }
}

@media (max-width: 640px) {
  /* Longhand on purpose. A `padding: 0 16px` shorthand here would wipe the
     vertical padding of every element that is also a .bas-container — most
     visibly .bas-page--service, which is what holds the breadcrumb's top
     offset. Same specificity, and this file loads last, so it would win. */
  .bas-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Full-screen menu follows the same phone gutter as the header. */
  .bas-nav.is-open {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bas-footer__grid { grid-template-columns: 1fr; }

  /* Compact related-service cards: less padding, smaller type, and a tighter
     gap than WP's default 2em between stacked columns. */
  .bas-rel-card {
    padding: var(--bas-p-space-12) var(--bas-p-space-16);
    font-size: var(--bas-p-fs-15);
  }

  .bas-strip .wp-block-columns {
    gap: var(--bas-p-space-12);
  }

  .bas-strip h2 { margin-bottom: var(--bas-p-space-16); }

  .bas-contact-pills { grid-template-columns: 1fr; }

  .bas-hero__stats { flex-wrap: wrap; gap: 24px; }

  /* services become compact single-line rows (design 04 mobile) */
  .bas-service-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .bas-service-card__top { display: contents; }

  .bas-service-card__icon svg { width: 24px; height: 24px; }

  .bas-service-card__title {
    order: 1;
    flex: 1;
    font-size: 15px;
  }

  .bas-service-card__go {
    order: 2;
    margin-left: auto;
  }

  .bas-service-card__go svg { width: 16px; height: 16px; }

  .bas-service-card__subtitle { display: none; }
}
