/* SmartParking responsive layout
   Mobile-first refinements across required breakpoints. */

@media (min-width: 1024px) {
  .hero {
    min-height: 0;
    padding: 3.05rem 0 3.85rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

@media (min-width: 1180px) {
  .hero h1 span,
  .hero h1 em {
    white-space: nowrap;
  }
}

@media (max-width: 1199px) {
  .lot-row__bays {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .nav__links {
    display: none;
  }

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

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: auto;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    padding: 0.8rem 1rem;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    box-shadow: var(--shadow-md);
    z-index: 60;
  }

  .hero__layout,
  .hero__grid,
  .demo-board,
  .product-layout,
  .detail-layout,
  .contact-page,
  .footer__grid,
  .split-visual,
  .article,
  .why__intro,
  .about-intro,
  .about-office,
  .trust-bar__row {
    grid-template-columns: 1fr;
  }

  .trust-bar p {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .trust-bar p:last-child {
    border-bottom: 0;
  }

  .why__grid,
  .stack-group__grid--5,
  .stack-group__grid--4,
  .about-principles,
  .about-process,
  .about-layers,
  .about-cover,
  .about-audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lot-row__bays {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stack-hub {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .stack-hub__path {
    max-width: 220px;
  }

  .contact-direct {
    position: static;
  }

  .hero-showcase {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .journey-track,
  .journey-track--4 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .journey-track::before {
    display: none;
  }

  .journey-step {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0.85rem 1rem;
    padding-bottom: 1.15rem;
  }

  .journey-step article {
    grid-column: 2;
  }

  .journey-node {
    grid-row: 1 / span 2;
    align-items: flex-start;
    justify-content: center;
    position: relative;
  }

  .journey-node::after {
    content: "";
    position: absolute;
    top: 38px;
    bottom: -1.15rem;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 184, 212, 0.7), rgba(0, 184, 212, 0.08));
    transform: translateX(-50%);
  }

  .journey-step:last-child {
    padding-bottom: 0;
  }

  .journey-step:last-child .journey-node::after {
    display: none;
  }

  .journey-node span {
    box-shadow: 0 0 0 6px var(--color-navy-900);
  }

  .journey-step__media {
    height: 118px;
  }

  .page-hero--photo {
    min-height: 220px;
    padding: 2.6rem 0 1.45rem;
  }

  .hero {
    padding: 2.25rem 0 2rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .sticky-cta {
    position: static;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 2.15rem 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .team-grid,
  .lot,
  .why__grid,
  .stack-group__grid--5,
  .stack-group__grid--4,
  .stack-group__grid--1,
  .about-principles,
  .about-process,
  .about-layers,
  .about-cover,
  .about-audience {
    grid-template-columns: 1fr;
  }

  .lot,
  .live-cards {
    grid-template-columns: 1fr;
  }

  .campus {
    height: 220px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .stack-group--planned .integration {
    flex-direction: column;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.15rem;
    gap: 0.9rem;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }

  .footer__bottom,
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-row,
  .article {
    grid-template-columns: 1fr;
  }

  .occ-dash__bar,
  .occ-dash__foot {
    align-items: flex-start;
  }

  .occ-dash__foot {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .demo-log {
    flex: none;
  }

  .demo-actions {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    width: min(100% - 1.25rem, var(--container));
  }

  .hero__actions .btn,
  .cta-band__actions .btn {
    width: 100%;
  }

  .site-header .btn,
  .nav-toggle {
    width: auto;
  }

  .hero__actions,
  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .logo span {
    font-size: 1rem;
  }

  .value-card {
    padding: 0.95rem;
  }

  .journey-step__media {
    height: 110px;
  }

  .occ-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 374px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .lot-row__bays {
    gap: 4px;
  }

  .slot {
    min-height: 68px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1240px;
    --container-wide: 1320px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  .pip i {
    animation: none;
  }
}
