/* ==========================================================================
   Dra. Mylana Gama - Neurologista | Estilos Responsivos (responsive.css)
   Regras de Flexbox, Ordenação Mobile e Ocultação de Elementos
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablets e Telas Médias (max-width: 992px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding: 4.5rem 0 5rem 0;
  }

  .hero-bg-image {
    background-position: right 5% center;
    opacity: 0.60;
  }

  .hero-content-wrapper {
    max-width: 580px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .address-container {
    gap: 2.5rem;
  }

  /* Seção Áreas de Atuação - 2 cards por linha em tablets */
  .area-card {
    flex: 0 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }

  .footer-grid {
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Dispositivos Móveis / Celulares (max-width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  
  /* 1. Navegação & Cabeçalho Mobile */
  .mobile-menu-btn {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--color-primary);
  }

  .site-nav.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .btn-header-cta {
    width: 100%;
  }

  /* 2. Hero Section Modernizada no Mobile */
  .hero-section {
    padding: 3.5rem 0 4rem 0;
    min-height: auto;
  }

  .hero-bg-image {
    background-position: center top 15%;
    opacity: 0.38;
  }

  .hero-bg-overlay {
    background: linear-gradient(to bottom, 
      rgba(48, 83, 89, 0.94) 0%, 
      rgba(48, 83, 89, 0.88) 50%, 
      #305359 100%);
  }

  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .hero-content-wrapper {
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-brand {
    margin-bottom: 1rem;
  }

  .hero-logo-floating {
    max-width: 180px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
    margin-bottom: 1.35rem;
  }

  .hero-text {
    text-align: left;
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .btn-hero-cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* 2.5. Seção Áreas de Atuação - 1 card por linha no mobile */
  .areas-section {
    padding: 3.5rem 0;
  }

  .areas-grid {
    gap: 1.25rem;
  }

  .area-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }

  /* 3. Seção Atendimento - Empilhamento Vertical de Cards */
  .attendance-section {
    padding: 3.5rem 0;
  }

  .attendance-cards-grid {
    flex-direction: column !important;
    gap: 1.75rem !important;
  }

  .attendance-card {
    max-width: 100% !important;
    padding: 2rem 1.5rem !important;
  }

  .attendance-card-title {
    font-size: 1.55rem;
  }

  /* 4. Seção Endereço - Empilhamento Vertical */
  .clinic-address-section {
    padding: 3.5rem 0;
  }

  .address-container {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .address-info-col {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
  }

  .address-main-title {
    font-size: 2rem;
  }

  .address-map-col {
    width: 100% !important;
  }

  .map-card-frame {
    height: 300px !important;
  }

  /* 5. Seção Agendamento - Empilhamento Vertical */
  .booking-section {
    padding: 3.5rem 0;
  }

  .booking-cards-grid {
    flex-direction: column !important;
    gap: 1.75rem !important;
  }

  .booking-card {
    max-width: 100% !important;
    padding: 2rem 1.5rem !important;
  }

  .phone-contact-pill {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  /* 5.5. Seção Comentários sobre Atendimento - Ajustes Mobile */
  .testimonials-section {
    padding: 3.5rem 0;
  }

  .testimonial-card {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .testimonial-author-name {
    font-size: 1.2rem;
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .quote-mark {
    font-size: 1.75rem;
  }

  .testimonial-carousel-controls {
    gap: 1rem;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }

  /* 6. Rodapé / Footer - REGRA DE OCULTAÇÃO DA FOTO NO MOBILE:
     - Foto da doutora (Parte 1) NÃO deve ser exibida no mobile
     - Parte 2 expande para 100%
  -------------------------------------------------------------------------- */
  .site-footer {
    padding: 3.5rem 0 2rem 0;
  }

  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
    gap: 2rem !important;
  }

  .footer-col-content {
    width: 100% !important;
    align-items: center;
  }

  .footer-contacts-list {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .footer-contact-card {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    text-align: left;
  }

  .footer-bottom-bar {
    margin-top: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Pequenos Smartphones (max-width: 420px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 420px) {
  .hero-logo-floating {
    max-width: 155px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-badge-pill {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }

  .btn-hero-cta {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .area-card {
    padding: 1.25rem 1rem;
  }

  .area-title {
    font-size: 1.12rem;
  }

  .area-description {
    font-size: 0.88rem;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
  }

  .testimonial-author-name {
    font-size: 1.1rem;
  }

  .testimonial-text {
    font-size: 0.92rem;
    line-height: 1.65;
  }

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