/* =========================================================
   Correa Sales Assessoria Contábil — Global Styles
   Paleta: #102742 marinho | #B08A57 dourado | #F6F2EB off-white | #4A4F57 grafite
   Tipografia: Instrument Serif (títulos) + Inter (corpo)
   ========================================================= */

:root {
  --navy: #102742;
  --navy-2: #1a3a5f;
  --navy-3: #0a1a2e;
  --gold: #B08A57;
  --gold-2: #c9a273;
  --gold-3: #8f6f42;
  --off: #F6F2EB;
  --off-2: #ede7db;
  --graphite: #4A4F57;
  --graphite-2: #6b7079;
  --white: #ffffff;
  --border: rgba(74, 79, 87, 0.14);
  --border-gold: rgba(176, 138, 87, 0.35);
  --shadow-sm: 0 1px 2px rgba(16, 39, 66, 0.04), 0 2px 8px rgba(16, 39, 66, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 39, 66, 0.06), 0 12px 32px rgba(16, 39, 66, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 39, 66, 0.10), 0 32px 64px rgba(16, 39, 66, 0.08);

  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --container-narrow: 960px;
  --header-h: 130px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw + 0.5rem, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 3rem); }
h3 { font-size: clamp(1.3rem, 1.5vw + 0.5rem, 1.6rem); font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.005em; }
p { text-wrap: pretty; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-navy { background: var(--navy); color: var(--off); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-off { background: var(--off); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-3);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(176, 138, 87, 0.28);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-ghost {
  padding: 8px 0;
  color: var(--gold);
  font-weight: 500;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--gold-3); gap: 14px; }
.btn-lg { padding: 18px 34px; font-size: 1rem; }

.arrow { transition: transform 0.22s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
/* Brand logo — image-based (Corrêa Sales) */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  flex-shrink: 0;
  line-height: 0;
}
.logo img {
  display: block;
  height: 110px;
  width: auto;
  transition: opacity 0.2s ease;
}
.logo:hover img { opacity: 0.88; }
.logo .logo-on-light { display: block; }
.logo .logo-on-dark { display: none; }
/* When placed on dark surfaces (footer / drawer) swap variants */
.site-footer .logo .logo-on-light,
.mobile-drawer .logo .logo-on-light { display: none; }
.site-footer .logo .logo-on-dark,
.mobile-drawer .logo .logo-on-dark { display: block; }

/* Footer variant sits smaller so the column packs neatly */
.site-footer .logo img { height: 120px; }
.mobile-drawer .logo img { height: 84px; }
@media (max-width: 640px) {
  .logo img { height: 76px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 10px 16px;
  font-size: 0.92rem;
  color: var(--graphite);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease;
  position: relative;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta .btn:not(.menu-toggle) { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--navy);
  color: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.drawer-close {
  width: 44px; height: 44px;
  color: var(--white);
  display: grid; place-items: center;
}
.drawer-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-nav a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer-nav a.active { color: var(--gold-2); }
.drawer-cta { margin-top: auto; padding-top: 24px; }
.drawer-cta .btn { width: 100%; }

/* Hero */
.hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 112px);
  background: linear-gradient(180deg, var(--off) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 {
  margin-top: 20px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--graphite);
  max-width: 52ch;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-inner-slim {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-slim { padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); background: var(--off); }
.hero-slim h1 { margin: 20px 0 20px; }
.hero-slim .hero-sub { margin: 0 auto; }
.hero-slim .eyebrow { justify-content: center; }
.hero-slim .eyebrow::before { display: none; }
.hero-slim .eyebrow { padding-left: 0; }

/* Image placeholder — elegant */
.img-ph {
  position: relative;
  background: var(--off-2);
  border-radius: var(--radius);
  overflow: hidden;
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(16, 39, 66, 0.04) 14px 15px
    );
  border: 1px solid var(--border);
}
.img-ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite-2);
  text-align: center;
  padding: 20px;
}
.img-ph-tall { aspect-ratio: 4 / 5; }
.img-ph-wide { aspect-ratio: 3 / 2; }
.img-ph-square { aspect-ratio: 1 / 1; }
.img-ph-hero {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border-gold);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0 18px,
      rgba(176, 138, 87, 0.08) 18px 19px
    );
  background-color: var(--off);
}
.img-ph-round { border-radius: 50%; aspect-ratio: 1/1; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}
.card-off { background: var(--off); border-color: transparent; }
.card-off:hover { background: var(--white); border-color: var(--border-gold); }

.card .icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background: rgba(176, 138, 87, 0.06);
}
.card .icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.card h4 { margin-bottom: 10px; color: var(--navy); }
.card p { font-size: 0.95rem; color: var(--graphite); }

/* Section header */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin: 18px 0 16px; }
.section-head p { color: var(--graphite); font-size: 1.05rem; }
.section-head .eyebrow { justify-content: center; }
.section-head.left .eyebrow { justify-content: flex-start; }

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .num em { color: var(--gold); font-style: normal; }
.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-2);
  margin-top: 10px;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.25s ease;
}
.testimonial:hover { border-color: var(--border-gold); box-shadow: var(--shadow-md); }
.testimonial .quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--navy);
  text-wrap: pretty;
}
.testimonial .quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--gold);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
}
.testimonial .author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial .author .img-ph { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; }
.testimonial .author .img-ph::after { font-size: 0.55rem; padding: 4px; }
.testimonial .author .info strong { display: block; color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.testimonial .author .info span { font-size: 0.85rem; color: var(--graphite-2); }

/* Logos */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
.logo-ph {
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--graphite-2);
  border: 1px solid var(--border);
  background: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.logo-ph:hover { color: var(--navy); border-color: var(--border-gold); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--gold); }
.faq-q .plus {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
  color: var(--gold);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transition: transform 0.25s ease;
}
.faq-q .plus::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q .plus::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 0 24px;
  color: var(--graphite);
  max-width: 90%;
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 7vw, 88px);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,138,87,0.25) 0%, transparent 65%);
}
@media (max-width: 900px) { .cta-banner { grid-template-columns: 1fr; text-align: center; } }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.75); margin-top: 16px; font-size: 1.05rem; }
.cta-banner .btn-primary { position: relative; z-index: 1; }
.cta-banner .actions { justify-self: end; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .cta-banner .actions { justify-self: center; align-items: center; } }

/* Footer */
.site-footer {
  background: var(--navy-3);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { transition: color 0.18s ease; }
.footer-col a:hover { color: var(--gold-2); }
.footer-brand p { margin-top: 20px; max-width: 32ch; }
.footer-brand .socials { margin-top: 24px; display: flex; gap: 10px; }
.footer-brand .socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.2s ease;
}
.footer-brand .socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-brand .socials svg { width: 16px; height: 16px; }

.newsletter form { display: flex; gap: 8px; margin-top: 8px; }
.newsletter input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  min-width: 0;
}
.newsletter input:focus { outline: none; border-color: var(--gold); }
.newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter button {
  padding: 12px 18px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.newsletter button:hover { background: var(--gold-3); }
.newsletter p { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 10px; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover { color: var(--gold-2); }

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Forms */
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.form-field label .req { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--graphite);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-sans);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 138, 87, 0.12);
}

/* Reveal animation — only hide when JS confirms it can control the state.
   Without the html.js-reveal class (JS disabled/broken), content is always visible. */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js-reveal .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.mt-md { margin-top: 32px; }
.mt-sm { margin-top: 16px; }
.hide-mobile { }
@media (max-width: 640px) { .hide-mobile { display: none; } }


/* Photo replacement for placeholders */
.img-photo { display:block; width:100%; height:auto; object-fit:cover; border-radius:var(--radius); border:1px solid var(--border); }
