/* ============================================================
   Paraná Consórcios — Base & componentes compartilhados
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink-600);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
::selection { background: var(--green-200, #BFE3C8); color: var(--green-900); }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: -0.022em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.018em; }
h3 { font-size: var(--fs-xl); }
p  { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.is-light { color: var(--gold-400); }
.eyebrow.is-centered { justify-content: center; }

.lead {
  font-size: var(--fs-lg);
  color: var(--ink-500);
  line-height: 1.55;
}
.serif-accent { font-family: var(--font-display); font-style: italic; color: var(--brand); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-deep { background: var(--bg-deep); color: var(--green-100); }
.section-deep h1, .section-deep h2, .section-deep h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-5); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.005em;
  padding: 15px 26px;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-gold { background: var(--gold-500); color: var(--green-950); box-shadow: var(--shadow-xs); }
.btn-gold:hover { background: var(--gold-400); box-shadow: var(--shadow-gold); transform: translateY(-1px); }

.btn-secondary { background: var(--paper); color: var(--brand-strong); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--brand); padding-inline: 8px; }
.btn-ghost:hover { color: var(--brand-strong); }
.btn-ghost .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-on-dark { background: #fff; color: var(--green-900); }
.btn-on-dark:hover { background: var(--green-50); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-lg { padding: 18px 34px; font-size: var(--fs-base); }
.btn-block { width: 100%; }

.btn-whats { background: #1FA855; color: #fff; }
.btn-whats:hover { background: #198F48; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

/* ---------- Badges / selos ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700;
  padding: 6px 12px; border-radius: var(--r-full);
  letter-spacing: 0.02em;
}
.badge-green { background: var(--green-50); color: var(--green-800); }
.badge-gold  { background: var(--gold-100); color: var(--bronze-700); }
.badge-soft  { background: var(--cream-100); color: var(--ink-600); border: 1px solid var(--line); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.site-header.scrolled { background: rgba(255,255,255,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo img { width: 38px; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 0.92; }
.logo-text b {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 1.18rem; letter-spacing: 0.02em; color: var(--green-800);
}
.logo-text span {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--bronze-700);
}
.site-header.on-dark .logo-text b { color: #fff; }
.site-header.on-dark .logo-text span { color: var(--gold-400); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-600);
  padding: 9px 14px; border-radius: var(--r-full);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav a:hover { color: var(--brand-strong); background: var(--green-50); }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-md); align-items: center; justify-content: center; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink-900); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--green-950); color: #fff;
  display: flex; flex-direction: column;
  padding: 28px var(--gutter);
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-in-out);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav .mnav-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav a.mnav-link { font-family: var(--font-display); font-size: 1.8rem; color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav .mnav-links { margin-top: 24px; display: flex; flex-direction: column; }
.mobile-nav .mnav-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.mnav-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.mnav-close svg { width: 28px; height: 28px; stroke: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: var(--green-100); padding-block: var(--sp-9) var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.footer-brand .logo-text b { color: #fff; }
.footer-brand .logo-text span { color: var(--gold-400); }
.footer-brand p { color: var(--green-300); font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--green-300); font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: var(--sp-4); }
.footer-social a { width: 42px; height: 42px; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast), border-color var(--dur-fast); }
.footer-social a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.footer-social svg { width: 19px; height: 19px; fill: var(--green-100); }
.footer-bottom { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--green-300); }
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-compliance { font-size: var(--fs-xs); color: var(--green-300); line-height: 1.6; margin-top: var(--sp-4); max-width: 60ch; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Image placeholder ---------- */
.img-ph {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, var(--green-100), var(--cream-100));
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700);
}
.img-ph svg { width: 44px; height: 44px; opacity: 0.5; }
.img-ph .img-ph-label { position: absolute; bottom: 12px; left: 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-500); background: rgba(255,255,255,0.82); padding: 4px 10px; border-radius: var(--r-full); }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 4px; }

/* skip link */
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-md); z-index: 300; transition: top var(--dur-base); }
.skip-link:focus { top: 12px; }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .nav, .header-actions .btn:not(.nav-toggle) { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
