/* Breakpoints: 1200, 980, 768, 480 — mobile-first overrides of the desktop layout */

@media (max-width: 1200px) {
  :root { --container: 100%; }
  .container { width: min(100% - 2rem, 1120px); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .process, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .stats, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-cta { display: none; }
  .hero { min-height: 62vh; align-items: center; padding-top: 2.5rem; }
  .hero-hud { display: none; }
  .dropdown.wide { columns: 1; }

  .nav-toggle, .hamburger { display: inline-grid; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 85;
    width: min(22rem, 88vw);
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 0.75rem) 1rem 1.5rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--line);
    transform: translateX(110%);
    transition: transform 0.22s ease;
    overflow: auto;
  }
  .nav-open .nav { transform: none; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .nav-list > li > a,
  .nav-list > li > .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
  }
  .has-dropdown { width: 100%; }
  .dropdown {
    position: static;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 0.6rem;
    transition: max-height 0.22s ease;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    max-height: 0;
    visibility: visible;
  }
  .has-dropdown.is-open > .dropdown {
    max-height: 32rem;
    padding-bottom: 0.4rem;
    overflow: auto;
  }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  .section { padding: 3.25rem 0; }
  .hero {
    min-height: auto;
    padding: 2.25rem 0 3rem;
  }
  .hero-content { max-width: none; }
  .hero-actions .btn { flex: 1 1 10rem; }
  .grid-2,
  .grid-3,
  .grid-4,
  .blog-grid,
  .form-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .process, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 6.75rem; }
  .mobile-cta { display: grid; }
  .wa-float, .whatsapp-float { display: none; }
  .map-embed iframe { height: 260px; }
  a, button, .chip, .btn, .nav-list a, summary {
    touch-action: manipulation;
  }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 1.25rem); }
  h1 { font-size: 1.65rem; }
  .lead { font-size: 1.02rem; }
  .header-inner { gap: 0.5rem; }
  .logo img { height: 36px; }
  .stats, .trust, .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 auto; width: 100%; }
  .cluster .btn { width: auto; }
  .page-404 .cluster .btn { width: 100%; }
}

@media (min-width: 769px) {
  .mobile-cta { display: none !important; }
}
