/* ============================================
   RESPONSIVE — Mobile First Overrides
   ============================================ */

/* ─── Tablet (max 1024px) ─── */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    gap: var(--sp-2xl);
  }
}

/* ─── Mobile Landscape (max 768px) ─── */
@media (max-width: 768px) {
  :root {
    --nav-h: 70px;
    --nav-h-scrolled: 60px;
  }

  .navbar__menu {
    display: none;
  }

  .navbar__cta.desktop {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile {
    display: flex;
  }

  .hero {
    min-height: 85vh;
    padding-top: var(--nav-h);
  }

  .hero__subtitle {
    font-size: var(--fs-lg);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero__bricks {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-sm);
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: var(--sp-2xl) var(--sp-lg);
    border-radius: var(--r-lg);
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .service-hero {
    padding: calc(var(--nav-h) + var(--sp-2xl)) 0 var(--sp-2xl);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }

  .timeline {
    padding-left: var(--sp-xl);
  }

  .manifesto__text {
    font-size: var(--fs-2xl);
  }

  .quote-block__text {
    font-size: var(--fs-2xl);
  }

  .certifications-grid {
    gap: var(--sp-lg);
  }

  .certification-logo {
    height: 36px;
  }

  .section-header {
    margin-bottom: var(--sp-2xl);
  }

  .section--impact::before {
    background-position: center 62%;
    background-size: 88vw;
    opacity: 0.06;
    animation-duration: 20s;
  }

  .section--impact::after {
    opacity: 0.42;
    animation-duration: 24s;
  }
}

/* ─── Mobile Portrait (max 480px) ─── */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--sp-md);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    padding: var(--sp-md);
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-sm);
  }

  .client-logo {
    max-height: 45px;
    padding: var(--sp-sm);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .countries-row {
    gap: var(--sp-sm);
  }

  .country-flag {
    font-size: var(--fs-xs);
  }

  .whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: var(--sp-md);
    right: var(--sp-md);
  }

  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ─── Large screens (min 1440px) ─── */
@media (min-width: 1440px) {
  :root {
    --max-w: 1400px;
  }

  .hero__content {
    max-width: 900px;
  }
}

/* ─── Prefers reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ─── Print ─── */
@media print {
  .navbar,
  .whatsapp-btn,
  .preloader,
  .footer__social,
  .hero__bricks {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
