
/* =====================================================
   SK EXPRESS RESPONSIVE + SUNSET HERO
   Version 1
   Loaded after all page-specific CSS.
   ===================================================== */

/* BASE RESPONSIVENESS */
html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

img, video, iframe {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
}

/* =====================================================
   STANDARD DESKTOP / LAPTOP
   ===================================================== */

@media (min-width: 1101px) {
  .navwrap .navitems {
    min-width: 0;
  }

  body main > section.hero {
    background-position: center center !important;
  }
}

/* =====================================================
   TABLET / SMALL LAPTOP
   ===================================================== */

@media (min-width: 801px) and (max-width: 1100px) {
  .navwrap {
    gap: 8px !important;
  }

  .navwrap .brand img {
    width: 145px !important;
  }

  .navwrap .navitems {
    min-width: 0 !important;
    gap: 7px !important;
  }

  /* Avoid old desktop pixel shifts on narrower screens */
  .navwrap .navitems > a:not(.sk-nav-action):not(.menu-dot),
  .navwrap .navitems > .dropdown {
    left: 0 !important;
    transform: none !important;
  }

  .navwrap .navitems > a:not(.sk-nav-action),
  .navwrap .dropbutton {
    font-size: 11px !important;
  }

  .navwrap .navitems > a.sk-nav-action {
    font-size: 10px !important;
    padding-inline: 8px !important;
  }

  .hero-content {
    min-width: 0 !important;
  }
}

/* =====================================================
   MOBILE / TABLETS USING MOBILE NAVIGATION
   ===================================================== */

@media (max-width: 800px) {
  .wrap {
    padding-inline: 18px !important;
  }

  .topinner {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .navwrap {
    height: auto !important;
    min-height: 76px !important;
    padding-block: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .navwrap .brand {
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  .navwrap .brand img {
    width: clamp(155px, 30vw, 205px) !important;
    height: auto !important;
  }

  /* Existing JS controls the hamburger navigation */
  .navwrap .mobiletoggle {
    flex-shrink: 0;
  }

  .navwrap .navitems > a:not(.sk-nav-action):not(.menu-dot),
  .navwrap .navitems > .dropdown {
    left: 0 !important;
    transform: none !important;
  }

  body main > section.hero {
    background-position: 48% center !important;
  }

  body main > section.hero .hero-content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-width: 0 !important;
    height: auto !important;
  }

  body main > section.hero .hero-copy {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 70px 0 28px !important;
  }

  body main > section.hero h1 {
    max-width: 100% !important;
    font-size: clamp(35px, 6.5vw, 58px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
    overflow-wrap: break-word;
  }

  body main > section.hero .hero-copy > p {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  body main > section.hero .hero-art {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 300px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body main > section.hero .hero-vehicle {
    width: min(100%, 680px) !important;
    max-width: 100% !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  .trackform {
    max-width: 100% !important;
  }

  /* Shared content */
  .innergrid,
  .two-col,
  .statement-grid,
  .contact-grid,
  .footer-grid,
  .cta-section {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    gap: 30px !important;
  }

  .service-grid,
  .guides {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .sk-products-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .skms-showcase-card {
    grid-template-columns: 1fr !important;
  }

  .skms-feature-grid,
  .skms-process {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  /* Keep sticky service cards readable */
  .sk-sticky-service-stack .sk-stack-card {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

/* =====================================================
   IPHONE / ANDROID PHONES
   ===================================================== */

@media (max-width: 600px) {
  .wrap {
    padding-inline: 16px !important;
  }

  .section {
    padding-block: 54px !important;
  }

  body main > section.hero {
    background-position: 43% center !important;
  }

  body main > section.hero .hero-content {
    padding-inline: 16px !important;
  }

  body main > section.hero .hero-copy {
    padding-top: 52px !important;
    padding-bottom: 18px !important;
  }

  body main > section.hero h1 {
    font-size: clamp(31px, 8.2vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
  }

  body main > section.hero .eyebrow {
    font-size: 10px !important;
    letter-spacing: 1.2px !important;
  }

  body main > section.hero .hero-art {
    height: 225px !important;
  }

  body main > section.hero .hero-vehicle {
    width: 100% !important;
    max-width: 100% !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  .trackform {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  .trackform input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  .trackform button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero-actions {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .service-grid,
  .guides,
  .faqgrid,
  .sk-products-grid,
  .form-row,
  .track-panel,
  .skms-feature-grid,
  .skms-process {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .contact-form {
    padding: 22px 16px !important;
  }

  .skms-poster {
    height: auto !important;
    min-height: 0 !important;
  }

  .skms-poster img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* =====================================================
   VERY SMALL PHONES
   ===================================================== */

@media (max-width: 380px) {
  .navwrap .brand img {
    width: 148px !important;
  }

  body main > section.hero h1 {
    font-size: 30px !important;
  }

  body main > section.hero .hero-art {
    height: 175px !important;
  }

  .topinner {
    font-size: 10px !important;
  }
}

/* =====================================================
   LARGE DESKTOPS AND BIG SCREENS
   ===================================================== */

@media (min-width: 1600px) {
  body main > section.hero {
    background-position: center center !important;
  }

  .wrap {
    max-width: 1400px;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  body main > section.hero .hero-vehicle {
    animation: none !important;
  }
}
