/* ==========================================================================
   INTEGRAR FISIOTERAPIA — RESPONSIVIDADE & ADAPTAÇÕES
   Ajustes precisos para Mobile First, Tablet e Desktop
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET & TELAS MÉDIAS (Max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: calc(100vh - 76px);
    background-color: var(--brand-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(88, 84, 49, 0.15);
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .header-actions .btn {
    display: none;
  }

  .grid-2,
  .grid-asymmetric-left,
  .grid-asymmetric-right,
  .care-pathways-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .triad-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  .hero-section {
    text-align: left;
  }

  .hero-image-frame {
    max-width: 420px;
  }

  .hero-image-frame img {
    height: 440px;
  }

  .hero-floating-card {
    left: 10px;
    bottom: 10px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE (Max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .header-inner {
    height: 68px;
  }

  .main-nav {
    top: 68px;
    height: calc(100vh - 68px);
    max-width: 100%;
  }

  .brand-logo-img {
    height: 40px;
  }

  .brand-logo-name {
    font-size: 1.15rem;
    letter-spacing: 0.22em;
  }

  .hero-section {
    padding-top: calc(68px + 2rem);
  }

  .hero-image-frame {
    max-width: 100%;
    border-radius: 80px 80px 20px 20px;
  }

  .hero-image-frame img {
    height: 380px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .manifesto-box {
    padding: 2rem 1.25rem;
  }

  .timeline-stepper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }

  .triad-flow-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .about-image-card img {
    height: 380px;
  }

  .micro-hero-frame img {
    height: 320px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 0.75rem 1.15rem;
    font-size: 0.85rem;
  }

  .whatsapp-float-text {
    display: inline;
  }

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

/* --------------------------------------------------------------------------
   TELAS MUITO PEQUENAS (Max-width: 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .specialty-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .faq-button {
    padding: 1.15rem 1.25rem;
  }

  .faq-question {
    font-size: 0.98rem;
  }

  .whatsapp-float-text {
    display: none;
  }

  .whatsapp-float {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

/* --------------------------------------------------------------------------
   PREFERS REDUCED MOTION (ACESSIBILIDADE)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
