/* =========================================================
   Key Briana Cleaning Services LLC
   responsive.css — breakpoints & mobile navigation
   ========================================================= */

/* ---------- Large desktop down ---------- */
@media (max-width: 1280px) {
  :root {
    --pad-x: 48px;
    --gap-section: 96px;
  }
}

/* ---------- Tablet landscape ---------- */
@media (max-width: 1024px) {
  :root {
    --pad-x: 40px;
    --gap-section: 84px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__media {
    order: -1;
    max-width: 520px;
    margin-inline: auto;
  }

  .about__grid,
  .cta__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cta__media {
    max-width: 420px;
    margin-inline: auto;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

/* ---------- Show mobile nav toggle ---------- */
@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex;
  }

  .header__call {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 340px);
    background: var(--white);
    box-shadow: -20px 0 60px rgba(10, 47, 99, 0.16);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    padding: 100px 32px 40px;
    z-index: 90;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav__link {
    font-size: 1.2rem;
    padding: 12px 0;
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* dim overlay when nav open */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 47, 99, 0.4);
    z-index: 80;
  }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --gap-section: 64px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero__benefits {
    flex-wrap: wrap;
    gap: 20px;
  }

  .services-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .masonry {
    column-count: 2;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline::before {
    display: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  :root {
    --pad-x: 18px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

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

  .hero__actions .btn {
    justify-content: center;
  }

  .rating-card {
    position: static;
    margin-top: 20px;
    max-width: none;
  }

  .services__grid,
  .stats__grid,
  .services-bar__inner {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__social {
    justify-content: center;
  }

  .masonry {
    column-count: 1;
  }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__actions .btn {
    justify-content: center;
  }

  .section__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .ba {
    aspect-ratio: 4 / 3;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }
}

/* ---------- Very small ---------- */
@media (max-width: 360px) {
  .header__logo img {
    width: 120px;
    height: auto;
  }
}
