/* =============================================
   ESCRITÓRIO CONTÁBIL POLEGA - CSS PRINCIPAL
   Paleta: #1A237E (azul escuro), #F5F5F5 (branco), #D4AF37 (dourado)
   v2 — Performance: animações compostas, contraste corrigido
   ============================================= */

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

:root {
  --azul:    #1A237E;
  --azul-md: #283593;
  --azul-lt: #3949AB;
  --branco:  #F5F5F5;
  --ouro:    #D4AF37;
  --ouro-lt: #E8C84A;
  --cinza:   #6B7280;
  --cinza-lt:#F3F4F6;
  --texto:   #1F2937;
  --borda:   #E5E7EB;
  --sombra:  0 4px 24px rgba(26,35,126,.10);
  --radius:  10px;
  --trans:   all .3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  color: var(--texto);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--azul); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--ouro); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TIPOGRAFIA ---- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--azul);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--cinza);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--ouro);
  border-radius: 2px;
  margin: 0.75rem auto 1.5rem;
}

/* ---- BOTÕES ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .3s ease, opacity .3s ease;
  text-decoration: none;
  letter-spacing: .3px;
  will-change: transform;
}
.btn-primary {
  background: var(--ouro);
  color: var(--azul);
  border-color: var(--ouro);
}
.btn-primary:hover {
  background: var(--ouro-lt);
  color: var(--azul);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--azul);
}
.btn-azul {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}
.btn-azul:hover {
  background: var(--azul-md);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #128C7E; /* Cor de contraste mais alto que passa nos testes de acessibilidade */
  color: #fff;
  border-color: #128C7E;
}
.btn-whatsapp:hover {
  background: #075E54;
  transform: translateY(-2px);
}

/* ---- HEADER / NAVBAR ---- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,35,126,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  transition: var(--trans);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo img { height: 48px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .nome {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.1;
}
.logo-text .sub {
  font-size: 0.72rem;
  color: var(--ouro);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--trans);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ouro);
  background: rgba(212,175,55,.12);
}
.nav-cta {
  background: var(--ouro) !important;
  color: var(--azul) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
}
.nav-cta:hover {
  background: var(--ouro-lt) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--trans);
}

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-md) 50%, #1565C0 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212,175,55,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.4);
  color: var(--ouro);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-text h1 span { color: var(--ouro); }
.hero-text p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--ouro);
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image img {
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  width: 100%;
  max-width: 520px;
}
.hero-badge-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge-float .icon {
  width: 44px; height: 44px;
  background: var(--azul);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ouro);
  font-size: 1.2rem;
}
.hero-badge-float .info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--azul);
  font-family: 'Montserrat', sans-serif;
}
.hero-badge-float .info span {
  font-size: 0.75rem;
  color: var(--cinza);
}

/* ---- SEÇÕES GERAIS ---- */
section { padding: 90px 0; }
.section-light { background: var(--cinza-lt); }
.section-dark  { background: var(--azul); }

/* ---- SERVIÇOS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--sombra);
  border: 1px solid var(--borda);
  transition: transform .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ouro);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--ouro);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--azul), var(--azul-lt));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ouro);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.service-card p  { color: var(--cinza); font-size: 0.92rem; margin: 0; }

/* ---- SOBRE ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-img {
  position: relative;
}
.about-img img {
  border-radius: 20px;
  box-shadow: var(--sombra);
  width: 100%;
}
.about-img-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--ouro);
  color: var(--azul);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
}
.about-img-badge strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
}
.about-img-badge span { font-size: 0.78rem; font-weight: 600; }
.about-text .crc-info {
  background: var(--cinza-lt);
  border-left: 4px solid var(--ouro);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}
/* Contraste corrigido: era var(--cinza) #6B7280 sobre #F3F4F6 — ratio ~3.8 (falha AA)
   Agora usa #374151 (ratio ~7.0, passa AAA) */
.about-text .crc-info p { margin: 0; font-size: 0.88rem; color: #374151; }
.about-text .crc-info strong { color: var(--azul); }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.mvv-item {
  text-align: center;
  padding: 20px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--borda);
}
.mvv-item i {
  font-size: 1.8rem;
  color: var(--ouro);
  margin-bottom: 0.75rem;
  display: block;
}
.mvv-item h4 { font-size: 0.9rem; margin-bottom: 0.4rem; }
.mvv-item h3.mvv-heading { font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--azul); }
.mvv-item p  { font-size: 0.8rem; color: var(--cinza); margin: 0; }

/* ---- DIFERENCIAIS ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 32px 20px;
}
.feature-item i {
  font-size: 2.2rem;
  color: var(--ouro);
  margin-bottom: 1rem;
  display: block;
}
/* Headings dentro de section-dark: h3.feature-heading herda cor branca */
.feature-item h4 { color: #fff; margin-bottom: 0.5rem; }
.feature-item h3.feature-heading { color: #fff; margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-item p  { color: rgba(255,255,255,.85); font-size: 0.88rem; margin: 0; }

/* ---- CONTATO ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--azul);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ouro);
  font-size: 1.1rem;
}
.contact-item-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}
.contact-item-text span, .contact-item-text a {
  font-size: 0.95rem;
  color: var(--texto);
  font-weight: 500;
}
.contact-form-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--sombra);
  border: 1px solid var(--borda);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--borda);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--texto);
  background: #fff;
  transition: border-color .3s ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(26,35,126,.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.honeypot { display: none !important; }
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.form-msg.success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; display: block; }
.form-msg.error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; display: block; }
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--cinza);
  margin-bottom: 1.25rem;
}
.privacy-check input { width: auto; min-width: auto; margin-top: 3px; }
.privacy-check a { color: var(--azul); text-decoration: underline; }

/* ---- MAPA ---- */
.map-section { padding: 0; }
.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ---- FOOTER ---- */
#footer {
  background: #0D1257;
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-text .nome { font-size: 1rem; }
.footer-brand p {
  color: rgba(255,255,255,.75);
  font-size: 0.88rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}
.footer-col h4,
.footer-col .footer-col-title {
  color: var(--ouro);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.85);
  font-size: 0.88rem;
  transition: var(--trans);
}
.footer-col ul li a:hover { color: var(--ouro); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.footer-contact-item i {
  color: var(--ouro);
  font-size: 0.9rem;
  margin-top: 3px;
  min-width: 16px;
}
.footer-contact-item span, .footer-contact-item a {
  color: rgba(255,255,255,.85);
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-contact-item a:hover { color: var(--ouro); }

/* Footer bottom — contraste corrigido: era .45 opacity (falha AA), agora .75 */
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.85);
  margin: 0;
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.85);
}
.footer-legal a:hover { color: var(--ouro); }
.crc-badge {
  background: rgba(212,175,55,.1);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 1rem;
}
.crc-badge p {
  font-size: 0.78rem;
  color: rgba(255,255,255,.85);
  margin: 0;
  line-height: 1.5;
}
.crc-badge strong { color: var(--ouro); }

/* ---- WHATSAPP FLOAT ---- */
/* Animação refeita com opacity+transform (compostas) em vez de box-shadow (não-composta) */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  background: #128C7E; /* Contraste corrigido para acessibilidade */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, opacity .3s ease;
  animation: pulse-wpp 2.5s infinite;
  will-change: transform, opacity;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background: #075E54;
}
.whatsapp-float i { color: #fff; font-size: 1.6rem; }
@keyframes pulse-wpp {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.06); opacity: .88; }
}

/* ---- BREADCRUMB ---- */
.breadcrumb-section {
  background: var(--azul);
  padding: 100px 0 40px;
}
.breadcrumb-section h1 { color: #fff; margin-bottom: 0.5rem; }
.breadcrumb-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.75);
}
.breadcrumb-nav a { color: var(--ouro); }
.breadcrumb-nav span { color: rgba(255,255,255,.5); }

/* ---- LGPD BANNER ---- */
.lgpd-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(15,20,80,.97);
  color: rgba(255,255,255,.9);
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.lgpd-banner p { margin: 0; }
.lgpd-banner a { color: var(--ouro); text-decoration: underline; }
.lgpd-banner .lgpd-btns { display: flex; gap: 10px; flex-shrink: 0; }
.lgpd-btn-accept {
  background: var(--ouro);
  color: var(--azul);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background .3s ease;
}
.lgpd-btn-accept:hover { background: var(--ouro-lt); }

/* ---- ALERT / TOAST ---- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ---- BACK TO TOP ---- */
.back-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .3s ease;
  border: none;
  font-size: 1rem;
  z-index: 998;
  will-change: transform, opacity;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--ouro); color: var(--azul); transform: translateY(-3px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--azul); padding: 20px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 60px 0; }
  .contact-form-box { padding: 24px 20px; }
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-ouro   { color: var(--ouro); }
.text-azul   { color: var(--azul); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.d-flex { display: flex; }
.gap-2  { gap: 1rem; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
