/*
Theme Name: Inteligência Escolar — Alta Conversão
Theme URI: https://inteligenciaescolar.com.br
Author: Danilo Santos de Souza
Description: Tema focado em clareza e conversão. Atualizado para Ecossistema 2026 (Alunos, Profs, Escolas).
Version: 2.0.0
Requires PHP: 7.4
Text Domain: inteligencia-escolar
*/

/* =========================================
   1. VARIÁVEIS (DESIGN TOKENS)
   ========================================= */
:root {
  /* Cores da Marca */
  --brand: #1f6feb;        /* Azul Principal */
  --brand-dark: #154a9e;   /* Azul Hover */
  --brand-light: #e8f1ff;  /* Azul Fundo Suave */
  --accent: #00c2ff;       /* Ciano (Detalhes) */
  
  /* Cores Funcionais */
  --whatsapp: #1db954;     /* Verde Oficial */
  --whatsapp-dark: #169c44;
  --error: #e63946;
  
  /* Cores Neutras */
  --bg: #f6f8fc;           /* Fundo da Página */
  --white: #ffffff;
  --ink: #0e1726;          /* Texto Principal (Quase preto) */
  --muted: #5b6b86;        /* Texto Secundário */
  --line: #e2e8f0;         /* Bordas */

  /* Espaçamento e Formas */
  --radius: 12px;          
  --radius-sm: 6px;
  --shadow: 0 4px 12px rgba(14, 23, 38, 0.08);
  --shadow-hover: 0 10px 25px rgba(14, 23, 38, 0.12);
  
  /* Tipografia */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;     /* Largura do conteúdo */
}

/* =========================================
   2. RESET E BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 18px; 
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1.5rem; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--brand-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Container Centralizado */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   3. HEADER E NAVEGAÇÃO
   ========================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

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

.logo a {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

/* Menu Desktop */
.main-navigation ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.main-navigation a:hover, 
.main-navigation .current-menu-item a {
  color: var(--brand);
}

@media (max-width: 768px) {
  .site-header { padding: 15px 0; }
  .main-navigation { display: none; } /* Mobile Menu simples para depois */
}

/* =========================================
   4. BOTÕES E CTAS 
   ========================================= */
.button, button, input[type="submit"], .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s ease;
  background-color: var(--brand);
  color: white !important; 
  box-shadow: 0 4px 6px rgba(31, 111, 235, 0.2);
}

.button:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(31, 111, 235, 0.3);
}

/* Botão WhatsApp */
.btn-whatsapp {
  background-color: var(--whatsapp);
  box-shadow: 0 4px 6px rgba(29, 185, 84, 0.2);
}
.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
}

/* Botão Outline */
.btn-outline {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--muted) !important;
  box-shadow: none;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand) !important;
  background: transparent;
}

/* =========================================
   5. SISTEMA DE GRID (Home - 3 Pilares)
   ========================================= */
/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto 60px;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    margin-top: -10px;
}

/* Grid de 3 Colunas (A nova estratégia) */
.triad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Individual */
.feature-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

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

.feature-tag {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    width: fit-content;
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 25px; }

@media (max-width: 900px) {
    .triad-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 40px 0; }
}

/* =========================================
   6. RODAPÉ (Footer)
   ========================================= */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a {
  margin: 0 10px;
  color: var(--ink);
  font-weight: 600;
}