/*
Theme Name: Team Reis Jiu-Jitsu
Description: Tema personalizado para a academia Team Reis Jiu-Jitsu
Version: 1.0
Author: Team Reis
*/

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #222222;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background-color: #1a1a1a;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Remover menu hambúrguer e navegação */
.menu-toggle,
.main-navigation,
.nav-menu,
#site-navigation {
  display: none !important;
}

/* Ocultar qualquer menu de navegação */
nav,
.navigation,
.menu {
  display: none !important;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
}

.site-description {
  color: #cbd5e1;
  margin-top: 0.5rem;
}

.main-navigation {
  margin-top: 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #dc2626;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.menu-toggle-icon::before {
  top: -8px;
}

.menu-toggle-icon::after {
  bottom: -8px;
}

.menu-toggle.active .menu-toggle-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .menu-toggle-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #dc2626;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #94a3b8;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #dc2626;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #b91c1c;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: 50px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: #dc2626;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Cards */
.card {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  background-image: url('images/novo-banner-site.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

@media (min-width: 768px) {
  .hero {
    min-height: 500px;
  }
}

/* Seções */
.section {
  padding: 5rem 1.5rem;
}

.section-dark {
  background-color: #1a1a1a;
}

.section-graphite {
  background-color: #222222;
}

/* Tipografia */
.text-center {
  text-align: center;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

/* Espaçamentos */
.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Flexbox */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

/* Carrossel de professores */
.teachers-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.teacher-card {
  flex-shrink: 0;
  width: 256px;
  height: 384px;
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* Centralizar carrossel no desktop */
@media (min-width: 768px) {
  .teachers-carousel {
    justify-content: center;
    padding: 0 2rem;
  }
  
  .teacher-card {
    margin: 0 0.75rem;
  }
}

.teacher-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards de público-alvo */
.audience-card {
  position: relative;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
  background-color: #1a1a1a;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.audience-card:hover {
  transform: scale(1.05);
}

.audience-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.audience-card:hover .audience-card-bg {
  opacity: 0.5;
}

.audience-card-content {
  position: relative;
  z-index: 10;
}

.audience-icon {
  width: 48px;
  height: 48px;
  background-color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

/* Depoimentos */
.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  flex-shrink: 0;
  width: 320px;
  scroll-snap-align: center;
  background-color: #222222;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dc2626;
  margin: 0 auto 0.75rem;
}

/* Controles do carrossel */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4b5563;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background-color: #dc2626;
}

/* Horários */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.schedule-day {
  margin-bottom: 1rem;
}

.schedule-day h4 {
  color: #dc2626;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.schedule-day ul {
  color: #cbd5e1;
  font-size: 0.875rem;
  list-style: none;
}

.schedule-day li {
  margin-bottom: 0.25rem;
}

/* Gradiente final */
.section-gradient {
  background: linear-gradient(to right, #222222, #1a1a1a);
}

/* Botão voltar ao topo */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: #dc2626;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
}

/* Animações */
.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .grid-cols-2,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  
  .text-4xl {
    font-size: 1.875rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* Container para centralizar a imagem do Mestre Reis */
.mestre-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Imagem do Mestre Reis responsiva - Base */
.mestre-image {
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
}

/* Ajustes específicos para mobile */
@media (max-width: 767px) {
  /* Centralizar carrossel no mobile */
  .teachers-carousel {
    justify-content: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .teacher-card {
    min-width: 200px;
    height: 300px;
  }
}

/* Utilitários */
.text-slate-300 {
  color: #cbd5e1;
}

.text-slate-200 {
  color: #e2e8f0;
}

.text-slate-400 {
  color: #94a3b8;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.bg-red-600 {
  background-color: #dc2626;
}

.bg-red-700 {
  background-color: #b91c1c;
}

.bg-graphite {
  background-color: #222222;
}

.bg-graphite-dark {
  background-color: #1a1a1a;
}

/* Ícones */
.icon {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl {
  width: 32px;
  height: 32px;
}

/* Estados de hover */
.hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Loading states */
.loading {
  pointer-events: none;
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states para acessibilidade */
.btn:focus,
.nav-menu a:focus,
.carousel-dot:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid #ffffff;
  }
  
  .badge {
    border: 1px solid #ffffff;
  }
}
