/* ==========================================================================
  Capital Seguro — Páginas de Bens
  Folha de estilos estática (HTML/CSS/JS puro)
  Paleta: verde-escuro profundo + dourado
========================================================================== */

:root {
  --bg: #10231c;
  --bg-deep: #0d1f1a;
  --fg: #f0f7f2;
  --gold: #e0a848;
  --gold-bright: #f0cd70;
  --gold-dark: #c9973f;
  --muted: #6b8a76;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --gradient-gold: linear-gradient(135deg, var(--gold-dark), var(--gold-bright));
  --shadow-gold: 0 12px 40px -10px rgba(224, 168, 72, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

svg {
  flex-shrink: 0;
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 4rem;
  }
}

.font-display {
  font-family: var(--font-display);
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
    Header
    -------------------------------------------------------------------------- */
.bem-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.bem-header.scrolled {
  position: fixed;
  background: rgba(13, 31, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(240, 247, 242, 0.08);
}

.bem-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.bem-header-logo {
  height: 2rem;
  width: auto;
}

.bem-header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(224, 168, 72, 0.6);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bem-header-whatsapp:hover {
  background-color: var(--gold);
  color: #12241d;
}

/* --------------------------------------------------------------------------
    Hero compacto
    -------------------------------------------------------------------------- */
.bem-hero-compact {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.bem-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bem-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 31, 26, 0.97) 0%,
    rgba(13, 31, 26, 0.72) 48%,
    rgba(13, 31, 26, 0.2) 100%
  );
}

.bem-hero-content {
  position: relative;
  z-index: 10;
  padding: 2rem 1.5rem 3rem;
}

@media (min-width: 640px) {
  .bem-hero-content {
    padding: 3rem 1.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .bem-hero-content {
    padding-inline: 4rem;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(240, 247, 242, 0.7);
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb svg {
  width: 12px;
  height: 12px;
  color: var(--gold);
}

.breadcrumb span {
  color: var(--gold);
}

.bem-hero-content h1 {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.bem-hero-content > p {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(240, 247, 242, 0.8);
}

.bem-chips {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bem-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(224, 168, 72, 0.4);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(240, 247, 242, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bem-chip svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
    Seções
    -------------------------------------------------------------------------- */
.bem-section {
  padding-block: 5rem;
}

.bem-section-dark {
  padding-block: 5rem;
  background: linear-gradient(180deg, #0e211b 0%, #0a1a15 100%);
}

.bens-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.bem-section h2,
.bem-section-dark h2,
.bem-full-bleed-content h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 48rem;
}

.bem-section p,
.bem-section-dark p {
  line-height: 1.6;
}

/* Grid: sobre o produto (texto + imagem) */
.bem-grid-2col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .bem-grid-2col {
    grid-template-columns: 1.05fr 1fr;
  }
}

.bem-img-rounded {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 2rem;
  object-fit: cover;
}

/* Grid: para quem faz sentido / documentação */
.bem-grid-col2 {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .bem-grid-col2 {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* --------------------------------------------------------------------------
    Full-bleed (Panorama)
    -------------------------------------------------------------------------- */
.bem-full-bleed {
  position: relative;
  overflow: hidden;
}

.bem-img-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bem-full-bleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 31, 26, 0.85) 0%,
    rgba(13, 31, 26, 0.7) 100%
  );
}

.bem-full-bleed-content {
  position: relative;
  z-index: 10;
}

.bem-full-bleed-content ol {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .bem-full-bleed-content ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bem-full-bleed-content ol li {
  border-top: 1px solid rgba(224, 168, 72, 0.4);
  padding-top: 1.25rem;
}

.num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
    Etapas (Como funciona)
    -------------------------------------------------------------------------- */
.bem-etapas-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
}

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

.bem-etapa-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bem-etapa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(224, 168, 72, 0.5);
  border-radius: 9999px;
  color: var(--gold);
}

.bem-etapa-icon svg {
  width: 20px;
  height: 20px;
}

.bem-etapa-numero {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: rgba(224, 168, 72, 0.6);
}

.bem-etapa h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.bem-etapa p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(240, 247, 242, 0.75);
}

/* --------------------------------------------------------------------------
    Dicas
    -------------------------------------------------------------------------- */
.bem-dicas-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem 3.5rem;
}

@media (min-width: 640px) {
  .bem-dicas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bem-dica {
  border-left: 2px solid rgba(224, 168, 72, 0.4);
  padding-left: 1.25rem;
}

.bem-dica-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(224, 168, 72, 0.8);
}

.bem-dica h3 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.bem-dica p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(240, 247, 242, 0.75);
}

/* --------------------------------------------------------------------------
    Documentação
    -------------------------------------------------------------------------- */
.bem-docs-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(240, 247, 242, 0.1);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(240, 247, 242, 0.85);
}

.bem-docs-list li:last-child {
  border-bottom: none;
}

.bem-docs-list svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
    FAQ
    -------------------------------------------------------------------------- */
.bem-faq-section {
  max-width: 56rem;
}

.bem-faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(240, 247, 242, 0.15);
  border-bottom: 1px solid rgba(240, 247, 242, 0.15);
}

.bem-faq-item + .bem-faq-item {
  border-top: 1px solid rgba(240, 247, 242, 0.12);
}

.bem-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-block: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.bem-faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.bem-faq-item.open .bem-faq-question svg {
  transform: rotate(90deg);
}

.bem-faq-answer {
  display: none;
  padding-bottom: 1.5rem;
}

.bem-faq-item.open .bem-faq-answer {
  display: block;
}

.bem-faq-answer p {
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(240, 247, 242, 0.75);
}

/* --------------------------------------------------------------------------
    CTA final
    -------------------------------------------------------------------------- */
.bem-cta-section {
  position: relative;
  overflow: hidden;
  padding-block: 6rem;
}

.bem-cta-section > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bem-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 20, 16, 0.95) 0%,
    rgba(10, 20, 16, 0.75) 60%,
    rgba(10, 20, 16, 0.6) 100%
  );
}

.bem-cta-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(224, 168, 72, 0.6);
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--gold);
  color: #12241d;
}

/* --------------------------------------------------------------------------
    WhatsApp FAB
    -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: var(--gold);
  color: #12241d;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}
