/* ===================================================================
   TEMPLÁRIOS CURSOS PROFISSIONALIZANTES - DESIGN SYSTEM & STYLES
   Paleta inspirada na logo: Preto obsidiana, Aço blindado, Vermelho Carmesim Templário e Branco Platina
   =================================================================== */

:root {
  /* Cores Principais */
  --bg-dark: #0b0d11;
  --bg-card: #13171f;
  --bg-card-hover: #1a202c;
  --bg-surface: #1e2433;
  --bg-surface-light: #262d3e;
  
  /* Cores Templárias de Destaque */
  --crimson-primary: #d90429;
  --crimson-light: #ef233c;
  --crimson-dark: #8d0801;
  --crimson-glow: rgba(217, 4, 41, 0.35);
  --crimson-gradient: linear-gradient(135deg, #ef233c 0%, #d90429 50%, #8d0801 100%);
  --crimson-gradient-subtle: linear-gradient(135deg, rgba(217, 4, 41, 0.15) 0%, rgba(13, 16, 23, 0.8) 100%);
  
  /* Tons Metálicos e Texto */
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-crimson: rgba(217, 4, 41, 0.3);
  --border-crimson-hover: rgba(239, 35, 60, 0.7);

  /* Elementos de Interface */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(217, 4, 41, 0.25);
  --shadow-glow-strong: 0 0 35px rgba(217, 4, 41, 0.5);

  /* Fontes */
  --font-heading: 'Cinzel', serif, system-ui;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-pure);
  font-weight: 700;
  line-height: 1.25;
}

.brand-font {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utilitários */
.text-crimson {
  color: var(--crimson-light);
}

.bg-crimson {
  background: var(--crimson-gradient);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 9999px;
}

.badge-crimson {
  background: rgba(217, 4, 41, 0.18);
  color: #ff6b81;
  border: 1px solid rgba(217, 4, 41, 0.4);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--crimson-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff3b53 0%, #d90429 100%);
  box-shadow: 0 8px 25px rgba(217, 4, 41, 0.55);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ava {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.btn-ava:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ===================================================================
   HEADER & NAVBAR
   =================================================================== */
.topbar {
  background: rgba(11, 13, 17, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-info {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-badge {
  background: rgba(217, 4, 41, 0.15);
  color: #ff6b81;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 13, 17, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 13, 17, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 0.65rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--crimson-primary);
  box-shadow: 0 0 15px var(--crimson-glow);
  background: #000000;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.1;
}

.brand-title span {
  color: var(--crimson-light);
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--crimson-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Botão AVA no Header */
.nav-ava-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8 !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
  transition: var(--transition);
}

.nav-ava-link:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.nav-ava-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.nav-cta-btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(217, 4, 41, 0.12) 0%, rgba(11, 13, 17, 0.95) 70%),
              url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23262d3e" fill-opacity="0.12" fill-rule="evenodd"><path d="M0 40L40 0H20L0 20M40 40V20L20 40"/></g></svg>');
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 4, 41, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.35rem;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ffffff 0%, #ff6b81 40%, #ef233c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.8rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.hero-feature-item i {
  color: var(--crimson-light);
  font-size: 1rem;
}

/* Imagem da Hero com o Cavaleiro Templário */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: radial-gradient(circle, rgba(217, 4, 41, 0.25) 0%, rgba(19, 23, 31, 0.95) 75%);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1rem;
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(180deg, rgba(239, 35, 60, 0.6), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-img {
  max-height: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
  transition: transform 0.5s ease;
}

.hero-img:hover {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(19, 23, 31, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(217, 4, 41, 0.2);
  color: var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.floating-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.floating-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================================
   STATS BAR
   =================================================================== */
.stats-section {
  background: #0f1218;
  border-bottom: 1px solid var(--border-color);
  padding: 2.2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(217, 4, 41, 0.12);
  border: 1px solid rgba(217, 4, 41, 0.25);
  color: var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================================================
   BANNER AVA EM DESTAQUE
   =================================================================== */
.ava-banner-section {
  padding: 3rem 0;
  background: linear-gradient(180deg, #0b0d11 0%, #11151f 100%);
  border-bottom: 1px solid var(--border-color);
}

.ava-banner-card {
  background: radial-gradient(circle at 85% 50%, rgba(56, 189, 248, 0.12) 0%, rgba(19, 23, 31, 0.95) 70%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
}

.ava-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

.ava-banner-content {
  max-width: 680px;
}

.ava-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.ava-banner-title {
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.ava-banner-title span {
  color: #38bdf8;
}

.ava-banner-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ava-banner-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.ava-url-hint {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-family: monospace;
}

/* ===================================================================
   CURSOS SECTION
   =================================================================== */
.section-padding {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header .badge {
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Barra de Pesquisa e Filtros */
.courses-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--crimson-primary);
  box-shadow: 0 0 15px rgba(217, 4, 41, 0.25);
}

.search-input::placeholder {
  color: var(--text-dark);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark);
  font-size: 1rem;
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  padding: 0.25rem;
}

.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-btn:hover {
  background: var(--bg-surface-light);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--crimson-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.35);
}

.filter-count {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
}

/* Grid de Cursos */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--crimson-gradient);
  opacity: 0;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-crimson-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.course-card:hover::before {
  opacity: 1;
}

.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.course-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(217, 4, 41, 0.12);
  border: 1px solid rgba(217, 4, 41, 0.25);
  color: var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
}

.course-card:hover .course-icon-box {
  background: var(--crimson-gradient);
  color: #ffffff;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
}

.course-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-meta i {
  color: var(--crimson-light);
}

.course-pricing {
  margin-bottom: 1.35rem;
}

.price-original {
  font-size: 0.82rem;
  color: var(--text-dark);
  text-decoration: line-through;
}

.price-promo-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.price-promo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.price-pix {
  font-size: 0.75rem;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
}

.price-installments {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* Empty State de Busca */
.courses-empty {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
  display: none;
}

.courses-empty i {
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.courses-empty h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ===================================================================
   VANTAGENS / DIFERENCIAIS
   =================================================================== */
.features-section {
  background: #0f1218;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  transition: var(--transition);
  position: relative;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-crimson);
  box-shadow: var(--shadow-card);
}

.feature-box-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(217, 4, 41, 0.12);
  border: 1px solid rgba(217, 4, 41, 0.25);
  color: var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.35rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===================================================================
   CERTIFICAÇÃO SECTION
   =================================================================== */
.cert-section {
  position: relative;
  overflow: hidden;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.cert-points {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cert-point-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cert-point-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(217, 4, 41, 0.15);
  color: var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.cert-point-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.cert-point-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.cert-preview-card {
  position: relative;
  background: #1a202c;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #181d28 0%, #11141c 100%);
}

.cert-preview-inner {
  border: 1px dashed rgba(245, 158, 11, 0.5);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
}

.cert-mockup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cert-mockup-header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.cert-mockup-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #fcd34d;
}

.cert-mockup-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.cert-mockup-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 0 2rem 0.5rem;
  margin-bottom: 1rem;
}

.cert-mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-dark);
}

.cert-seal {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid #fcd34d;
  color: #fcd34d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(245, 158, 11, 0.1);
}

/* ===================================================================
   DEPOIMENTOS SECTION
   =================================================================== */
.testimonials-section {
  background: #0f1218;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--crimson-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================================
   FAQ SECTION (ACCORDION)
   =================================================================== */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-crimson);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-icon {
  color: var(--crimson-light);
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding-bottom: 1.35rem;
}

/* ===================================================================
   FOOTER (RODAPÉ) COM DESENVOLVIDO POR MIBOUTECH
   =================================================================== */
.site-footer {
  background: #07090c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson-primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-logo {
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--crimson-primary);
  color: #ffffff;
  border-color: var(--crimson-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--crimson-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-contact-item i {
  color: var(--crimson-light);
  margin-top: 0.25rem;
}

.footer-ava-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1rem;
}

.footer-ava-box h5 {
  font-size: 0.92rem;
  color: #38bdf8;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-ava-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* RODAPÉ INFERIOR & MIBOUTECH */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.copyright-text {
  color: var(--text-muted);
}

.developer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: var(--transition);
}

.developer-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--crimson-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.2);
}

.developer-badge strong {
  color: #ff4757;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.developer-badge i {
  color: #ff4757;
  font-size: 0.75rem;
}

/* ===================================================================
   MODALS (DETALHES DO CURSO & MATRÍCULA)
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  position: relative;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: rgba(19, 23, 31, 0.98);
  backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--crimson-primary);
  color: #ffffff;
}

.modal-body {
  padding: 2rem;
}

.modal-modules-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}

.modal-module-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-main);
}

.modal-module-item i {
  color: #22c55e;
  margin-top: 0.2rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(19, 23, 31, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modal de Matrícula / Inscrição Rápida */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--crimson-primary);
  box-shadow: 0 0 12px rgba(217, 4, 41, 0.25);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.payment-opt {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.payment-opt.active, .payment-opt:hover {
  border-color: var(--crimson-primary);
  background: rgba(217, 4, 41, 0.1);
}

.payment-opt i {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  display: block;
  color: var(--crimson-light);
}

.payment-opt span {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
}

/* ===================================================================
   WHATSAPP FLOATING BUTTON
   =================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}

.whatsapp-floating:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #11141c;
  color: #ffffff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.whatsapp-floating:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ===================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-features-list {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-floating-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 90%;
    max-width: 340px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .features-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar-info {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f1218;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .ava-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .features-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

