/* ============================================================
   CONTABILIDADE BATISTA — Custom Stylesheet
   Design System + Animations + Tailwind Overrides
   ============================================================ */

/* Google Fonts */

/* Design Tokens */
:root {
  --navy:          #002554;
  --navy-dark:     #001a3d;
  --navy-light:    #003580;
  --navy-mid:      #0d3a7a;
  --gold:          #D9A238;
  --gold-light:    #F0C060;
  --gold-dark:     #B8842A;
  --gold-text:     #865C1B; /* Dourado para texto sobre fundos claros. */
  --white:         #FFFFFF;
  --gray-50:       #F8F9FA;
  --gray-100:      #F1F3F5;
  --gray-200:      #E9ECEF;
  --gray-400:      #ADB5BD;
  --gray-600:      #626B73;
  --gray-700:      #495057;
  --gray-800:      #343A40;
  --whatsapp:      #25D366;
  --whatsapp-dark: #1DA851;
  --whatsapp-text: #147B3B;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-heading:  'Montserrat', 'Inter', sans-serif;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --radius-full:   9999px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 12px rgba(0,37,84,.15), 0 2px 4px rgba(0,37,84,.08);
  --shadow-lg:     0 10px 30px rgba(0,37,84,.20), 0 4px 8px rgba(0,37,84,.10);
  --shadow-gold:   0 4px 20px rgba(217,162,56,.35);
  --shadow-nav:    0 2px 20px rgba(0,0,0,.12);
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h:      72px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

/* Skip Navigation */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--gold); color: var(--navy-dark);
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; z-index: 9999; transition: top 0.2s; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 10000; transition: width 0.1s linear;
}

/* HEADER */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 1000; transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 37, 84, 0.08);
  box-shadow: 0 2px 15px rgba(0, 37, 84, 0.06);
}
#header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 37, 84, 0.12);
  border-bottom-color: rgba(0, 37, 84, 0.12);
}
#header.solid { background: #FFFFFF; }

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { height: 42px; width: auto; max-width: 175px; object-fit: contain; display: block; }

/* Flaticon UICONS base */
.fi { line-height: 1; vertical-align: middle; }
.service-icon-wrap .fi { font-size: 2rem; color: var(--gold); }
.value-icon .fi { font-size: 1.6rem; color: var(--navy); }
.info-icon .fi { font-size: 1.25rem; color: var(--gold); }
.horario-box h3 .fi { font-size: 1rem; color: var(--navy); }
.btn-primary .fi, .btn-outline .fi, .nav-cta .fi, .mobile-cta .fi { font-size: 1.1rem; }
.crc-badge .fi { font-size: 1rem; }
.hero-badge .fi { font-size: .9rem; }
.btn-submit .fi { font-size: 1.1rem; }
#back-to-top .back-to-top-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#whatsapp-float .fi { font-size: 1.7rem; line-height: 1; }
.footer-social-link .fi { font-size: 1.1rem; }
.footer-social-icon { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* PERÍCIA — página interna, baseada no mesmo design system */
.pericia-page main { padding-top: var(--header-h); }
.pericia-container { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.pericia-section { padding: 6rem 0; scroll-margin-top: var(--header-h); }
.pericia-soft { background: var(--gray-50); }
.pericia-hero { padding: 6.5rem 0 6rem; background: linear-gradient(135deg, #fff 0%, #f8f9fa 62%, #f4ead5 100%); position: relative; overflow: hidden; }
.pericia-hero::after { content: ''; position: absolute; width: 26rem; height: 26rem; border: 1px solid rgba(217,162,56,.2); border-radius: 50%; right: -10rem; top: -10rem; box-shadow: 0 0 0 4rem rgba(217,162,56,.035), 0 0 0 8rem rgba(217,162,56,.025); pointer-events: none; }
.pericia-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.pericia-hero h1 { max-width: 720px; margin: 1rem 0 1.1rem; color: var(--navy); font: 800 clamp(2.35rem, 4.6vw, 4rem)/1.08 var(--font-heading); letter-spacing: -.035em; }
.pericia-hero .gold-line { margin: 0 0 1.5rem; }
.pericia-hero > .pericia-container > div > p:not(.section-tag) { max-width: 680px; color: var(--gray-700); margin-top: .9rem; }
.pericia-hero .pericia-lead { font-size: 1.15rem; color: var(--navy) !important; font-weight: 500; }
.pericia-doc-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.75rem 0; }
.pericia-doc-types article { display: flex; gap: .8rem; padding: 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: rgba(255,255,255,.78); }
.pericia-doc-types i { color: var(--gold-text); font-size: 1.3rem; margin-top: .15rem; }
.pericia-doc-types h2 { color: var(--navy); font: 700 .98rem var(--font-heading); }
.pericia-doc-types p { color: var(--gray-600); font-size: .82rem; margin-top: .15rem; }
.pericia-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.pericia-actions .btn-outline { color: var(--navy); border-color: rgba(0,37,84,.25); }

.calculation-card { background: #fff; padding: 2rem; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; }
.calculation-card::after { content: ''; position: absolute; inset: auto 1.5rem -.75rem; height: 1.5rem; background: var(--navy); border-radius: 0 0 var(--radius-md) var(--radius-md); z-index: -1; }
.calculation-card header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 3px solid var(--navy); }
.calculation-card header span { display: block; color: var(--gold-text); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.calculation-card header strong { color: var(--navy); font: 800 1.1rem var(--font-heading); }
.calculation-card header i { color: var(--gold); font-size: 1.8rem; }
.calculation-card dl { margin-top: .6rem; }
.calculation-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--gray-200); font-size: .86rem; }
.calculation-card dd { flex-shrink: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calculation-card .old-value dd { color: var(--gray-400); text-decoration: line-through; }
.calculation-card dl .total { border-top: 2px solid var(--navy); border-bottom: 0; color: var(--navy); font-weight: 700; }
.calculation-result { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-top: .7rem; border-radius: var(--radius-md); background: var(--navy); color: #fff; }
.calculation-result strong { color: var(--gold-light); font: 800 1.35rem var(--font-heading); }
.calculation-note { margin-top: .6rem; color: var(--gray-400); font-size: .7rem; }

.pericia-modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3rem; }
.pericia-card { padding: 1.5rem 1.25rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); transition: var(--transition); }
.pericia-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(217,162,56,.5); }
.pericia-card.featured { border-color: var(--gold); }
.pericia-card > i { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: var(--radius-md); background: rgba(217,162,56,.13); color: var(--gold-text); font-size: 1.4rem; }
.pericia-card h3 { color: var(--navy); font: 700 1rem/1.3 var(--font-heading); }
.pericia-card small { display: block; color: var(--gold-text); font-weight: 700; margin: .35rem 0 .65rem; }
.pericia-card p { color: var(--gray-600); font-size: .86rem; line-height: 1.55; }

.pericia-dark { background: var(--navy-dark); }
.pericia-dark .section-tag { color: var(--gold-light); background: rgba(217,162,56,.12); border-color: rgba(217,162,56,.3); }
.pericia-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; align-items: start; }
.area-card { background: var(--navy); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s; }
.area-card:hover, .area-card[open] { border-color: rgba(217,162,56,.6); }
.area-card summary { display: flex; align-items: flex-start; gap: 1rem; padding: 1.4rem; cursor: pointer; list-style: none; position: relative; }
.area-card summary::-webkit-details-marker { display: none; }
.area-card summary::after { content: '+'; margin-left: auto; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.area-card[open] summary::after { transform: rotate(45deg); }
.area-card summary > i { display: grid; place-items: center; flex: 0 0 2.8rem; height: 2.8rem; border-radius: .7rem; background: rgba(217,162,56,.12); color: var(--gold); font-size: 1.25rem; }
.area-card summary span { min-width: 0; }
.area-card summary strong { display: block; color: #fff; font: 700 1rem var(--font-heading); }
.area-card summary small { display: block; color: #b9c6d8; font-size: .8rem; margin-top: .3rem; }
.area-card ul { margin: 0 1.4rem 1.4rem; padding: 1rem 0 0 1.15rem; border-top: 1px solid rgba(255,255,255,.08); color: #dce3ee; font-size: .84rem; }
.area-card li { margin: .4rem 0; }
.area-card li::marker { color: var(--gold); }

.pericia-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: .8rem; margin-top: 3.5rem; list-style: none; counter-reset: step; position: relative; }
.pericia-steps::before { content: ''; position: absolute; top: 1.65rem; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--gold), #ead6aa); }
.pericia-steps li { counter-increment: step; text-align: center; position: relative; }
.pericia-steps li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto .9rem; border: 4px solid #fff; border-radius: 50%; background: var(--navy); color: var(--gold-light); box-shadow: 0 0 0 2px var(--gold); font: 800 .95rem var(--font-heading); position: relative; }
.pericia-steps strong { display: block; color: var(--navy); font: 700 .9rem var(--font-heading); }
.pericia-steps span { display: block; color: var(--gray-600); font-size: .78rem; margin-top: .25rem; }

.pericia-final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.pericia-final-grid .gold-line { margin: 1.2rem 0; }
.pericia-benefits { display: grid; gap: .75rem; margin-top: 1.7rem; list-style: none; }
.pericia-benefits li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.pericia-benefits i { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: rgba(217,162,56,.13); color: var(--gold-text); }
.pericia-benefits strong, .pericia-benefits span { display: block; }
.pericia-benefits strong { color: var(--navy); font: 700 .92rem var(--font-heading); }
.pericia-benefits span { color: var(--gray-600); font-size: .82rem; margin-top: .15rem; }
.pericia-register { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .55rem .9rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; color: var(--navy); font-size: .8rem; font-weight: 600; }
.pericia-faq { display: grid; gap: .65rem; margin-top: 1.7rem; }
.pericia-faq details { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.pericia-faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.1rem; color: var(--navy); font: 700 .9rem var(--font-heading); position: relative; }
.pericia-faq summary::-webkit-details-marker { display: none; }
.pericia-faq summary::after { content: '+'; position: absolute; right: 1rem; color: var(--gold-text); font-size: 1.35rem; }
.pericia-faq details[open] summary::after { content: '–'; }
.pericia-faq p { padding: 0 1.1rem 1rem; color: var(--gray-600); font-size: .85rem; }
.pericia-cta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.7rem; background: var(--navy); color: #fff; border-radius: var(--radius-lg); }
.pericia-cta strong, .pericia-cta span { display: block; }
.pericia-cta strong { font: 700 1.2rem var(--font-heading); }
.pericia-cta span { color: #c7d1df; font-size: .9rem; margin-top: .2rem; }
.pericia-page summary:focus-visible, .pericia-page a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1100px) {
  .pericia-modes { grid-template-columns: repeat(3, 1fr); }
  .pericia-areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pericia-hero-grid, .pericia-final-grid { grid-template-columns: 1fr; }
  .pericia-hero { padding-top: 4.5rem; }
  .pericia-section { padding: 4.5rem 0; }
  .pericia-steps { grid-template-columns: 1fr; gap: 0; }
  .pericia-steps::before { left: 1.7rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .pericia-steps li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 1rem; padding-bottom: 1.4rem; text-align: left; }
  .pericia-steps li::before { grid-row: 1 / 3; margin: 0; }
}
@media (max-width: 680px) {
  .pericia-container { width: min(100% - 2rem, 1160px); }
  .pericia-modes, .pericia-areas, .pericia-doc-types { grid-template-columns: 1fr; }
  .pericia-hero h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .calculation-card { padding: 1.2rem; }
  .calculation-card dl div, .calculation-result { align-items: flex-start; }
  .calculation-card dl div { flex-direction: column; gap: .15rem; }
  .pericia-cta { align-items: stretch; flex-direction: column; }
  .pericia-cta .btn-primary { justify-content: center; }
}

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  position: relative; display: inline-block; padding: .5rem .85rem;
  color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 600;
  border-radius: var(--radius-sm); transition: var(--transition); white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: .85rem; right: .85rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; border-radius: var(--radius-full);
}
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links a[aria-current="location"] { color: var(--gold-text); background: rgba(217,162,56,.08); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after, .nav-links a[aria-current="location"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.nav-cta {
  display: flex !important; align-items: center !important; gap: .5rem !important;
  background: var(--navy) !important; color: var(--white) !important; font-weight: 700 !important;
  padding: .55rem 1.15rem !important; border-radius: var(--radius-full) !important; font-size: .85rem !important;
  box-shadow: 0 4px 14px rgba(0, 37, 84, 0.25);
  border: 1.5px solid transparent;
}
.nav-cta:hover { background: var(--navy-light) !important; color: var(--white) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 37, 84, 0.35) !important; }
.nav-cta::after { display: none !important; }

#nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px; border: 1.5px solid rgba(0, 37, 84, 0.15); background: rgba(0, 37, 84, 0.04);
  border-radius: var(--radius-sm); cursor: pointer; gap: 5px; transition: var(--transition); flex-shrink: 0;
}
#nav-toggle:hover { background: rgba(0, 37, 84, 0.08); }
#nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hamburger-line {
  display: block; width: 22px; height: 2.5px; background: var(--navy);
  border-radius: var(--radius-full); transition: var(--transition);
}
#nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

#nav-mobile {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--white); border-top: 1px solid rgba(0, 37, 84, 0.1);
  padding: 1.25rem 1.5rem 1.75rem; z-index: 999; box-shadow: 0 12px 32px rgba(0,37,84,.15);
  transform: translateY(-10px); opacity: 0; pointer-events: none; transition: var(--transition);
}
#nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-links { display: flex; flex-direction: column; gap: .35rem; list-style: none; margin-bottom: 1rem; }
.mobile-links a {
  display: block; padding: .75rem 1rem; color: var(--navy); text-decoration: none;
  font-weight: 600; border-radius: var(--radius-sm); border-left: 3px solid transparent; transition: var(--transition);
}
.mobile-links a:hover, .mobile-links a:focus { background: rgba(0, 37, 84, 0.04); color: var(--gold-text); border-left-color: var(--gold); }
.mobile-cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--navy); color: var(--white); padding: .85rem 1.5rem;
  border-radius: var(--radius-full); font-weight: 700; text-decoration: none; text-align: center; transition: var(--transition);
}
.mobile-cta:hover { background: var(--navy-light); }

/* HERO */
#hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/images/hero-bg.webp');
  background-size: cover; background-position: center 30%; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,21,45,0.93) 0%, rgba(0,37,84,0.82) 50%, rgba(0,37,84,0.55) 100%);
  z-index: 1;
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 2; opacity: .06;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(217,162,56,.5) 50px),
                    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(217,162,56,.5) 50px);
}
.hero-content {
  position: relative; z-index: 3; max-width: 1200px; margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(217,162,56,.15); border: 1px solid rgba(217,162,56,.4);
  color: var(--gold-light); padding: .4rem 1rem; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900;
  color: var(--white); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1.25rem; max-width: 680px;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.8);
  max-width: 520px; line-height: 1.65; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--gold); color: var(--navy-dark); padding: .9rem 1.75rem; border-radius: var(--radius-full);
  font-weight: 700; font-size: 1rem; text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition); box-shadow: var(--shadow-gold); white-space: nowrap;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,162,56,.5); }
.btn-primary:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: var(--white); padding: .85rem 1.75rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid rgba(255,255,255,.4);
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* Hero Stats */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 560px; }
.stat-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); padding: 1.25rem 1rem; text-align: center;
  backdrop-filter: blur(8px); transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.11); border-color: rgba(217,162,56,.4); transform: translateY(-2px); }
.stat-number {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900;
  color: var(--gold); line-height: 1; display: block;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.7); font-weight: 500; margin-top: .3rem; display: block; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.scroll-mouse {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.35);
  border-radius: 11px; display: flex; align-items: flex-start; justify-content: center; padding-top: 5px;
}
.scroll-mouse::after {
  content: ''; width: 3px; height: 8px; background: rgba(255,255,255,.6);
  border-radius: var(--radius-full); animation: scroll-dot 1.8s ease-in-out infinite;
}

/* Section Utilities */
.section-header { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.section-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-text); background: rgba(217,162,56,.1);
  border: 1px solid rgba(217,162,56,.25); padding: .3rem .9rem; border-radius: var(--radius-full); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800;
  color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin-bottom: .85rem;
}
.section-title.white { color: var(--white); }
.section-desc { font-size: 1.05rem; color: var(--gray-600); line-height: 1.7; }
.section-desc.white { color: rgba(255,255,255,.75); }
.gold-line {
  width: 56px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-full); margin: 1rem auto 0;
}

/* QUEM SOMOS */
#quem-somos { padding: 6rem 0; background: var(--white); }
.about-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-image-wrapper { position: relative; }
.about-img-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-frame img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.about-img-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--navy); color: var(--white); padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-lg); border: 3px solid var(--white);
}
.about-img-badge strong {
  display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1;
}
.about-img-badge span { font-size: .75rem; color: rgba(255,255,255,.8); display: block; margin-top: .2rem; }
.about-accent {
  position: absolute; top: -1.5rem; left: -1.5rem; width: 80px; height: 80px;
  border: 4px solid var(--gold); border-radius: var(--radius-md); z-index: -1; opacity: .6;
}
.about-content .section-tag { text-align: left; }
.about-content .section-title { text-align: left; }
.about-lead { font-size: 1.1rem; color: var(--gray-700); line-height: 1.75; margin-bottom: 1.5rem; }
.about-text { color: var(--gray-600); line-height: 1.75; margin-bottom: 2rem; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.value-card {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 1.1rem .9rem; text-align: center; transition: var(--transition);
}
.value-card:hover { border-color: var(--gold); background: rgba(217,162,56,.04); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.value-icon { font-size: 1.6rem; margin-bottom: .4rem; }
.value-card h3 { font-family: var(--font-heading); font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.value-card p { font-size: .75rem; color: var(--gray-600); }
.crc-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,37,84,.06); border: 1px solid rgba(0,37,84,.15);
  border-radius: var(--radius-sm); padding: .5rem 1rem; font-size: .82rem; color: var(--navy); font-weight: 600;
}

/* SERVICES */
#nossos-servicos { padding: 6rem 0; background: var(--navy-dark); position: relative; overflow: hidden; }
#nossos-servicos::before {
  content: ''; position: absolute; top: -40%; right: -15%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217,162,56,.08) 0%, transparent 70%); pointer-events: none;
}
#nossos-servicos::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,53,128,.4) 0%, transparent 70%); pointer-events: none;
}
.services-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.service-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem; transition: var(--transition); position: relative; overflow: hidden; cursor: default;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(217,162,56,.06) 0%, transparent 60%); opacity: 0; transition: var(--transition);
}
.service-card:hover { border-color: rgba(217,162,56,.45); background: rgba(255,255,255,.07); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.service-card:hover::before { opacity: 1; }
.service-icon-wrap {
  width: 56px; height: 56px; background: rgba(217,162,56,.12); border: 1px solid rgba(217,162,56,.25);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: var(--transition);
}
.service-card:hover .service-icon-wrap { background: rgba(217,162,56,.22); border-color: rgba(217,162,56,.5); transform: scale(1.05); }
.service-icon-wrap svg { width: 26px; height: 26px; color: var(--gold); stroke: var(--gold); }
.service-card h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.service-card p { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.65; }
.service-number {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900;
  color: rgba(255,255,255,.04); line-height: 1; pointer-events: none; user-select: none;
}

/* NUMEROS */
#numeros {
  padding: 5rem 0; background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%); position: relative; overflow: hidden;
}
#numeros::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(0,37,84,.12) 0%, transparent 50%);
}
.numeros-container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.numeros-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.numero-item { padding: 1rem; }
.numero-value {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 900;
  color: var(--navy-dark); line-height: 1; display: block; margin-bottom: .25rem;
}
.numero-label { font-size: .9rem; font-weight: 600; color: rgba(0,21,45,.75); }

/* CONTATO */
#contato { padding: 6rem 0; background: var(--gray-50); }
.contato-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.contato-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: stretch; }
.contato-info { display: flex; flex-direction: column; }
.contato-intro { color: var(--gray-600); line-height: 1.65; margin-bottom: 1.35rem; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 1.15rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon {
  width: 44px; height: 44px; min-width: 44px; background: var(--navy);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.info-text strong { display: block; font-weight: 600; color: var(--gray-800); font-size: .9rem; margin-bottom: .15rem; }
.info-text a, .info-text span { font-size: .9rem; color: var(--gray-600); text-decoration: none; transition: color 0.2s; display: block; }
.info-text a:hover { color: var(--navy); }
.horario-box { margin-top: 1.25rem; margin-bottom: 1.25rem; background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--gold); border-radius: var(--radius-md); padding: 1.15rem 1.35rem; }
.horario-box h3 { font-family: var(--font-heading); font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: .65rem; display: flex; align-items: center; gap: .5rem; }
.horario-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--gray-600); padding: .25rem 0; border-bottom: 1px solid var(--gray-100); }
.horario-row:last-child { border-bottom: none; }
.horario-row span:first-child { color: var(--gray-700); font-weight: 500; }
.social-links { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social-link {
  width: 40px; height: 40px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: var(--navy); text-decoration: none; transition: var(--transition);
}
.social-link:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.social-link svg { width: 18px; height: 18px; }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); }
.form-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gray-100); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: .45rem; }
.form-label .required { color: #E53E3E; margin-left: .2rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--gray-800); background: var(--white); transition: var(--transition); appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,37,84,.1); }
.form-input.invalid, .form-textarea.invalid { border-color: #E53E3E; }
.form-input.valid, .form-textarea.valid { border-color: #38A169; }
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.captcha-box {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: .85rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.captcha-question { font-weight: 600; color: var(--navy); font-size: .9rem; flex: 1; min-width: 140px; }
.captcha-input { width: 80px; padding: .45rem .75rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .9rem; text-align: center; transition: var(--transition); }
.captcha-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,37,84,.1); }
.btn-submit {
  width: 100%; padding: .95rem 1.5rem; background: var(--navy); color: var(--white); border: none;
  border-radius: var(--radius-full); font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  letter-spacing: .02em; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: .5rem;
}
.btn-submit:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-submit:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-feedback { display: none; padding: 1rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; text-align: center; margin-top: .75rem; }
.form-feedback.success { display: block; background: #F0FFF4; border: 1px solid #9AE6B4; color: #276749; }
.form-feedback.error { display: block; background: #FFF5F5; border: 1px solid #FEB2B2; color: #9B2C2C; }

/* Map embed adjusted to occupy remaining space */
.map-embed {
  margin-top: 0;
  flex: 1;
  display: flex;
  min-height: 270px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  border: none;
}

/* FOOTER */
footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 3.5rem 0 0; }
.footer-main { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 2.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
/* Footer logo: white on transparent */
.footer-logo-link {
  display: inline-flex;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  text-decoration: none;
}
.footer-logo-link:hover { transform: translateY(-2px); opacity: .9; }
.footer-logo-img {
  height: 38px;
  width: auto;
  /* Invert colors to make logo white with transparent background */
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-desc { font-size: .875rem; line-height: 1.75; color: rgba(255,255,255,.65); max-width: 320px; margin-bottom: .75rem; }
/* Footer social links */
.footer-socials {
  display: flex; gap: .6rem; margin-top: .75rem; margin-bottom: 1rem;
}
.footer-social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none; transition: var(--transition);
}
.footer-social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}
.footer-social-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.footer-social-wa { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: var(--white); }
.footer-social-wa:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.footer-heading { font-family: var(--font-heading); font-size: .85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 1.5rem;
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.65);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* FLOATING */
#whatsapp-float {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 900;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--whatsapp); color: var(--white);
  text-decoration: none; border-radius: 50%;
  box-shadow: 0 4px 24px rgba(37,211,102,.5);
  transition: var(--transition); overflow: visible;
}
#whatsapp-float:hover { background: var(--whatsapp-dark); transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
#whatsapp-float:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.wa-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-ring 2.5s ease-out infinite; pointer-events: none;
}
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900; width: 46px; height: 46px;
  background: var(--navy); border: 2px solid rgba(255,255,255,.15); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(10px);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); transform: translateY(-2px); }
#back-to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ANIMATIONS */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.5); } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.hero-badge { animation: fade-in 0.6s ease 0.3s both; }
.hero-title { animation: fade-in-up 0.7s ease 0.5s both; }
.hero-subtitle { animation: fade-in-up 0.7s ease 0.65s both; }
.hero-actions { animation: fade-in-up 0.7s ease 0.8s both; }
.hero-stats { animation: fade-in-up 0.7s ease 0.95s both; }
.scroll-indicator { animation: fade-in 0.7s ease 1.3s both; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrapper { max-width: 520px; margin: 0 auto; }
  .contato-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-links { display: none; }
  #nav-toggle { display: flex; }
  .about-values { grid-template-columns: 1fr; }
  .about-img-frame img { height: 320px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-number { font-size: 1.8rem; }
  #whatsapp-float { width: 54px; height: 54px; bottom: 1.5rem; left: 1.5rem; }
}
@media (max-width: 480px) {
  .hero-stats { gap: .75rem; }
  .stat-card { padding: 1rem .6rem; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: .7rem; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-primary, .btn-outline { font-size: .9rem; padding: .8rem 1.35rem; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media print {
  #header, #whatsapp-float, #back-to-top, #scroll-progress, .scroll-indicator, #nav-toggle, #nav-mobile { display: none !important; }
  body { color: #000; }
  a[href]::after { content: ' (' attr(href) ')'; }
}
