/* ============================================================
   ES11 · Seções
   ============================================================ */

/* Cabeçalho de seção reutilizável */
.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head .eyebrow {
  margin-bottom: 1rem;
}
.section-head h2 {
  font-size: var(--fs-h2);
}
.section-head .lead {
  margin-top: 1.1rem;
}

/* ============ HERO — clara, editorial (referência: LP Felipe/ES11) ============
   Duas colunas: discurso à esquerda; retrato à direita com anel dourado,
   chip navy e orbs decorativos. Fundo creme quente. Animações: hover-lift
   no retrato + GLOW AZUL-MARINHO que segue o cursor + parallax leve dos
   orbs (js/hero.js). Tudo respeita prefers-reduced-motion. */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(0.5rem, 2.5vh, 1.75rem));
  padding-bottom: clamp(1.5rem, 6vh, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(122deg, #fdfcf9 0%, var(--paper-2) 60%, #e9e2d3 100%);
}

/* Camada decorativa (orbs + glow de mouse), atrás do conteúdo */
.hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
}
.hero-orb-one {
  width: 400px;
  height: 400px;
  top: -220px;
  left: -90px;
  background: radial-gradient(circle at 40% 40%, rgba(196, 162, 76, 0.22), transparent 68%);
}
.hero-orb-two {
  width: 160px;
  height: 160px;
  top: 78px;
  right: 9%;
  border: 1px solid var(--gold-line);
}
.hero__glow {
  position: absolute;
  z-index: 0;
  top: -20%;
  right: -10%;
  width: min(640px, 70vw);
  height: min(640px, 70vw);
  background: radial-gradient(circle at center, var(--gold-glow), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.75rem, 4.5vw, 4rem);
  align-items: center;
}
.hero__copy .eyebrow {
  margin-bottom: 0.9rem;
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero__sub {
  margin-top: 1.1rem;
  font-size: var(--fs-body-lg);
  color: var(--ink-70);
  max-width: 46ch;
}
.hero__points {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.55rem;
  max-width: 48ch;
}
.hero__points li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--gold-glow);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.hero__points li::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.5em;
  width: 0.42rem;
  height: 0.24rem;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Retrato à direita, com anel dourado e chip navy. A foto PREENCHE a
   altura da coluna de texto (do topo do discurso à base atual): a coluna
   de mídia estica na linha do grid (align-self:stretch) e a foto ocupa
   100% dessa altura. object-fit:cover mantém o enquadramento. --- */
.hero__media {
  position: relative;
  justify-self: end;
  align-self: stretch; /* estica à altura da LINHA do grid (= altura do texto) */
  width: 100%;
  min-height: 340px; /* piso p/ telas curtas; não infla além do texto */
}
/* Absoluto: a mídia não empurra a altura da linha; a foto preenche 100%
   da coluna, do topo do discurso à base — alinhada ao texto. */
.hero__photo-wrap {
  position: absolute;
  inset: 0;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) var(--radius-sm)
    var(--radius-sm);
  box-shadow: 0 30px 60px -30px rgba(10, 26, 47, 0.42);
  filter: saturate(0.96) contrast(1.02);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
/* Anel dourado concêntrico atrás do retrato (assinatura da marca) */
.hero__photo-outline {
  position: absolute;
  z-index: 0;
  bottom: -38px;
  right: -34px;
  width: min(460px, 118%);
  aspect-ratio: 1;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  pointer-events: none;
}
.hero__photo-outline::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid var(--gold-glow);
  border-radius: 50%;
}
/* Chip navy com nome/cargo, sobreposto ao retrato */
.hero__label {
  position: absolute;
  z-index: 3;
  left: -8px;
  bottom: 58px;
  display: grid;
  gap: 3px;
  padding: 0.75rem 1.05rem;
  background: var(--navy-900);
  color: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-navy);
  transition: transform 0.3s var(--ease-out);
}
.hero__label strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
}
.hero__label small {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}
@media (hover: hover) and (pointer: fine) {
  .hero__photo-wrap:hover .hero__photo {
    transform: translateY(-8px);
    box-shadow: 0 40px 72px -30px rgba(10, 26, 47, 0.5);
  }
  .hero__photo-wrap:hover .hero__label {
    transform: translateX(8px);
  }
}

/* MOBILE: coluna única — discurso (com CTA) em cima, retrato embaixo. */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + clamp(1.25rem, 6vh, 2.5rem));
    padding-bottom: clamp(2rem, 7vh, 3.25rem);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 6vw, 2.75rem);
  }
  .hero__media {
    justify-self: center;
    align-self: auto;
    width: auto;
    min-height: 0;
  }
  .hero__photo-wrap {
    position: static;
  }
  .hero__photo {
    position: relative;
    inset: auto;
    width: auto;
    height: clamp(320px, 52vh, 440px);
  }
  .hero__photo-outline {
    width: min(380px, 108%);
    bottom: -28px;
    right: -26px;
  }
  .hero__label {
    bottom: 42px;
  }
  .hero__title {
    font-size: clamp(1.9rem, 7.6vw, 2.6rem);
    line-height: 1.12;
  }
  .hero__copy .eyebrow {
    margin-bottom: 0.6rem;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
  }
  .hero-orb-one {
    width: 260px;
    height: 260px;
    top: -150px;
  }
}
@media (max-width: 480px) {
  .hero__photo {
    height: auto;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
  }
  .hero__photo-outline {
    display: none;
  }
  .hero__label {
    left: 0;
    bottom: 22px;
  }
}

/* ============ SOBRE ============ */
.sobre__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  /* stretch: a imagem acompanha a altura da coluna de texto,
     eliminando as sobras de espaço acima/abaixo dela. */
  align-items: stretch;
}
.sobre__media {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sobre__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--gold-line);
  border-radius: inherit;
}
.sobre__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* enquadra no assunto (João + tela da ES11), evitando excesso de teto */
  object-position: center 62%;
}
.sobre__body h2 {
  font-size: var(--fs-h2);
  margin-top: 1rem;
}
.sobre__text {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.1rem;
  color: var(--ink-70);
  font-size: var(--fs-body-lg);
}
.sobre__text strong {
  color: var(--navy-900);
  font-weight: var(--fw-semibold);
}

/* Citação de destaque */
.quote {
  margin-top: 2.25rem;
  padding: 1.75rem 0 0.25rem 2rem;
  border-left: 2px solid var(--gold-line);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  line-height: 1.28;
  font-style: italic;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.quote figcaption {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold-deep);
}

@media (max-width: 820px) {
  .sobre__grid {
    grid-template-columns: 1fr;
  }
  /* empilhado: volta a ter proporção própria (sem esticar) */
  .sobre__media {
    max-width: 380px;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* ============ CARDS (Para quem é) ============ */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}
.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}
.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-line);
  }
}
.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.6rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--ink-70);
}
.card--feature {
  background: var(--navy-900);
  border-color: transparent;
}
.card--feature h3 {
  color: var(--paper);
}
.card--feature p {
  color: var(--on-navy-70);
}
.card__tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.66rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold);
  border-radius: var(--radius-pill);
}

@media (max-width: 1000px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1000px) {
  .cards--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .cards--4 {
    grid-template-columns: 1fr;
  }
}

/* ============ ESPECIALIDADES ============ */
.specs {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 0;
}
.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline);
}
.spec:last-child {
  border-bottom: 1px solid var(--hairline);
}
.spec__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-deep);
  line-height: 1;
  padding-top: 0.2rem;
}
.spec h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}
.spec p {
  color: var(--ink-70);
  max-width: 60ch;
}

.decisions {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.decisions__title {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.decisions__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2rem;
}
.decisions__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  font-size: 0.96rem;
}
.decisions__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 620px) {
  .decisions__list {
    grid-template-columns: 1fr;
  }
}

/* ============ COMO FUNCIONA ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  overflow: hidden; /* clipa o filete navy do topo aos cantos arredondados */
  padding: 1.6rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: transform var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}
/* Hover: leve elevação + borda/glow discreto em azul-marinho */
@media (hover: hover) and (pointer: fine) {
  .step:hover {
    transform: translateY(-4px);
    border-color: var(--navy-600);
    box-shadow: 0 18px 40px -24px rgba(10, 26, 47, 0.45), 0 0 0 1px rgba(34, 67, 107, 0.32);
  }
  .step:hover .step__num {
    border-color: var(--navy-600);
  }
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.step h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.step p {
  font-size: 0.9rem;
  color: var(--ink-70);
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.1rem;
    align-items: center;
  }
  .step__num {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* ============ Painéis sobre as faixas NAVY (cards + stepper) ============
   "Para quem é" e "Como funciona" ficam azul-marinho: os painéis viram
   vidro translúcido claro, texto claro e acentos dourados (o filete do
   stepper vira dourado — navy sobre navy some). */
.section--navy .card,
.section--navy .step {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--hairline-dark);
}
.section--navy .card h3,
.section--navy .step h3 {
  color: var(--paper);
}
.section--navy .card p,
.section--navy .step p {
  color: var(--on-navy-70);
}
/* Card em destaque ("Investidores"): painel um pouco mais luminoso */
.section--navy .card--feature {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--gold-line);
}
.section--navy .card--feature h3 {
  color: var(--paper);
}
.section--navy .card--feature p {
  color: var(--on-navy-70);
}
/* Numeração dos passos: dourado claro contrasta com o azul */
.section--navy .step__num {
  border-color: var(--gold-line);
  color: var(--gold-soft);
}
/* Filete progressivo do stepper: navy é invisível sobre navy → vira dourado */
.section--navy .step::before {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
}
@media (hover: hover) and (pointer: fine) {
  .section--navy .card:hover,
  .section--navy .step:hover {
    border-color: var(--gold-line);
    box-shadow: 0 22px 46px -26px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--gold-line);
  }
  .section--navy .step:hover .step__num {
    border-color: var(--gold-soft);
  }
}

/* ============ INSTITUCIONAL ES11 ============
   Faixa clara de ponta a ponta, como todas as outras seções — sem card
   flutuante. O navy fica reservado ao fecho (CTA + rodapé), onde a cor
   escassa rende mais impacto. A identidade institucional é marcada por
   filetes dourados e pela logo em cores originais, não por fundo escuro. */
.es11 {
  position: relative;
  background: var(--paper);
}
.es11::before,
.es11::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.es11::before {
  top: 0;
}
.es11::after {
  bottom: 0;
}
.es11__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: center;
}
/* Logo oficial em cores originais (fundo claro) */
.es11__mark {
  width: clamp(140px, 17vw, 215px);
  height: auto;
}
/* Filete vertical amarra logo + texto num único lockup institucional
   (mesma linguagem do filete da citação em "Sobre"). */
.es11__body {
  border-left: 1px solid var(--gold-line);
  padding-left: clamp(1.75rem, 4.5vw, 3.5rem);
}
.es11__body h2 {
  font-size: var(--fs-h2);
  margin: 0.75rem 0 1.1rem;
}
.es11__links {
  margin-top: 1.75rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .es11__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .es11__mark {
    width: 140px;
  }
  /* empilhado: o filete passa de vertical para horizontal */
  .es11__body {
    border-left: 0;
    border-top: 1px solid var(--gold-line);
    padding-left: 0;
    padding-top: 1.5rem;
  }
}

/* ============ FAQ ============ */
.faq__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq__head h2 {
  font-size: var(--fs-h2);
  margin: 1rem 0 1rem;
}
.faq__head .lead {
  margin-bottom: 1.5rem;
}
.faq__list {
  display: grid;
}
.faq__item {
  border-bottom: 1px solid var(--hairline);
}
.faq__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 3rem 1.35rem 0;
  font-size: 1.06rem;
  font-weight: var(--fw-medium);
  color: var(--navy-900);
  transition: color var(--dur-ui) var(--ease-out);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}
.faq__item[open] summary::after {
  transform: rotate(-135deg);
}
@media (hover: hover) {
  .faq__item summary:hover {
    color: var(--gold-deep);
  }
}
.faq__answer {
  overflow: hidden;
  color: var(--ink-70);
  padding-right: 2.5rem;
}
.faq__answer p {
  padding-bottom: 1.35rem;
  max-width: 62ch;
}
@media (max-width: 780px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
}

/* ============ CTA FINAL — seção inteira (full-bleed) ============ */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--navy-900);
  color: var(--on-navy);
  padding-block: clamp(3.5rem, 9vh, 6.5rem);
}
/* z-index negativo mantém o glow atrás do conteúdo SEM entrar no fluxo
   (era isto que gerava o bloco de espaço vazio no topo do card). */
.cta__glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 95%);
  height: min(560px, 100%);
  background: radial-gradient(ellipse at center, rgba(196, 162, 76, 0.2), transparent 68%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .eyebrow {
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
.cta .eyebrow::before,
.cta .eyebrow::after {
  background: var(--gold-soft);
}
.cta__title {
  color: var(--paper);
  font-size: var(--fs-h2);
}
.cta__sub {
  margin: 1.25rem auto 0;
  color: var(--on-navy-70);
  font-size: var(--fs-body-lg);
  text-align: center;
}
.cta__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cta__hint {
  font-size: 0.85rem;
  color: var(--on-navy-55);
}

/* ============ eyebrow centrado: filete dos dois lados ============ */
.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-line);
}
