/* Unique — Hi-fi tokens & global styles */

:root {
  --green-deep: #1B4332;
  --green-deep-2: #163528;
  --orange: #E8721C;
  --orange-2: #cf6217;
  --green: #2DC55E;
  --green-2: #25a84f;
  --bg: #F5F2EE;
  --paper: #ffffff;
  --ink: #0F1B16;
  --muted: #5b6b65;
  --muted-2: #8a9690;
  --line: #e4dfd7;
  --line-2: #d6cfc3;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(40px, 5.6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 26px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-deep);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 28px -12px rgba(232,114,28,.55); }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }
.btn-whats { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 28px -12px rgba(45,197,94,.55); }
.btn-whats:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(15,27,22,.06);
  box-shadow: 0 1px 0 rgba(15,27,22,.02), 0 6px 24px -16px rgba(15,27,22,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
  transition: color .15s ease;
}
.nav-menu a:hover { color: var(--green-deep); }

/* Dropdown sub-menu */
.nav-menu .nav-item { position: relative; }
.nav-menu .nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-menu .nav-item.has-sub > a::after {
  content: "▾"; font-size: 13px; font-weight: 700; color: var(--orange); margin-left: 2px;
}
.nav-menu .sub-menu {
  position: absolute; top: calc(100% + 6px); left: -10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 24px 48px -16px rgba(15,27,22,.18);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 60;
  display: grid; gap: 2px;
}
.nav-menu .nav-item.has-sub:hover .sub-menu,
.nav-menu .nav-item.has-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu .sub-menu a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink); white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.nav-menu .sub-menu a:hover { background: var(--bg); color: var(--green-deep); }

/* The old single-anchor .has-sub chevron is no longer used — dropdowns handle it */
.nav-menu > a.has-sub::after { content: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .phone { display: none; }

/* Floating WhatsApp button */
.whats-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(45,197,94,.55), 0 4px 12px rgba(0,0,0,.12);
  z-index: 200;
  transition: transform .2s ease, background .2s ease;
}
.whats-float:hover { transform: scale(1.08); background: var(--green-2); }
.whats-float::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--green);
  opacity: .4; animation: whats-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes whats-pulse {
  0% { transform: scale(.85); opacity: .6; }
  100% { transform: scale(1.3); opacity: 0; }
}
@media (max-width: 540px) {
  .whats-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
}

/* Sections */
section { padding: 96px 0; position: relative; }
section.tight { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-top: 10px; color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* Surfaces */
.bg-paper { background: var(--paper); }
.bg-deep { background: var(--green-deep); color: #fff; }
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep .eyebrow { color: var(--green); }

/* Footer chrome reused */
.foot { background: var(--ink); color: #fff; padding: 80px 0 32px; }

/* Helpers */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  border-radius: 999px;
  background: rgba(45,197,94,.12);
  color: var(--green-deep);
  font-size: 12.5px; font-weight: 600;
}
.pill .star { color: var(--orange); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -28px rgba(15,27,22,.15); border-color: var(--line-2); }

/* Responsive */
@media (max-width: 920px) {
  section { padding: 72px 0; }
  .nav-menu { display: none; }
  h1 { font-size: clamp(36px, 8vw, 56px); }
  h2 { font-size: clamp(28px, 6vw, 40px); }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner { height: 64px; }
  .nav-logo img { height: 42px; }
}

/* === Gentle reveal animations (only when JS adds .anim-ready) === */
.anim-ready .section-head,
.anim-ready .hero-grid > div,
.anim-ready .card,
.anim-ready .breadcrumb {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s cubic-bezier(.16,1,.3,1),
    transform .95s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.anim-ready .section-head.anim-in,
.anim-ready .hero-grid > div.anim-in,
.anim-ready .card.anim-in,
.anim-ready .breadcrumb.anim-in {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger siblings inside common grid layouts */
.anim-ready .perfis-grid .card:nth-child(2),
.anim-ready .sub-grid .card:nth-child(2),
.anim-ready .seg-grid .card:nth-child(2),
.anim-ready .dor-grid .card:nth-child(2),
.anim-ready .planos-grid .card:nth-child(2),
.anim-ready .steps-grid .card:nth-child(2),
.anim-ready .incluso-grid .card:nth-child(2),
.anim-ready .cases-grid .card:nth-child(2),
.anim-ready .check-grid .card:nth-child(2),
.anim-ready .vantagens-grid .card:nth-child(2),
.anim-ready .diffs-grid .card:nth-child(2),
.anim-ready .reviews-grid .card:nth-child(2) { transition-delay: .08s; }
.anim-ready .perfis-grid .card:nth-child(3),
.anim-ready .sub-grid .card:nth-child(3),
.anim-ready .dor-grid .card:nth-child(3),
.anim-ready .planos-grid .card:nth-child(3),
.anim-ready .steps-grid .card:nth-child(3),
.anim-ready .incluso-grid .card:nth-child(3),
.anim-ready .cases-grid .card:nth-child(3),
.anim-ready .check-grid .card:nth-child(3),
.anim-ready .vantagens-grid .card:nth-child(3),
.anim-ready .diffs-grid .card:nth-child(3),
.anim-ready .reviews-grid .card:nth-child(3) { transition-delay: .16s; }
.anim-ready .steps-grid .card:nth-child(4),
.anim-ready .incluso-grid .card:nth-child(4),
.anim-ready .check-grid .card:nth-child(4),
.anim-ready .vantagens-grid .card:nth-child(4),
.anim-ready .diffs-grid .card:nth-child(4) { transition-delay: .24s; }
.anim-ready .check-grid .card:nth-child(5),
.anim-ready .incluso-grid .card:nth-child(5),
.anim-ready .vantagens-grid .card:nth-child(5),
.anim-ready .diffs-grid .card:nth-child(5) { transition-delay: .10s; }
.anim-ready .check-grid .card:nth-child(6),
.anim-ready .incluso-grid .card:nth-child(6),
.anim-ready .vantagens-grid .card:nth-child(6),
.anim-ready .diffs-grid .card:nth-child(6) { transition-delay: .18s; }
.anim-ready .check-grid .card:nth-child(7) { transition-delay: .12s; }
.anim-ready .check-grid .card:nth-child(8) { transition-delay: .20s; }
.anim-ready .hero-grid > div:nth-child(2) { transition-delay: .12s; }
