/*
 * ============================================================
 * components.css — Componentes Reutilizáveis da UI
 * ============================================================
 * Este arquivo define os blocos de construção visuais do site:
 *   - Botões (primário, secundário, outline)
 *   - Cards de modelos de casas
 *   - Badges e etiquetas
 *   - Seções genéricas (espaçamento, títulos)
 *   - Seção Hero/Banner principal
 *   - Seção Sobre Nós
 *   - Grid de modelos
 *   - Lightbox de imagens
 *   - Carrossel de galeria
 *   - Seção Memorial Descritivo
 *   - Formulário de contato
 *   - Animações de entrada (scroll reveal)
 * ============================================================
 */

/* ──────────────────────────────────────────────────────────
 * BOTÕES (Padronização Mobile Touch Target 48px)
 * ──────────────────────────────────────────────────────────
 */

/* Base comum de todos os botões (Acessibilidade Mobile Touch 48px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 48px;
  /* Altura mínima para toque de dedo */
  padding: 12px 24px;
  /* Padding padrão mobile (vertical / horizontal) */
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  /* 8px */
  font-family: var(--font-primary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Botão primário: fundo Telha (#C06A2C) */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: 0 4px 14px rgba(192, 106, 44, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(140, 69, 27, 0.45);
}

/* Botão accent: fundo Telha — principal CTA */
.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: 0 4px 14px rgba(192, 106, 44, 0.4);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(140, 69, 27, 0.5);
}

/* Botão outline: fundo transparente com borda Telha */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

/* Botão outline claro: para uso em fundos escuros */
.btn-outline-light {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background-color: var(--color-text-light);
  color: var(--color-carbono);
  border-color: var(--color-text-light);
}

/* Botão WhatsApp */
.btn-whatsapp {
  background-color: #25d366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #1fba59;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Tamanhos de botão */
.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: var(--text-sm);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ──────────────────────────────────────────────────────────
 * ESTRUTURA DE SEÇÕES
 * ──────────────────────────────────────────────────────────
 * Cada seção ocupa 100% do espaço vertical da tela (100vh / 100svh),
 * com conteúdo perfeitamente centralizado verticalmente.
 */
.site-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: clamp(3.5rem, 6vw, 6rem);
  box-sizing: border-box;
}

/* Seção com fundo alternado (Off-White oficial da marca) */
.site-section--alt {
  background-color: var(--color-bg-light);
}

/* Seção com fundo escuro (Carbono oficial da marca) */
.site-section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* Cabeçalho de seção: badge + título + subtítulo */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

/* Badge colorido acima do título da seção (Telha) */
.section-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  background-color: rgba(192, 106, 44, 0.12);
  color: var(--color-telha);
  border: 1px solid rgba(192, 106, 44, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

/* Título principal da seção em Outfit Extrabold / Caixa Alta */
.section-title {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

/* Título em modo escuro */
.site-section--dark .section-title {
  color: var(--color-text-light);
}

/* Subtítulo / descrição da seção */
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

.site-section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ──────────────────────────────────────────────────────────
 * SEÇÃO HERO (Banner Principal — Mobile-First)
 * ──────────────────────────────────────────────────────────
 */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* Fundo do Hero: blueprint com nitidez */
.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero/header-bg.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  z-index: 1;
}

/* Camada translúcida e grid arquitetônico com animação ultra suave por GPU */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background-color: rgba(247, 246, 242, 0.42);
  backdrop-filter: blur(0.5px);
}

.hero-grid-pattern {
  position: absolute;
  top: -120px;
  left: -120px;
  right: -120px;
  bottom: -120px;
  width: calc(100% + 240px);
  height: calc(100% + 240px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.hero-grid-pattern--primary {
  background-image:
    linear-gradient(to right, rgba(192, 106, 44, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(192, 106, 44, 0.09) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: hero-grid-smooth-flow 28s linear infinite;
}

.hero-grid-pattern--sub {
  background-image:
    linear-gradient(to right, rgba(46, 46, 46, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 46, 46, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: hero-subgrid-smooth-flow 45s linear infinite;
}

@keyframes hero-grid-smooth-flow {
  0% {
    transform: translate3d(0px, 0px, 0);
  }

  100% {
    transform: translate3d(60px, 60px, 0);
  }
}

@keyframes hero-subgrid-smooth-flow {
  0% {
    transform: translate3d(0px, 0px, 0);
  }

  100% {
    transform: translate3d(-60px, -60px, 0);
  }
}

/* Contêiner com alinhamento à direita */
.hero-brand-container {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.hero-brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  gap: var(--space-md);
  /* 16px */
  margin-right: clamp(0rem, 5vw, 4rem);
}

/* Ícone no Hero */
.hero-brand-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-brand-icon {
  width: clamp(95px, 16vw, 150px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-normal);
}

.hero-brand-icon:hover {
  transform: scale(1.04);
}

/* Título em Caixa Alta e tom Telha (H1: 28px a 32px no mobile) */
.hero-brand-title {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  /* 28px no mobile → 40px no desktop */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-telha);
  /* #C06A2C */
  margin: 0;
}

/* Botão CTA Telha com Touch Target Mobile (min-height: 48px, 12px 24px) */
.hero-brand-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-sm);
}

.btn-hero-brand-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-telha);
  /* #C06A2C */
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 700;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(192, 106, 44, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-hero-brand-cta:hover {
  background-color: var(--color-terra);
  /* #8C451B */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(140, 69, 27, 0.45);
  color: #ffffff;
}

/* Recorte angular inclinado na base do Hero */
.hero-bottom-slant {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(32px, 5vw, 65px);
  background-color: #383838;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

@media (max-width: 900px) {
  .hero-brand-container {
    justify-content: center;
  }

  .hero-brand-content {
    margin-right: 0;
    max-width: 100%;
    background: rgba(247, 246, 242, 0.92);
    padding: var(--space-xl) var(--space-lg);
    /* 24px vertical, 20px lateral */
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }

  .btn-hero-brand-cta {
    width: 100%;
    max-width: 320px;
  }
}

/* ──────────────────────────────────────────────────────────
 * SEÇÃO SOBRE NÓS (Mobile-First)
 * ──────────────────────────────────────────────────────────
 */
.about-brand-section {
  background-color: #383838;
  /* Chumbo base */
  padding-block: var(--space-3xl);
  /* 48px a 64px */
  color: #ffffff;
}

.about-brand-container {
  max-width: 1100px;
}

.about-brand-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

/* Coluna 1: Símbolo / Ícone da casa */
.about-brand-icon-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-brand-symbol {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-normal);
}

.about-brand-symbol:hover {
  transform: scale(1.03);
}

/* Coluna 2: Textos */
.about-brand-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  /* 20px */
}

/* Título H2: 22px a 24px no mobile (line-height: 1.3) */
.about-brand-title {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  /* 22px mobile → 32px desktop */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--color-telha);
  /* #C06A2C */
  margin: 0;
}

/* Texto do Corpo (Body / P): 16px (line-height: 1.6) */
.about-brand-main-text p {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* Bloco de Missão */
.about-brand-mission-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Subtítulo H3: 18px a 20px no mobile (line-height: 1.4) */
.about-mission-heading {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  /* 18px mobile → 20px desktop */
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-telha);
  /* #C06A2C */
  margin: 0;
}

/* Texto Secundário: 14px (line-height: 1.4) */
.about-mission-description {
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  /* 14px */
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

@media (max-width: 768px) {
  .about-brand-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
    /* 24px */
  }

  .about-brand-symbol {
    max-width: 170px;
  }

  .about-brand-title {
    text-align: center;
  }

  .about-brand-main-text p {
    text-align: left;
  }

  .about-brand-mission-block {
    text-align: left;
  }
}

/* ──────────────────────────────────────────────────────────
 * GRID DE MODELOS DE CASAS (Mobile-First 1 Coluna / Desktop 3 Colunas)
 * ──────────────────────────────────────────────────────────
 */

.models-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.models-filter-btn {
  min-height: 44px;
  padding: 10px 18px;
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.models-filter-btn:hover,
.models-filter-btn.is-active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  /* 16px gap padrão */
  justify-content: center;
  align-items: stretch;
}

/* Card individual */
.model-brand-card {
  background-color: #F7F6F2;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  /* 20px */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.model-brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Cabeçalho do Card */
.model-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: var(--space-md);
  width: 100%;
}

.model-brand-title {
  font-family: var(--font-primary);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #2E2E2E;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.model-brand-type {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  /* 18px a 20px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-telha);
  margin: 0;
}

.model-brand-area {
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  /* 14px a 15px */
  color: #4A4A4A;
  font-weight: 500;
  margin: 0;
}

/* Galeria de Fachadas e Planta */
.model-brand-gallery {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.model-facade-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}

.model-facade-img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  background-color: #e5e5e5;
  cursor: pointer;
}

.model-facade-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.model-facade-img-wrap:hover img {
  transform: scale(1.05);
}

/* Miniatura da Planta Baixa */
.model-floorplan-badge {
  position: relative;
  width: clamp(96px, 30%, 120px);
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border: 2px solid var(--color-telha);
  border-radius: var(--radius-lg);
  padding: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  margin-top: -42px;
  z-index: 5;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.model-floorplan-badge:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(192, 106, 44, 0.35);
}

.model-floorplan-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Botão WhatsApp do Card (Touch Target 48px, 16px, 12px 24px) */
.model-brand-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.btn-model-brand-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background-color: var(--color-telha);
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 700;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  /* 8px */
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(192, 106, 44, 0.3);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: normal;
  text-align: center;
  width: 100%;
  max-width: 280px;
  -webkit-tap-highlight-color: transparent;
}

.btn-model-brand-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-model-brand-cta:hover {
  background-color: var(--color-terra);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(140, 69, 27, 0.4);
  color: #ffffff;
}

@media (max-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .models-grid {
    grid-template-columns: 1fr;
    /* Coluna única no mobile */
    gap: var(--space-lg);
    /* 20px */
  }

  .model-brand-card {
    padding: var(--space-lg) var(--space-md);
    /* 20px vertical, 16px lateral */
    max-width: 440px;
    margin-inline: auto;
    width: 100%;
  }

  .model-floorplan-badge {
    width: 110px;
    margin-top: -40px;
  }

  .btn-model-brand-cta {
    max-width: 320px;
  }
}

/* ──────────────────────────────────────────────────────────
 * LIGHTBOX (Visualizador de Imagem)
 * ──────────────────────────────────────────────────────────
 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.lightbox-overlay.is-active .lightbox-image {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.lightbox-close-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ──────────────────────────────────────────────────────────
 * SEÇÃO 5: GALERIA DE IMAGENS (Mobile-First)
 * ──────────────────────────────────────────────────────────
 */
.gallery-section {
  background-color: #383838;
  padding-block: var(--space-3xl);
  /* 48px a 64px */
}

.gallery-container {
  max-width: 1200px;
}

.gallery-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Título H2 Galeria: 22px a 24px no mobile */
.gallery-title {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  /* 22px mobile → 32px desktop */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--color-telha);
}

.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.gallery-track {
  display: flex;
  gap: var(--space-md);
  /* 16px */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 calc(33.333% - 11px);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background-color: #2b2b2b;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal);
}

.gallery-slide:hover img {
  transform: scale(1.04);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.gallery-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gallery-nav-btn--prev {
  left: var(--space-xs);
}

.gallery-nav-btn--next {
  right: var(--space-xs);
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-lg);
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.gallery-dot.is-active {
  background-color: var(--color-telha);
  width: 22px;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .gallery-slide {
    flex: 0 0 calc(100% - var(--space-md));
    /* 1 slide por tela no mobile */
  }
}

/* ──────────────────────────────────────────────────────────
 * SEÇÃO MEMORIAL DESCRITIVO (Mobile-First)
 * ──────────────────────────────────────────────────────────
 */
.memorial-section {
  position: relative;
  padding-block: var(--space-3xl);
  /* 48px a 64px */
  background-color: var(--color-carbono);
  overflow: hidden;
  color: #ffffff;
}

.memorial-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/memorial/memorial-descritivo-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.28) contrast(1.15);
  opacity: 0.88;
  z-index: 1;
}

.memorial-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(46, 46, 46, 0.4) 0%, rgba(26, 26, 26, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.memorial-container {
  position: relative;
  z-index: 5;
  max-width: 960px;
}

.memorial-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 820px;
  margin-inline: auto;
}

/* Título H1/H2 Memorial */
.memorial-title {
  font-family: var(--font-primary);
  font-size: var(--text-3xl);
  /* 28px mobile → 40px desktop */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Subtítulo Memorial (16px, line-height: 1.5) */
.memorial-subtitle {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-telha);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.memorial-box-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

.memorial-card-info {
  background-color: transparent;
  max-width: 480px;
  width: 100%;
}

/* Subtítulo H3: 18px a 20px */
.memorial-box-heading {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  /* 18px a 20px */
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.memorial-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}

.memorial-items-list li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.memorial-items-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--color-telha);
  font-size: 1.3rem;
  line-height: 1;
}

.memorial-action-center {
  display: flex;
  margin-top: var(--space-md);
}

.btn-memorial-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-telha);
  color: #ffffff;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 700;
  border-radius: var(--radius-md);
  /* 8px */
  box-shadow: 0 4px 16px rgba(192, 106, 44, 0.4);
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-memorial-download:hover {
  background-color: var(--color-terra);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 69, 27, 0.5);
  color: #ffffff;
}

@media (max-width: 900px) {
  .memorial-box-wrapper {
    justify-content: center;
  }

  .memorial-card-info {
    max-width: 100%;
    background: rgba(26, 26, 26, 0.65);
    padding: var(--space-xl) var(--space-lg);
    /* 24px vertical, 20px lateral */
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .memorial-action-center {
    justify-content: center;
  }

  .btn-memorial-download {
    width: 100%;
    max-width: 320px;
  }
}

/* ──────────────────────────────────────────────────────────
 * SEÇÃO 6: CONTATO & BRANDING (Mobile-First)
 * ──────────────────────────────────────────────────────────
 */
.contact-brand-section {
  position: relative;
  background-color: #383838;
  padding: 0;
  overflow: hidden;
}

.contact-blueprint-strip {
  position: relative;
  width: 100%;
  min-height: clamp(200px, 30vw, 340px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
  margin-top: -15px;
  z-index: 4;
}

.contact-blueprint-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero/header-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(1.15) brightness(0.42);
  transform: translateZ(0);
}

.contact-blueprint-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(46, 46, 46, 0.35);
  z-index: 2;
}

.contact-blueprint-logo {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-blueprint-logo img {
  height: clamp(44px, 7vw, 75px);
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

.contact-main-body {
  position: relative;
  background-color: #383838;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  margin-top: -20px;
  z-index: 10;
}

.contact-brand-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  max-width: 1100px;
  margin-inline: auto;
}

/* Coluna Esquerda: Badge Minha Casa Minha Vida */
.contact-mcmv-badge-col {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: clamp(1rem, 4vw, 3rem);
}

.mcmv-pill-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.mcmv-pill-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.mcmv-pill-card img {
  height: clamp(48px, 8vw, 76px);
  width: auto;
}

/* Coluna Central/Direita */
.contact-brand-info-col {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  color: #ffffff;
}

.contact-brand-icon {
  margin-bottom: var(--space-xs);
}

.contact-brand-icon img {
  height: clamp(56px, 9vw, 84px);
  width: auto;
}

/* Endereço (16px no mobile) */
.contact-brand-address {
  font-family: var(--font-secondary);
  font-style: normal;
  font-size: var(--text-base);
  /* 16px */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.contact-brand-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-xs);
}

/* Telefones e Links de Contato (min-height de toque no mobile) */
.contact-brand-phones a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 12px;
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 700;
  color: #ffffff;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.contact-brand-phones a:hover {
  color: var(--color-telha);
}

.contact-brand-email a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 12px;
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  /* 16px */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.contact-brand-email a:hover {
  color: var(--color-telha);
}

/* Ícones Sociais (Touch Target 48px) */
.contact-brand-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  /* 16px */
  margin-top: var(--space-md);
}

.brand-social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  /* Touch target 48px */
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-telha);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(192, 106, 44, 0.4);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.brand-social-circle:hover {
  background-color: var(--color-terra);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(140, 69, 27, 0.5);
  color: #ffffff;
}

.brand-social-circle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .contact-blueprint-strip {
    min-height: 180px;
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
    margin-top: 0;
  }

  .contact-blueprint-bg {
    background-attachment: scroll;
    /* Performance otimizada para touch */
  }

  .contact-main-body {
    margin-top: 0;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-2xl);
  }

  .contact-brand-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: var(--space-xl);
    /* 24px */
  }

  .contact-mcmv-badge-col {
    justify-content: center;
    padding-left: 0;
  }
}

/* ──────────────────────────────────────────────────────────
 * ANIMAÇÕES DE ENTRADA (Scroll Reveal)
 * ──────────────────────────────────────────────────────────
 */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-on-scroll:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-on-scroll:nth-child(4) {
  transition-delay: 0.24s;
}

/* ──────────────────────────────────────────────────────────
 * RESPONSIVIDADE GLOBAL (Mobile 320px - 768px)
 * ──────────────────────────────────────────────────────────
 */
@media (max-width: 768px) {
  .site-section {
    padding-block: var(--space-3xl);
    /* 48px a 64px */
    min-height: auto;
    /* Permite fluxo natural e sem sobreposição em mobile */
  }
}

@media (max-width: 480px) {
  .site-section {
    padding-block: var(--space-2xl);
    /* 40px a 48px */
  }
}