/* ============================================================
   responsive.css
   Breakpoints: 1024px (tablet landscape), 768px (tablet portrait
   / mobile landscape), 480px (mobile portrait).
   Mobile-first overrides are avoided in favor of a desktop-first
   cascade to match how style.css is authored.
   ============================================================ */

/* ------------------------------------------------------------
   UP TO 1024px (Tablet)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 4.5rem;
    --gutter: 1.5rem;
  }

  .nav-links { gap: 1.6rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual { order: -1; }
  .hero-visual-frame { max-width: 280px; margin: 0 auto; }
  .hero-content { max-width: 100%; }
}

/* ------------------------------------------------------------
   UP TO 860px (Nav collapses to hamburger)
   ------------------------------------------------------------ */
@media (max-width: 860px) {
  .nav-links,
  .nav-right .nav-social,
  .nav-right .lang-toggle { display: none; }

  .nav-toggle { display: flex; }

  .nav-right { gap: 0.8rem; }

  .nav-mobile-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-soft);
  }
}

/* ------------------------------------------------------------
   UP TO 768px (Mobile landscape / small tablet)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .hero { padding-top: calc(var(--nav-height) + 1.5rem); min-height: auto; padding-bottom: 3rem; }

  .hero-title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-mission { font-size: 1.3rem; }

  .hero-actions { flex-wrap: wrap; }

  .hero-stats {
    flex-wrap: wrap;
    row-gap: 1.8rem;
  }

  .hero-stat {
    flex: 1 1 45%;
    border-right: none;
    padding-right: 0;
  }
}

/* ------------------------------------------------------------
   UP TO 480px (Mobile portrait)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  :root { --gutter: 1.25rem; }

  .hero-title { font-size: 2.4rem; }
  .hero-role { font-size: 1.15rem; }
  .hero-mission { font-size: 1.1rem; }

  .btn { padding: 0.75rem 1.3rem; font-size: 0.82rem; }

  .hero-stat { flex: 1 1 100%; }
}

/* ------------------------------------------------------------
   COMPANIES / CASE STUDIES
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .section-head p { padding-bottom: 0; max-width: 100%; }
}

@media (max-width: 768px) {
  .companies { padding: 2.25rem 0; }
  .marquee-list { gap: 1.5rem; padding-right: 1.5rem; }
  .logo-item { height: 34px; }

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

/* ------------------------------------------------------------
   AUDIENCE DASHBOARD / CONTENT FORMATS
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .dashboard-kpis { grid-template-columns: repeat(3, 1fr); }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-card--age { grid-column: 1 / -1; }

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

@media (max-width: 768px) {
  .dashboard-kpis { grid-template-columns: repeat(2, 1fr); }

  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-card--age { grid-column: 1; }
  .dash-card--engagement { grid-column: 1; }
  .dash-card--engagement .bar-list { flex-direction: column; gap: 1.1rem; }
  .dash-card { padding: 1.6rem 1.5rem; }

  .content-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
}

@media (max-width: 480px) {
  .dashboard-kpis { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .donut-wrap { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}

/* ------------------------------------------------------------
   NODRA / WHY BRANDS / TESTIMONIALS / CONTACT / FOOTER
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; gap: 2rem; }
}

@media (max-width: 768px) {
  .nodra-mention-inner { flex-direction: column; align-items: flex-start; }
  .reasons-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-links { flex-direction: column; width: 100%; }
  .contact-link { justify-content: center; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
