/*
Theme Name: APX Consulting
Theme URI: https://www.apxconsulting.com.br
Author: APX Consulting
Author URI: https://www.apxconsulting.com.br
Description: Tema institucional para a APX Consulting — engenharia de receita e due diligence esportiva. Home one-page (front-page.php) + blog nativo (Insights) via home.php/single.php.
Version: 1.3.1
Requires at least: 5.9
Requires PHP: 7.4
License: Uso privado — APX Consulting
Text Domain: apx-consulting
*/

:root{
  --bg: #12181A;
  --bg-alt: #182022;
  --panel: #1D262A;
  --panel-2: #232E32;
  --border: rgba(184,196,196,0.16);
  --border-soft: rgba(230,236,236,0.07);
  --gold: #3EA684;
  --gold-bright: #55C99E;
  --gold-deep: #0D3A2E;
  --text: #ECEEEE;
  --text-dim: #9CA8A8;
  --text-dimmer: #838E8E;
  --display: 'Bricolage Grotesque', sans-serif;
  --sans: 'Inter', sans-serif;
}

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

html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-weight:400;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 40px;
}

.eyebrow{
  font-family:var(--sans);
  font-size:12px;
  letter-spacing:0.28em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}
.eyebrow::before{
  content:'';
  width:28px;
  height:1px;
  background:var(--gold);
  display:inline-block;
}

h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--text);
}

section{ position:relative; }

.badge{
  display:inline-flex;
  align-items:center;
  font-family:var(--sans);
  font-size:11px;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--gold);
  background:rgba(62,166,132,0.08);
  border:1px solid rgba(62,166,132,0.35);
  padding:7px 14px;
  border-radius:6px;
  margin-bottom:18px;
}

/* ---------- HEADER (barra de navegação fixa do site — #siteHeader) ---------- */
/* Importante: escopado por ID (#siteHeader), não pela tag <header>,
   porque o artigo (single.php/page.php) também usa uma tag <header>
   (post-hero) para o título — um seletor genérico "header{...}" aplicaria
   este position:fixed + blur nela também, "grudando" o título na tela. */
#siteHeader{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background:rgba(18,24,26,0.7);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-soft);
  transition:background .3s ease, border-color .3s ease;
}
#siteHeader.scrolled{
  background:rgba(18,24,26,0.92);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 40px;
  max-width:1180px;
  margin:0 auto;
}
.logo{
  display:flex;
  flex-direction:column;
  line-height:1;
}
.logo .mark{
  font-family:var(--display);
  font-size:26px;
  font-weight:800;
  letter-spacing:-0.01em;
  color:var(--text);
}
.logo .mark span{ color:var(--gold); }
.logo .sub{
  font-family:var(--sans);
  font-size:9px;
  letter-spacing:0.32em;
  color:var(--text-dimmer);
  margin-top:4px;
  text-transform:uppercase;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:44px;
}
.nav-links a{
  font-size:13px;
  letter-spacing:0.04em;
  color:var(--text-dim);
  transition:color .25s ease;
  position:relative;
}
.nav-links a:hover{ color:var(--text); }
.nav-cta{
  border:1px solid var(--gold);
  color:var(--gold) !important;
  padding:10px 22px;
  border-radius:6px;
  font-size:12px !important;
  letter-spacing:0.08em !important;
  text-transform:uppercase;
  transition:background .25s ease, color .25s ease;
}
.nav-cta:hover{
  background:var(--gold);
  color:var(--bg) !important;
}
.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  background:none;
  border:none;
}
.burger span{
  width:26px; height:1px; background:var(--text);
}

/* ---------- HERO (Bloco 1 — Manifesto) ---------- */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:160px 0 100px;
  background:
    radial-gradient(ellipse 900px 500px at 85% 10%, rgba(62,166,132,0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 90%, rgba(62,166,132,0.06), transparent 60%),
    var(--bg);
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(230,236,236,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,236,236,0.025) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 900px 700px at 70% 30%, black, transparent 70%);
  mask-image: radial-gradient(ellipse 900px 700px at 70% 30%, black, transparent 70%);
  pointer-events:none;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:60px;
  align-items:end;
  position:relative;
}
.hero .kicker{
  font-family:var(--display);
  font-size:15px;
  font-weight:600;
  color:var(--text-dim);
  margin-bottom:10px;
  letter-spacing:0.01em;
}
.hero h1{
  font-size:clamp(38px, 5.2vw, 68px);
  line-height:1.04;
  margin-bottom:28px;
}
.hero h1 em{ color:var(--gold); font-style:normal; }
.hero p.lead{
  font-size:18px;
  color:var(--text-dim);
  max-width:560px;
  margin-bottom:40px;
  font-weight:400;
}
.btn-row{ display:flex; gap:18px; flex-wrap:wrap; }
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 30px;
  font-size:13px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  border-radius:6px;
  transition:all .25s ease;
  font-weight:600;
  font-family:var(--sans);
}
.btn-primary{
  background:var(--gold);
  color:var(--bg);
}
.btn-primary:hover{ background:var(--gold-bright); transform:translateY(-2px); }
.btn-outline{
  border:1px solid var(--border-soft);
  color:var(--text);
}
.btn-outline:hover{ border-color:var(--gold); color:var(--gold); }

.hero-stats{
  display:flex;
  flex-direction:column;
  gap:28px;
  border-left:1px solid var(--border);
  padding-left:36px;
}
.stat .num{
  font-family:var(--display);
  font-size:38px;
  font-weight:800;
  color:var(--gold);
  line-height:1;
}
.stat .label{
  font-size:12px;
  color:var(--text-dimmer);
  letter-spacing:0.04em;
  margin-top:8px;
}

/* ---------- SECTION HEAD ---------- */
.section-head{
  max-width:680px;
  margin-bottom:56px;
}
.section-head h2{
  font-size:clamp(30px, 3.6vw, 46px);
  line-height:1.1;
}
.section-head p{
  color:var(--text-dim);
  font-size:16px;
  margin-top:18px;
}

/* ---------- PROBLEMA (Bloco 2) ---------- */
.problem{ padding:140px 0; background:var(--bg-alt); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.problem-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.problem-card{
  background:var(--panel);
  border-left:3px solid var(--gold);
  border-radius:4px;
  padding:32px 34px;
}
.problem-card.full{ grid-column:1 / -1; }
.problem-card h4{
  font-size:19px;
  margin-bottom:10px;
  font-weight:700;
}
.problem-card p{ color:var(--text-dim); font-size:14.5px; }

.solution-strip{
  margin-top:64px;
  padding-top:56px;
  border-top:1px solid var(--border-soft);
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:60px;
  align-items:start;
}
.solution-strip h3{ font-size:26px; margin-bottom:16px; }
.solution-strip .lead-sm{ font-family:var(--display); font-size:20px; font-weight:500; line-height:1.4; color:var(--text); }
.solution-strip p{ color:var(--text-dim); font-size:15px; margin-bottom:16px; }
.chip-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:20px; }
.chip-row span{
  border:1px solid var(--border);
  color:var(--gold);
  font-size:11px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:9px 16px;
  border-radius:6px;
}

/* ---------- ECOSYSTEM STRIP ---------- */
.ecosystem{ padding:100px 0 40px; }
.eco-row{ display:grid; grid-template-columns:repeat(3, 1fr); gap:2px; }
.eco-step{
  background:var(--panel);
  padding:34px 30px 30px 42px;
  position:relative;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
}
.eco-step:first-child{ clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.eco-icon{ color:var(--gold); margin-bottom:16px; }
.eco-step h4{ font-size:19px; margin-bottom:4px; }
.eco-step .dur{ font-size:12px; color:var(--gold); font-weight:600; letter-spacing:0.04em; margin-bottom:10px; }
.eco-step p{ font-size:13.5px; color:var(--text-dim); }

/* ---------- PRODUCTS (Bloco 3 — Práticas) ---------- */
.products{ padding:60px 0 140px; }
.product-list{ display:flex; flex-direction:column; gap:1px; background:var(--border-soft); border:1px solid var(--border-soft); }
.product{
  background:var(--bg);
  padding:56px;
  display:grid;
  grid-template-columns:0.9fr 1fr 1fr;
  gap:40px;
  align-items:start;
  transition:background .3s ease;
}
.product:hover{ background:var(--panel); }
.product .badge{ margin-bottom:14px; }
.product h3{
  font-size:28px;
  font-weight:800;
  margin-bottom:10px;
  line-height:1.15;
}
.product .subt{ font-style:italic; color:var(--text-dim); font-size:14px; font-family:var(--sans); }
.product .col-label{
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--text-dimmer);
  margin-bottom:10px;
  font-weight:600;
}
.product .col-text{ color:var(--text-dim); font-size:14px; line-height:1.7; }
.product .col-text strong{ color:var(--text); font-weight:600; }

/* ---------- FOUNDER (Bloco 4 — Sócio Fundador) ---------- */
.founder{ padding:140px 0; background:var(--bg-alt); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.founder-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:64px;
  align-items:center;
}
.founder-photo{
  aspect-ratio:4/5;
  border-radius:6px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(62,166,132,0.10), transparent 60%),
    linear-gradient(155deg, #262E31 0%, #171D1F 65%, #12181A 100%);
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.founder-photo img{
  width:100%; height:100%; object-fit:cover;
  object-position:center 20%;
  filter:grayscale(1) contrast(1.05) brightness(0.98);
}
.founder-body h3{ font-size:15px; letter-spacing:0.02em; }
.founder-body h2{ font-size:clamp(28px,3.2vw,38px); margin:8px 0 20px; line-height:1.15; }
.founder-body p{ color:var(--text-dim); font-size:15.5px; margin-bottom:18px; max-width:520px; }
.founder-chips{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:32px; }
.founder-chip{
  background:var(--panel);
  border:1px solid var(--border-soft);
  border-radius:6px;
  padding:18px 18px;
}
.founder-chip .fc-num{ font-family:var(--display); font-weight:800; font-size:20px; color:var(--gold); }
.founder-chip .fc-label{ font-size:12px; color:var(--text-dim); margin-top:6px; }

/* ---------- INSIGHTS (teaser + listagem do blog) ---------- */
.insights{ padding:140px 0; }
.insights-page-head{ padding:126px 0 50px; }
.insights-page-head .eyebrow{ margin-bottom:16px; }
.insights-page-head h1{ font-size:clamp(30px,4vw,46px); line-height:1.12; margin-bottom:16px; }
.insights-page-head p{ color:var(--text-dim); font-size:16px; max-width:640px; }
.insights-listing{ padding:20px 0 140px; }

.insight-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.insight-card{
  background:var(--panel);
  border:1px solid var(--border-soft);
  border-radius:6px;
  padding:30px 28px;
  display:flex;
  flex-direction:column;
  min-height:220px;
  transition:border-color .2s ease, transform .2s ease;
}
a.insight-card:hover{ border-color:var(--gold); transform:translateY(-3px); }
.insight-thumb{
  margin:-30px -28px 20px;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:6px 6px 0 0;
}
.insight-thumb img{ width:100%; height:100%; object-fit:cover; }
.insight-tag{
  align-self:flex-start;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--gold);
  background:rgba(62,166,132,0.10);
  border:1px solid rgba(62,166,132,0.3);
  padding:5px 12px;
  border-radius:6px;
  margin-bottom:18px;
}
.insight-card h4{
  font-size:18px;
  line-height:1.3;
  margin-bottom:10px;
}
.insight-card p{
  color:var(--text-dim);
  font-size:14px;
  flex-grow:1;
}
.insight-byline{
  font-size:11.5px;
  color:var(--text-dimmer);
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--border-soft);
}

.pagination{ display:flex; gap:10px; justify-content:center; margin-top:56px; flex-wrap:wrap; }
.pagination .page-numbers{
  border:1px solid var(--border-soft);
  border-radius:6px;
  padding:10px 16px;
  font-size:13px;
  color:var(--text-dim);
}
.pagination .page-numbers.current{ border-color:var(--gold); color:var(--gold); }
.pagination a.page-numbers:hover{ border-color:var(--gold); color:var(--gold); }

/* ---------- SINGLE POST / PÁGINA GENÉRICA ---------- */
/* Layout fluido: título e corpo do texto compartilham a mesma coluna
   estreita de leitura, sem caixa/fundo separando o título do conteúdo —
   a página é um único fluxo de rolagem, do título ao fim do artigo. */
.narrow{ max-width:760px; margin:0 auto; }

.post-hero{ padding:126px 0 0; }
.post-hero .eyebrow{ margin-bottom:14px; }
.post-hero h1{ font-size:clamp(28px,3.6vw,42px); line-height:1.16; margin-bottom:14px; }
.post-meta{ display:flex; gap:12px; flex-wrap:wrap; color:var(--text-dim); font-size:13px; margin-bottom:0; }
.post-thumb{ margin-top:32px; border-radius:6px; overflow:hidden; aspect-ratio:16/9; }
.post-thumb img{ width:100%; height:100%; object-fit:cover; }

.post-content{ padding:36px 0 20px; max-width:760px; margin:0 auto; font-size:16.5px; color:var(--text-dim); line-height:1.85; }
.post-content h2{ font-size:28px; margin:48px 0 18px; color:var(--text); font-family:var(--display); }
.post-content h3{ font-size:22px; margin:36px 0 14px; color:var(--text); font-family:var(--display); }
.post-content p{ margin-bottom:20px; }
.post-content a{ color:var(--gold); text-decoration:underline; text-underline-offset:3px; }
.post-content ul, .post-content ol{ margin:0 0 20px 22px; list-style:revert; }
.post-content blockquote{ border-left:3px solid var(--gold); padding-left:20px; font-style:italic; color:var(--text); margin:28px 0; }
.post-content img{ border-radius:6px; margin:28px auto; }
.post-content figcaption{ font-size:12.5px; color:var(--text-dimmer); text-align:center; margin-top:-16px; margin-bottom:24px; }

.post-footer-cta{ max-width:760px; margin:20px auto 0; }
.post-nav{ display:flex; justify-content:space-between; gap:20px; max-width:760px; margin:60px auto 100px; }
.post-nav a{ border:1px solid var(--border-soft); border-radius:6px; padding:16px 20px; font-size:13px; color:var(--text-dim); max-width:48%; }
.post-nav a:hover{ border-color:var(--gold); color:var(--gold); }

/* ---------- CTA FINAL (Bloco 5) ---------- */
.cta-final{ padding:140px 0; }
.cta-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
}
.cta-info h2{ font-size:clamp(30px,3.4vw,42px); margin-bottom:20px; line-height:1.12; }
.cta-info p.lead{ color:var(--text-dim); font-size:16px; margin-bottom:32px; max-width:460px; }
.step-box{
  border:1px solid var(--border);
  border-radius:6px;
  padding:24px 26px;
  margin-bottom:16px;
}
.step-box .step-num{ font-family:var(--display); font-weight:800; color:var(--gold); font-size:13px; margin-bottom:8px; display:block; }
.step-box h4{ font-size:17px; margin-bottom:8px; }
.step-box p{ color:var(--text-dim); font-size:14px; }
.closing-panel{
  background:var(--gold-deep);
  border-radius:6px;
  padding:22px 26px;
  margin-top:8px;
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.closing-panel p{ font-size:14.5px; color:#DFF3EA; }
.closing-panel strong{ color:#fff; }

form{ display:flex; flex-direction:column; gap:20px; }
.field label{
  display:block;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--text-dimmer);
  margin-bottom:10px;
  font-weight:600;
}
.field input, .field textarea, .field select{
  width:100%;
  background:var(--panel);
  border:1px solid var(--border-soft);
  color:var(--text);
  padding:14px 16px;
  font-family:var(--sans);
  font-size:14px;
  border-radius:6px;
  transition:border-color .25s ease;
}
.field select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA8A8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  padding-right:44px;
  cursor:pointer;
}
.field select:invalid{ color:var(--text-dimmer); }
.field select option{ background:var(--panel); color:var(--text); }
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none;
  border-color:var(--gold);
}
.field textarea{ resize:vertical; min-height:100px; }
form .btn{ align-self:flex-start; border:none; cursor:pointer; }

/* ---------- FOOTER ---------- */
footer{
  border-top:1px solid var(--border-soft);
  padding:48px 0;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}
.footer-grid .logo .mark{ font-size:19px; }
.footer-links{ display:flex; gap:32px; flex-wrap:wrap; }
.footer-links a{ font-size:13px; color:var(--text-dim); }
.footer-links a:hover{ color:var(--gold); }
.copyright{ font-size:12px; color:var(--text-dimmer); }

/* ---------- REVEAL ---------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s ease, transform .8s ease;
}
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px){
  .container{ padding:0 24px; }
  .nav{ padding:18px 24px; }
  .nav-links{
    position:fixed;
    top:68px; left:0; right:0;
    background:rgba(18,24,26,0.98);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:10px 24px 24px;
    border-bottom:1px solid var(--border);
    transform:translateY(-130%);
    transition:transform .35s ease;
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-links a{ padding:14px 0; width:100%; border-bottom:1px solid var(--border-soft); }
  .nav-cta{ margin-top:14px; text-align:center; }
  .burger{ display:flex; }
  .hero{ padding:130px 0 80px; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-stats{ flex-direction:row; border-left:none; border-top:1px solid var(--border); padding:28px 0 0; flex-wrap:wrap; }
  .problem-cards{ grid-template-columns:1fr; }
  .solution-strip{ grid-template-columns:1fr; gap:32px; }
  .eco-row{ grid-template-columns:1fr; }
  .eco-step, .eco-step:first-child{ clip-path:none; border-radius:4px; }
  .product{ grid-template-columns:1fr; gap:16px; padding:36px 28px; }
  .founder-grid{ grid-template-columns:1fr; }
  .founder-chips{ grid-template-columns:1fr 1fr; }
  .insight-grid{ grid-template-columns:1fr; }
  .cta-grid{ grid-template-columns:1fr; gap:56px; }
  .post-nav{ flex-direction:column; }
  .post-nav a{ max-width:100%; }
}
@media (max-width: 520px){
  .btn-row{ flex-direction:column; }
  .btn{ justify-content:center; }
  .founder-chips{ grid-template-columns:1fr; }
}
