:root {
  --sm-dark: #16181d;
  --sm-red: #c81e2c;
  --sm-red-dark: #9c1521;
  --sm-yellow: #f6a800;
  --sm-yellow-dark: #c97d00;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: #eee;
  background: linear-gradient(170deg, #120404 0%, #2a0a0a 20%, #16181d 45%, #2a0a0a 70%, #120404 100%);
  background-attachment: fixed;
}

/* Sobrescreve o bg-light "chapado" do Bootstrap por um degradê vermelho/preto,
   pra manter o fundo escuro também nas seções internas. */
.bg-light {
  background: linear-gradient(135deg, #2a0808 0%, #3d0d0d 50%, #1a0505 100%) !important;
}

.section-lead,
.text-muted {
  color: #c9a3a3 !important;
}

/* Cartões com fundo branco (ex: formulário de aula experimental) precisam
   de texto escuro mesmo com o body agora claro sobre fundo escuro. */
.bg-white {
  color: #222;
}

/* ===== Header / navegação ===== */
.site-header {
  background: var(--sm-dark);
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--sm-red), var(--sm-yellow));
  border-image-slice: 1;
}
.site-header .navbar-nav .nav-link {
  color: #eee;
  font-weight: 500;
}
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus {
  color: #fff;
}
.site-header .dropdown-menu {
  background: #222;
}
.site-header .dropdown-item {
  color: #eee;
}
.site-header .dropdown-item:hover {
  background: var(--sm-red);
  color: #fff;
}
.btn-cta {
  background: var(--sm-red);
  border-color: var(--sm-red);
  color: #fff;
}
.btn-cta:hover {
  background: var(--sm-red-dark);
  border-color: var(--sm-red-dark);
  color: #fff;
}

/* ===== Carousel ===== */
/* Sem altura fixa: cada banner aparece na proporção/altura natural dele,
   sem cortar (nem esticar) a imagem. */
.hero-carousel .carousel-item {
  background-color: #000;
}
.hero-carousel .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-carousel .carousel-caption {
  bottom: 30px;
  background: rgba(0,0,0,.45);
  border-radius: 8px;
  padding: 10px 20px;
}

/* ===== Destaques ===== */
.destaque-card {
  border: none;
  border-radius: 12px;
  padding: 28px 20px;
  height: 100%;
  color: #fff;
  text-decoration: none;
  display: block;
  transition: transform .15s ease;
}
.destaque-card:hover {
  transform: translateY(-4px);
  color: #fff;
}
.destaque-card i {
  font-size: 2.2rem;
}
.destaque-horarios { background: linear-gradient(135deg,#1f2937,#111827); }
.destaque-experimental { background: linear-gradient(135deg,var(--sm-red),var(--sm-red-dark)); }
.destaque-loja { background: linear-gradient(135deg,var(--sm-yellow),var(--sm-yellow-dark)); }

/* ===== Seções ===== */
.section-title {
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sm-red), var(--sm-yellow));
}
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-lead {
  color: #6c757d;
  max-width: 640px;
}

/* ===== Modalidades ===== */
/* Encolhe a grade toda em 25% (cards menores), mantendo 2/4 por linha. */
.modalidades-row {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}
/* Proporção fixa (retrato 3:4) pra todos os 8 cards carregarem consistentes,
   independente do tamanho original de cada foto. */
.modalidade-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  outline: none;
}
.modalidade-card:focus-visible {
  box-shadow: 0 0 0 3px var(--sm-yellow);
}
.modalidade-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.modalidade-card:hover img {
  transform: scale(1.08);
}
.modalidade-card.sem-foto {
  background: linear-gradient(135deg,#343a40,#16181d);
}

/* ===== Horários ===== */
.horarios-frame-wrap {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
}
.horarios-frame-wrap iframe {
  width: 100%;
  border: none;
  display: block;
}

/* ===== Instrutores ===== */
.instrutor-foto {
  border-radius: 12px;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top center;
}
.instrutor-faixas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.instrutor-faixas li {
  background: linear-gradient(135deg, #fff1cc, #ffe3d9);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .85rem;
  color: #6a2a10;
}

/* ===== Dojos Filiados ===== */
.dojo-card {
  background: linear-gradient(160deg, #241010, #16181d);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 26px 24px;
  height: 100%;
  text-align: center;
}
.dojo-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  margin-bottom: 14px;
}
.dojo-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 16px;
  color: #c9a3a3;
  font-size: .92rem;
}
.dojo-info i {
  color: var(--sm-yellow);
  margin-right: 6px;
}
.dojo-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dojo-maps-link {
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.dojo-maps-link:hover {
  color: var(--sm-yellow);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--sm-dark);
  color: #cfd3d8;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #cfd3d8;
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  background: #0c0d10;
  color: #9aa0a6;
  font-size: .85rem;
}
.text-light-50 {
  color: rgba(255,255,255,.65);
}

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  width: 58px;
  height: 58px;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 1px 1px 4px rgba(0,0,0,.4);
  z-index: 1040;
}
.whatsapp-float:hover {
  color: #fff;
}

.pagina-interna main {
  min-height: 60vh;
}

/* ===== Modal das modalidades (tema escuro, combinando com o site) ===== */
.modal-content {
  background: linear-gradient(160deg, #241010, #16181d);
  color: #eee;
  border: 1px solid rgba(255,255,255,.1);
}
.modal-header,
.modal-footer {
  border-color: rgba(255,255,255,.1);
}
.modal-title {
  font-weight: 700;
}
.modal-modalidade-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
}
