/* VAZ TAX — Consultoria Tributária. Paleta derivada do logo (navy #2F3B56, gold #BA7B11). */
:root {
  --navy: #2F3B56;
  --navy-dark: #1E2638;
  --navy-deep: #161B28;
  --navy-soft: #3D4A68;
  --gold: #BA7B11;
  --gold-hover: #9A660D;
  --gold-light: #E8C56B;
  --gold-bright: #FFE54C;
  --cream: #F7F4EE;
  --cream-dark: #EDE8DC;
  --paper: #FBF9F5;
  --white: #fff;
  --ink: #1A1F2E;
  --muted: #5C6370;
  --line: #E4E0D8;
  --whatsapp: #1E6B46;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --container: 1140px;
  --header-h: 84px;
  --radius: 6px;
  --shadow: 0 10px 32px rgba(47, 59, 86, 0.08);
  --ease: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 210px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: 0.2rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px;
  cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--navy); position: absolute; left: 11px;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--navy); text-decoration: none;
}
.icon-link:hover { color: var(--gold); }
.icon-link svg { width: 22px; height: 22px; fill: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.72rem 1.25rem; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #175536; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 3.2rem 0 3.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 40%, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: min(100%, 340px); }

.trust-bar {
  background: var(--navy); color: #fff; padding: 1rem 0;
}
.trust-bar ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2.2rem;
  font-size: 0.92rem; letter-spacing: 0.02em;
}
.trust-bar li { display: flex; align-items: center; gap: 0.5rem; color: #f3f0ea; }
.trust-bar li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); }

/* Sections */
.section { padding: 4.2rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p, .section-navy li { color: rgba(255,255,255,.88); }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); }
.gold-rule {
  width: 48px; height: 3px; background: var(--gold); margin: 0 0 1.1rem; border: 0;
}

/* Cards / services */
.cards {
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
}
.card {
  flex: 1 1 calc(33.333% - 1.25rem);
  max-width: calc(33.333% - 0.9rem);
  min-width: 260px;

  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.4rem;
  text-decoration: none; color: inherit; transition: transform var(--ease), border-color var(--ease);
}
a.card:hover { transform: translateY(-3px); border-color: var(--gold); color: inherit; }
.card h3 { margin-bottom: 0.2rem; font-size: 1.28rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card .more { margin-top: auto; padding-top: 0.9rem; color: var(--gold); font-weight: 600; font-size: 0.9rem; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.split-visual { display: flex; justify-content: center; }
.split-visual img { width: min(100%, 320px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { padding: 0.4rem 0.2rem; }
.step-num {
  font-family: var(--font-serif); font-size: 1.8rem; color: var(--gold); font-weight: 600;
  line-height: 1; margin-bottom: 0.5rem;
}

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
}
.post-card:hover { border-color: var(--gold); color: inherit; }
.post-card .thumb {
  height: 8px; background: linear-gradient(90deg, var(--navy), var(--gold));
}
.post-card .body { padding: 1.35rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.post-card h3 { font-size: 1.3rem; margin: 0.45rem 0 0.5rem; }
.post-card p { color: var(--muted); font-size: 0.98rem; margin: 0 0 1rem; }
.post-card .more { margin-top: auto; color: var(--gold); font-weight: 600; font-size: 0.9rem; }

/* CTA band */
.cta-band { text-align: center; padding: 4rem 1rem; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36rem; margin: 0 auto 1.4rem; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--cream); padding: 2.6rem 0 2.4rem; border-bottom: 1px solid var(--line);
}
.page-hero p { color: var(--muted); max-width: 42rem; margin: 0; }

/* Article */
.article { padding: 3rem 0 4rem; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.6rem; }
.article .content { font-size: 1.08rem; }
.article .content h2 { margin-top: 1.8em; }
.article .content h3 { margin-top: 1.3em; }
.article .content a { color: var(--navy); }
.article-cta {
  margin-top: 2.8rem; padding: 1.6rem 1.5rem; background: var(--cream);
  border-left: 3px solid var(--gold);
}
.article-nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

/* Services detail */
.service-block { padding: 1.2rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: 0; }
.service-block h2 { scroll-margin-top: 100px; }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start;
}
.contact-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.contact-list li { margin: 0 0 1rem; }
.contact-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.15rem; }
.contact-list a { text-decoration: none; }
.map-wrap {
  margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  min-height: 360px; background: var(--cream-dark);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

form.contact-form { display: grid; gap: 0.9rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-success, .form-error {
  padding: 0.8rem 1rem; border-radius: var(--radius); display: none;
}
.form-success { background: #e8f4ec; color: #1E6B46; }
.form-error { background: #f8ecec; color: #8B2E2E; }

/* Footer */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,.82); padding: 3rem 0 1.4rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer .logo img { width: 200px; filter: none; }
.footer-logo-wrap {
  background: transparent;
}
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.45rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem;
  font-size: 0.82rem; color: rgba(255,255,255,.65); line-height: 1.55;
}
.footer-legal p { margin: 0 0 0.5rem; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(22, 27, 40, 0.35);
  text-decoration: none;
}
.wa-float:hover { background: var(--gold); color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Misc */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid, .footer-grid,
  .post-grid, .steps { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .card { max-width: none; flex: 1 1 100%; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(72vw, 200px); margin-inline: auto; }
  .trust-bar ul { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
  .trust-bar { padding: 1.1rem 0; }
  .logo img { width: 170px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.3rem; gap: 0.6rem;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 0.7rem 0; }
  .header-actions { margin-top: 0.4rem; }
  .section { padding: 3rem 0; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .card { flex: 1 1 calc(50% - 1.25rem); max-width: calc(50% - 0.7rem); }
}
@media (max-width: 480px) {
  .hero { padding: 2.2rem 0 2.4rem; }
  .btn-row .btn { width: 100%; }
}
