/* ========================================
   MOBILE & RESPONSIVE STYLES - AGTUR-AL
   Arquivo consolidado para responsividade
   ======================================== */

/* Reset de Box-Sizing */
* {
  box-sizing: border-box;
}

/* REMOVER TODOS OS SCROLLBARS VISÍVEIS */
*::-webkit-scrollbar {
  display: none;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* Forçar container a não ultrapassar */
.container {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* ========================================
   DESKTOP - Menu sempre visível
   ======================================== */
@media (min-width: 993px) {
  .nav-premium {
    display: flex !important;
    position: static !important;
  }
  
  .menu-mobile-premium {
    display: none !important;
  }
}

/* ========================================
   MOBILE - HEADER E MENU
   ======================================== */
@media (max-width: 992px) {
  /* Header mobile */
  .header-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    padding: 0.75rem 1rem;
    z-index: 1000;
    overflow: visible;
  }
  
  .header-premium .container {
    max-width: 100%;
    padding: 0;
  }
  
  .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  
  .header-logo {
    grid-column: 1;
    justify-self: start;
  }
  
  .logo-premium {
    height: 36px;
    width: auto;
  }
  
  .header-actions {
    grid-column: 2;
    justify-self: center;
  }
  
  .header-actions .btn-premium {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .menu-mobile-premium {
    grid-column: 3;
    justify-self: end;
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 1001 !important;
  }
  
  .menu-mobile-premium span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
  }
  
  /* Animação do hambúrguer virando X */
  .menu-mobile-premium.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px) !important;
  }
  
  .menu-mobile-premium.active span:nth-child(2) {
    opacity: 0 !important;
  }
  
  .menu-mobile-premium.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
  }
  
  /* Menu mobile dropdown - escondido por padrão */
  nav#nav-premium,
  .nav-premium {
    display: none !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: #0a2540 !important;
    padding: 1rem 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: hidden !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    z-index: 99999 !important;
    margin: 0 !important;
  }
  
  /* Menu visível quando ativo */
  nav#nav-premium.active,
  .nav-premium.active,
  nav.nav-premium.active,
  #nav-premium.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Lista de navegação em coluna */
  .nav-list,
  .nav-premium .nav-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  
  /* Links do menu */
  .nav-link,
  .nav-premium .nav-link {
    display: block !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    width: 100% !important;
    text-align: left !important;
    color: #e0e0e0 !important;
    text-decoration: none !important;
  }
  
  .nav-link:hover,
  .nav-premium .nav-link:hover {
    background: rgba(255,255,255,0.05) !important;
    color: #ffffff !important;
  }
  
  .nav-link::after {
    display: none !important;
  }
}

/* ========================================
   MOBILE - HERO
   ======================================== */
@media (max-width: 768px) {
  .hero-premium {
    height: auto;
    min-height: 100vh;
  }
  
  .hero-slide {
    min-height: 100vh;
    height: auto;
    padding: 100px 1rem 60px;
  }
  
  .hero-content {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-logo {
    width: 180px !important;
    height: auto;
    margin-bottom: 20px !important;
  }
  
  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  /* Hero CTAs */
  .hero-cta-group {
    width: 100%;
    padding: 0 1rem;
  }
  
  .hero-cta-group .btn-premium {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  /* Features bar */
  .features-bar {
    padding: 1rem;
  }
  
  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .feature {
    flex-direction: column;
    text-align: center;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 150px !important;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MOBILE - SEÇÕES GERAIS
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .sobre-premium,
  .experiencias-premium,
  .guias-premium,
  .seja-premium,
  .depoimentos {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  /* Grids responsivos */
  .sobre-grid,
  .seja-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .experiencias-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  /* Stats */
  .sobre-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sobre-features-single-column {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .sobre-features-single-column {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MOBILE - FORMULÁRIOS
   ======================================== */
@media (max-width: 768px) {
  .form-premium,
  .seja-form {
    padding: 1.5rem 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    font-size: 16px; /* Evita zoom no iOS */
  }
}

/* ========================================
   MOBILE - FOOTER
   ======================================== */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ========================================
   MOBILE - BOTÕES
   ======================================== */
@media (max-width: 768px) {
  .btn-premium,
  .btn-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn-reserve {
    width: 100%;
  }
}

/* ========================================
   MOBILE - SWIPER/CARROSSEL
   ======================================== */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .guias-slider {
    padding: 0 1rem;
  }
  
  .depoimentos-carousel {
    padding: 0 1rem;
  }
}

/* ========================================
   MOBILE - TIPOGRAFIA
   ======================================== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* ========================================
   PREVENÇÃO DE SCROLL HORIZONTAL
   ======================================== */
.header-premium,
.hero-premium,
.sobre-premium,
.experiencias-premium,
.guias-premium,
.seja-premium,
.depoimentos,
.footer-premium,
section,
.container {
  max-width: 100vw;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Exceções necessárias */
.swiper-slide,
.hero-slide,
img,
video,
svg {
  max-width: 100%;
}

/* Corrigir cards de experiências */
.card-experiencia {
  max-width: 100%;
  overflow: hidden;
}

.card-experiencia-content,
.card-footer,
.card-inclusions {
  max-width: 100%;
  overflow: hidden;
}

.btn-reserve,
.btn-sm {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Formulário mobile */
@media (max-width: 992px) {
  .seja-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .form-premium {
    padding: 1.5rem !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .upload-area {
    padding: 20px !important;
  }

  .upload-preview img {
    width: 120px !important;
    height: 120px !important;
  }

  .beneficios-grid,
  .beneficios-grid-vertical {
    grid-template-columns: 1fr !important;
  }
  
  .beneficio-card {
    flex-direction: row !important;
  }
}

/* ========================================
   PERFORMANCE - Reduzir animações em mobile
   ======================================== */
@media (max-width: 768px) {
  * {
    animation-duration: 0.5s !important;
    transition-duration: 0.3s !important;
  }
}
