/* ==========================================================================
   Krazy Modz Philippines Inc. — Responsive Styles
   Breakpoints: 480px, 768px, 1024px, 1200px, 1440px
   ========================================================================== */

@media (min-width: 1440px) {
  .container {
    max-width: var(--container-xl);
    padding-inline: 2rem;
  }

  .hero-slide__content {
    max-width: 760px;
  }

  .section {
    padding-block: 5rem;
  }
}

@media (min-width: 1200px) {
  .cards-grid--branches {
    grid-template-columns: repeat(4, 1fr);
  }

  .car-makes-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-nav,
  .header-actions .btn-secondary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-actions .btn-primary {
    display: inline-flex;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-height: 320px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding-block: 3rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .hero-carousel {
    height: min(max(56.25vw, 360px), calc(85dvh - var(--header-height)));
    min-height: 360px;
  }

  .hero-slide__content {
    max-width: 100%;
  }

  .hero-slide__content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-slide__content p {
    font-size: 1rem;
  }

  .hero-slide__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slide__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-controls {
    bottom: 1.25rem;
  }

  .hero-arrow {
    display: none;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .trust-metric__value {
    font-size: 1.1rem;
  }

  .cards-grid,
  .cards-grid--4 {
    grid-template-columns: 1fr;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .car-makes-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .mobile-cta-bar {
    display: grid;
  }

  body.has-mobile-cta {
    padding-bottom: var(--mobile-cta-height);
  }

  body.has-mobile-cta main {
    padding-bottom: var(--mobile-cta-height);
  }

  .header-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }

  .section {
    padding-block: 2.5rem;
  }

  .hero-carousel {
    height: min(max(56.25vw, 320px), calc(80dvh - var(--header-height)));
    min-height: 320px;
  }

  .hero-slide__actions .btn {
    max-width: 100%;
  }

  .trust-bar {
    padding-block: 1rem;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-metric__value {
    font-size: 1rem;
  }

  .trust-metric__label {
    font-size: 0.65rem;
  }

  .card__body {
    padding: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .car-makes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .variant-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .map-placeholder {
    aspect-ratio: 4 / 3;
  }

  .branch-map__layout {
    grid-template-columns: 1fr;
  }

  .branch-map__sidebar {
    border-right: none;
    border-bottom: 1px solid var(--km-border);
    max-height: 220px;
  }

  .branch-map__details {
    flex-direction: column;
    align-items: stretch;
  }

  .branch-map__details .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .logo-text-full {
    display: none;
  }

  .logo-text-short {
    display: inline;
  }
}

@media (min-width: 361px) {
  .logo-text-short {
    display: none;
  }
}
