/* ==========================================================================
   Visão Controladoria e Assessoria Contábil — Stylesheet
   ========================================================================== */

:root{
  --navy: #1D2736;
  --navy-deep: #121924;
  --green: #37AE69;
  --green-deep: #1F6B41;
  --green-soft: #E8F4ED;
  --paper: #F3F5F3;
  --white: #FFFFFF;
  --ink: #1D2736;
  --ink-soft: #55636F;
  --ink-faint: #8A94A0;
  --line: rgba(29,39,54,0.13);
  --line-on-navy: rgba(255,255,255,0.16);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section{ position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, .display{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1{ font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.08; font-weight: 500; }
h2{ font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.15; font-weight: 500; }
h3{ font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.3; font-weight: 600; }

.eyebrow{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--green-deep);
  margin: 0 0 14px;
}

.lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.65;
}

p.body-text{ color: var(--ink-soft); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--green); color: var(--white); }
.btn-primary:hover{ background: var(--green-deep); }
.btn-outline{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover{ background: var(--navy); color: var(--white); }
.btn-outline-light{ background: transparent; color: var(--white); border-color: var(--line-on-navy); }
.btn-outline-light:hover{ background: var(--white); color: var(--navy); }

.btn-row{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand{ display: flex; align-items: center; }
.brand img{ height: 42px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: 40px; }
.main-nav ul{ display: flex; gap: 32px; }
.main-nav a{
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--green);
  transition: right .3s var(--ease);
}
.main-nav a:hover::after{ right: 0; }

.nav-cta{ display: flex; align-items: center; gap: 22px; }
.nav-cta .btn{ padding: 11px 22px; font-size: 0.9rem; }

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy);
  position: relative; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open span::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after{ transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  background: var(--paper);
  padding: 88px 0 100px;
}
.hero-grid{
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-copy{
  flex: 1 1 0;
  min-width: 0;
  opacity: 0; transform: translateY(18px);
  animation: rise .9s var(--ease) .1s forwards;
}
.hero h1{ max-width: 17ch; font-size: clamp(2.04rem, 3.74vw, 3.06rem); }
.hero .lede{ margin-top: 22px; }

.hero-figure{
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 560px;
  opacity: 0; transform: translateY(18px);
  animation: rise .9s var(--ease) .32s forwards;
}
.ring-mark{
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  z-index: 0;
}
.hero-figure .ring-mark{ width: 62%; height: 62%; top: 4%; left: 19%; border-color: rgba(55,174,105,0.3); }
.hero-photo{
  position: relative;
  z-index: 1;
}
.hero-photo img{ display: block; width: 100%; height: auto; max-width: 100%; }
.hero-badge{
  position: absolute;
  left: 6%; bottom: -34px;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 18px 40px -18px rgba(18,25,36,0.55);
  max-width: calc(100% - 12%);
}
.hero-badge .mark{ width: 34px; height: 34px; flex: none; }
.hero-badge strong{ display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.hero-badge span{ display: block; font-size: 0.82rem; color: rgba(255,255,255,0.68); margin-top: 2px; }

@keyframes rise{ to{ opacity: 1; transform: translateY(0); } }

/* ---------- Authority section ---------- */
.authority{ padding: 108px 0; }
.authority-head{ max-width: 640px; margin-bottom: 60px; }
.authority-head p.body-text{ margin-top: 18px; }

.trait-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.trait{
  padding: 30px 26px 30px 0;
  border-right: 1px solid var(--line);
}
.trait:last-child{ border-right: none; }
.trait .mark{ width: 30px; height: 30px; margin-bottom: 18px; }
.trait h3{ margin-bottom: 10px; }
.trait p{ color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Pain points ---------- */
.pain{ background: var(--navy); color: var(--white); padding: 104px 0; }
.pain .eyebrow{ color: #8FD6AC; }
.pain h2{ color: var(--white); max-width: 16ch; }
.pain-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 52px;
  align-items: start;
}
.pain-list li{
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-on-navy);
  font-size: 1.02rem;
  color: rgba(255,255,255,0.92);
}
.pain-list li:first-child{ padding-top: 0; }
.pain-list svg{ flex: none; margin-top: 3px; }
.pain-note{ font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; font-weight: 500; color: var(--white); }
.pain-note::before{ content: "\201C"; color: var(--green); }

/* ---------- Solution ---------- */
.solution{ padding: 108px 0; }
.solution .container{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.solution-mark{ width: 100%; max-width: 300px; }
.solution p.body-text{ margin-top: 20px; }
.solution p + p{ margin-top: 16px; }

/* ---------- Services ---------- */
.services{ background: var(--paper); padding: 108px 0; }
.services-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 54px; }
.services-head h2{ max-width: 12ch; }

.service-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: background .25s var(--ease);
}
.service-card:hover{ background: var(--green-soft); }
.service-card .index{ font-family: var(--font-display); font-style: italic; color: var(--green-deep); font-size: 0.95rem; margin-bottom: 22px; }
.service-card h3{ margin-bottom: 12px; }
.service-card ul{ margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.service-card ul li{ font-size: 0.93rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.service-card ul li::before{ content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.service-card .go{
  margin-top: auto;
  padding-top: 26px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card .go svg{ transition: transform .25s var(--ease); }
.service-card:hover .go svg{ transform: translateX(4px); }

/* ---------- Differentials ---------- */
.differentials{ padding: 108px 0; }
.differentials-head{ max-width: 560px; margin-bottom: 56px; }
.diff-list{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diff-item{ background: var(--white); padding: 36px 32px; }
.diff-item h3{ margin-bottom: 10px; font-size: 1.15rem; }
.diff-item p{ color: var(--ink-soft); font-size: 0.95rem; }
.diff-item .mark{ width: 26px; height: 26px; margin-bottom: 20px; }
.diff-item.diff-brand{ background: var(--green-soft); display: flex; align-items: center; justify-content: center; padding: 36px; }
.diff-item.diff-brand svg{ width: 68px; height: 68px; }

/* ---------- About ---------- */
.about{ background: var(--navy-deep); color: var(--white); padding: 110px 0; }
.about .container{ display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 70px; }
.about .eyebrow{ color: #8FD6AC; }
.about h2{ color: var(--white); }
.about p.body-text{ color: rgba(255,255,255,0.76); }
.about p + p{ margin-top: 18px; }

/* ---------- CTA final ---------- */
.cta-final{ padding: 120px 0; text-align: center; background: var(--green-soft); }
.cta-final .container{ max-width: 720px; }
.cta-final h2{ max-width: none; }
.cta-final .lede{ max-width: none; margin: 18px auto 0; }
.cta-final .btn-row{ justify-content: center; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,0.72); padding: 72px 0 32px; }
.footer-top{ display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 50px; padding-bottom: 52px; border-bottom: 1px solid var(--line-on-navy); }
.footer-brand img{ height: 40px; margin-bottom: 18px; }
.footer-brand p{ font-size: 0.92rem; max-width: 32ch; color: rgba(255,255,255,0.6); }
.footer-col h4{ color: var(--white); font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 11px; }
.footer-col a{ font-size: 0.92rem; color: rgba(255,255,255,0.72); transition: color .2s; }
.footer-col a:hover{ color: var(--green); }
.footer-social{ display: flex; gap: 14px; margin-top: 20px; }
.footer-social a{ width: 36px; height: 36px; border: 1px solid var(--line-on-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover{ border-color: var(--green); color: var(--green); }
.footer-bottom{ display: flex; justify-content: space-between; padding-top: 28px; font-size: 0.84rem; color: rgba(255,255,255,0.5); }

/* ---------- WhatsApp floating button ---------- */
.wa-float{
  position: fixed; right: 26px; bottom: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(31,107,65,0.55);
  transition: transform .25s var(--ease);
}
.wa-float:hover{ transform: scale(1.06); }

/* ==========================================================================
   Service detail pages
   ========================================================================== */
.service-hero{ background: var(--paper); padding: 60px 0 80px; }
.breadcrumb{ display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 28px; }
.breadcrumb a{ color: var(--ink-soft); font-weight: 600; }
.breadcrumb a:hover{ color: var(--green-deep); }
.service-hero-grid{ display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.service-hero h1{ max-width: 18ch; }
.service-hero .lede{ margin-top: 18px; }

.service-body{ padding: 96px 0; }
.service-body .container{ display: grid; grid-template-columns: 1fr 0.62fr; gap: 80px; align-items: start; }
.service-included h2{ margin-bottom: 30px; }
.included-list{ display: flex; flex-direction: column; }
.included-list li{
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
}
.included-list li:last-child{ border-bottom: 1px solid var(--line); }
.included-list .num{ font-family: var(--font-display); font-style: italic; color: var(--green-deep); font-size: 1rem; flex: none; width: 28px; }

.service-aside{ position: sticky; top: 110px; }
.aside-card{ background: var(--navy); color: var(--white); padding: 40px 34px; border-radius: var(--radius); }
.aside-card .mark{ width: 32px; height: 32px; margin-bottom: 22px; }
.aside-card h3{ color: var(--white); margin-bottom: 12px; }
.aside-card p{ color: rgba(255,255,255,0.72); font-size: 0.94rem; margin-bottom: 26px; }
.aside-card .btn{ width: 100%; justify-content: center; }
.aside-links{ margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.aside-links h4{ font-size: 0.86rem; text-transform: none; color: var(--ink-faint); font-weight: 700; margin-bottom: 16px; }
.aside-links ul{ display: flex; flex-direction: column; gap: 12px; }
.aside-links a{ font-size: 0.96rem; font-weight: 600; color: var(--navy); }
.aside-links a:hover{ color: var(--green-deep); }
.aside-links a.is-current{ color: var(--green-deep); }

.related-cta{ background: var(--green-soft); padding: 90px 0; text-align: center; }
.related-cta .container{ max-width: 640px; }
.related-cta .btn-row{ justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .container{ padding: 0 24px; }
  .main-nav ul{ gap: 22px; }
  .solution .container, .about .container, .service-body .container{ grid-template-columns: 1fr; }
  .hero-grid{ flex-direction: column; align-items: stretch; }
  .hero-figure{ order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-copy{ max-width: none; }
  .trait-grid{ grid-template-columns: repeat(2, 1fr); }
  .trait{ border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 4px; }
  .pain-grid{ grid-template-columns: 1fr; gap: 40px; }
  .service-grid{ grid-template-columns: 1fr; }
  .diff-list{ grid-template-columns: repeat(2, 1fr); }
  .footer-top{ grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .service-aside{ position: static; margin-top: 50px; }
  .service-hero-grid{ grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px){
  .main-nav{ position: fixed; inset: 73px 0 0 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 28px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); overflow-y: auto; }
  .main-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul{ flex-direction: column; gap: 20px; }
  .main-nav a{ font-size: 1.1rem; }
  .nav-cta{ flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
  .nav-cta .btn{ width: 100%; justify-content: center; }
  .nav-toggle{ display: flex; }
  .authority-head, .services-head, .differentials-head{ margin-bottom: 40px; }
  .services-head{ flex-direction: column; align-items: flex-start; }
  .diff-list{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 10px; }
  h1{ max-width: none !important; }
  .pain h2{ max-width: none; }
}
