/* ============================================================
   Contabilidade Online — Ailton Pereira de Freitas · Mato Verde/MG
   Concept: "Contabilidade com visão de águia" — heraldic eagle crest,
   petrol-night + brass gold + warm parchment. 100% online, honest.
   ============================================================ */

:root {
  --petrol-deep: #071C22;
  --petrol: #0A2A33;
  --petrol-800: #0E343F;
  --petrol-700: #14424F;
  --ink: #11262C;
  --gold: #C79A4B;
  --gold-lt: #E3C179;
  --gold-deep: #A47C31;
  --cream: #F5EEDF;
  --cream-2: #EEE5D2;
  --paper: #FBF7EE;
  --sky: #6FA3AD;
  --muted: #566A6E;
  --muted-dk: #43555A;
  --line-dk: rgba(199, 154, 75, 0.22);
  --line-lt: rgba(17, 38, 44, 0.12);

  --display: 'Marcellus', 'Times New Roman', serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: 0.01em; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold-lt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: #21170A;
  box-shadow: 0 12px 34px -14px rgba(199,154,75,.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(199,154,75,.85); }
.btn-ghost {
  border-color: var(--line-dk);
  color: var(--cream);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lt); transform: translateY(-2px); }
.btn-outline-ink {
  border-color: var(--line-lt);
  color: var(--ink);
}
.btn-outline-ink:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }

/* ---------- Emblem ---------- */
.emblem { color: var(--gold); }
.emblem use { fill: currentColor; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 16px 28px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav-inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav.scrolled {
  background: rgba(7, 28, 34, 0.92);
  backdrop-filter: blur(12px);
  padding: 11px 28px;
  box-shadow: 0 1px 0 var(--line-dk), 0 18px 40px -30px #000;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .emblem { width: 40px; height: 40px; flex: none; }
.brand-name { line-height: 1; }
.brand-name b {
  font-family: var(--display); font-weight: 400; font-size: 19px;
  color: var(--cream); letter-spacing: 0.02em; display: block;
}
.brand-name span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-lt); opacity: .85;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px; color: rgba(245,238,223,.82); font-weight: 500;
  position: relative; transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--gold-lt); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 50% 118%, rgba(199,154,75,.34), transparent 55%),
    radial-gradient(90% 70% at 82% -10%, rgba(111,163,173,.16), transparent 60%),
    linear-gradient(180deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  overflow: hidden;
  padding: 132px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 30%;
  opacity: .28;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 45%, transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 45%, transparent 88%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.hero-glow-emblem {
  position: absolute; z-index: 0; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 640px); height: min(58vw, 640px);
  color: var(--gold);
  opacity: .10;
  filter: drop-shadow(0 0 60px rgba(199,154,75,.4));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }
.hero-locale {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 30px;
}
.hero-locale .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-lt); box-shadow: 0 0 12px var(--gold-lt); }
.hero-locale span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,238,223,.78); }

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: rgba(245,238,223,.82);
  max-width: 560px;
  margin-bottom: 38px;
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* ---------- Wing divider ---------- */
.wing-divider { display: flex; justify-content: center; padding: 0; color: var(--gold); }
.wing-divider svg { width: min(340px, 70%); height: auto; opacity: .8; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  background: var(--cream);
  padding: 96px 0;
  position: relative;
  text-align: center;
}
.manifesto::before, .manifesto::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line-lt);
}
.manifesto::before { top: 0; }
.manifesto .wrap { max-width: 900px; }
.manifesto .eyebrow { margin-bottom: 26px; }
.manifesto h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  color: var(--ink);
  margin-bottom: 22px;
}
.manifesto h2 em { font-style: italic; color: var(--gold-deep); }
.manifesto p { font-size: 1.12rem; color: var(--muted-dk); max-width: 620px; margin: 0 auto; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); padding: 108px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); color: var(--ink); margin-bottom: 18px; }
.section-head h2 em { font-style: italic; color: var(--gold-deep); }
.section-head p { color: var(--muted-dk); font-size: 1.05rem; max-width: 540px; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-lt);
  border-radius: 4px;
  padding: 34px 30px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(17,38,44,.4); border-color: var(--line-dk); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-num { font-family: var(--mono); font-size: 12px; color: var(--gold-deep); letter-spacing: .15em; margin-bottom: 20px; }
.svc-ico { width: 40px; height: 40px; color: var(--gold-deep); margin-bottom: 18px; }
.svc-card h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 12px; }
.svc-card p { color: var(--muted); font-size: 0.98rem; }

.svc-note {
  margin-top: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.svc-note .fx { width: 16px; height: 16px; color: var(--gold-deep); }

/* ============================================================
   DIFERENCIAIS (dark band)
   ============================================================ */
.diff {
  position: relative;
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(199,154,75,.14), transparent 55%),
    linear-gradient(180deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  color: var(--cream);
  padding: 110px 0;
  overflow: hidden;
}
.diff .hero-grain { opacity: .5; }
.diff .wrap { position: relative; z-index: 2; }
.diff .section-head h2 { color: var(--cream); }
.diff .section-head h2 em { color: var(--gold-lt); }
.diff .section-head p { color: rgba(245,238,223,.75); }
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dk); border: 1px solid var(--line-dk); border-radius: 5px; overflow: hidden; }
.diff-item {
  background: linear-gradient(180deg, rgba(14,52,63,.6), rgba(7,28,34,.6));
  padding: 40px 38px;
  display: flex; gap: 22px; align-items: flex-start;
  transition: background .4s var(--ease);
}
.diff-item:hover { background: linear-gradient(180deg, rgba(20,66,79,.8), rgba(10,42,51,.7)); }
.diff-ico { width: 46px; height: 46px; color: var(--gold-lt); flex: none; }
.diff-item h3 { font-size: 1.35rem; color: var(--cream); margin-bottom: 8px; }
.diff-item p { color: rgba(245,238,223,.72); font-size: 0.97rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--cream); padding: 108px 0; }
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.proc-step { position: relative; padding-top: 30px; }
.proc-step .n {
  font-family: var(--display); font-size: 3.4rem; color: var(--gold);
  line-height: 1; display: block; margin-bottom: 14px; opacity: .9;
}
.proc-step::before {
  content: ""; position: absolute; top: 8px; left: 0; width: 40px; height: 2px; background: var(--gold);
}
.proc-step h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 10px; }
.proc-step p { color: var(--muted-dk); font-size: 0.99rem; }

/* ============================================================
   ABOUT (contador)
   ============================================================ */
.about { background: var(--paper); padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line-dk); background: var(--petrol-deep);
  box-shadow: 0 34px 64px -36px rgba(7,28,34,.7);
}
.about-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,28,34,.10) 0%, rgba(7,28,34,0) 40%, rgba(7,28,34,.86) 100%);
}
.about-seal {
  position: absolute; top: 16px; left: 16px; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(7,28,34,.5); backdrop-filter: blur(4px);
  border: 1px solid var(--line-dk); display: flex; align-items: center; justify-content: center;
}
.about-seal .emblem { width: 62%; color: var(--gold-lt); }
.about-visual .motto {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-lt);
}
.about-body .eyebrow { margin-bottom: 22px; }
.about-body h2 { font-size: clamp(2rem, 3.8vw, 3rem); color: var(--ink); margin-bottom: 22px; }
.about-body h2 em { font-style: italic; color: var(--gold-deep); }
.about-body p { color: var(--muted-dk); margin-bottom: 18px; font-size: 1.04rem; }
.about-body p strong { color: var(--ink); font-weight: 700; }
.about-sign {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-lt);
  display: flex; align-items: center; gap: 16px;
}
.about-sign .emblem { width: 40px; color: var(--gold-deep); flex: none; }
.about-sign b { font-family: var(--display); font-size: 1.25rem; color: var(--ink); font-weight: 400; display: block; }
.about-sign span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative; overflow: hidden; color: var(--cream); text-align: center;
  padding: 118px 0;
  background:
    radial-gradient(120% 100% at 50% 120%, rgba(199,154,75,.4), transparent 55%),
    linear-gradient(180deg, var(--petrol-deep), var(--petrol));
}
.cta .wrap { position: relative; z-index: 2; max-width: 760px; }
.cta .emblem { width: 72px; margin: 0 auto 30px; color: var(--gold); filter: drop-shadow(0 0 40px rgba(199,154,75,.4)); }
.cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.cta h2 em { font-style: italic; color: var(--gold-lt); }
.cta p { color: rgba(245,238,223,.8); font-size: 1.1rem; max-width: 500px; margin: 0 auto 38px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--petrol-deep); color: rgba(245,238,223,.6); padding: 64px 0 34px; border-top: 1px solid var(--line-dk); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dk); }
.footer .brand .emblem { width: 44px; }
.footer .brand-name b { font-size: 21px; }
.footer-tag { max-width: 320px; margin-top: 16px; font-size: 0.92rem; line-height: 1.6; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 16px; font-weight: 400; }
.footer-col a, .footer-col p { display: block; font-size: 0.95rem; color: rgba(245,238,223,.7); margin-bottom: 9px; transition: color .3s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; font-family: var(--mono); letter-spacing: .03em; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1FA855; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -8px rgba(31,168,85,.6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .scroll-hint .line { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 340px; margin: 0 auto; }
  .proc-grid { grid-template-columns: 1fr; gap: 30px; }
  .diff-item { padding: 34px 30px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.mobile-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(7,28,34,.98); padding: 14px 20px 22px;
    border-top: 1px solid var(--line-dk); backdrop-filter: blur(12px);
    box-shadow: 0 24px 40px -20px #000;
  }
  .nav.mobile-open .nav-links a { padding: 12px 2px; width: 100%; font-size: 16px; }
  .nav.mobile-open .nav-links a::after { display: none; }
  .nav.mobile-open .nav-links .nav-cta { justify-content: center; margin-top: 12px; padding: 15px; }

  .wrap { padding: 0 22px; }
  .hero { padding: 112px 0 74px; min-height: auto; }
  .hero-locale { margin-bottom: 22px; }
  .hero-locale span { font-size: 10.5px; letter-spacing: .13em; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-sub { font-size: 1.05rem; margin-bottom: 30px; max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-glow-emblem { opacity: .05; right: -34%; width: 92vw; }

  .manifesto { padding: 66px 0; }
  .manifesto p { font-size: 1.02rem; }
  .services, .diff, .process, .about { padding: 70px 0; }
  .cta { padding: 82px 0; }
  .section-head { margin-bottom: 40px; }
  .svc-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-item { padding: 30px 26px; gap: 18px; }
  .footer-top { flex-direction: column; gap: 34px; }
  .footer-cols { gap: 44px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .nav { padding: 12px 18px; }
  .brand .emblem { width: 34px; height: 34px; }
  .brand-name b { font-size: 16px; }
  .brand-name span { font-size: 8.5px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-sub { font-size: 1rem; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .svc-card { padding: 28px 24px; }
  .about-visual { max-width: 100%; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
