/*
Theme Name: Eng. Gabriel Silva
Theme URI: https://gabrielsilva.eng.br
Author: Eng. Gabriel Silva
Description: Portfólio profissional para engenheiro especializado em dados, processos e supply chain.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gabriel-silva
*/

/* =============================================
   TOKENS DE DESIGN
   ============================================= */
:root {
  /* Cores principais */
  --color-navy:       #1A3A5C;
  --color-blue:       #1B6CA8;
  --color-blue-light: #E8F2FB;
  --color-green:      #2E8B57;
  --color-green-light:#E8F4EE;
  --color-amber:      #E07B2A;
  --color-amber-light:#FDF0E4;

  /* Backgrounds */
  --color-bg:         #FFFFFF;
  --color-bg-soft:    #F4F7FA;
  --color-border:     #E4EBF2;
  --color-border-mid: #C8D6E5;

  /* Texto */
  --color-text:       #1A3A5C;
  --color-text-mid:   #4A6380;
  --color-text-muted: #7A96B0;

  /* Tipografia */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Espaçamento */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  /* Bordas */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(26,58,92,0.08);
  --shadow-md: 0 4px 16px rgba(26,58,92,0.12);
  --shadow-lg: 0 12px 40px rgba(26,58,92,0.16);

  /* Transições */
  --transition: 0.22s ease;

  /* Layout */
  --container: 1160px;
  --sidebar:   280px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-navy); }
ul { list-style: none; }

/* =============================================
   TIPOGRAFIA
   ============================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }

p { font-size: 1rem; color: var(--color-text-mid); line-height: 1.75; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* =============================================
   CONTAINER & LAYOUT
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-bg-soft); }
.section-dark { background: var(--color-navy); }

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}
.site-logo span { color: #7BBDE8; }

.main-nav { display: flex; align-items: center; gap: var(--space-lg); }

.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.current-menu-item {
  color: #fff;
  border-bottom-color: #7BBDE8;
}

.nav-cta {
  background: var(--color-blue) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  border-bottom: none !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #155a8a !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

/* =============================================
   BOTÕES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}
.btn-primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border-mid);
}
.btn-outline:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-sm { font-size: 0.8rem; padding: 8px 16px; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #1da851; color: #fff; }

/* =============================================
   BADGES & TAGS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.badge-blue   { background: var(--color-blue-light);  color: var(--color-blue); }
.badge-green  { background: var(--color-green-light); color: var(--color-green); }
.badge-amber  { background: var(--color-amber-light); color: var(--color-amber); }
.badge-navy   { background: rgba(26,58,92,0.1);       color: var(--color-navy); }
.badge-white  { background: rgba(255,255,255,0.15);   color: #fff; }

/* =============================================
   HERO — HOME
   ============================================= */
.hero {
  background: var(--color-navy);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(27,108,168,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(46,139,87,0.1) 0%, transparent 50%);
  padding: var(--space-2xl) 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badges { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-lg); }

.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero h1 em {
  font-style: normal;
  color: #7BBDE8;
}

.hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 440px;
}

.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Painel de métricas do hero */
.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(8px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.metric-item { text-align: center; }
.metric-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.metric-number em { font-style: normal; color: #7BBDE8; }
.metric-label { font-size: 0.7rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.8px; }

.hero-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.stack-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}
.stack-item svg { width: 14px; height: 14px; flex-shrink: 0; color: #7BBDE8; }

/* =============================================
   SEÇÃO: O QUE VOCÊ ENCONTRA
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover { border-color: var(--color-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.feature-card h4 { font-size: 0.9rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.8rem; }

/* =============================================
   PROJETOS EM DESTAQUE (HOME)
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover { border-color: var(--color-blue); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.project-card-img {
  height: 160px;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-card-img img { width: 100%; height: 100%; object-fit: cover; }

.project-card-img-placeholder {
  width: 56px; height: 56px;
  background: var(--color-border);
  border-radius: var(--radius-md);
}

.project-card-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-md); }
.project-card h3 { font-size: 1rem; margin-bottom: 8px; }
.project-card p { font-size: 0.85rem; flex: 1; }

.project-result {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.result-number { font-size: 1.5rem; font-weight: 700; color: var(--color-blue); font-family: var(--font-heading); }
.result-desc { font-size: 0.75rem; color: var(--color-text-muted); }

/* =============================================
   ARTIGOS (HOME E LISTAGEM)
   ============================================= */
.articles-editorial {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-lg);
}

.article-featured {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.article-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.article-featured-img {
  height: 200px;
  background: var(--color-bg-soft);
  overflow: hidden;
  position: relative;
}
.article-featured-img img { width: 100%; height: 100%; object-fit: cover; }

.article-featured-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.article-featured h3 { font-size: 1.1rem; margin: var(--space-sm) 0; line-height: 1.35; }
.article-featured p { font-size: 0.85rem; flex: 1; }
.article-meta { font-size: 0.75rem; color: var(--color-text-muted); margin-top: var(--space-md); display: flex; gap: var(--space-md); }

.articles-side { display: flex; flex-direction: column; gap: var(--space-md); }

.article-small {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: all var(--transition);
}
.article-small:hover { border-color: var(--color-blue); box-shadow: var(--shadow-sm); }
.article-small h4 { font-size: 0.875rem; margin: 6px 0; line-height: 1.4; }
.article-small p { font-size: 0.8rem; flex: 1; }
.article-small-meta { font-size: 0.7rem; color: var(--color-text-muted); margin-top: 10px; }

/* =============================================
   CURSOS AFILIADOS (HOME)
   ============================================= */
.cursos-intro { font-size: 0.875rem; max-width: 560px; margin-bottom: var(--space-xl); }

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.curso-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.curso-card:hover { border-color: var(--color-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.curso-card-img {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.curso-card-img-blue   { background: var(--color-blue-light); }
.curso-card-img-green  { background: var(--color-green-light); }
.curso-card-img-amber  { background: var(--color-amber-light); }
.curso-card-img-purple { background: #F0EAFB; }

.curso-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.curso-platform { font-size: 0.7rem; color: var(--color-text-muted); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.curso-card h4 { font-size: 0.85rem; line-height: 1.4; margin-bottom: 5px; }
.curso-card p { font-size: 0.78rem; flex: 1; }

.curso-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.afiliado-note {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  opacity: 0.8;
}

/* =============================================
   CTA FINAL
   ============================================= */
.cta-section {
  background: var(--color-navy);
  background-image: radial-gradient(ellipse at 30% 50%, rgba(27,108,168,0.3) 0%, transparent 60%);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta-section h2 { color: #fff; margin-bottom: var(--space-md); }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto var(--space-xl); }
.cta-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* =============================================
   PORTFÓLIO
   ============================================= */
.portfolio-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-mid);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

/* Cards de portfólio completos */
.portfolio-list { display: flex; flex-direction: column; gap: var(--space-lg); }

.portfolio-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: all var(--transition);
}
.portfolio-item:hover { border-color: var(--color-blue); box-shadow: var(--shadow-md); }

.portfolio-item-img {
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
}
.portfolio-item-img img { width: 100%; height: 100%; object-fit: cover; }

.portfolio-item-body { padding: var(--space-lg) var(--space-xl); }
.portfolio-item-body h3 { font-size: 1.1rem; margin: var(--space-sm) 0 var(--space-md); }

.portfolio-psr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.psr-block .psr-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--color-text-muted); margin-bottom: 4px; }
.psr-block .psr-value { font-size: 0.85rem; color: var(--color-text-mid); line-height: 1.5; }

.portfolio-result { display: flex; align-items: baseline; gap: 6px; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }

/* Bloco técnico — base mecânica */
.tech-block {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
}

.tech-block-header { margin-bottom: var(--space-lg); }
.tech-block-header h3 { font-size: 1rem; }
.tech-block-intro { font-size: 0.875rem; max-width: 520px; margin-top: 6px; }

.tech-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.tech-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-md); }
.tech-card h4 { font-size: 0.875rem; margin-bottom: 5px; }
.tech-card p { font-size: 0.8rem; }

/* =============================================
   SERVIÇOS
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: var(--space-md); }
.service-card h3 { font-size: 1.05rem; margin-bottom: var(--space-sm); }
.service-card > p { margin-bottom: var(--space-lg); }

.service-includes { border-top: 1px solid var(--color-border); padding-top: var(--space-md); margin-bottom: var(--space-lg); flex: 1; }
.service-includes li { font-size: 0.825rem; color: var(--color-text-mid); padding: 5px 0; display: flex; align-items: center; gap: var(--space-sm); }
.service-includes li::before { content: '✓'; color: var(--color-green); font-weight: 700; font-size: 0.75rem; }

/* =============================================
   ARTIGOS — PÁGINA DE LISTAGEM
   ============================================= */
.articles-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar);
  gap: var(--space-2xl);
  align-items: start;
}

.articles-list { display: flex; flex-direction: column; gap: var(--space-lg); }

.article-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: all var(--transition);
}
.article-card:hover { border-color: var(--color-blue); box-shadow: var(--shadow-md); }

.article-card-img { background: var(--color-bg-soft); overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }

.article-card-body { padding: var(--space-lg); }
.article-card h3 { font-size: 1rem; margin: var(--space-sm) 0; line-height: 1.35; }
.article-card p { font-size: 0.85rem; }

/* =============================================
   SIDEBAR (ARTIGOS)
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: var(--space-xl); }

.sidebar-block { }
.sidebar-block h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-text-muted); margin-bottom: var(--space-md); }

.sidebar-curso {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
  transition: all var(--transition);
}
.sidebar-curso:hover { border-color: var(--color-blue); box-shadow: var(--shadow-sm); }

.sc-img { height: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.sc-body { padding: 12px 14px; }
.sc-platform { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-muted); margin-bottom: 3px; }
.sc-body h5 { font-size: 0.875rem; font-weight: 600; color: var(--color-navy); line-height: 1.35; }
.sc-body p { font-size: 0.78rem; margin-top: 3px; }
.sc-btn {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px;
  background: var(--color-blue);
  color: #fff;
  margin: 0 10px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.sc-btn:hover { background: var(--color-navy); color: #fff; }
.sc-afiliado { text-align: center; font-size: 0.65rem; color: var(--color-text-muted); padding-bottom: 8px; display: block; }

.sidebar-posts { display: flex; flex-direction: column; gap: var(--space-md); }
.sidebar-post { display: flex; gap: var(--space-md); align-items: flex-start; }
.sidebar-post-img { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--color-bg-soft); flex-shrink: 0; overflow: hidden; }
.sidebar-post-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post h5 { font-size: 0.825rem; font-weight: 500; line-height: 1.4; color: var(--color-navy); }
.sidebar-post span { font-size: 0.7rem; color: var(--color-text-muted); margin-top: 3px; display: block; }

/* =============================================
   SOBRE — TIMELINE
   ============================================= */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  align-items: start;
}

.about-header {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
}

.about-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.about-header-info h1 { font-size: 1.8rem; margin-bottom: 4px; }
.about-header-info .role { font-size: 0.95rem; color: var(--color-blue); font-weight: 600; margin-bottom: var(--space-sm); }
.about-header-info p { font-size: 0.9rem; max-width: 500px; }

/* Timeline */
.timeline-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-blue), var(--color-border));
}

.tl-group { margin-bottom: var(--space-2xl); }

.tl-item {
  position: relative;
  margin-bottom: var(--space-lg);
}

.tl-dot {
  position: absolute;
  left: -24px; top: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-border-mid);
  background: var(--color-bg);
  transition: all var(--transition);
}
.tl-dot.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(27,108,168,0.2);
}

.tl-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: all var(--transition);
}
.tl-card:hover { border-color: var(--color-blue); box-shadow: var(--shadow-sm); }

.tl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); margin-bottom: 4px; }
.tl-title { font-size: 0.9rem; font-weight: 600; color: var(--color-navy); }
.tl-date { font-size: 0.72rem; color: var(--color-text-muted); white-space: nowrap; background: var(--color-bg-soft); padding: 2px 8px; border-radius: 20px; }
.tl-company { font-size: 0.82rem; color: var(--color-blue); font-weight: 500; margin-bottom: 6px; }
.tl-desc { font-size: 0.82rem; line-height: 1.65; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: var(--space-sm); }
.tl-tag { font-size: 0.68rem; padding: 2px 9px; border-radius: 20px; background: var(--color-bg-soft); color: var(--color-text-mid); border: 1px solid var(--color-border); }

/* Sidebar sobre */
.about-sidebar { display: flex; flex-direction: column; gap: var(--space-xl); }

.skill-bars { display: flex; flex-direction: column; gap: var(--space-md); }
.skill-item { }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.skill-name { font-size: 0.85rem; font-weight: 500; color: var(--color-navy); }
.skill-level { font-size: 0.7rem; color: var(--color-text-muted); }
.skill-track { height: 5px; background: var(--color-border); border-radius: 99px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--color-blue), var(--color-green)); }

.certs-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.cert-item { font-size: 0.82rem; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text-mid); display: flex; align-items: center; gap: var(--space-sm); transition: all var(--transition); }
.cert-item:hover { border-color: var(--color-blue); color: var(--color-navy); }

/* =============================================
   CONTATO
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-links { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-xl); }
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
}
.contact-link:hover { border-color: var(--color-blue); box-shadow: var(--shadow-sm); }
.contact-link-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-link-text .cl-label { font-size: 0.9rem; font-weight: 600; color: var(--color-navy); }
.contact-link-text .cl-sub { font-size: 0.78rem; color: var(--color-text-muted); }

.contact-form {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.contact-form h3 { font-size: 1.1rem; margin-bottom: var(--space-lg); }

.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--color-navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-navy);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(27,108,168,0.1); }
.form-group textarea { height: 120px; resize: vertical; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-navy);
  padding: var(--space-2xl) 0 var(--space-xl);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .site-logo { font-size: 1rem; margin-bottom: var(--space-md); display: block; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 260px; }

.footer-col h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: var(--space-md); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   PAGE HEADERS
   ============================================= */
.page-hero {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
}
.page-hero h1 { font-size: 2rem; margin-bottom: var(--space-sm); }
.page-hero p { font-size: 0.95rem; max-width: 480px; }

/* =============================================
   SINGLE ARTIGO
   ============================================= */
.single-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar);
  gap: var(--space-2xl);
  align-items: start;
}

.single-article h1 { font-size: 2rem; line-height: 1.2; margin-bottom: var(--space-md); }
.single-article .article-meta { margin-bottom: var(--space-xl); }
.single-article .article-content p { margin-bottom: var(--space-md); font-size: 0.975rem; }
.single-article .article-content h2 { font-size: 1.3rem; margin: var(--space-xl) 0 var(--space-md); }
.single-article .article-content img { border-radius: var(--radius-md); margin: var(--space-lg) 0; }

/* =============================================
   UTILITÁRIOS
   ============================================= */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--space-xl); }

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1024px) {
  :root { --container: 100%; }
  .container { padding: 0 var(--space-lg); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-editorial { grid-template-columns: 1fr; }
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .articles-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--color-navy); padding: var(--space-lg); gap: var(--space-md); border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 99; }
  .menu-toggle { display: flex; flex-direction: column; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-item { grid-template-columns: 1fr; }
  .portfolio-psr { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .cursos-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
}
