/*
Theme Name: TP Agro
Theme URI: https://tpagroengenharia.com.br
Author: TP Agro Engenharia
Description: Tema institucional TP Agro — Engenharia, mobilidade rural e infraestrutura.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: tp-agro
*/

/* ============================================================
   VARIÁVEIS
   ============================================================ */
:root {
  --green:       #a8e63d;
  --green-dark:  #8bce30;
  --bg:          #f0f0ec;
  --bg-dark:     #1a1f14;
  --black:       #0d0d0d;
  --text:        #1a1a1a;
  --text-light:  #555;
  --text-muted:  #888;
  --white:       #ffffff;
  --border:      #e0e0d8;
  --radius-btn:  100px;
  --radius-card: 16px;
  --radius-img:  20px;
  --max-w:       1280px;
  --font:        'Inter', sans-serif;
  --transition:  0.25s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
p    { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 800; line-height: 1.1; color: var(--black); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section-pad { padding: 100px 0; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.btn-green  { background: var(--green); color: var(--black); border-color: var(--green); }
.btn-green:hover { background: #96d130; border-color: #96d130; }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-arrow::after { content: '↗'; font-size: 1em; }

/* ============================================================
   BADGE (• CATEGORIA)
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.badge--white { background: transparent; border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); }
.badge--white::before { background: var(--green); }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 0;
  transition: padding var(--transition);
}
#site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-btn);
  padding: 10px 10px 10px 24px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
#site-header.scrolled { padding: 12px 0; }

/* Logo */
.site-logo img { height: 44px; width: auto; }
.site-logo-text { font-weight: 800; font-size: 1.2rem; color: var(--black); }

/* Nav */
#main-nav ul { display: flex; gap: 8px; align-items: center; }
#main-nav a {
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  padding: 8px 16px; border-radius: var(--radius-btn);
  transition: all var(--transition);
}
#main-nav a:hover, #main-nav a.active { background: var(--bg); color: var(--black); }

/* Header right */
.header-right { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  padding: 8px 16px; border-radius: var(--radius-btn);
  border: 1px solid var(--border); background: var(--bg);
  transition: all var(--transition);
}
.header-phone:hover { border-color: var(--green); }
.header-phone svg { width: 16px; height: 16px; stroke: var(--green); }

/* Hamburguer */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); transition: all var(--transition); border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
#mobile-nav {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--black); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
#mobile-nav.open { display: flex; }
#mobile-nav a { font-size: 1.8rem; font-weight: 800; color: var(--white); transition: color var(--transition); }
#mobile-nav a:hover { color: var(--green); }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; cursor: pointer;
  color: var(--white); font-size: 2rem; line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, transparent 100%); }
.hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 0 0 80px;
}
.hero-content .container { }
.hero-content h1 {
  color: var(--white); max-width: 700px;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  margin-bottom: 20px;
}
.hero-content p { color: rgba(255,255,255,0.8); max-width: 480px; font-size: 1rem; margin-bottom: 32px; }

/* ============================================================
   SEÇÃO FRASE CENTRAL
   ============================================================ */
#frase-central { padding: 80px 0; background: var(--bg); }
#frase-central h2 {
  text-align: center; max-width: 900px; margin: 0 auto;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 800; color: var(--black);
}
#frase-central p { text-align: center; color: var(--text-light); max-width: 600px; margin: 20px auto 0; font-size: 1rem; }

/* ============================================================
   SEÇÕES DE SERVIÇO (alternadas)
   ============================================================ */
.servico-section { padding: 80px 0; background: var(--bg); }
.servico-section + .servico-section { padding-top: 0; }

.servico-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.servico-inner--reverse { direction: rtl; }
.servico-inner--reverse > * { direction: ltr; }

.servico-img {
  border-radius: var(--radius-img); overflow: hidden;
  background: var(--black); aspect-ratio: 4/3;
}
.servico-img img { width: 100%; height: 100%; object-fit: cover; }

.servico-text .badge { margin-bottom: 20px; }
.servico-text h2 { margin-bottom: 16px; }
.servico-text .servico-lead {
  font-size: 1rem; font-weight: 600; color: var(--black);
  margin-bottom: 16px; line-height: 1.5;
}
.servico-text p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 28px; }
.servico-text .btn { }

/* ============================================================
   SEÇÃO SOBRE (fundo escuro + foto aérea)
   ============================================================ */
#sobre-section {
  position: relative; padding: 100px 0; overflow: hidden;
  background: var(--bg-dark);
}
#sobre-section .sobre-bg { position: absolute; inset: 0; }
#sobre-section .sobre-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
#sobre-section .sobre-overlay { position: absolute; inset: 0; background: rgba(20,25,12,0.65); }
#sobre-section .sobre-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.sobre-text h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 20px; }
.sobre-text p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 16px; }
.sobre-text .btn { margin-top: 12px; }

.sobre-video-wrap {
  border-radius: var(--radius-img); overflow: hidden;
  background: rgba(0,0,0,0.5); aspect-ratio: 16/9;
}
.sobre-video-wrap iframe { width: 100%; height: 100%; border: none; }
.sobre-video-placeholder {
  width: 100%; height: 100%; min-height: 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,0.35); font-size: 0.82rem; text-align: center; padding: 24px;
}
.sobre-video-placeholder svg { width: 48px; height: 48px; opacity: 0.3; }

/* ============================================================
   SEÇÃO CONTATO (home)
   ============================================================ */
#contato-home { padding: 100px 0; background: var(--bg); }
.contato-home-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.contato-home-text .badge { margin-bottom: 20px; }
.contato-home-text h2 { margin-bottom: 16px; }
.contato-home-text p { color: var(--text-light); margin-bottom: 28px; }
.contato-home-img {
  border-radius: var(--radius-img); overflow: hidden;
  background: var(--black); aspect-ratio: 4/3;
}
.contato-home-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { position: relative; overflow: hidden; background: var(--bg-dark); }
.footer-bg { position: absolute; inset: 0; }
.footer-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.footer-overlay { position: absolute; inset: 0; background: rgba(15,20,10,0.85); }
.footer-inner { position: relative; z-index: 2; padding: 72px 0 0; }

.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo-text { font-weight: 800; font-size: 1.2rem; color: var(--white); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.875rem; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--green); }
.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-contact-list a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--green); }

.footer-bottom {
  padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.25);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--green); }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
#whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
#whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
#whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   PAGE BANNER (páginas internas)
   ============================================================ */
.page-banner { padding: 160px 0 80px; background: var(--black); }
.page-banner .badge { margin-bottom: 20px; }
.page-banner h1 { color: var(--white); max-width: 700px; }
.page-banner p { color: rgba(255,255,255,0.6); max-width: 560px; margin-top: 16px; font-size: 1rem; }

/* ============================================================
   PÁGINA INTERNA — conteúdo
   ============================================================ */
.page-section { padding: 100px 0; background: var(--bg); }
.page-section-dark { padding: 100px 0; background: var(--black); }
.page-section-dark h2,
.page-section-dark h3,
.page-section-dark h4 { color: var(--white); }
.page-section-dark p { color: rgba(255,255,255,0.65); }

/* Grid 2 colunas */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.two-col--center { align-items: center; }

/* Grid 3 colunas */
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

/* Cards PMV */
.pmv-card {
  padding: 36px 28px; background: var(--white);
  border-radius: var(--radius-card); border-top: 3px solid var(--green);
}
.pmv-card .badge { margin-bottom: 16px; }
.pmv-card p { font-size: 0.9rem; color: var(--text-light); }

/* Valores */
.valor-item { padding: 24px 28px; border-left: 3px solid var(--green); background: var(--white); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.valor-item h4 { margin-bottom: 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.valor-item p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* Números */
.numeros-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.numero-card { text-align: center; padding: 32px 20px; background: rgba(255,255,255,0.05); border-radius: var(--radius-card); border: 1px solid rgba(255,255,255,0.08); }
.numero-val { display: block; font-size: 2.8rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 8px; }
.numero-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* Atuação cards */
.atuacao-card {
  padding: 36px 28px; background: var(--white);
  border-radius: var(--radius-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.atuacao-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); border-color: var(--green); }
.atuacao-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--green); text-transform: uppercase; margin-bottom: 12px; }
.atuacao-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.atuacao-card p, .atuacao-card li { font-size: 0.875rem; color: var(--text-light); }
.atuacao-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.atuacao-list li { padding-left: 16px; position: relative; }
.atuacao-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 2px; background: var(--green); }

/* Timeline */
.timeline { position: relative; padding: 0 0 40px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border); transform: translateX(-50%); }
.timeline-item { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; margin-bottom: 56px; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 28px; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid var(--bg); flex-shrink: 0; position: relative; z-index: 2; }
.timeline-dot--active { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px rgba(168,230,61,0.2); }
.timeline-year { font-size: 0.72rem; font-weight: 700; color: var(--green); letter-spacing: 0.08em; white-space: nowrap; }
.timeline-year--now { background: var(--green); color: var(--black); padding: 3px 10px; border-radius: 20px; font-size: 0.68rem; }
.timeline-content { padding: 0 24px; }
.timeline-item:nth-child(even) .timeline-content:first-child { text-align: right; }
.timeline-content h3 { font-size: 0.95rem; margin-bottom: 8px; }
.timeline-content p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* Contato página */
.contato-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.contato-info h2 { margin-bottom: 20px; }
.contato-info p { color: var(--text-light); margin-bottom: 32px; }
.contato-itens { display: flex; flex-direction: column; gap: 20px; }
.contato-item { display: flex; gap: 16px; align-items: flex-start; }
.contato-item-icon { width: 44px; height: 44px; background: rgba(168,230,61,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contato-item-icon svg { width: 20px; height: 20px; stroke: var(--green); }
.contato-item-text h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.contato-item-text p, .contato-item-text a { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.mapa-wrapper { margin-top: 32px; border-radius: var(--radius-card); overflow: hidden; height: 200px; }
.mapa-wrapper iframe { width: 100%; height: 100%; border: none; }
.mapa-placeholder { height: 200px; background: rgba(168,230,61,0.06); border: 1px dashed var(--border); border-radius: var(--radius-card); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-muted); font-size: 0.82rem; padding: 24px; line-height: 1.6; margin-top: 32px; }

/* Formulário */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.form-group input, .form-group textarea {
  padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: 12px; font-family: var(--font); font-size: 0.9rem;
  color: var(--text); background: var(--white); transition: border-color var(--transition); outline: none; width: 100%;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-lgpd { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px !important; }
.form-feedback { padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 16px; }
.form-feedback--success { background: #f0fce8; color: #2d6a0f; border: 1px solid #c3e89a; }
.form-feedback--error   { background: #fef0f0; color: #9b1c1c; border: 1px solid #fcd0d0; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.blog-card { background: var(--white); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.blog-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--black); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.blog-card-cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.blog-card-date { font-size: 0.75rem; color: var(--text-muted); }
.blog-card-body h3 { font-size: 0.95rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
.blog-card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 0.78rem; font-weight: 700; color: var(--black); }
.blog-card-link:hover { color: var(--green); }

/* Estudos filtros */
.estudos-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro-btn { display: inline-flex; align-items: center; padding: 8px 20px; border-radius: var(--radius-btn); border: 1.5px solid var(--border); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); background: var(--white); transition: all var(--transition); cursor: pointer; }
.filtro-btn:hover, .filtro-btn--active { background: var(--green); border-color: var(--green); color: var(--black); }

/* Paginação */
.page-numbers { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-numbers a, .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-btn); font-size: 0.82rem; font-weight: 600; border: 1.5px solid var(--border); color: var(--text-light); background: var(--white); transition: all var(--transition); }
.page-numbers a:hover, .page-numbers .current { background: var(--green); border-color: var(--green); color: var(--black); }

/* Single post */
.single-post-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.single-post-content { font-size: 1rem; line-height: 1.8; }
.single-post-content h2,.single-post-content h3 { margin: 36px 0 16px; }
.single-post-thumb { margin-bottom: 40px; border-radius: var(--radius-card); overflow: hidden; }
.single-post-thumb img { width: 100%; max-height: 480px; object-fit: cover; }
.single-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-tag { padding: 5px 14px; background: var(--bg); border-radius: var(--radius-btn); font-size: 0.75rem; font-weight: 600; color: var(--text-light); border: 1px solid var(--border); transition: all var(--transition); }
.post-tag:hover { background: var(--green); border-color: var(--green); color: var(--black); }
.single-post-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.single-post-nav a { font-size: 0.82rem; font-weight: 600; color: var(--text-light); max-width: 45%; transition: color var(--transition); }
.single-post-nav a:hover { color: var(--green); }

/* Sidebar */
.single-post-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: var(--white); border-radius: var(--radius-card); padding: 24px; border: 1px solid var(--border); }
.sidebar-box h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-post-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-thumb { width: 56px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-title { font-size: 0.82rem; color: var(--text); line-height: 1.4; }
.sidebar-post-item:hover .sidebar-post-title { color: var(--green); }
.sidebar-box--cta { background: var(--black); border-color: transparent; }
.sidebar-box--cta h4,.sidebar-box--cta p { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }
.sidebar-box--cta p { font-size: 0.85rem; margin-bottom: 16px; }

/* 404 */
.page-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.page-404 .error-code { font-size: clamp(5rem,15vw,12rem); font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 16px; }

/* Faixa strip */
.page-strip { background: var(--green); padding: 36px 0; }
.page-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-strip__text { font-weight: 700; font-size: 0.95rem; color: var(--black); margin: 0; }
.page-strip__badges { display: flex; gap: 20px; flex-wrap: wrap; }
.page-strip__badges span { font-size: 0.78rem; font-weight: 700; color: var(--black); }

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
[data-animate] { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].animated { opacity: 1; transform: translateY(0); }
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1024px) {
  .servico-inner, .sobre-inner, .contato-home-inner,
  .contato-grid, .two-col { grid-template-columns: 1fr; gap: 48px; }
  .servico-inner--reverse { direction: ltr; }
  .numeros-grid { grid-template-columns: repeat(2,1fr); }
  .three-col { grid-template-columns: repeat(2,1fr); }
  .single-post-wrap { grid-template-columns: 1fr; }
  .single-post-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .timeline-marker { flex-direction: row; gap: 12px; padding: 0; grid-column: 1/-1; margin-bottom: 12px; justify-content: flex-start; }
  .timeline-content { grid-column: 2; padding: 0 0 0 20px; }
  .timeline-item .timeline-content:first-child { text-align: left !important; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 0; }
  .container { padding: 0 20px; }
  #main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .blog-grid, .three-col { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .page-strip .container { flex-direction: column; text-align: center; }
  .page-strip__badges { justify-content: center; }
  .numeros-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .numeros-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .numero-val { font-size: 2rem; }
}

@media print {
  #site-header, #whatsapp-float, .nav-toggle, #mobile-nav { display: none !important; }
}

/* ============================================================
   HOME — seções específicas
   ============================================================ */

/* Frase institucional */
#frase-central { padding: 72px 0; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.frase-text { font-family: var(--font); font-size: clamp(1.1rem,2.5vw,1.6rem); font-weight: 500; color: var(--text); max-width: 800px; margin: 0 auto; text-align: center; line-height: 1.6; }

/* Sobre + Áreas grid */
.sobre-areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.areas-col, .sobre-col { }

.areas-list { display: flex; flex-direction: column; gap: 0; }
.area-item { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.area-item:last-child { border-bottom: none; }
.area-num { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--green); min-width: 24px; padding-top: 2px; }
.area-item h4 { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.area-item p  { font-size: .875rem; color: var(--text-light); margin: 0; }

/* Loop grid */
.loop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* Video grid */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* Resp grid */
.resp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* ESG cards */
.esg-cards { display: flex; flex-direction: column; gap: 16px; }
.esg-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-card); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; transition: all var(--transition); }
.esg-card:hover { background: rgba(157,202,59,.06); border-color: rgba(157,202,59,.2); }
.esg-card h4 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin: 0; }
.esg-card p  { font-size: .85rem; color: rgba(255,255,255,.5); margin: 0; }

/* Responsivo home */
@media (max-width: 1024px) {
  .sobre-areas-grid, .loop-grid, .video-grid, .resp-grid { grid-template-columns: 1fr; gap: 48px; }
  .esg-cards { flex-direction: row; flex-wrap: wrap; }
  .esg-card  { flex: 1; min-width: 200px; }
}
@media (max-width: 640px) {
  .esg-cards { flex-direction: column; }
}
