/* =========================================================
   e-Prev Digital — Advocacia Previdenciária
   Estilos principais
   ========================================================= */

:root {
  /* Cores da marca */
  --navy:        #1b2a56;
  --navy-dark:   #14203f;
  --green:       #4fb286;
  --green-dark:  #2e9e73;
  --cream:       #fbf4e9;
  --sky:         #eaf4fc;
  --sky-deep:    #dcedfb;

  /* Neutros */
  --ink:         #3d4456;
  --muted:       #6b7280;
  --line:        #e6e9f0;
  --white:       #ffffff;

  /* Tipografia */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px -20px rgba(27, 42, 86, 0.25);
  --shadow-sm: 0 8px 24px -12px rgba(27, 42, 86, 0.22);
  --header-h:  76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 92px 0; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head--light h2 { color: var(--white); }
.section-head--light p { color: rgba(255,255,255,0.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg   { padding: 15px 30px; font-size: 1.04rem; }
.btn-block{ width: 100%; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(46, 158, 115, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(46, 158, 115, 0.8); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27, 42, 86, 0.2);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(27,42,86,0.04); }

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(27, 42, 86, 0.06);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(27,42,86,0.4); background: rgba(251,244,233,0.92); backdrop-filter: blur(8px); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { height: 46px; width: auto; }
.logo-mark { width: 38px; height: 38px; }
.logo-text { display: flex; align-items: baseline; flex-wrap: wrap; line-height: 1; position: relative; }
.logo-e    { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--green-dark); }
.logo-prev { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); letter-spacing: .5px; }
.logo-sub  { width: 100%; font-family: var(--font-head); font-weight: 600; font-size: .62rem; letter-spacing: 5px; color: var(--muted); margin-top: 2px; }

/* Nav */
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) {
  font-weight: 500;
  font-size: .98rem;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--green);
  transition: width .2s ease;
}
.nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, #fff7ec 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #ffffff 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(90px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(79, 178, 134, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-copy h1 .hl { color: var(--green-dark); }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 540px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; color: var(--muted); font-weight: 500; font-size: .96rem; }

/* Hero media */
.hero-media { position: relative; }
.hero-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(27,42,86,0.06), rgba(79,178,134,0.12));
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* hero.webp já recortado em 4:5 */
}

.hero-badge {
  position: absolute;
  left: -18px; bottom: 30px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--green);
}
.hero-badge strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); line-height: 1; }
.hero-badge span { font-size: .85rem; color: var(--muted); }

/* =========================================================
   STATS
   ========================================================= */
.stats { margin-top: -70px; position: relative; z-index: 5; }
.stats-card {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow-sm);
}
.stats-title { text-align: center; font-size: 1.8rem; margin-bottom: 36px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--navy);
  line-height: 1;
}
.stat-label { color: var(--muted); font-weight: 500; }

/* =========================================================
   QUEM SOMOS
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.value-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 30px 28px 30px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: linear-gradient(var(--green), var(--green-dark));
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card--wide { grid-column: 1 / -1; }
.value-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}
.value-card p { color: var(--ink); }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(79,178,134,0.5); }
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--sky);
  border-radius: 14px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-desc { color: var(--muted); font-size: .96rem; margin-bottom: 14px; }
.service-card ul { display: flex; flex-direction: column; gap: 9px; }
.service-card li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: .96rem;
}
.service-card li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* =========================================================
   EQUIPE
   ========================================================= */
.equipe {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.team-card {
  flex: 1 1 232px;
  max-width: 258px;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.team-card:hover { transform: translateY(-6px); }
.team-photo {
  position: relative;
  overflow: hidden;
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--sky-deep), var(--sky));
  display: grid;
  place-items: center;
  border: 3px solid var(--sky-deep);
}
.team-photo::after {
  content: attr(data-initials);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy);
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* fotos já recortadas 1:1 centradas no rosto */
}
.team-card h3 { font-size: 1.06rem; margin-bottom: 6px; line-height: 1.3; }
.team-role {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green-dark);
  background: rgba(79,178,134,0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.team-card p { font-size: .92rem; color: var(--muted); }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 60px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.92); font-size: 1.08rem; }

/* =========================================================
   CONTATO
   ========================================================= */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contato-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.contact-item:hover { transform: translateY(-3px); border-color: rgba(79,178,134,0.5); }
.contact-icon {
  font-size: 1.4rem;
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--sky);
  border-radius: 12px;
}
.contact-item strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy);
  margin-bottom: 2px;
}

/* Form */
.contato-form {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.contato-form h3 { font-size: 1.4rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(79,178,134,0.18);
}
.field textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.78); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.logo--footer .logo-prev { color: #fff; }
.logo--footer .logo-sub  { color: rgba(255,255,255,0.55); }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: .96rem; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; margin-bottom: 10px; font-size: .95rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  font-size: .86rem;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.55); }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.7);
  z-index: 60;
  transition: transform .2s ease;
  animation: wa-pulse 2.6s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }

  /* Mobile nav */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: 10px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; }
  .nav-toggle { display: flex; }

  .values-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr; gap: 30px; }
  .contato-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 520px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 0; }
}

/* Acessibilidade: respeita preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
