/* ═══════════════════════════════════════════════════════════
   Arka Investimentos — Design System Compartilhado
   Fonte: content/arka-redesign-homepage.html
   Usado por todas as páginas do site estático.
   ═══════════════════════════════════════════════════════════ */

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

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --navy:  #0A2133;
  --navy2: #0d2a42;
  --gold:  #C8A45C;
  --gold2: #b8904a;
  --cream: #F7F4EF;
  --white: #FFFFFF;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(10, 33, 51, 0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo-wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 11px 24px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold2); transform: translateY(-1px); }

/* ─── BUTTONS ─── */
.btn-primary {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 16px 36px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }

.btn-ghost {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s;
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost-arrow {
  width: 36px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.btn-ghost-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid;
  border-top: 1px solid;
  transform: rotate(45deg);
}

/* ─── SECTION COMMONS ─── */
.section {
  padding: 140px 60px;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
}

/* ─── GOLD DIVIDER ─── */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.3;
}

/* ─── FOOTER ─── */
footer {
  background: #060f17;
  padding: 80px 60px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 16px 0 12px;
}
.footer-brand-tagline {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}
.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 4px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer-safra {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── MOBILE ≤ 768px — seletores compartilhados apenas ─── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  nav > .nav-cta { display: none; }

  .section { padding: 80px 24px; }

  footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─── MENU HAMBÚRGUER MOBILE ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body.nav-open .nav-drawer { opacity: 1; pointer-events: auto; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.nav-drawer a:hover, .nav-drawer a.active { color: var(--gold); }
.nav-drawer .nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  margin-top: 12px;
}

/* link ativo no nav desktop */
.nav-links a.active { color: var(--gold); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }
}
@media (min-width: 769px) {
  .nav-drawer { display: none; }
}

/* ─── SERVICES NAV SCROLL-SPY ─── */
.services-nav a.active { color: var(--navy); border-color: var(--gold); }

/* ─── BOTÃO ESCURO (usado em várias páginas) ─── */
.btn-dark {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--navy); padding: 18px 44px;
  text-decoration: none; display: inline-block; white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
}
.btn-dark:hover { background: var(--navy2); transform: translateY(-2px); }

/* ─── FORM SUCCESS / ERROR STATES (FormSubmit) ─── */
.form-success {
  grid-column: 1 / -1;
  padding: 40px 32px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: 0.005em;
}
.form-error {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 14px 18px;
  background: rgba(184, 144, 74, 0.08);
  border-left: 3px solid var(--gold2);
  font-size: 13px;
  color: var(--gold2);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════ */
/*  BLOG — adicionado na Wave 1 (AI-SEO Fase 3)                */
/* ═══════════════════════════════════════════════════════════ */

/* Hero padrão de páginas internas — fallback global pra .page-hero
   (cada página específica pode sobrescrever via inline <style>) */
.page-hero { background: var(--navy); padding: 180px 60px 100px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  margin: 20px 0 24px;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
}
@media (max-width: 768px) {
  .page-hero { padding: 130px 24px 70px; }
}

/* Hero do post individual */
.blog-post-hero {
  background: var(--navy);
  padding: 180px 60px 60px;
  color: var(--white);
}
.blog-post-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.blog-post-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  max-width: 820px;
  margin: 0 0 24px;
}
.blog-post-subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 700px;
  margin: 0 0 32px;
}
.blog-post-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.blog-post-meta .blog-post-author { color: var(--gold); }

/* Wrapper branco full-width pro corpo do post */
.blog-post-wrapper {
  background: var(--white);
  color: #1a1a1a;
}

/* Corpo principal */
.blog-post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 120px;
  font-size: 17px;
  line-height: 1.75;
  color: #1a1a1a;
}
.blog-post-body h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--navy);
  margin: 56px 0 20px;
  scroll-margin-top: 96px;
}
.blog-post-body h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
  margin: 40px 0 16px;
}
.blog-post-body p { margin: 0 0 20px; }
.blog-post-body ul, .blog-post-body ol {
  margin: 0 0 20px 24px;
  padding: 0;
}
.blog-post-body li { margin-bottom: 8px; }
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.blog-post-body th, .blog-post-body td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(10,33,51,0.1);
}
.blog-post-body th {
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-post-body tr:nth-child(even) td { background: rgba(247,244,239,0.6); }
.blog-post-body a { color: var(--gold2); border-bottom: 1px solid rgba(184,140,72,0.3); text-decoration: none; }
.blog-post-body a:hover { border-bottom-color: var(--gold2); }
.blog-post-body blockquote {
  margin: 32px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(247,244,239,0.4);
  font-style: italic;
  color: var(--navy);
}
.blog-post-body .footnote {
  font-size: 14px;
  border-top: 1px solid rgba(10,33,51,0.1);
  padding-top: 24px;
  margin-top: 48px;
}

/* TL;DR */
.blog-post-body .tldr-block {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
  margin: 0 0 48px;
  border-radius: 0 6px 6px 0;
}
.tldr-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold2);
  font-weight: 600;
  margin-bottom: 12px;
}
.tldr-block p:last-child { margin-bottom: 0; }

/* TOC */
.blog-post-toc {
  background: rgba(247,244,239,0.5);
  padding: 24px 32px;
  margin: 0 0 56px;
  border-radius: 6px;
  font-size: 15px;
}
.blog-post-toc-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 12px;
}
.blog-post-toc ul { margin: 0; padding-left: 20px; list-style: disc; }
.blog-post-toc li { margin-bottom: 6px; }
.blog-post-toc a { color: var(--navy); text-decoration: none; border: none; }
.blog-post-toc a:hover { color: var(--gold2); }

/* FAQ */
.faq-block {
  margin: 56px 0;
  background: var(--cream);
  padding: 32px 32px 24px;
  border-radius: 6px;
}
.faq-block h2 { margin-top: 0; }
.faq-item {
  border-bottom: 1px solid rgba(10,33,51,0.1);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--navy);
  font-size: 17px;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 0;
  color: var(--gold2);
  font-size: 20px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 8px 0 0; color: rgba(10,33,51,0.75); }

/* Leia também */
.related-block { margin: 64px 0 48px; }
.related-block h2 { margin-bottom: 24px; }
.related-card {
  display: block;
  border: 1px solid rgba(10,33,51,0.1);
  padding: 24px 28px;
  margin-bottom: 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid rgba(10,33,51,0.1);
  transition: border-color 0.2s, background 0.2s;
}
.related-card:hover { border-color: var(--gold); background: rgba(247,244,239,0.4); }
.related-cluster {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
}
.related-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0 6px;
}
.related-card p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(10,33,51,0.65);
  margin: 0;
}

/* CTA suave */
.cta-suave {
  background: var(--navy);
  color: var(--white);
  padding: 48px 40px;
  margin: 64px 0 48px;
  border-radius: 6px;
  text-align: center;
}
.cta-suave h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  margin: 0 0 16px;
}
.cta-suave p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 0 auto 24px;
}

/* Author card */
.author-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: rgba(247,244,239,0.5);
  border-radius: 6px;
  margin: 48px 0;
  align-items: flex-start;
}
.author-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold2);
  font-weight: 600;
  margin-bottom: 4px;
}
.author-info h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 8px;
}
.author-creds { display: flex; gap: 8px; margin-bottom: 12px; }
.cred {
  background: var(--navy);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.author-info p {
  font-size: 15px;
  color: rgba(10,33,51,0.75);
  margin: 0 0 12px;
}
.author-info a { color: var(--gold2); font-weight: 500; text-decoration: none; }
.author-info a:hover { text-decoration: underline; }
.author-links { margin-top: 4px; }
.author-link-sep { color: rgba(10,33,51,0.3); margin: 0 4px; }

/* Disclaimer */
.blog-post-disclaimer {
  font-size: 12px;
  color: rgba(10,33,51,0.5);
  text-align: center;
  font-style: italic;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(10,33,51,0.08);
}

/* Index do blog */
.blog-index-section {
  background: var(--cream);
  padding: 100px 0;
}
.blog-index-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}
.blog-index-section-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 32px;
}
.blog-index-pillars { margin-bottom: 80px; }
.blog-index-pillars-grid,
.blog-index-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  background: rgba(10,33,51,0.08);
}

/* Esconder a seção inteira quando o grid filho está vazio (zero posts daquele tipo) */
.blog-index-pillars:has(.blog-index-pillars-grid:empty),
.blog-index-posts:has(.blog-index-posts-grid:empty) {
  display: none;
}
.post-card {
  background: var(--white);
  padding: 36px 32px;
  text-decoration: none;
  color: var(--navy);
  display: flex; flex-direction: column;
  transition: background 0.2s;
}
.post-card:hover { background: #fefdf9; }
.post-cluster {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 12px;
}
.pillar-badge {
  background: var(--gold);
  color: var(--navy);
  padding: 2px 8px;
  margin-left: 6px;
  font-size: 9px;
  border-radius: 3px;
  font-weight: 700;
}
.post-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
}
.post-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(10,33,51,0.65);
  margin: 0 0 16px;
}
.post-date {
  font-size: 12px;
  color: rgba(10,33,51,0.5);
  margin-top: auto;
}

/* Editorial grid em /conteudo — vira 3 colunas no desktop */
.editorial-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

/* Mobile */
@media (max-width: 768px) {
  .blog-post-hero { padding: 130px 24px 40px; }
  .blog-post-body { padding: 60px 24px 80px; font-size: 16px; }
  .blog-post-body h2 { font-size: 26px; margin: 40px 0 16px; }
  .blog-post-body h3 { font-size: 20px; }
  .author-card { flex-direction: column; padding: 24px; }
  .author-photo { width: 72px; height: 72px; }
  .blog-index-section { padding: 70px 0; }
  .blog-index-wrap { padding: 0 24px; }
  .blog-index-pillars-grid,
  .blog-index-posts-grid { grid-template-columns: 1fr; }
  .post-card { padding: 28px 24px; }
  .editorial-grid.three-cols { grid-template-columns: 1fr; }
  .cta-suave { padding: 36px 24px; }
  .cta-suave h2 { font-size: 22px; }
}
