/*
Theme Name: ROTA
Theme URI: https://rota.academy/wordpress
Author: ROTA
Description: Tema institucional da ROTA — Engenharia de Vendas. Construído a partir do Sistema de Marca oficial (tokens de cor, tipografia e espaçamento).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rota
*/

/* ===== Tokens (Sistema de Marca) ===== */
:root {
  --paper: #ffffff;
  --ink: #0a0e27;
  --verde-marca: #2d8659;
  --verde-acao: #1f6b47;
  --cinza-tecnico: #6b7280;
  --linha: #e2e5eb;
  --verde-suave: #eaf4ee;
  --verde-negativo: #4fb37f;
  --cinza-negativo: #c8cedb;
  --barro: #a36a42;
  --barro-claro: #fff7f0;

  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 999px;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--space-3) var(--space-4);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ===== Layout ===== */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.section { padding: 96px 0; }
.section--tight { padding: 80px 0; }

/* ===== Typography scale ===== */
h1, .h1 { font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; }
h2, .h2 { font-size: 28px; line-height: 34px; font-weight: 700; }
h3, .h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
.text-lead { font-size: 18px; line-height: 28px; color: var(--cinza-tecnico); }
.text-muted { color: var(--cinza-tecnico); }
.text-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn-sm { font-size: 15px; padding: 12px 22px; }
.btn-primary { background: var(--verde-acao); color: var(--paper); }
.btn-primary:hover { background: #17573a; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-on-dark { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-on-dark:hover { background: var(--paper); color: var(--ink); }
.btn-fff { background: var(--paper); color: var(--verde-acao); border-color: var(--paper); }

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; background: var(--paper); z-index: 50;
}
.site-header .wrap {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.site-logo { display: flex; align-items: center; gap: 14px; }
.site-logo svg { height: 34px; width: auto; display: block; }
.site-logo .tagline {
  font-size: 11px; line-height: 14px; color: var(--cinza-tecnico); font-weight: 500;
  border-left: 1px solid var(--linha); padding-left: 14px;
}
.main-nav ul { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--cinza-tecnico); }
.main-nav a:hover { color: var(--ink); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; opacity: 0.6; pointer-events: none; }
.hero .wrap {
  padding-top: 88px; padding-bottom: 96px;
  display: flex; align-items: center; gap: 56px; flex-wrap: wrap; position: relative;
}
.hero-copy { flex: 1 1 440px; min-width: 320px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .text-lead { margin-bottom: 32px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { flex: 1 1 400px; min-width: 300px; position: relative; padding: 20px; }
.corner-mark { position: absolute; opacity: 0.6; }
.corner-mark.tl { top: 0; left: 0; }
.corner-mark.br { bottom: 0; right: 0; }

/* ===== Seção escura (inimigo) ===== */
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: var(--cinza-negativo); font-size: 17px; line-height: 27px; }
.section-dark .accent { color: var(--verde-negativo); font-weight: 600; }
.section-dark .measure { max-width: 640px; }

/* ===== Diferença (waypoint cards) ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.waypoint-icon { margin-bottom: 16px; }
.feature-grid h3 { margin-bottom: 8px; }
.feature-grid p { font-size: 15px; line-height: 23px; color: var(--cinza-tecnico); }

/* ===== Oferta dupla ===== */
.section-oferta { background: #f5f2ee; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.offer-card { border-radius: var(--radius-md); padding: 40px; box-sizing: border-box; }
.offer-card--academy { background: var(--barro-claro); border: 1.5px solid var(--barro); }
.offer-card--advisor { background: var(--ink); border: 1.5px solid var(--ink); color: var(--paper); }
.offer-card h3 { margin: 12px 0; font-size: 22px; }
.offer-card p { font-size: 15px; line-height: 24px; margin-bottom: 24px; }
.offer-card--academy .text-mono { color: var(--barro); }
.offer-card--advisor .text-mono { color: var(--verde-negativo); }
.offer-card--advisor p { color: var(--cinza-negativo); }

/* ===== Pilares — rota visual ===== */
.route-track { display: flex; align-items: center; margin-bottom: 10px; }
.route-dot { width: 26px; height: 26px; border-radius: var(--radius-full); border: 2px solid var(--ink); background: var(--paper); flex-shrink: 0; }
.route-dot.is-active { border-color: var(--verde-marca); }
.route-dot.is-final { background: var(--verde-marca); border-color: var(--verde-marca); }
.route-line { flex: 1; height: 0; border-top: 2px dashed var(--cinza-tecnico); margin: 0 6px; }
.route-line.is-done { border-top: 3px solid var(--verde-marca); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillars-grid h3 { font-size: 16px; line-height: 21px; margin-bottom: 8px; }
.pillars-grid p { font-size: 13.5px; line-height: 20px; color: var(--cinza-tecnico); }
.pillars-grid .text-mono { margin-bottom: 8px; color: var(--cinza-tecnico); }
.pillars-grid .pt-active .text-mono { color: var(--verde-marca); }

/* ===== João de Barro ===== */
.section-historia { background: var(--barro-claro); position: relative; overflow: hidden; }
.section-historia .wrap { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; position: relative; padding-top: 96px; padding-bottom: 96px; }
.section-historia .bird { flex: 0 0 auto; width: 220px; }
.section-historia .copy { flex: 1 1 420px; min-width: 300px; }
.section-historia .copy p { font-size: 16px; line-height: 25px; color: var(--cinza-tecnico); margin-bottom: 16px; }
.section-historia .quote { font-size: 19px; line-height: 28px; font-weight: 600; color: var(--barro); font-style: italic; margin-top: 12px; }

/* ===== CTA final ===== */
.section-cta { background: var(--verde-acao); text-align: center; position: relative; overflow: hidden; }
.section-cta .wrap { max-width: 720px; padding-top: 88px; padding-bottom: 88px; position: relative; }
.section-cta h2 { color: var(--paper); margin-bottom: 16px; }
.section-cta p { color: var(--paper); opacity: 0.85; font-size: 17px; line-height: 26px; margin-bottom: 32px; }
.section-cta .hero-ctas { justify-content: center; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-logo svg { height: 30px; width: auto; display: block; margin-bottom: 12px; }
.footer-logo .tagline { font-size: 13px; color: var(--cinza-negativo); font-weight: 500; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; font-weight: 600; color: var(--paper); margin-bottom: 14px; }
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { font-size: 14px; color: var(--cinza-negativo); }
.footer-bottom { border-top: 1px solid #1f2547; padding-top: 24px; font-size: 13px; color: var(--cinza-tecnico); }

/* ===== Blog / páginas internas ===== */
.entry { max-width: 760px; margin: 0 auto; padding: 80px 32px; }
.entry h1 { margin-bottom: 24px; }
.entry .entry-content { font-size: 17px; line-height: 28px; }
.entry .entry-content p { margin-bottom: 20px; }
.entry-meta { font-family: var(--font-mono); font-size: 12px; color: var(--cinza-tecnico); margin-bottom: 16px; }
.not-found { text-align: center; padding: 120px 32px; }
.not-found .code { font-family: var(--font-mono); color: var(--verde-marca); font-size: 14px; margin-bottom: 16px; }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  h1, .h1 { font-size: 34px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .route-track { display: none; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .section-historia .wrap { flex-direction: column; text-align: left; }
  .footer-top { flex-direction: column; }
}
