/* =====================================================
   1. FONTES (Display + Texto + Expressiva)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&family=Bebas+Neue&display=swap');

/* =====================================================
   2. DESIGN TOKENS (VARIÁVEIS GLOBAIS)
   Centralizar aqui evita refatorações futuras
   ===================================================== */

:root {
  /* ---------- CORES BASE (IDENTIDADE) ---------- */
  --color-primary: #E85D1F;   /* Terracota vivo */
  --color-secondary: #9E1B32; /* Vermelho ritual */
  --color-accent: #F2B705;    /* Dourado queimado */
  --color-balance: #1F3D2B;   /* Verde musgo */

  /* ---------- NEUTROS ---------- */
  --black-pure: #0E0E0E;
  --black-soft: #1A1A1A;
  --gray-dark: #2A2A2A;
  --gray-medium: #CCCCCC;
  --white-soft: #F7F4EF;

  /* ---------- FUNDOS ---------- */
  --bg-main: var(--black-pure);
  --bg-section: var(--black-soft);
  --bg-light: var(--white-soft);

  /* ---------- TEXTO ---------- */
  --text-main: var(--white-soft);
  --text-secondary: var(--gray-medium);

  /* ---------- TÍTULOS ---------- */
  --heading-primary: var(--color-accent);
  --heading-secondary: var(--color-primary);

  /* ---------- INTERAÇÃO ---------- */
  --accent-default: var(--color-primary);
  --accent-hover: var(--color-secondary);

  /* ---------- UI ---------- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
}

/* =====================================================
   3. RESET E BASE
   ===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================
   4. TIPOGRAFIA
   ===================================================== */

h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: var(--heading-primary);
}

h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--heading-secondary);
}

h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--heading-primary);
}

p {
  font-size: 1.05rem;
  color: var(--text-main);
}

/* =====================================================
   5. CONTAINERS E GRID
   ===================================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   6. NAVEGAÇÃO (GLASSMORPHISM LEVE)
   ===================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  padding: 0px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 56px;
  transform: translateY(2px); /* micro ajuste visual */
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-menu a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-default);
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--accent-default);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* =====================================================
   7. HERO SECTION (IMPACTO + MOVIMENTO)
   ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex; /* Adicionado */
  flex-direction: column; /* Adicionado */
  justify-content: center; /* Centraliza verticalmente no desktop */
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.hero-bg img.active {
  opacity: 1;
}

/* Overlay orgânico */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14,14,14,0.45),
    rgba(14,14,14,0.75)
  );
}

/* Conteúdo */
.hero-content {
  position: absolute;
  z-index: 2;
  top: 60%;
  transform: translateY(-50%);
  max-width: 720px;
}

.hero-logo {
  max-width: 140px;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 24px 0 36px;
  color: var(--text-secondary);
  
}

/* =====================================================
   8. BOTÕES (MICRO-INTERAÇÃO: GINGA)
   ===================================================== */

.btn-primary {
  display: inline-block;
  background: var(--accent-default);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.8px;
  transition: transform var(--transition-fast),
              background var(--transition-base),
              box-shadow var(--transition-base);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 93, 31, 0.35);
}

/* =====================================================
   9. SEÇÕES DE CONTEÚDO
   ===================================================== */

.home-about {
  padding: 5.5rem 0 7rem;
  background: var(--bg-section);
}

.home-about .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alinha Título, Texto e Botão à esquerda */
  text-align: left;
}

.home-about p {
  margin: 1.5rem 0 2rem 0; /* Espaçamento: Topo 1.5rem, Zero nas laterais */
  padding: 0;
  max-width: 65ch;
  line-height: 1.7;
}

/* Ajuste para a última seção (Vem Aprender) */
.home-about:last-of-type {
  background: rgba(255, 255, 255, 0.03);
}

/* Remove qualquer centralização que existia aqui antes */
.home-about:last-of-type .container {
  align-items: flex-start;
  text-align: left;
}

/* =====================================================
   10. FOOTER (LIMPEZA TOTAL E ALINHAMENTO)
   ===================================================== */

.site-footer {
  background: var(--bg-section);
  padding: 60px 0;
  color: var(--white-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand social"
    "links social";
  gap: 20px;
  align-items: center;
}

.footer-brand { 
  grid-area: brand; 
}

.footer-brand p {
  text-align: left;
  margin: 0;
  color: var(--white-soft);
}

.footer-links { 
  grid-area: links; 
  display: flex; 
  gap: 25px; 
  flex-wrap: wrap; 
  margin-top: 10px;
}

.footer-social { 
  grid-area: social; 
  display: flex; 
  gap: 15px; 
  justify-content: flex-end; 
}

/* Reset de Links para matar o Roxo/Azul */
.footer-links a, 
.footer-social a {
  text-decoration: none !important;
  color: var(--white-soft) !important; /* Força o branco gelo */
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

/* Ícones Sociais - Tamanho e Cor */
.footer-social svg {
  fill: currentColor !important;
  width: 24px;
  height: 24px;
  display: block;
}

/* Interação */
.footer-links a:hover {
  color: var(--color-accent) !important;
}

.footer-social a.facebook:hover  { color: #1877F2 !important; }
.footer-social a.instagram:hover { color: #E4405F !important; }
.footer-social a.whatsapp:hover  { color: #25D366 !important; }
.footer-social a.youtube:hover   { color: #FF0000 !important; }

/* AJUSTE MOBILE */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "social";
    text-align: center;
    gap: 35px;
  }

  .footer-brand p,
  .footer-links, 
  .footer-social {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* =====================================================
   11. ACESSIBILIDADE
   ===================================================== */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* =====================================================
   12. HERO — RESPONSIVIDADE MOBILE
   ===================================================== */

@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
    align-items: flex-end;
    
  }

  .hero-content {
    top: 62%;
    padding: 0 1.5rem;
  }

  .hero-logo {
    max-width: 96px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 2.4rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 65ch;
    margin: 20px 0 36px;
    color: var(--text-secondary);
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
}

/* Telas muito pequenas */
@media (max-width: 420px) {

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-logo {
    max-width: 80px;
  }
}

/* =====================================================
   13. MENU MOBILE — HAMBURGER
   ===================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-main);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: var(--bg-section);
    flex-direction: column;
    gap: 0;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu a {
    display: block;
    padding: 18px 24px;
  }

  .nav-menu.open {
    max-height: 400px;
  }
}

/* =====================================================
   14. FOOTER FINAL
   ===================================================== */

.site-footer {
  background: var(--bg-section);
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand social"
    "links social";
  gap: 20px;
  align-items: center;
}

.footer-brand { grid-area: brand; }
.footer-links { 
  grid-area: links; 
  display: flex; 
  gap: 25px; 
  flex-wrap: wrap; 
}
.footer-social { 
  grid-area: social; 
  display: flex; 
  gap: 15px; 
  justify-content: flex-end; 
}

/* Cores e Reset */
.footer-links a, 
.footer-social a {
  text-decoration: none;
  color: var(--white-soft) !important;
  transition: all 0.3s ease;
}

.footer-social svg {
  fill: currentColor;
  width: 24px;
  height: 24px;
}

/* Cores Hover */
.footer-social a.facebook:hover  { color: #1877F2 !important; }
.footer-social a.instagram:hover { color: #E4405F !important; }
.footer-social a.whatsapp:hover  { color: #25D366 !important; }
.footer-social a.youtube:hover   { color: #FF0000 !important; }

/* AJUSTE MOBILE CORRIGIDO */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Uma coluna só */
    grid-template-areas:
      "brand"
      "links"
      "social";
    text-align: center;
    gap: 35px;
  }

  .footer-brand, .footer-links, .footer-social {
    justify-content: center; /* Centraliza o conteúdo flex */
    text-align: center;
  }

  .footer-links {
    flex-direction: column; /* Links em lista vertical */
    gap: 15px;
  }

  .site-footer p {
    text-align: center;
  }
}