/* ========================================
   RESPONSIVE - Media Queries
   ======================================== */

/* Tablets e dispositivos médios */
@media (max-width: 900px) {
  /* Header */
  .nav {
    display: none;
  }

  /* Hero */
  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 18px;
  }

  /* Cards */
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* WhatsApp */
  .section-whatsapp h3 {
    margin-left: 0;
    text-align: center;
    font-size: 26px;
  }

  .whatsapp-content {
    height: auto;
    flex-direction: column;
    gap: 30px;
  }

  .whatsapp-text {
    width: 100%;
  }

  .whatsapp-text .btn {
    margin: 20px auto 0;
  }

  .whatsapp-figure {
    position: relative;
    transform: none;
    top: auto;
    right: auto;
    justify-content: center;
  }

  .whatsapp-figure img {
    width: 300px;
    padding-top: 0;
    position: relative;
    right: -21rem;
    top: 4rem;
  }

  .whatsapp-float {
    right: 20px;
    top: 20px;
  }

  /* Contact */
  .section-question {
    height: auto;
    padding: 30px 0;
  }

  .section-question h3 {
    font-size: 26px;
  }

  .section-contact h3 {
    font-size: 26px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Contact */
  .contact-form button {
    justify-self: center;
  }
}

/* Telas médias - ajuste WhatsApp */
@media (min-width: 901px) and (max-width: 1200px) {
  .whatsapp-content {
    height: 35rem;
  }

  .whatsapp-text .btn {
    margin-top: 16rem;
  }

  .whatsapp-figure img {
    width: 400px;
    position: relative;
    right: -25rem;
    top: 6rem;
  }

  .section-whatsapp h3 {
    margin-left: 0;
  }
}

/*corrigindo bug do simbolo do whatsapp no float button em telas menores*/
@media (min-width: 601px) and (max-width: 899px) {
  .whatsapp-float {
    top: auto;
  }
}

/* Smartphones */
@media (max-width: 600px) {
  /* Header */
  .brand-text h1 {
    font-size: 16px;
  }

  .brand-badge {
    width: 36px;
    height: 36px;
  }

  /* Hero */
  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 40px 0 30px;
    height: auto;
    min-height: 400px;
  }

  .hero h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  /* Seções */
  .section-help,
  .section-whatsapp,
  .section-contact {
    padding: 30px 0;
  }

  .section-help h3,
  .section-question h3,
  .section-contact h3,
  .section-whatsapp h3 {
    font-size: 22px;
    margin-left: 0;
    text-align: center;
  }

  .section-question {
    height: auto;
    min-height: 200px;
  }

  .lead {
    font-size: 14px;
  }

  /* Cards */
  .card {
    height: 200px;
  }

  .card-content h4 {
    font-size: 18px;
  }

  .card-content p {
    font-size: 14px;
  }

  /* WhatsApp Float */
  .whatsapp-float {
    width: 56px;
    height: 56px;
    top: auto;
    right: content;
  }

  .whatsapp-figure {
    position: relative;
    transform: none;
    pointer-events: auto;
  }

  .whatsapp-figure img {
    width: 250px;
    padding-top: 0;
  }

  .whatsapp-text .btn {
    margin: 20px auto 0;
    bottom: 20px;
    font-size: 20px;
  }

  /* WhatsApp Section */
  .whatsapp-figure img {
    width: 600px;
  }

  .whatsapp-text p {
    font-size: 15px;
  }

  /* Contact Form */
  .contact-form {
    width: 95%;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Evita zoom no iOS */
  }

  /* Footer */
  .footer-brand h4 {
    font-size: 16px;
  }

  .footer-col h5 {
    font-size: 13px;
    margin-top: 20px;
  }

  .footer-col a,
  .footer-col span {
    font-size: 12px;
  }

  .footer-bottom {
    font-size: 11px;
    padding: 12px 10px;
  }

  /* Smartphones pequenos */
  @media (max-width: 375px) {
    .hero h2 {
      font-size: 20px;
    }

    .hero p {
      font-size: 15px;
    }

    .brand-text h1 {
      font-size: 14px;
    }

    .btn {
      font-size: 13px;
      padding: 9px 18px;
    }

    .whatsapp-float {
      width: 50px;
      height: 50px;
      font-size: 18px;
    }
  }

  /* iOS Safari fixes */
  @supports (-webkit-touch-callout: none) {
    body {
      min-height: -webkit-fill-available;
    }

    .hero-content {
      min-height: -webkit-fill-available;
    }

    /* Evita corte em iPhones com notch */
    .site-header {
      padding-top: env(safe-area-inset-top);
    }

    .site-footer {
      padding-bottom: env(safe-area-inset-bottom);
    }
  }

  /* Garante que nenhum elemento ultrapasse a tela */
  @media (max-width: 600px) {
    img,
    svg,
    video {
      max-width: 100%;
      height: auto;
    }

    .hero-overlay,
    .card-overlay,
    .section-whatsapp-overlay,
    .section-contact-overlay {
      left: 0;
      right: 0;
    }
  }
}
