/* ==========================================================
   ProsperaCORP — Landing Page
   Cores e tipografia conforme o Brandbook ProsperaCORP
   ========================================================== */
:root {
  /* Paleta oficial (brandbook p. 14) */
  --navy: #151751;                   /* C95 M83 Y29 K19 · R21 G23 B81 */
  --navy-light: #2A2D6E;
  --petrol: #0B5344;                 /* C97 M31 Y67 K19 · R11 G83 B68 */
  --teal: #3DA9A2;                   /* C77 M4 Y27 K0 · R61 G169 B162 */
  --gold: #E8AA37;                   /* C7 M30 Y75 K1 · R232 G170 B55 */
  --wa: hsl(142 70% 40%);            /* #1FAD53 */
  --wa-hover: hsl(142 70% 35%);
  --bg: #fff;
  --muted: hsl(220 30% 96%);         /* #F2F4F8 */
  --muted-fg: hsl(230 20% 46%);
  --border: hsl(220 20% 90%);
  --danger: hsl(0 84% 60%);

  --gradient-hero: linear-gradient(135deg, #151751 0%, #2A2D6E 50%, #0B5344 100%);
  --gradient-teal: linear-gradient(135deg, #0B5344 0%, #3DA9A2 100%);  /* degradê oficial */
  --shadow-card: 0 4px 24px -4px rgb(21 23 81 / .08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);

  --radius: .75rem;
  --radius-lg: 1rem;
  /* Fonte institucional: Bahnschrift (brandbook p. 7).
     Bahnschrift vem instalada no Windows; nos demais aparelhos usa Barlow,
     fonte livre de mesma família visual (DIN). */
  --font: "Bahnschrift", "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container--sm { max-width: 860px; }
.center { text-align: center; }
.text-gold { color: var(--gold); }

.icon {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 1.75rem; height: 1.75rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; border-radius: var(--radius); white-space: nowrap;
  transition: transform .3s, background-color .3s, box-shadow .3s;
}
.btn--wa { background: var(--wa); color: #fff; box-shadow: var(--shadow-lg); }
.btn--wa:hover { background: var(--wa-hover); transform: scale(1.05); }
.btn--wa:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--lg { height: 3.5rem; padding: 0 2.5rem; font-size: 1.125rem; }
.btn--sm { height: 2.5rem; padding: 0 1.1rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1rem 0; background: transparent;
  transition: background-color .3s, padding .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgb(255 255 255 / .97);
  backdrop-filter: blur(8px);
  padding: .5rem 0;
  box-shadow: 0 4px 20px rgb(21 23 81 / .08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
/* Logo branco sobre o topo escuro; logo azul quando o header fica branco (brandbook p. 11) */
.header__logo { position: relative; display: block; padding: .25rem 0; }
.header__logo img { height: 3.75rem; width: auto; transition: height .3s, opacity .3s; }
.header__logo .logo--dark { position: absolute; left: 0; top: .25rem; opacity: 0; }
.header.is-scrolled .header__logo img { height: 2.75rem; }
.header.is-scrolled .logo--light { opacity: 0; }
.header.is-scrolled .logo--dark { opacity: 1; }
.header.is-scrolled .nav__link, .header.is-scrolled .nav-toggle { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__link {
  color: #fff; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s;
}
.nav__link:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: .5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; color: #fff; padding: 7rem 0 3rem;
  background: var(--gradient-hero);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(21 23 81 / .92) 0%, rgb(21 23 81 / .7) 50%, rgb(21 23 81 / .35) 100%),
    url("../assets/hero-bg.jpg") center / cover no-repeat;
  background:
    linear-gradient(90deg, rgb(21 23 81 / .92) 0%, rgb(21 23 81 / .7) 50%, rgb(21 23 81 / .35) 100%),
    image-set(url("../assets/hero-bg.webp") type("image/webp"), url("../assets/hero-bg.jpg") type("image/jpeg")) center / cover no-repeat;
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 2rem;
}
.hero__title { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.12; font-weight: 700; margin-bottom: 1.5rem; }
.hero__lead { font-size: 1.15rem; color: rgb(255 255 255 / .9); margin-bottom: 2rem; max-width: 36rem; }
.hero__text { font-size: 1.05rem; color: rgb(255 255 255 / .8); margin-bottom: 2rem; max-width: 36rem; }
.hero__image { align-self: end; }
.hero__image img { width: 100%; max-width: 560px; margin-left: auto; }

/* ---------- Seções ---------- */
.section { padding: 5rem 0; position: relative; overflow: hidden; }
.section--muted { background: var(--muted); }
/* Padrão oficial da marca (brandbook p. 22), bem suave ao fundo */
.section--pattern::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: url("../assets/pattern.svg") 0 0 / 72px 72px repeat;
}
.section--pattern > .container { position: relative; }
.section--hero { background: var(--gradient-hero); color: #fff; }

.section__title {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.25; font-weight: 700;
  text-align: center; max-width: 52rem; margin: 0 auto 1rem;
}
.section__title--left { text-align: left; margin-left: 0; }
.section__title--light { color: #fff; }
.section__subtitle { text-align: center; color: var(--muted-fg); font-size: 1.1rem; margin-bottom: 3rem; }
.section__title + .grid, .section__title + .steps { margin-top: 3rem; }
.section__closing { text-align: center; font-size: 1.35rem; font-weight: 700; margin: 3rem 0 1.5rem; }
.section__text { text-align: center; color: var(--muted-fg); font-size: 1.1rem; max-width: 44rem; margin: 3rem auto 2rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; margin: 0 auto 3rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--narrow { max-width: 64rem; }
.grid--wide { gap: 2rem; }
.section__closing + .center, .grid + .center { margin-top: 0; }

/* ---------- Cards ---------- */
.mini-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-card);
  font-weight: 500;
}
.mini-card__icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  border-radius: 50%; background: rgb(232 170 55 / .15); color: #B9801A;
}

.pain-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
  border-radius: var(--radius); border: 1px solid hsl(0 84% 60% / .2); background: hsl(0 84% 60% / .05);
  font-weight: 600;
}
.pain-card .icon { color: var(--danger); }

.service-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-card); transition: box-shadow .3s, transform .3s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; gap: .5rem; }
.service-card__footer {
  margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-weight: 700; color: var(--petrol); font-size: .95rem;
}
.bullet-list { margin-bottom: 1.25rem; }
.bullet-list li { position: relative; padding-left: 1.4rem; color: var(--muted-fg); margin-bottom: .55rem; font-size: .97rem; }
/* Marcador: a estrela de 4 pontas da marca */
.bullet-list li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 11px; height: 11px; background: var(--gold);
  clip-path: path("M5.5 0C6.3 3.6 7.4 4.7 11 5.5 7.4 6.3 6.3 7.4 5.5 11 4.7 7.4 3.6 6.3 0 5.5 3.6 4.7 4.7 3.6 5.5 0Z");
}

/* ---------- Diferenciais ---------- */
.split { max-width: 64rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__lead { font-size: 1.2rem; color: var(--muted-fg); margin: 1rem 0 2rem; }
.want-box { background: var(--muted); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); }
.want-box__title { font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }
.check-list li { display: flex; gap: .75rem; align-items: center; padding: .7rem 0; font-weight: 500; border-bottom: 1px solid var(--border); }
.check-list li:last-child { border-bottom: 0; }
.check-list .icon { color: var(--wa); }

/* ---------- Objeções ---------- */
.faq-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); }
.faq-card__q { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.faq-card__a { color: var(--muted-fg); }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 64rem; margin: 0 auto 3rem; counter-reset: none; }
.step { text-align: center; }
.step__icon {
  display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem;
  border-radius: var(--radius-lg); background: var(--gradient-teal); color: #fff;
  box-shadow: 0 8px 20px -6px rgb(11 83 68 / .45);
}
.step__num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: .5rem; }
.step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.step p { color: var(--muted-fg); font-size: .95rem; }

/* ---------- Missão ---------- */
.mission-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.mission-list li {
  display: flex; gap: .75rem; align-items: center;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .15);
  border-radius: var(--radius); padding: 1rem 1.25rem; font-weight: 500;
}
.mission-list .icon { color: var(--gold); }
.mission-text { text-align: center; color: rgb(255 255 255 / .85); font-size: 1.1rem; margin-bottom: 2.5rem; }

/* ---------- Footer ---------- */
.footer { background: var(--gradient-hero); color: rgb(255 255 255 / .8); padding: 3rem 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgb(255 255 255 / .15); }
.footer__grid > * { min-width: 0; overflow-wrap: anywhere; }
.footer__logo { height: 4.5rem; width: auto; margin-bottom: 1rem; }
.footer__name { color: #fff; font-weight: 700; margin-bottom: .35rem; }
.footer__contact { display: flex; flex-direction: column; gap: .75rem; }
.footer__contact > a { display: inline-flex; gap: .6rem; align-items: center; }
.footer__address { align-items: flex-start !important; }
.footer__address .icon { margin-top: .2rem; }
.footer__address address { font-style: normal; line-height: 1.5; }
.footer__contact a:hover { color: var(--gold); }
.footer__social { display: flex; gap: .75rem; margin-top: .25rem; }
.footer__social a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: rgb(255 255 255 / .1); transition: background .3s;
}
.footer__social a:hover { background: var(--gold); color: var(--navy); }
.footer__bottom { padding-top: 1.5rem; text-align: center; font-size: .85rem; }
.footer__disclaimer { margin-bottom: .5rem; opacity: .75; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50;
  width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  animation: pulse-ring 2.2s ease-out infinite; z-index: -1;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal--right { transform: translateX(32px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (min-width: 768px) { .section { padding: 7rem 0; } }

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1.25rem; padding: 1.5rem;
    background: #fff; box-shadow: 0 10px 20px rgb(21 23 81 / .15);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav .nav__link { color: var(--navy); }
  .header__logo img { height: 3.5rem; }

  .hero { padding-top: 6rem; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lead, .hero__text { margin-left: auto; margin-right: auto; }
  .hero__image img { max-width: 340px; margin: 0 auto; }

  .grid--3, .steps, .split, .mission-list, .footer__grid { grid-template-columns: 1fr; }
  .split { text-align: center; }
  .section__title--left { text-align: center; }
  .want-box { text-align: left; }
  .btn--lg { padding: 0 1.5rem; font-size: 1rem; white-space: normal; text-align: center; }
  .wa-float { width: 3.5rem; height: 3.5rem; right: 1rem; bottom: 1rem; }
  .footer { padding-bottom: 5.5rem; }
}

/* ---------- Ícone dos serviços (no lugar dos emojis) ---------- */
.service-card__title { align-items: center; }
.service-card__icon {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: .7rem; background: var(--gradient-teal); color: #fff;
  box-shadow: 0 6px 14px -6px rgb(11 83 68 / .45);
}

/* ---------- Botão secundário (contorno) ---------- */
.btn--outline {
  height: 2.75rem; padding: 0 1.25rem; font-size: .95rem;
  color: var(--wa-hover); border: 2px solid var(--wa); background: transparent;
}
.btn--outline:hover { background: var(--wa); color: #fff; }
.btn--outline:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--block { width: 100%; margin-top: 1.25rem; }

/* ---------- Perguntas frequentes (sanfona) ---------- */
.faq { max-width: 52rem; margin: 0 auto 3rem; display: grid; gap: .75rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.5rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--teal); transition: transform .25s; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--petrol); }
.faq-item summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.faq-item p { padding: 0 1.5rem 1.25rem; color: var(--muted-fg); }
