/**
 * CONECTE-SE — SENAC SERGIPE 2026
 * Responsive CSS (responsive.css)
 * Ajustes Finos para Dispositivos Móveis, Tablets, Desktops e Telas Grandes
 */

/* ==========================================================================
   SMARTPHONES COMPACTOS (Menor que 480px)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --header-height: 70px;
  }

  .site-container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

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

  .brand-event-name {
    font-size: 0.75rem;
  }

  .hero-brand-logo {
    max-width: 280px;
  }

  .hero-illustration-img {
    max-width: 320px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .badge-purple-part,
  .badge-orange-part {
    font-size: 1.6rem;
    padding: 8px 12px;
  }

  .badge-orbit-ring {
    display: none; /* Simplifica em telas ultra compactas para evitar overflow */
  }

  .date-highlight-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    width: 100%;
  }

  .countdown-unit {
    min-width: 64px;
    padding: 8px 10px;
  }

  .countdown-number {
    font-size: var(--font-size-2xl);
  }

  .countdown-separator {
    display: none;
  }

  .schedule-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .btn-primary-glow,
  .btn-secondary-glass {
    width: 100%;
  }

  .hero-cta-group {
    width: 100%;
  }

}

/* ==========================================================================
   DISPOSITIVOS MÓVEIS E TABLETS EM RETRATO (Até 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Despoluição total do cabeçalho no mobile */
  .site-header .nav-actions .btn-primary-glow {
    display: none !important;
  }

  .hero-bg-img {
    object-position: center 60% !important;
  }

  /* Botão Fixo de Inscrição Mobile Centralizado no Bottom da Tela */
  .mobile-fixed-bottom-bar {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 0 var(--space-md);
    pointer-events: none;
  }

  .mobile-fixed-cta-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-cta);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: var(--font-weight-extrabold);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 44px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 106, 0, 0.65);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .mobile-fixed-cta-btn:hover,
  .mobile-fixed-cta-btn:active {
    transform: scale(1.04);
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 32px rgba(255, 106, 0, 0.8);
  }

  #backToTopBtn {
    bottom: 84px !important;
  }
}

/* ==========================================================================
   TABLETS EM RETRATO (481px a 768px)
   ========================================================================== */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-illustration-img {
    max-width: 420px;
  }

  .countdown-grid {
    gap: var(--space-xs);
  }
}

/* ==========================================================================
   AJUSTES DE ÁREA DE TOQUE (TOUCH TARGETS >= 44px)
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .mobile-nav-link,
  .schedule-tab-btn,
  .filter-chip,
  .faq-trigger {
    min-height: 44px;
  }

  /* Desativa hover complexo em touch */
  .card-glass:hover,
  .pillar-card:hover,
  .track-card:hover,
  .lab-card:hover {
    transform: none;
  }

  /* Oculta lente de mouse em touch puro */
  .optical-lens {
    display: none !important;
  }
}

/* ==========================================================================
   TELAS GRANDES E ULTRAWIDE (Acima de 1440px)
   ========================================================================== */
@media (min-width: 1440px) {
  :root {
    --container-max-width: 1360px;
  }

  .hero-illustration-img {
    max-width: 620px;
  }
}
