/* ==========================================================================
   Auto Spark Motors — Responsive Stylesheet
   All media-query rules extracted from main.css, consolidated into
   Bootstrap-style range breakpoints (mobile-first is NOT assumed here —
   the base rules in main.css are desktop-first, so each range below
   re-declares every rule that applied at that size in the original
   max-width cascade). Design tokens live in variables.css.

   Ranges:
     XS   :    0    – 575.98px
     SM   :  576px  – 767.98px
     MD   :  768px  – 991.98px
     LG   :  992px  – 1199.98px
     XL   : 1200px  – 1399.98px
     XXL  : 1400px  and up
   ========================================================================== */


/* ==========================================================================
   XS — 0 to 575.98px
   (was: max-width 820, 640, 980, 560, 880, 520, 480, 780, 768px — all applied here)
   ========================================================================== */
@media (max-width: 575.98px) {

  /* Section vertical padding — .hero/.services/.why/.booking/.about/.testi
     all shrink together from --space-8xl (88px) to --space-6xl (64px). */
  .plx-services, .plx-why, .plx-booking, .plx-about, .plx-testi { padding: var(--space-6xl) 0; }

  /* Nav */
  .plx-burger { display: block; }
  .plx-nav-links {
    position: absolute;
    top: var(--layout-header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-ink-800);
    border-bottom: 1px solid var(--color-grey-900);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
  }
  .plx-nav-links[data-plx-open="true"] {
    height: calc(100dvh - var(--layout-header-height));
    max-height: calc(100dvh - var(--layout-header-height));
    overflow-y: auto;
  }
  .plx-nav-links a {
    padding: var(--space-sm) var(--space-lg);
    width: 100%;
    border-top: 1px solid var(--color-grey-900);
  }
  .plx-nav-links .plx-btn {
    margin: var(--space-sm) var(--space-lg) var(--space-md);
    width: calc(100% - 40px);
  }
  .plx-nav .plx-logo img { height: 38px; }

  /* Hero */
  .plx-hero { padding: var(--space-4xl) 0 var(--space-6xl); }
  .plx-hero-grid { grid-template-columns: 1fr; }
  .plx-hero-logo { display: none; }

  /* Services */
  .plx-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .plx-card { padding: var(--space-lg) var(--space-xs) var(--space-md); }
  /* .card h3 font-size: now responsive via --fs-lg being redefined in variables.css, no override needed here */
  .plx-card small { display: none; }
  .plx-card .plx-book-link { opacity: 1; }
  .plx-icon { width: 54px; height: 54px; }
  .plx-icon svg { width: 26px; height: 26px; }

  /* Why us */
  .plx-why-grid { grid-template-columns: 1fr; }

  /* Booking */
  .plx-booking-grid { grid-template-columns: 1fr; }
  .plx-row { grid-template-columns: 1fr; gap: 0; }
  .plx-form-card { padding: var(--space-xl) var(--space-md); }
  .plx-booking-info { height: auto; }
  .plx-booking-map { height: 210px; min-height: 210px; flex: none; margin-top: var(--space-lg); }

  /* Footer */
  .plx-foot-grid { grid-template-columns: 1fr; }
  .plx-foot-grid .plx-hours-js { white-space: normal; }
  .plx-copy { padding-right: var(--space-7xl); padding-bottom: var(--space-3xl); }

  /* About */
  .plx-about-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .plx-about-points { grid-template-columns: 1fr; }

  /* Testimonials */
  .plx-testi-grid { grid-template-columns: 1fr; }

  /* Floating buttons */
  .plx-fab .plx-call { display: grid; }

  /* Privacy policy page */
  .plx-privacy-hero { padding: var(--space-lg) var(--space-sm) var(--space-md); }
  /* .privacy-hero h1 font-size: now responsive via --fs-4xl being redefined in variables.css, no override needed here */
  /* .privacy-hero p font-size: now responsive via --fs-sm being redefined in variables.css, no override needed here */
  .plx-privacy-content { padding: var(--space-lg) var(--space-sm) var(--space-2xl); }
  /* .privacy-container h2 font-size: now responsive via --fs-xl being redefined in variables.css, no override needed here */
}

/* Mobile landscape (short viewport height, wider than the portrait breakpoint) */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
  .plx-hero-logo { display: none; }
}


/* ==========================================================================
   SM — 576px to 767.98px
   (was: max-width 820, 640, 980, 880, 780, 768px — all applied here)
   ========================================================================== */
@media (min-width: 576px) and (max-width: 767.98px) {

  /* Section vertical padding — .hero/.services/.why/.booking/.about/.testi
     all shrink together from --space-8xl (88px) to --space-6xl (64px). */
  .plx-services, .plx-why, .plx-booking, .plx-about, .plx-testi { padding: var(--space-6xl) 0; }

  /* Nav */
  .plx-burger { display: block; }
  .plx-nav-links {
    position: absolute;
    top: var(--layout-header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-ink-800);
    border-bottom: 1px solid var(--color-grey-900);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
  }
  .plx-nav-links[data-plx-open="true"] {
    height: calc(100dvh - var(--layout-header-height));
    max-height: calc(100dvh - var(--layout-header-height));
    overflow-y: auto;
  }
  .plx-nav-links a {
    padding: var(--space-sm) var(--space-lg);
    width: 100%;
    border-top: 1px solid var(--color-grey-900);
  }
  .plx-nav-links .plx-btn {
    margin: var(--space-sm) var(--space-lg) var(--space-md);
    width: calc(100% - 40px);
  }
  .plx-nav .plx-logo img { height: 38px; }

  /* Hero */
  .plx-hero { padding: var(--space-4xl) 0 var(--space-6xl); }
  .plx-hero-grid { grid-template-columns: 1fr; }
  .plx-hero-logo { display: none; }

  /* Services */
  .plx-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .plx-card { padding: var(--space-lg) var(--space-xs) var(--space-md); }
  /* .card h3 font-size: now responsive via --fs-lg being redefined in variables.css, no override needed here */
  .plx-card small { display: none; }
  .plx-card .plx-book-link { opacity: 1; }
  .plx-icon { width: 54px; height: 54px; }
  .plx-icon svg { width: 26px; height: 26px; }

  /* Why us */
  .plx-why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Booking */
  .plx-booking-grid { grid-template-columns: 1fr; }

  /* Footer */
  .plx-foot-grid { grid-template-columns: 1fr; }

  /* About */
  .plx-about-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }

  /* Testimonials */
  .plx-testi-grid { grid-template-columns: 1fr; }

  /* Floating buttons */
  .plx-fab .plx-call { display: grid; }

  /* Privacy policy page */
  .plx-privacy-hero { padding: var(--space-lg) var(--space-sm) var(--space-md); }
  /* .privacy-hero h1 font-size: now responsive via --fs-4xl being redefined in variables.css, no override needed here */
  /* .privacy-hero p font-size: now responsive via --fs-sm being redefined in variables.css, no override needed here */
  .plx-privacy-content { padding: var(--space-lg) var(--space-sm) var(--space-2xl); }
  /* .privacy-container h2 font-size: now responsive via --fs-xl being redefined in variables.css, no override needed here */
}


/* ==========================================================================
   MD — 768px to 991.98px
   (was: max-width 820, 980, 880px — all applied here)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {

  /* Nav */
  .plx-burger { display: block; }
  .plx-nav-links {
    position: absolute;
    top: var(--layout-header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-ink-800);
    border-bottom: 1px solid var(--color-grey-900);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
  }
  .plx-nav-links[data-plx-open="true"] {
    height: calc(100dvh - var(--layout-header-height));
    max-height: calc(100dvh - var(--layout-header-height));
    overflow-y: auto;
  }
  .plx-nav-links a {
    padding: var(--space-sm) var(--space-lg);
    width: 100%;
    border-top: 1px solid var(--color-grey-900);
  }
  .plx-nav-links .plx-btn {
    margin: var(--space-sm) var(--space-lg) var(--space-md);
    width: calc(100% - 40px);
  }
  .plx-nav .plx-logo img { height: 38px; }

  /* Hero */
  .plx-hero { padding: var(--space-4xl) 0 var(--space-6xl); }
  .plx-hero-grid { grid-template-columns: 1fr; }
  .plx-hero-logo { order: -1; max-width: 340px; }

  /* Services */
  .plx-grid { grid-template-columns: repeat(3, 1fr); }

  /* Why us */
  .plx-why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Booking */
  .plx-booking-grid { grid-template-columns: 1fr; }

  /* Footer */
  .plx-foot-grid { grid-template-columns: 1fr; }

  /* About */
  .plx-about-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }

  /* Floating buttons */
  .plx-fab .plx-call { display: grid; }
}


/* ==========================================================================
   LG — 992px to 1199.98px
   (no rules applied here in the original stylesheet — all max-width
   breakpoints topped out at 980px, so this range renders desktop styles)
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* intentionally empty — desktop layout from main.css applies as-is */
}


/* ==========================================================================
   XL — 1200px to 1399.98px
   (no rules applied here in the original stylesheet)
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  /* intentionally empty — desktop layout from main.css applies as-is */
}


/* ==========================================================================
   XXL — 1400px and up
   (no rules applied here in the original stylesheet)
   ========================================================================== */
@media (min-width: 1400px) {
  /* intentionally empty — desktop layout from main.css applies as-is */
}


/* ==========================================================================
   Accessibility — not a size breakpoint, kept separate
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}
