/* ==========================================================================
   Apartamento Água Verde — Richard Souza Imóveis
   ========================================================================== */

:root {
  --navy-950: #0a1420;
  --navy-900: #0f1e30;
  --navy-800: #17293d;
  --navy-700: #22384f;

  --cream-50: #faf8f4;
  --cream-100: #f3ede2;
  --cream-200: #e9e0d0;

  --gold-300: #d9bd8a;
  --gold-400: #c9a463;
  --gold-500: #b28c4e;
  --gold-600: #96733b;

  --ink-900: #14181f;
  --ink-700: #3b4148;
  --ink-500: #6b7178;

  --white: #ffffff;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-soft: 0 20px 50px -25px rgba(10, 20, 32, 0.35);
  --shadow-card: 0 10px 30px -15px rgba(10, 20, 32, 0.25);

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

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
}

.text-gradient {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Textura sutil em grade — usada em fundos escuros para dar profundidade sem exagero */
.grid-texture {
  position: relative;
}

.grid-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 75%);
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-top: 14px;
  color: inherit;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-700);
}

.section--dark {
  background: var(--navy-950);
  color: var(--cream-100);
}

.section--dark .section-head p {
  color: rgba(243, 237, 226, 0.72);
}

.section--dark .eyebrow {
  color: var(--gold-400);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.41s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 14px 30px -12px rgba(178, 140, 78, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(178, 140, 78, 0.65);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--cream-50);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
  background: transparent;
  border-color: rgba(20, 24, 31, 0.25);
  color: var(--ink-900);
}

.btn-outline-dark:hover {
  background: rgba(20, 24, 31, 0.06);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 20px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

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

.site-header.is-scrolled {
  background: rgba(10, 20, 32, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-location {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(250, 248, 244, 0.85);
}

@media (min-width: 860px) {
  .nav-location { display: flex; }
}

/* No mobile o CTA fixo inferior já cobre a conversão — evita 2 CTAs disputando espaço no header */
.nav-cta .btn-primary {
  display: none;
}

@media (min-width: 640px) {
  .nav-cta .btn-primary { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream-50);
  background: var(--navy-950);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.75) 0%,
    rgba(10, 14, 20, 0.35) 32%,
    rgba(10, 14, 20, 0.55) 62%,
    rgba(6, 10, 16, 0.96) 100%
  );
}

/* Glass utility — frosted-glass surface for icon badges and floating controls */
.glass {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 26px -14px rgba(0, 0, 0, 0.55);
}

.hero-mute {
  position: absolute;
  top: 100px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  color: var(--cream-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mute:hover {
  transform: scale(1.06);
}

/* svg não é HTMLElement — o atributo global "hidden" não o afeta, por isso usamos uma classe */
.is-icon-hidden {
  display: none;
}

@media (min-width: 860px) {
  .hero-mute { top: 96px; }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 160px 0 56px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--gold-300);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  max-width: 15ch;
  color: var(--white);
}

.hero-lead {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.86);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.08);
  border: 1px solid rgba(250, 248, 244, 0.16);
  font-size: 0.88rem;
  backdrop-filter: blur(6px);
}

.hero-fact strong {
  font-family: var(--font-display);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 22px;
  right: 24px;
  z-index: 1;
  display: none;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(250, 248, 244, 0.6);
  gap: 10px;
  align-items: center;
}

@media (min-width: 720px) {
  .hero-scroll-hint { display: flex; }
}

/* ==========================================================================
   Apresentação — composição assimétrica
   ========================================================================== */

.presentation {
  background: var(--cream-50);
}

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

@media (min-width: 900px) {
  .presentation-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.presentation-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.presentation-media .img-primary {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.presentation-media .img-primary img,
.presentation-media .img-primary video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .presentation-media .img-primary { max-width: 400px; }
}

.presentation-text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-top: 14px;
}

.presentation-text .lead {
  margin-top: 20px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.presentation-text p + p {
  margin-top: 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-200);
}

@media (min-width: 480px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.5vw, 3rem);
  line-height: 1.1;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat-item strong .counter,
.stat-item strong .counter-unit {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  font-variant-numeric: inherit;
  background: linear-gradient(120deg, var(--gold-500), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Localização
   ========================================================================== */

.location {
  position: relative;
  background: var(--navy-950);
  color: var(--cream-100);
  overflow: hidden;
}

.location::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(178, 140, 78, 0.16), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(178, 140, 78, 0.1), transparent 60%);
  pointer-events: none;
}

.location-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 960px) {
  .location-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
  }
}

.location-address {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: 16px;
  color: var(--white);
}

.location-sub {
  margin-top: 8px;
  color: rgba(243, 237, 226, 0.68);
}

.location-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-highlight {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.location-highlight .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-highlight strong {
  display: block;
  font-size: 0.98rem;
  color: var(--white);
}

.location-highlight p {
  margin-top: 3px;
  font-size: 0.9rem;
  color: rgba(243, 237, 226, 0.68);
  line-height: 1.5;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

/* ==========================================================================
   Divisória de seção — imagem + frase
   ========================================================================== */

.divider {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.divider-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.divider-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.divider-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 18, 0.35) 0%,
    rgba(8, 12, 18, 0.35) 45%,
    rgba(8, 12, 18, 0.92) 100%
  );
}

.divider-content {
  position: relative;
  z-index: 1;
  padding: 56px 0 60px;
}

.divider-quote {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.3;
  font-style: italic;
  border-left: 2px solid var(--gold-400);
  padding-left: 22px;
}

@media (min-width: 780px) {
  .divider { min-height: 520px; }
  .divider-quote { max-width: 34ch; }
}

/* ==========================================================================
   Página de Obrigado
   ========================================================================== */

.thanks {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  color: var(--cream-50);
  overflow: hidden;
}

.thanks-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.thanks-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thanks-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.85) 0%, rgba(8, 12, 18, 0.75) 55%, rgba(6, 10, 16, 0.95) 100%);
}

.thanks-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.thanks-content .eyebrow {
  justify-content: center;
}

.thanks-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  margin-bottom: 4px;
}

.thanks-content h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--white);
}

.thanks-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(250, 248, 244, 0.82);
  max-width: 48ch;
}

.thanks .agent-strip {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.thanks .agent-strip strong {
  color: var(--white);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

/* ==========================================================================
   CTA final — imagem de fundo
   ========================================================================== */

.cta-final {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-final-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-final-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-final-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.78) 0%, rgba(8, 12, 18, 0.55) 45%, rgba(8, 12, 18, 0.88) 100%);
}

.cta-final-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta-final h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  color: var(--white);
}

.cta-final p {
  font-size: 1.05rem;
  color: rgba(250, 248, 244, 0.82);
  max-width: 46ch;
}

/* ==========================================================================
   Lazer — carrossel de rolagem automática
   ========================================================================== */

.leisure-marquee {
  position: relative;
  overflow: hidden;
}

/* Desvanecimento nas bordas via gradiente sobreposto (mais compatível entre navegadores que mask-image) */
.leisure-marquee::before,
.leisure-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.leisure-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--cream-100), transparent);
}

.leisure-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--cream-100), transparent);
}

.leisure-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: leisure-scroll 90s linear infinite;
}

.leisure-marquee:hover .leisure-track,
.leisure-track.is-paused {
  animation-play-state: paused;
}

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

.leisure-slide {
  position: relative;
  flex: 0 0 260px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 640px) {
  .leisure-slide { flex-basis: 340px; }
}

.leisure-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.leisure-slide:hover img {
  transform: scale(1.06);
}

.leisure-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 20, 0.82) 100%);
}

.leisure-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px;
  color: var(--white);
  pointer-events: none;
}

.leisure-caption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
}

/* ==========================================================================
   Diferenciais
   ========================================================================== */

.differentials {
  background: var(--navy-950);
  color: var(--cream-100);
}

.differentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

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

.differential-card {
  background: var(--navy-950);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.differential-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.differential-card strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--white);
  font-weight: 500;
}

.differential-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(243, 237, 226, 0.66);
}

/* ==========================================================================
   Galeria
   ========================================================================== */

.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.gallery-filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--cream-200);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.2s ease;
}

.gallery-filter.is-active,
.gallery-filter:hover {
  background: var(--navy-950);
  color: var(--cream-50);
  border-color: var(--navy-950);
}

/* Palco principal — uma imagem grande por vez, arrastável/deslizável */
.gallery-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery-stage-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-stage-track::-webkit-scrollbar {
  display: none;
}

.gallery-stage-track.is-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  background: var(--cream-100);
  overflow: hidden;
}

@media (min-width: 780px) {
  .gallery-slide { aspect-ratio: 16 / 9; }
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 6s ease;
  pointer-events: none;
}

.gallery-slide.is-active img {
  transform: scale(1.08);
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 12, 18, 0.75) 100%);
  pointer-events: none;
}

.gallery-slide-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  pointer-events: none;
}

.gallery-video-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: var(--navy-950);
  color: var(--cream-50);
  text-align: center;
}

.gallery-video-card .play-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.gallery-video-card:hover .play-ring {
  transform: scale(1.1);
}

.gallery-video-card span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.gallery-stage-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-stage-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.gallery-stage-arrow.prev { left: 16px; }
.gallery-stage-arrow.next { right: 16px; }

@media (max-width: 640px) {
  .gallery-stage-arrow { width: 40px; height: 40px; }
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-200);
  border: none;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-dot.is-active {
  background: var(--gold-500);
  transform: scale(1.3);
}

/* Tira de miniaturas */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 18px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb-mini {
  flex: 0 0 88px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.gallery-thumb-mini:hover {
  opacity: 0.85;
}

.gallery-thumb-mini.is-active {
  opacity: 1;
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.gallery-thumb-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-mini-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-950);
  color: var(--gold-300);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 10, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(250, 248, 244, 0.85);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-caption #lightboxCounter {
  color: var(--gold-300);
  font-weight: 600;
  flex: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Condições
   ========================================================================== */

.conditions {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
  color: var(--cream-100);
  position: relative;
  overflow: hidden;
}

.conditions::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 99, 0.18), transparent 70%);
  top: -180px;
  right: -140px;
}

.conditions-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
}

@media (min-width: 780px) {
  .conditions-card { grid-template-columns: 1.2fr 1fr; align-items: center; }
}

.price-block .eyebrow { color: var(--gold-300); }

.price-value {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 7vw, 3.2rem);
  white-space: nowrap;
  color: var(--white);
  margin-top: 10px;
}

.price-note {
  margin-top: 10px;
  color: rgba(243, 237, 226, 0.7);
  font-size: 0.95rem;
}

.price-block,
.condition-list {
  min-width: 0;
}

.condition-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.condition-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.condition-row span:first-child {
  flex: 0 0 auto;
  color: rgba(243, 237, 226, 0.65);
  font-size: 0.9rem;
}

.condition-row span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   Formulário
   ========================================================================== */

.lead-section {
  background: var(--cream-100);
}

.lead-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.lead-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px 28px;
}

@media (min-width: 640px) {
  .lead-card { padding: 48px 52px; }
}

.lead-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.lead-progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--cream-200);
  overflow: hidden;
}

.lead-progress-fill {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transition: width 0.35s ease;
}

.lead-progress-label {
  font-size: 0.78rem;
  color: var(--ink-500);
  white-space: nowrap;
}

.lead-step {
  display: none;
}

.lead-step.is-active {
  display: block;
  animation: stepIn 0.35s ease;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.lead-step h3 {
  font-size: 1.3rem;
  line-height: 1.4;
}

.lead-field {
  margin-top: 20px;
}

.lead-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-700);
}

.lead-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cream-200);
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream-50);
}

.lead-field input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
}

.lead-options {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--cream-200);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 0.95rem;
}

.lead-option:hover {
  border-color: var(--gold-400);
}

.lead-option input {
  accent-color: var(--gold-500);
  width: 18px;
  height: 18px;
  flex: none;
}

.lead-option.is-selected {
  border-color: var(--gold-500);
  background: rgba(178, 140, 78, 0.08);
}

.lead-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.lead-back {
  font-size: 0.88rem;
  color: var(--ink-500);
  font-weight: 600;
}

.lead-back:disabled {
  opacity: 0;
  pointer-events: none;
}

.lead-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.lead-success.is-active {
  display: block;
}

.lead-success .icon-lg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(178, 140, 78, 0.12);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.lead-success h3 {
  font-size: 1.4rem;
}

.lead-success p {
  margin-top: 10px;
  color: var(--ink-500);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.lead-form.is-done .lead-step,
.lead-form.is-done .lead-progress {
  display: none;
}

/* ==========================================================================
   Corretor
   ========================================================================== */

.agent-strip {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.agent-strip img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-strip strong {
  display: block;
  font-size: 0.95rem;
}

.agent-strip span {
  font-size: 0.82rem;
  color: var(--ink-500);
}

.agent-strip .agent-creci {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-600);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: rgba(243, 237, 226, 0.65);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand img {
  height: 30px;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 237, 226, 0.9);
  margin-bottom: 14px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 20, 32, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-cta.is-visible {
  transform: translateY(0);
}

@media (min-width: 860px) {
  .mobile-cta { display: none; }
}

.mobile-cta .btn {
  flex: 1;
  padding: 14px 18px;
}

/* Utility */
.text-center { text-align: center; }
.only-desktop { display: none; }
@media (min-width: 860px) { .only-desktop { display: inline-flex; } }
