/* ============================================================
   GONÇALVES CONSULTORIA — Landing Page
   Consultoria Financeira para Empresas
   ============================================================
   1. Design tokens
   2. Reset
   3. Base (tipografia, seleção, foco)
   4. Primitivos globais (container, botões, eyebrow, headings)
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Navy: cor institucional principal */
  --navy-950: #081120;   /* footer, tons mais profundos */
  --navy-900: #0C1D33;   /* headings, texto de máximo peso */
  --navy-800: #12294A;   /* botões primários, acentos fortes */
  --navy-700: #1C3A63;   /* hover de botões, detalhes */
  --navy-100: #E3EAF3;   /* bordas e fundos sutis azulados */
  --navy-050: #EFF4F9;   /* badge azul claro (S6), superfícies frias */

  /* Dourado: extraído do degradê do logo */
  --gold-700: #8F6D33;   /* dourado profundo, texto sobre claro */
  --gold-600: #9C7B3C;   /* base do degradê do logo */
  --gold-500: #B4934F;   /* dourado principal de acento */
  --gold-300: #D9BE8C;   /* topo do degradê do logo */
  --gold-100: #F0E6D2;   /* fundos dourados sutis */
  --grad-gold: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-300) 100%);

  /* Neutros: fundo claro predominante, levemente aquecido */
  --white: #FFFFFF;
  --ivory: #FAF8F4;      /* seções alternadas, calor sutil */
  --ink: #16202D;        /* texto corrido */
  --ink-soft: #4B5768;   /* texto secundário, subtítulos */
  --ink-mute: #7C8697;   /* microcopy, labels discretos */
  --line: #E7E3DB;       /* bordas e separadores sobre claro */

  /* Feedback */
  --success-bg: #EAF6EC; /* bloco RESULTADO do modal */
  --success-ink: #1E6B3A;
  --error: #C0392B;      /* validação do formulário */

  /* Tipografia */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica fluida */
  --text-hero: clamp(2.1rem, 4.5vw, 3.4rem);
  --text-h2: clamp(1.7rem, 3.2vw, 2.5rem);
  --text-h3: clamp(1.15rem, 1.8vw, 1.35rem);
  --text-lead: clamp(1.05rem, 1.5vw, 1.2rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-micro: 0.78rem;

  /* Espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section-y: clamp(4rem, 9vw, 7rem);   /* respiro vertical entre seções */

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Superfície */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(12, 29, 51, 0.07);
  --shadow-md: 0 8px 28px rgba(12, 29, 51, 0.09);
  --shadow-lg: 0 20px 60px rgba(12, 29, 51, 0.14);

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms var(--ease);
  --t-med: 320ms var(--ease);
}

/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

/* [hidden] deve vencer qualquer display definido por classe */
[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------
   3. BASE
   ------------------------------------------------------------ */
::selection {
  background: var(--gold-300);
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   4. PRIMITIVOS GLOBAIS
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Eyebrow: tag pequena acima de headlines */
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* Traço alinhado ao centro da primeira linha, mesmo com quebra */
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 1.5px;
  margin-top: calc(0.5em * 1.65 - 0.75px);
  background: var(--grad-gold);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-body);
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.btn-primary {
  background-color: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Âncoras não podem parar sob a navbar sticky */
main section {
  scroll-margin-top: 88px;
}

/* Reveal on scroll: classes aplicadas via JS (progressive enhancement) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cabeçalho padrão de seção */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .eyebrow {
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: var(--text-h2);
}

.section-head .section-sub {
  margin-top: var(--space-4);
  font-size: var(--text-lead);
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   5. NAVBAR
   ------------------------------------------------------------ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med), border-color var(--t-med);
}

/* Filete dourado no topo: assinatura visual da marca */
.navbar::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad-gold);
}

.navbar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(12, 29, 51, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand img {
  width: auto;
  height: 44px;
}

.navbar-cta {
  padding: 0.65rem 1.4rem;
  font-size: var(--text-small);
}

@media (max-width: 480px) {
  .navbar-inner {
    height: 62px;
  }
  .navbar-brand img {
    height: 36px;
  }
  .navbar-cta {
    padding: 0.55rem 1rem;
    font-size: var(--text-micro);
  }
}

/* ------------------------------------------------------------
   6. S1. HERO
   ------------------------------------------------------------ */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(217, 190, 140, 0.12), transparent 70%),
    var(--white);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-title {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}

.hero-title-light {
  font-size: calc(var(--text-hero) * 0.52);
  font-weight: 400;
  color: var(--gold-700);
  letter-spacing: 0;
}

.hero-title-strong {
  font-size: var(--text-hero);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.12;
}

.hero-sub {
  margin-top: var(--space-6);
  max-width: 54ch;
  font-size: var(--text-lead);
  color: var(--ink-soft);
}

.hero-cta {
  margin-top: var(--space-8);
  padding: 1.05rem 2.2rem;
}

/* --- Visual: retrato do Jorge com moldura da marca --- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  width: min(400px, 82%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Losango de contorno dourado, deslocado atrás (assinatura da marca) */
.hero-portrait-ring {
  position: absolute;
  z-index: 1;
  width: min(340px, 70%);
  aspect-ratio: 1 / 1;
  top: -6%;
  right: 2%;
  transform: rotate(45deg);
  border: 1.5px solid var(--gold-300);
  border-radius: 8px;
}

/* Losango sólido dourado, vértice inferior esquerdo */
.hero-portrait-chip {
  position: absolute;
  z-index: 3;
  left: 4%;
  bottom: 8%;
  width: 56px;
  aspect-ratio: 1 / 1;
  background: var(--grad-gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: var(--shadow-md);
}

/* --- Barra de logos (carrossel contínuo) --- */
.hero-logos {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.hero-logos-label {
  display: block;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.logos-marquee {
  margin-top: var(--space-6);
  padding-bottom: var(--space-8);
  overflow: hidden;
  /* fade suave nas bordas */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* Sem JS (track não duplicada): permite scroll manual em vez de cortar */
.logos-marquee:not(.is-animating) {
  overflow-x: auto;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  width: max-content;
}

.logos-marquee.is-animating .marquee-track {
  animation: marquee-scroll 48s linear infinite;
}

.logos-marquee.is-animating:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.marquee-logo img {
  height: 38px;
  width: auto;
  /* multiply apaga o fundo branco embutido nos arquivos; grayscale uniformiza */
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--t-fast), opacity var(--t-fast);
}

.marquee-logo img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logos-marquee.is-animating .marquee-track {
    animation: none;
  }
  .logos-marquee.is-animating {
    overflow-x: auto;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 55fr 45fr;
  }
}

@media (max-width: 1023px) {
  .hero-visual {
    min-height: 0;
    margin-top: var(--space-4);
  }
  .hero-portrait {
    width: min(360px, 78%);
  }
}

/* ------------------------------------------------------------
   7. S2. AUTORIDADE
   ------------------------------------------------------------ */
.autoridade {
  padding-block: var(--section-y);
  background-color: var(--ivory);
}

/* Label de bloco interno (cases, pilares) */
.block-label {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--space-6);
}

/* --- Perfil do Jorge --- */
.profile-card {
  display: grid;
  gap: var(--space-8);
  padding: clamp(1.5rem, 4vw, 3rem);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.profile-photo {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

/* Losango da marca como selo no canto da foto */
.profile-photo::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -10%;
  width: 42%;
  aspect-ratio: 1 / 1;
  background: var(--grad-gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.9;
}

.profile-name {
  font-size: var(--text-h3);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
}

.profile-role {
  margin-top: var(--space-1);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-700);
}

.profile-bio {
  margin-top: var(--space-4);
  color: var(--ink-soft);
  max-width: 62ch;
}

@media (min-width: 768px) {
  .profile-card {
    grid-template-columns: 260px 1fr;
    align-items: center;
  }
}

/* --- Métricas --- */
.metrics {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.metric {
  display: grid;
  gap: var(--space-1);
  padding-left: var(--space-4);
  border-left: 2px solid var(--gold-300);
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--navy-900);
}

.metric-label {
  font-size: var(--text-small);
  color: var(--ink-soft);
  max-width: 20ch;
}

/* --- Cases clicáveis --- */
.cases {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.cases-grid {
  display: grid;
  gap: var(--space-4);
}

.case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: left;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}

.case-sector {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background-color: var(--navy-050);
  color: var(--navy-800);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-company {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--navy-900);
}

.case-snippet {
  color: var(--ink-soft);
  font-size: var(--text-small);
  flex-grow: 1;
}

.case-more {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--gold-700);
  transition: color var(--t-fast);
}

.case-card:hover .case-more {
  color: var(--gold-600);
}

/* 3 colunas só a partir de 1024px: em tablet os cards ficariam estreitos demais */
@media (min-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Pilares --- */
.pillars {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.pillars-grid {
  display: grid;
  gap: var(--space-6);
}

.pillar {
  position: relative;
  padding-top: var(--space-4);
}

/* Losango pequeno como bullet de pilar */
.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  aspect-ratio: 1 / 1;
  background: var(--grad-gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.pillar h3 {
  font-size: var(--text-h3);
}

.pillar p {
  margin-top: var(--space-2);
  color: var(--ink-soft);
  font-size: var(--text-small);
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------------------------------------------
   8. S3. EMPATIA
   ------------------------------------------------------------ */
.empatia {
  padding-block: var(--section-y);
  background-color: var(--white);
}

.empatia-head {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.empatia-head h2 {
  font-size: var(--text-h2);
  max-width: 18ch;
}

.empatia-text {
  display: grid;
  gap: var(--space-4);
  color: var(--ink-soft);
  font-size: var(--text-lead);
  align-content: center;
}

/* Primeira frase com peso editorial: a dor nomeada */
.empatia-text p:first-child {
  color: var(--navy-800);
  font-weight: 500;
}

.situations {
  display: grid;
  gap: var(--space-4);
}

.situation-card {
  position: relative;
  padding: var(--space-6) var(--space-6) var(--space-6) 3.2rem;
  background-color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--navy-800);
  font-weight: 500;
  line-height: 1.5;
}

.situation-card::before {
  content: "";
  position: absolute;
  left: var(--space-6);
  top: calc(var(--space-6) + 0.35em);
  width: 11px;
  aspect-ratio: 1 / 1;
  background: var(--grad-gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* --- Faixa de CTA secundário --- */
.cta-bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 90% at 90% 10%, rgba(180, 147, 79, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy-800) 0%, var(--navy-950) 100%);
  border-radius: var(--radius-lg);
}

.cta-bar-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-lead);
  max-width: 44ch;
}

.cta-bar .btn {
  align-self: stretch;
}

@media (min-width: 768px) {
  .empatia-head {
    grid-template-columns: 1fr 1fr;
  }
  .situations {
    grid-template-columns: 1fr 1fr;
  }
  .situation-card-wide {
    grid-column: span 2;
  }
  .cta-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cta-bar .btn {
    align-self: center;
    flex-shrink: 0;
  }
}

/* ------------------------------------------------------------
   9. S4. FRENTES DE ATUAÇÃO
   ------------------------------------------------------------ */
.frentes {
  padding-block: var(--section-y);
  background-color: var(--ivory);
}

.frentes-grid {
  display: grid;
  gap: var(--space-6);
}

.frente-card {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

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

.frente-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-300);
  margin-bottom: var(--space-3);
}

.frente-card h3 {
  font-size: var(--text-h3);
  max-width: 24ch;
}

.frente-card > p {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: var(--text-small);
}

.frente-list {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-3);
}

.frente-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--navy-800);
}

.frente-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  aspect-ratio: 1 / 1;
  background: var(--grad-gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

@media (min-width: 768px) {
  .frentes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------
   10. S5. DEPOIMENTOS
   ------------------------------------------------------------ */
.depoimentos {
  padding-block: var(--section-y);
  background-color: var(--white);
}

.depo-grid {
  display: grid;
  gap: var(--space-6);
}

.depo-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background-color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Aspas decorativas douradas */
.depo-quote {
  position: relative;
  flex-grow: 1;
  padding-top: 2rem;
  font-family: var(--font-display);
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy-800);
}

.depo-quote::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: -0.08em;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-500);
}

.depo-source {
  display: grid;
  gap: 2px;
}

.depo-author {
  font-weight: 600;
  color: var(--navy-900);
}

.depo-org {
  font-size: var(--text-small);
  color: var(--ink-mute);
}

.depo-tag {
  align-self: flex-start;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background-color: var(--navy-050);
  color: var(--navy-800);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .depo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------
   11. S6. PARA QUEM É
   ------------------------------------------------------------ */
.para-quem {
  padding-block: var(--section-y);
  background-color: var(--ivory);
}

.perfis {
  display: grid;
  gap: var(--space-4);
}

.perfil {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.perfil-check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--navy-900);
}

.perfil-text {
  display: grid;
  gap: 2px;
}

.perfil-main {
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.4;
}

.perfil-detail {
  font-size: var(--text-small);
  color: var(--ink-mute);
}

/* Badge de faturamento: azul claro, separado dos perfis */
.faturamento-badge {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: var(--space-6) var(--space-8);
  background-color: var(--navy-050);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-lead);
  font-weight: 600;
  color: var(--navy-800);
}

@media (min-width: 768px) {
  .perfis {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------
   12. S7. CTA FINAL (FORMULÁRIO)
   ------------------------------------------------------------ */
.cta-final {
  padding-block: var(--section-y);
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(217, 190, 140, 0.14), transparent 70%),
    var(--white);
}

.cta-final-head {
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.cta-final-head h2 {
  font-size: var(--text-h2);
}

.cta-final-head .section-sub {
  margin-top: var(--space-4);
  font-size: var(--text-lead);
  color: var(--ink-soft);
}

.lead-form,
.form-success {
  max-width: 580px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.lead-form {
  display: grid;
  gap: var(--space-6);
}

.form-row {
  display: grid;
  gap: var(--space-6);
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--navy-900);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-mute);
}

.form-field select:invalid {
  color: var(--ink-mute);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(180, 147, 79, 0.18);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

/* Estado de erro */
.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--error);
}

.field-error {
  font-size: var(--text-micro);
  font-weight: 500;
  color: var(--error);
}

.form-submit {
  width: 100%;
  padding: 1.05rem 2rem;
}

.form-microcopy {
  text-align: center;
  font-size: var(--text-small);
  color: var(--ink-mute);
}

/* Estado de sucesso */
.form-success {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--success-bg);
  color: var(--success-ink);
  margin-bottom: var(--space-2);
}

.form-success h3 {
  font-size: var(--text-h3);
}

.form-success p {
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------
   13. MODAL DE CASES
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 32, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t-med);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-med), transform var(--t-med);
}

.modal.is-open .modal-overlay {
  opacity: 1;
}

.modal.is-open .modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-mute);
  transition: background-color var(--t-fast), color var(--t-fast);
}

.modal-close:hover {
  background-color: var(--ivory);
  color: var(--navy-900);
}

.modal-company {
  margin-top: var(--space-4);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink-mute);
}

.modal-title {
  margin-top: var(--space-2);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.modal-block {
  padding-block: var(--space-6);
}

.modal-block + .modal-block {
  border-top: 1px solid var(--line);
}

.modal-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.modal-block p {
  color: var(--ink-soft);
}

/* Bloco RESULTADO: destaque em verde claro */
.modal-block-result,
.modal-block + .modal-block-result {
  margin-top: var(--space-2);
  padding: var(--space-6);
  background-color: var(--success-bg);
  border-radius: var(--radius-md);
  border-top: none;
}

.modal-block-result .modal-label {
  color: var(--success-ink);
}

.modal-block-result p {
  color: var(--ink);
}

/* Trava o scroll do body com o modal aberto */
body.modal-open {
  overflow: hidden;
}

/* ------------------------------------------------------------
   14. PÁGINAS LEGAIS (políticas)
   ------------------------------------------------------------ */
.legal {
  padding-block: clamp(3rem, 6vw, 5rem);
  background-color: var(--white);
}

.legal .container {
  max-width: 780px;
}

.legal h1 {
  font-size: var(--text-h2);
}

.legal-updated {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  color: var(--ink-mute);
}

.legal h2 {
  margin-top: var(--space-12);
  font-size: var(--text-h3);
}

.legal p,
.legal li {
  margin-top: var(--space-4);
  color: var(--ink-soft);
}

.legal ul {
  list-style: disc;
  padding-left: var(--space-6);
}

.legal li {
  margin-top: var(--space-2);
}

.legal strong {
  color: var(--navy-900);
}

.legal a {
  color: var(--gold-700);
  font-weight: 500;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */
.footer {
  background-color: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
}

/* Filete dourado espelhando a navbar */
.footer::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad-gold);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-12);
  text-align: center;
}

.footer-logo {
  width: auto;
  height: 44px;
}

.footer-copy {
  font-size: var(--text-small);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--text-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--gold-300);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
