/* ============================================
   RESPONSIVE — Media queries (mobile-first)
   Adaptações progressivas por breakpoint.
   ============================================ */

/* ——————————————————————————————————————————
   MOBILE (até 767px)
   Base: estilos mobile-first já nos outros CSS.
   Aqui: ajustes específicos para telas pequenas.
   —————————————————————————————————————————— */

@media (max-width: 767px) {

  /* Navbar mobile */
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-8)) var(--space-8) var(--space-8);
    gap: var(--space-6);
    transition: right var(--transition-slow);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: var(--font-size-lg);
    width: 100%;
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* CTA dentro do menu mobile */
  .navbar-links .btn {
    width: 100%;
    text-align: center;
    margin-top: var(--space-4);
  }

  .navbar-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-proof {
    gap: var(--space-6);
  }

  .hero-stat-number {
    font-size: var(--font-size-xl);
  }

  /* Grids se tornam coluna única */
  .services-grid,
  .differentials-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Contato vira coluna única */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Footer vira 2 colunas */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* CTA box */
  .cta-box {
    padding: var(--space-10) var(--space-6);
  }

  /* WhatsApp mobile */
  .whatsapp-float {
    bottom: var(--space-5);
    right: var(--space-5);
    width: 52px;
    height: 52px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  /* Section header */
  .section-header {
    margin-bottom: var(--space-10);
  }

  /* Navbar e logo responsivos — mobile */
  :root {
    --nav-height: 80px;
  }

  .navbar-inner {
    justify-content: center;
    position: relative;
  }

  .navbar-toggle {
    position: absolute;
    right: 0;
  }

  .navbar-logo {
    display: flex;
    justify-content: center;
  }

  .navbar-logo-img {
    height: 100px;
    margin-left: 0;
  }

  .navbar-logo-img--footer {
    height: 140px;
    margin-left: 0;
  }
}

/* Celulares pequenos — iPhone SE (375), Galaxy S8+ (360), Galaxy Z Fold 5 (344) */
@media (max-width: 375px) {
  :root {
    --nav-height: 70px;
  }

  .navbar-logo-img {
    height: 80px;
  }

  .navbar-logo-img--footer {
    height: 56px;
  }
}

/* ——————————————————————————————————————————
   TABLET (768px - 1023px)
   —————————————————————————————————————————— */

@media (min-width: 768px) and (max-width: 1023px) {

  .navbar-links {
    gap: var(--space-5);
  }

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

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

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Navbar e logo responsivos — tablet */
  :root {
    --nav-height: 110px;
  }

  .navbar-inner {
    justify-content: center;
    position: relative;
  }

  .navbar-logo {
    display: flex;
    justify-content: center;
  }

  .navbar-logo-img {
    height: 160px;
    margin-left: 0;
  }

  .navbar-logo-img--footer {
    height: 140px;
    margin-left: 0;
  }
}

/* Tablet grande — Surface Pro 7 (912), iPad Pro (1024 em portrait=768 CSS) */
@media (min-width: 912px) and (max-width: 1023px) {
  :root {
    --nav-height: 130px;
  }

  .navbar-logo-img {
    height: 200px;
  }
}

/* ——————————————————————————————————————————
   DESKTOP (1024px+)
   —————————————————————————————————————————— */

@media (min-width: 1024px) {

  .hero-content {
    max-width: 680px;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .differentials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ——————————————————————————————————————————
   DESKTOP GRANDE (1280px+)
   —————————————————————————————————————————— */

@media (min-width: 1280px) {
  :root {
    --container-padding: var(--space-8);
  }
}