/* =========================================
   1. VARIÁVEIS E RESET (GLOBAL)
   ========================================= */
:root {
  /* PALETA DE CORES DA MARCA */
  --brand-navy: #2C3E50;   /* Azul Profundo */
  --brand-teal: #16A085;   /* Verde Teal */
  --brand-yellow: #F39C12; /* Amarelo Ouro */
  
  /* SISTEMA */
  --bg-body: #FFFFFF;
  --bg-surface: #F8FAFC;
  --text-main: #2C3E50;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  
  --max-width: 1100px;
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .btn { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Wrapper Centralizador */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }


/* =========================================
   2. HEADER E NAVEGAÇÃO
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 40px; }

/* Menu Desktop */
.nav-desktop { display: flex; gap: 32px; align-items: center; }

.nav-desktop a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-desktop a:hover { color: var(--brand-navy); }

/* Botão do Header */
.nav-desktop a.btn-navy {
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 50px;
  background-color: var(--brand-navy);
}
.nav-desktop a.btn-navy:hover {
  background-color: #1a252f;
  transform: translateY(-2px);
}

/* Botão Hambúrguer (Mobile) - Invisível no Desktop */
.mobile-menu-btn, .mobile-nav-overlay { display: none; }


/* =========================================
   3. ELEMENTOS DE UI (BOTÕES E SEÇÕES)
   ========================================= */

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  width: fit-content;
}

.btn-navy { background-color: var(--brand-navy); color: #ffffff; }
.btn-navy:hover { background-color: #1a252f; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2); }

.btn-primary { background-color: var(--brand-teal); color: white; }
.btn-primary:hover { background-color: #138D75; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(22, 160, 133, 0.2); }

.btn-white { background: white; color: var(--brand-navy); }
.btn-white:hover { background: var(--brand-yellow); color: white; }

/* Seções */
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-surface); }

.section-title {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-title h2 { font-size: 36px; color: var(--brand-navy); margin-bottom: 16px; }
.section-title p { color: var(--text-muted); font-size: 18px; }


/* =========================================
   4. GRIDS E CARDS (Estrutura Principal)
   ========================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Coluna da esquerda maior (para o form) */
  gap: 60px;
}

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(44, 62, 80, 0.08);
  border-color: var(--brand-teal);
}

.icon-box {
  width: 56px; height: 56px;
  background: var(--bg-surface);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 24px;
  color: var(--brand-teal);
}

.card h3 { font-size: 22px; margin-bottom: 12px; color: var(--brand-navy); }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; flex-grow: 1; }

.card-link {
  font-weight: 700; color: var(--brand-teal);
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
}
.card-link:hover { gap: 12px; }

/* Listas dentro dos Cards */
.card-list li, .feature-list li, .list-check li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.card-list li::before, .feature-list li::before, .list-check li::before {
  content: '•';
  position: absolute; left: 0; color: var(--brand-teal); font-weight: bold;
}


/* =========================================
   5. COMPONENTES ESPECÍFICOS (Edu, Song Mini, Contato)
   ========================================= */

/* --- Audio Player nos Cards --- */
.audio-meta {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--brand-teal); font-weight: 700; margin-bottom: 8px; display: block;
}
.audio-block { width: 100%; margin-top: auto; }
audio { width: 100%; height: 40px; border-radius: 30px; }

/* --- Processo Criativo (Steps Grid) --- */
/* O HTML usa class="steps-grid" e "step-item" */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colunas no Desktop */
  gap: 32px;
  margin-top: 48px;
}

.step-item {
  border-left: 3px solid var(--brand-teal);
  padding-left: 24px;
  display: flex; flex-direction: column;
}

.step-item h4 { font-size: 20px; color: var(--brand-navy); margin-bottom: 12px; font-weight: 700; }
.step-item p { font-size: 15px; color: var(--text-muted); }

/* --- Página de Contato --- */
.contact-form {
  background: white; padding: 40px;
  border-radius: var(--radius); border: 1px solid var(--border-light);
}
.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--brand-navy); font-size: 14px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border-light); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--text-main);
  transition: var(--transition);
}
.form-textarea { height: 120px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.contact-info-card { display: flex; flex-direction: column; gap: 32px; }
.checklist-box {
  background: var(--bg-surface); padding: 32px;
  border-radius: var(--radius); border: 1px solid var(--border-light);
}
.checklist-box h4, .info-item h4 { margin-bottom: 16px; color: var(--brand-navy); }
.checklist-box ul li { margin-bottom: 12px; font-size: 14px; color: var(--text-muted); }


/* =========================================
   6. HERO E DEPOIMENTOS
   ========================================= */
.hero-section {
  background-color: var(--brand-navy); color: white;
  padding: 100px 0; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-block; background: rgba(22, 160, 133, 0.2); color: var(--brand-teal);
  border: 1px solid rgba(22, 160, 133, 0.4); padding: 6px 16px; border-radius: 100px;
  font-size: 12px; text-transform: uppercase; font-weight: 700; margin-bottom: 24px;
}
.hero-content h1 {
  font-size: clamp(40px, 5vw, 64px); line-height: 1.1; font-weight: 800; margin-bottom: 24px;
}
.highlight { color: var(--brand-yellow); }
.hero-content p { font-size: 18px; color: #CBD5E1; margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; }

/* Visual Abstrato no Hero */
.hero-card-abstract {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); border-radius: 24px; padding: 40px; transform: rotate(2deg);
}

/* Depoimentos */
.testimonials-section { padding: 100px 0; background-color: var(--bg-body); text-align: center; }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px; margin-top: 48px;
}
.testimonial-card {
  background: var(--bg-surface); padding: 64px 32px 40px 32px;
  border-radius: 24px; position: relative; text-align: left;
  border: 1px solid var(--border-light); display: flex; flex-direction: column;
}
.testimonial-card::before {
  content: '“'; font-family: 'Outfit', sans-serif; font-size: 80px; line-height: 1;
  color: var(--brand-teal); opacity: 0.2; position: absolute; top: 20px; right: 24px;
}
.testimonial-text { font-size: 16px; color: var(--text-main); font-style: italic; margin-bottom: 24px; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
  width: 48px; height: 48px; background-color: var(--brand-navy); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.author-info h4 { font-size: 16px; color: var(--brand-navy); margin: 0; }
.author-info span { font-size: 13px; color: var(--text-muted); }

/* CTA Final */
.cta-final {
  background: var(--brand-teal); color: white; padding: 80px 0; text-align: center;
  border-radius: 32px; margin: 80px 24px;
}
.cta-final h2 { color: white; margin-bottom: 24px; }
.cta-final p { opacity: 0.9; max-width: 600px; margin: 0 auto 40px; font-size: 18px; }


/* =========================================
   7. FOOTER
   ========================================= */
footer {
  background-color: var(--bg-surface); border-top: 1px solid var(--border-light);
  padding-top: 80px; margin-top: auto;
}
.footer-container {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 60px;
}
.footer-brand { max-width: 380px; }
.footer-logo { height: 36px; margin-bottom: 20px; }
.footer-tagline { font-size: 15px; color: var(--text-muted); }
.footer-links h4 { font-size: 16px; color: var(--brand-navy); margin-bottom: 20px; text-transform: uppercase; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--text-muted); transition: var(--transition); width: fit-content; }
.footer-nav a:hover { color: var(--brand-teal); transform: translateX(4px); }

/* Botão WhatsApp Footer (Ajuste Fino) */
.footer-whatsapp-btn {
  display: inline-flex;       /* Mantém o comportamento de caixa flexível */
  align-items: center;        /* Alinha verticalmente no centro exato */
  justify-content: center;    /* Centraliza o conteúdo horizontalmente */
  gap: 10px;                  /* Espaço controlado entre ícone e texto */
  
  background-color: white;
  border: 1px solid var(--border-light);
  padding: 10px 24px;         /* Padding equilibrado */
  border-radius: 50px;
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  
  width: fit-content;         /* Garante que o botão abrace o conteúdo */
  white-space: nowrap;        /* O segredo: impede a quebra de linha */
  line-height: 1;             /* Remove altura de linha extra que desalinha o texto */
}

/* Regra para o ícone do WhatsApp não "amassar" nem criar espaço extra */
.footer-whatsapp-btn img {
  display: block;             /* Remove espaço fantasma abaixo da imagem */
  width: 20px;
  height: 20px;
  flex-shrink: 0;             /* Garante que o ícone nunca diminua */
  margin: 0;                  /* Garante zero margem */
}

.footer-whatsapp-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
  transform: translateY(-2px);
}

.footer-bottom { border-top: 1px solid var(--border-light); padding: 24px 0; text-align: center; font-size: 13px; color: var(--text-muted); }

/* Botão Voltar ao Topo */
#backToTop {
  position: fixed; bottom: 30px; right: 30px; z-index: 99;
  width: 50px; height: 50px; border: none; border-radius: 50%;
  background-color: var(--brand-teal); color: white; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }


/* =========================================
   8. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
  
  /* Ajustes Gerais */
  .hero-grid, .grid-2 { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-visual { display: none; }
  .nav-desktop { display: none; }
  .hero-actions { justify-content: center; }
  .cta-final { margin: 0 0 60px 0; border-radius: 0; }
  
  /* --- Menu Mobile (Gaveta) --- */
  .mobile-menu-btn {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 32px; height: 24px; background: transparent; border: none; cursor: pointer; z-index: 1002;
  }
  .mobile-menu-btn span {
    display: block; width: 100%; height: 3px; background-color: var(--brand-navy);
    border-radius: 3px; transition: 0.3s;
  }
  
  .mobile-nav-overlay {
    display: flex; position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
    background-color: var(--bg-body); flex-direction: column; align-items: center; justify-content: center;
    gap: 32px; transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15); z-index: 1001;
  }
  .mobile-nav-overlay.active { right: 0; }
  .mobile-nav-overlay a { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: var(--brand-navy); }
  
  /* Botão Fale Conosco Branco no Mobile */
  .mobile-nav-overlay a.btn-navy { color: #ffffff !important; margin-top: 16px; padding: 12px 32px; background-color: var(--brand-navy); border-radius: 50px; }

  /* Animação do Ícone */
  .mobile-menu-btn.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  /* --- Correção Steps Grid (Processo) --- */
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  
  /* --- Correção Footer (Alinhado à Esquerda) --- */
  footer { padding-bottom: 100px; }
  .footer-container {
    grid-template-columns: 1fr !important; gap: 32px;
    text-align: left !important; align-items: flex-start !important;
    padding-left: 10px; padding-right: 10px;
  }
  .footer-brand, .footer-links, .footer-nav {
    display: flex; flex-direction: column; align-items: flex-start !important; width: 100%;
  }
  .footer-whatsapp-btn { width: 100%; max-width: 100%; justify-content: center; margin-top: 10px; }
}