:root {
  --primary: #4c1d95; /* Roxo muito escuro */
  --primary-2: #6b46c1; /* Roxo escuro */
  --secondary: #f59e0b;
  --accent: #10b981;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.6;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.logo-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; border-radius: 8px; font-weight: 800;
}
.logo-text { color: var(--primary); letter-spacing: 0.2px; }

.nav { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; border: none; background: transparent; font-size: 1.6rem; color: var(--text); }
.nav-list { display: flex; list-style: none; gap: 1rem; margin: 0; padding: 0; align-items: center; }
.nav-list a { text-decoration: none; color: var(--text); font-weight: 500; padding: 0.5rem 0.75rem; border-radius: 8px; }
.nav-list a:hover { color: var(--primary-2); background: #eef2ff; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
.btn-primary { background: var(--primary-2); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { background: #1a46c4; }
.btn-outline { border: 2px solid var(--primary-2); color: var(--primary-2); }
.btn-outline:hover { background: #eef2ff; }
/* Botões no hero sobre fundo azul */
.hero .btn-primary { background: #ffffff; color: var(--primary); }
.hero .btn-primary:hover { background: #f3f4f6; }
.hero .btn-outline { border-color: #ffffff; color: #ffffff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: #ffffff; }

.hero {
  background: var(--primary);
  color: #ffffff;
}
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { color: #ffffff; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 1rem; }
.hero p { color: #ffffff; margin: 0 0 1.25rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-side { display: grid; align-content: start; gap: 1.25rem; }
.hero-side img { width: min(60vw, 520px); max-width: 100%; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 0.5rem; }

.card { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; box-shadow: var(--shadow); }
.card-icon { font-size: 1.8rem; color: var(--primary-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.lead { font-size: 1.1rem; color: var(--text-light); }
.stack { margin: 1rem 0; }
.list { margin: 0.5rem 0 0; padding-left: 1rem; }
.list li { margin: 0.3rem 0; }

.about-aside { display: grid; gap: 0.75rem; }
.feature-box { display: flex; align-items: center; gap: 0.6rem; background: #f1f5f9; border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem 0.9rem; }
.feature-box i { color: var(--primary-2); }

/* Form */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
.form-row { display: grid; margin-bottom: 0.75rem; }
.form-row label { font-weight: 600; margin-bottom: 0.25rem; }
.form-row input, .form-row textarea { border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem; font-size: 1rem; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid #bfdbfe; border-color: #93c5fd; }
.form-feedback { margin-top: 0.5rem; font-weight: 600; }

/* Footer */
.footer { background: #111827; color: #9ca3af; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; }
.footer a { color: #e5e7eb; text-decoration: none; margin-left: 1rem; }
.footer a:hover { text-decoration: underline; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; display: grid; place-items: center;
  background: #22c55e; color: white; border-radius: 50%; box-shadow: var(--shadow);
}
.whatsapp-float:hover { filter: brightness(1.05); }
.whatsapp-float i { font-size: 1.6rem; }

/* Headings */
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 0.75rem; color: var(--primary); }
h3 { margin: 0.2rem 0 0.5rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: 1fr 1fr; margin-top: 1rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { position: fixed; top: 64px; right: 12px; width: calc(100% - 24px); background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 0.5rem; flex-direction: column; gap: 0; display: none; }
  .nav-list.show { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a { display: block; padding: 0.9rem; }
  .hero-cards { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-side img { width: min(90vw, 420px); height: auto; }
}

/* About cards (Missão, Visão, Valores) */
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
/* Centralização dos cards (desktop) */
.about-cards .card { text-align: center; }
.about-cards .card-icon { display: block; margin: 0 auto 0.25rem; }
@media (max-width: 980px) { .about-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .about-cards { grid-template-columns: 1fr; } }

/* Smooth anchor offset for sticky header */
:target { scroll-margin-top: 80px; }