/* ==========================================================================
   Rede de Consórcios — estilos
   Paleta e tipografia definidas em specs/design.md — não alterar sem checar lá.
   ========================================================================== */

:root {
  /* Paleta (specs/design.md) */
  --color-primary: #38B6FF;
  --color-primary-shade: #277FB2;
  --color-primary-tint: #A5DEFF;
  --color-navy: #1703AC;
  --color-text: #12142B;
  --color-white: #FFFFFF;
  --color-light: #F5F8FB;
  --color-border: #E2E8F0;

  /* Tipografia */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Espaçamento */
  --section-padding: 96px;
  --container-width: 1160px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;

  --shadow-card: 0 12px 32px rgba(18, 20, 43, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(18, 20, 43, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-shade);
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 16px;
}

.section-head p {
  font-size: 18px;
  color: #4A4D63;
}

section {
  padding: var(--section-padding) 0;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-primary-shade);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  box-shadow: var(--shadow-card-hover);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-solid {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.btn-solid:hover {
  background: var(--color-primary-shade);
  box-shadow: var(--shadow-card-hover);
}

.btn-navy-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-navy-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-sm {
  padding: 12px 22px;
  font-size: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text);
}

.logo img {
  height: 34px;
  width: auto;
}

.logo-word {
  line-height: 1.15;
  font-size: 15px;
  font-weight: 800;
}

.footer-brand .logo-word {
  color: var(--color-white);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--color-primary-shade);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 168px 0 140px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-shade) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: var(--color-white);
  border-top-left-radius: 50% 60px;
  border-top-right-radius: 50% 60px;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-card {
  max-width: 430px;
  margin: 56px auto 0;
  position: relative;
  z-index: 2;
}

.hero-card svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(18, 20, 43, 0.3));
  transform: rotate(-1.5deg);
}

/* ---------- Pilares (cards de módulo) ---------- */

.pillars {
  background: var(--color-white);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-white);
}

.pillar-card.is-cancelados .pillar-icon { background: var(--color-primary); }
.pillar-card.is-ativos .pillar-icon { background: var(--color-navy); }
.pillar-card.is-contemplados .pillar-icon { background: var(--color-primary-shade); }

.pillar-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.pillar-card p {
  color: #4A4D63;
  font-size: 15px;
  margin-bottom: 18px;
}

.pillar-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-primary-shade);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pillar-link svg {
  transition: transform 0.15s ease;
}

.pillar-card:hover .pillar-link svg {
  transform: translateX(3px);
}

/* ---------- Seções institucionais (Cancelados / Ativos) ---------- */

.institutional {
  background: var(--color-light);
}

.institutional.alt {
  background: var(--color-white);
}

.institutional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.institutional-grid.reverse .institutional-copy {
  order: 2;
}

.institutional-grid.reverse .institutional-visual {
  order: 1;
}

.institutional-copy .eyebrow {
  color: var(--color-primary-shade);
}

.institutional-copy h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 18px;
}

.institutional-copy > p {
  font-size: 17px;
  color: #4A4D63;
  margin-bottom: 28px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  color: #4A4D63;
}

.institutional-visual {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--color-white);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.institutional-visual.is-navy {
  background: var(--color-navy);
}

.visual-illustration {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.visual-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
  position: relative;
  z-index: 2;
}

.visual-quote::before {
  content: '“';
  display: block;
  font-size: 64px;
  line-height: 0.6;
  margin-bottom: 16px;
  opacity: 0.5;
}

.visual-blob {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  bottom: -80px;
  right: -80px;
}

/* ---------- Contemplados / marketplace ---------- */

.marketplace {
  background: var(--color-white);
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.listing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}

.listing-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-note {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--color-white);
  background: rgba(18, 20, 43, 0.55);
  padding: 3px 9px;
  border-radius: 999px;
}

.listing-banner {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 20px 24px;
}

.listing-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.listing-banner h3 {
  color: var(--color-white);
  font-size: 19px;
}

.listing-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.listing-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.listing-row span:first-child {
  color: #6B6E85;
}

.listing-row span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}

.listing-highlight .listing-row span:last-child {
  color: var(--color-primary-shade);
}

.listing-body .btn {
  margin-top: 4px;
}

.marketplace-note {
  text-align: center;
  background: var(--color-light);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.marketplace-note p {
  color: #4A4D63;
  margin-bottom: 16px;
}

/* ---------- Faixa foto + CTA ---------- */

.photo-banner {
  background: var(--color-white);
  padding-top: 0;
}

.photo-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.photo-banner-img {
  min-height: 340px;
}

.photo-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-banner-copy {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.photo-banner-copy .eyebrow {
  color: var(--color-primary-tint);
  margin-bottom: 0;
}

.photo-banner-copy h2 {
  color: var(--color-white);
  font-size: clamp(24px, 3vw, 30px);
}

.photo-banner-copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.photo-banner-copy .btn {
  margin-top: 8px;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--color-light);
}

.faq-groups {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-group h3 {
  font-size: 18px;
  color: var(--color-primary-shade);
  margin-bottom: 16px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-primary-shade);
  transition: transform 0.2s ease;
}

.faq-question .faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-question .faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: #4A4D63;
}

/* ---------- Faixa final de captura ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 130%);
  color: var(--color-white);
  text-align: center;
}

.cta-band .container {
  max-width: 620px;
}

.cta-band-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.cta-band h2 {
  color: var(--color-white);
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  :root {
    --section-padding: 72px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    gap: 10px;
  }

  .header-cta .btn-whatsapp {
    padding: 10px 14px;
    font-size: 13px;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.is-open .main-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }

  .site-header.is-open .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-header.is-open .main-nav a {
    display: block;
    width: 100%;
    padding: 12px 24px;
  }

  .pillars-grid,
  .marketplace-grid {
    grid-template-columns: 1fr;
  }

  .institutional-grid,
  .institutional-grid.reverse {
    grid-template-columns: 1fr;
  }

  .institutional-grid.reverse .institutional-copy,
  .institutional-grid.reverse .institutional-visual {
    order: initial;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .photo-banner-grid {
    grid-template-columns: 1fr;
  }

  .photo-banner-img {
    min-height: 240px;
  }

  .photo-banner-copy {
    padding: 40px 28px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 140px 0 120px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
