/* ============================================================
   NEXDEN Digital — Sessões com Fundos Contínuos
   Mobile-first: cada sessão usa aspect-ratio para manter
   a proporção exata do fundo original (1145 px de largura).
   ============================================================ */

/* ── Base comum das 6 sessões ── */
.section {
  position: relative;
  width: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  overflow: hidden;
}

/* Container de conteúdo (posicionamento absoluto sobre o fundo) */
.section__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Sessão 01 — Hero ──────────────────────────────────────── */
#hero {
  aspect-ratio: 1145 / 1533;
  z-index: 1;
}

#hero .section__content {
  position: absolute;
  top: 55%;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 32px) clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

.hero-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--border-radius-pill);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-gold-primary);
  font-family: var(--font-family-display);
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 1.4vw, 10px);
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: clamp(1.36rem, 4.4vw, 1.82rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 clamp(6px, 1.4vw, 10px);
  letter-spacing: -0.015em;
  max-width: 480px;
}

.hero-title .text-gold {
  background: linear-gradient(135deg, #f7e2a9 0%, #d4af37 50%, #aa820a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero-subtitle {
  font-family: var(--font-family-base);
  font-size: clamp(0.82rem, 2.2vw, 0.94rem);
  color: #cfcfcf;
  line-height: 1.4;
  margin: 0 0 clamp(14px, 3.2vw, 22px);
  max-width: 420px;
}

.hero-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(14px, 3.2vw, 16px) clamp(28px, 6vw, 42px);
  background: linear-gradient(135deg, #f7e2a9 0%, #d4af37 45%, #b2861a 100%);
  color: #0b0907;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-family-display);
  font-size: clamp(0.85rem, 2.3vw, 0.96rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(212, 175, 55, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(212, 175, 55, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  filter: brightness(1.05);
}

.hero-btn-cta:active {
  transform: translateY(1px);
}

.hero-btn-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.hero-btn-cta:hover .hero-btn-arrow {
  transform: translateX(3px);
}

.hero-scroll-indicator {
  margin-top: clamp(12px, 2.8vw, 18px);
  color: #d4af37;
  animation: bounceSlow 2s infinite ease-in-out;
}

.hero-scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ── Sessão 02 — Portfólio ─────────────────────────────────── */
#portfolio {
  aspect-ratio: 1145 / 2100;
  z-index: 2;
  /* Hero → Portfólio: 0 px de sobreposição artística + 1 px de sangria contra fresta de subpixel */
  margin-top: -1px;
}

/* ── Sessão 03 — O Que Você Recebe ─────────────────────────── */
#benefits {
  position: relative;
  width: 100%;
  height: auto;
  min-height: calc(100vw * 2204 / 1145);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-color: #fdf2e9;
  z-index: 3;
  /* Portfólio → Benefícios: 4 px de sobreposição a 1145 px (4/1145 = 0.3493%) + 1 px de sangria subpixel */
  margin-top: calc(-0.3493% - 1px);
  overflow: visible;
}

@media (min-width: 521px) {
  #benefits {
    min-height: calc(var(--max-width-desktop, 580px) * 2204 / 1145);
  }
}

/* ── Sessão 04 — Depoimentos ───────────────────────────────── */
#testimonials {
  aspect-ratio: 1145 / 1277;
  z-index: 4;
  /* Benefícios → Depoimentos: 23 px de sangria exata a 1145 px (23/1145 = 2.0087%) + 1 px de sangria subpixel.
     Esta sobreposição cobre integralmente as 23 linhas transparentes do topo de 4 depoimentos.png,
     conectando perfeitamente os limites das duas artes sem nenhuma linha residual. */
  margin-top: calc(-2.0087% - 1px);
}

/* ── Sessão 05 — Sobre ─────────────────────────────────────── */
#about {
  aspect-ratio: 1145 / 1622;
  z-index: 5;
  /* Depoimentos → Sobre: 0 px de sobreposição artística + 1 px de sangria contra fresta de subpixel */
  margin-top: -1px;
}

/* ── Sessão 06 — FAQ (Dúvidas Frequentes) ──────────────────── */
#faq {
  position: relative;
  width: 100%;
  height: auto;
  min-height: calc(100vw * 1356 / 1145);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-color: #030305;
  z-index: 6;
  /* Sobre → FAQ: 0 px de sobreposição artística + 1 px de sangria contra fresta de subpixel */
  margin-top: -1px;
  overflow: visible;
}

@media (min-width: 521px) {
  #faq {
    min-height: calc(var(--max-width-desktop, 580px) * 1356 / 1145);
  }
}

/* ── Sessão 07 — Rodapé ────────────────────────────────────── */
#footer {
  aspect-ratio: 1145 / 1108;
  z-index: 7;
  /* FAQ → Rodapé: 0 px de sobreposição artística + 1 px de sangria contra fresta de subpixel */
  margin-top: -1px;
}

#footer .section__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(36px, 7.5vw, 60px) clamp(16px, 4vw, 32px) clamp(24px, 5vw, 40px);
  box-sizing: border-box;
}

.footer-title {
  font-family: var(--font-family-display);
  font-size: clamp(1.42rem, 4.5vw, 1.90rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(8px, 2vw, 14px);
  max-width: 480px;
}

.footer-title .text-gold {
  background: linear-gradient(135deg, #f7e2a9 0%, #d4af37 50%, #aa820a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.footer-subtitle {
  font-family: var(--font-family-base);
  font-size: clamp(0.85rem, 2.4vw, 0.98rem);
  color: #cfcfcf;
  line-height: 1.45;
  margin: 0 0 clamp(20px, 4.5vw, 32px);
  max-width: 440px;
}

.footer-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(15px, 3.4vw, 18px) clamp(28px, 6vw, 44px);
  background: linear-gradient(135deg, #f7e2a9 0%, #d4af37 45%, #b2861a 100%);
  color: #0b0907;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-family-display);
  font-size: clamp(0.88rem, 2.4vw, 1.02rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  margin-bottom: clamp(24px, 5vw, 42px);
}

.footer-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(212, 175, 55, 0.55),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  filter: brightness(1.05);
}

.footer-btn-whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-btn-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.footer-btn-cta:hover .footer-btn-arrow {
  transform: translateX(4px);
}

.footer-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.footer-sig-line {
  width: clamp(36px, 8vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #cda861 60%, transparent);
}

.footer-sig-text {
  font-family: var(--font-family-display);
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #ecc876;
  text-transform: uppercase;
}

.footer-copy {
  font-family: var(--font-family-base);
  font-size: 0.72rem;
  color: #777777;
  letter-spacing: 0.02em;
}
