/* ==========================================================================
   Essent Contábil — Design tokens
   ========================================================================== */
:root {
  --navy-deep: #0B2C5C;
  --navy-royal: #1E4E9C;
  --navy-dark: #0A1A33;
  --gold: #F2B705;
  --gold-deep: #E8A420;
  --bg-light: #FFFFFF;
  --bg-soft: #F7F7F5;
  --text: #2E2E2E;
  --text-light: #EAF0FB;

  --font-display: 'Poppins', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(11, 44, 92, 0.08);
  --shadow-gold: 0 8px 24px rgba(242, 183, 5, 0.25);
  --container: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: var(--navy-deep); }
p { margin: 0 0 1em; }

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

.text-gold { color: var(--gold-deep); }
.text-gold-serif {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold-deep);
  margin-bottom: .8em;
}
.eyebrow-light { color: var(--gold); }
.section-title-light { color: var(--text-light); }

section { padding: 96px 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(242, 183, 5, 0.35); }
.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: height .35s ease, background .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(10, 26, 51, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: flex; }
.brand-mark img { display: block; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--navy-deep);
  font-size: .95rem;
}
.brand-text strong { font-weight: 800; }
.site-header .brand-text { color: var(--text-light); }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  color: var(--text-light);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-light); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-deep) 55%, var(--navy-royal) 100%);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(242,183,5,0.18) 0%, rgba(242,183,5,0) 70%);
  border-radius: 50%;
}
.hero-sparkles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 85% 60%, rgba(242,183,5,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 75%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 45%, rgba(255,255,255,.3) 50%, transparent 51%);
  animation: sparkle 6s ease-in-out infinite alternate;
}
@keyframes sparkle { from { opacity: .5; } to { opacity: 1; } }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero-copy h1 { color: var(--text-light); font-size: clamp(2.1rem, 4vw, 3.2rem); }
.hero-sub { color: rgba(234,240,251,.85); font-size: 1.1rem; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero .eyebrow { color: var(--gold); }

.hero-visual { display: flex; justify-content: center; }
.hero-mark {
  position: relative;
  width: min(360px, 80%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 5s ease-in-out infinite;
}
.hero-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(242,183,5,0.25);
}
#heroC {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shine { 0%,100% { opacity: 1; } 50% { opacity: .8; } }

.scroll-indicator {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  position: relative;
}
.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { top: 6px; opacity: 1; } 70% { opacity: 0; } 100% { top: 18px; opacity: 0; } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--bg-soft); padding: 64px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 32px;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--navy-deep);
}
.stat-plus { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold-deep); }
.stat p { font-family: var(--font-display); font-weight: 500; color: var(--text); margin-top: 4px; }

/* ==========================================================================
   About / Essência
   ========================================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about-frame {
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-royal));
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  max-width: 380px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(242,183,5,.3);
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.about-frame-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px 18px;
  background: linear-gradient(0deg, rgba(10,26,51,.92) 0%, rgba(10,26,51,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-frame-caption strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold);
}
.about-frame-caption span {
  font-family: var(--font-display);
  font-size: .8rem;
  color: rgba(234,240,251,.85);
  letter-spacing: .03em;
}

/* ==========================================================================
   Missão / Visão / Valores
   ========================================================================== */
.mvv {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  text-align: center;
}
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.mvv-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(242,183,5,.18);
  border-radius: var(--radius);
  padding: 40px 28px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.mvv-card:hover {
  transform: perspective(600px) rotateX(4deg) translateY(-6px);
  border-color: rgba(242,183,5,.5);
  background: rgba(255,255,255,.06);
}
.mvv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  margin-bottom: 20px;
}
.mvv-card h3 { color: var(--text-light); font-family: var(--font-serif); font-style: italic; font-weight: 600; }
.mvv-card p { color: rgba(234,240,251,.75); font-size: .95rem; margin: 0; }

/* ==========================================================================
   Serviços
   ========================================================================== */
.services { background: var(--bg-light); text-align: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}
.service-card {
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(242,183,5,.5);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-royal), var(--navy-deep));
  color: var(--gold);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: .92rem; color: #555; }
.link-more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy-royal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-more span { transition: transform .25s ease; }
.link-more:hover span { transform: translateX(4px); }
.link-more:hover { color: var(--gold-deep); }

/* ==========================================================================
   Diferenciais
   ========================================================================== */
.differentials { background: var(--bg-soft); text-align: center; }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.diff-item { padding: 8px; }
.diff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--gold);
  margin-bottom: 18px;
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,183,5,.35); }
  50% { box-shadow: 0 0 0 10px rgba(242,183,5,0); }
}
.draw-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 1.2s ease forwards .3s;
}
.diff-item[data-aos].aos-animate .draw-path { animation-play-state: running; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.diff-item h3 { font-size: 1.05rem; }
.diff-item p { font-size: .9rem; color: #555; }

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.testimonials { background: var(--bg-light); text-align: center; }
.testimonial-slider { max-width: 720px; margin: 48px auto 0; position: relative; }
.testimonial-viewport { overflow: hidden; border-radius: var(--radius); }
.testimonial-track { display: flex; }
.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 48px 40px;
  transition: opacity .4s ease;
}
.testimonial-slide p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy-deep);
  line-height: 1.5;
}
.testimonial-slide footer { font-family: var(--font-display); font-weight: 600; color: var(--gold-deep); font-size: .9rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #d8d8d4;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
  padding: 0;
}
.testimonial-dots button.active { background: var(--gold-deep); transform: scale(1.2); }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-dark) 100%);
  padding: 100px 0;
  text-align: center;
}
.cta-final .hero-glow { top: -30%; left: 50%; transform: translateX(-50%); }
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 { color: var(--text-light); font-size: clamp(1.6rem, 3.4vw, 2.5rem); max-width: 640px; margin: 0 auto 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--navy-dark);
  color: rgba(234,240,251,.75);
  padding: 72px 0 0;
  overflow: hidden;
}
.footer-mark { position: absolute; right: -60px; bottom: -80px; opacity: .06; pointer-events: none; }
.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-text-light { color: var(--text-light); font-size: 1.05rem; }
.footer-col h4 { color: var(--text-light); font-family: var(--font-display); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-brand p { font-size: .9rem; max-width: 320px; margin-top: 14px; }
.footer-bottom {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(234,240,251,.5);
}

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 999;
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(10,26,51,.98);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 24px 24px; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
