/* ==========================================================================
   AUTO ESCOLA TOMATE - DESIGN SYSTEM & CUSTOM STYLES
   CFC Paty do Alferes - RJ
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --cor-primaria: #D90429;
  --cor-primaria-hover: #EF233C;
  --cor-primaria-dark: #A0001E;
  --cor-secundaria: #FFB703;
  --cor-secundaria-hover: #FB8500;
  --cor-fundo: #FAFBFC;
  --cor-fundo-card: #FFFFFF;
  --cor-texto: #0F172A;
  --cor-texto-mutado: #64748B;
  --cor-borda: #E2E8F0;
  --sombra-glow: 0 10px 30px -5px rgba(217, 4, 41, 0.35);
  --sombra-card: 0 20px 40px -15px rgba(15, 23, 42, 0.07);
}

/* Base Smooth Scrolling & Typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  overflow-x: hidden;
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.glass-card-dark {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Gradient Backgrounds */
.bg-mesh-hero {
  background-color: #FAFBFC;
  background-image: 
    radial-gradient(at 0% 0%, rgba(217, 4, 41, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 183, 3, 0.10) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(217, 4, 41, 0.05) 0px, transparent 50%);
}

.bg-mesh-dark {
  background: #0B0F19;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(217, 4, 41, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(255, 183, 3, 0.14) 0%, transparent 45%);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #EF233C 0%, #D90429 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%);
}

/* Text Gradients */
.text-gradient-red {
  background: linear-gradient(135deg, #D90429 0%, #FF2A4D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFB703 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow Shadows */
.shadow-glow-red {
  box-shadow: 0 10px 25px -5px rgba(217, 4, 41, 0.35);
}

.shadow-glow-red:hover {
  box-shadow: 0 15px 35px -5px rgba(217, 4, 41, 0.5);
}

.shadow-glow-yellow {
  box-shadow: 0 10px 25px -5px rgba(255, 183, 3, 0.35);
}

.shadow-card-elevated {
  box-shadow: 0 14px 34px -10px rgba(15, 23, 42, 0.08);
}

.shadow-card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.shadow-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px -12px rgba(15, 23, 42, 0.14);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes floatDelayed {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes shine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatDelayed 4.5s ease-in-out 1.5s infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Button Shine Effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: shine 4s infinite linear;
}

/* Interactive Tabs & Badges */
.category-tab-active {
  background: linear-gradient(135deg, #EF233C 0%, #D90429 100%) !important;
  color: #FFFFFF !important;
  border-color: #D90429 !important;
  box-shadow: 0 8px 20px -4px rgba(217, 4, 41, 0.4) !important;
}

.filter-pill-active {
  background-color: #D90429 !important;
  color: #FFFFFF !important;
  border-color: #D90429 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D90429;
}

/* Accordion Transition */
.faq-content {
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Status Indicator Dot */
.status-dot-pulse {
  position: relative;
}

.status-dot-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  animation: pulseGlow 2s infinite;
}

/* Mobile Sticky Bottom Bar spacing */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px;
  }
}

/* ==========================================================================
   SCROLL SUAVE & EFEITOS DE MOVIMENTO (MOTION SYSTEM)
   ========================================================================== */

/* Margem superior nos títulos ao navegar por links âncora */
section[id] {
  scroll-margin-top: 92px;
}

/* Barra de progresso de leitura suave no topo */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #D90429 0%, #FFB703 100%);
  z-index: 9999;
  width: 0%;
  transition: width 0.12s ease-out;
  box-shadow: 0 0 10px rgba(217, 4, 41, 0.7);
  pointer-events: none;
}

/* Sistema de Reveal no Scroll (Entrada Suave) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1);
}

/* Delays escalonados para grids e colunas (Efeito cascata) */
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* Micro-movimento interativo nos cards */
.card-motion {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card-motion:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px -10px rgba(15, 23, 42, 0.12);
}

/* Botão Flutuante Voltar ao Topo */
#back-to-top-btn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

#back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Suporte a preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

