/* ==========================================================================
   DESIGN SYSTEM - IRE CONSTRUÇÕES
   ========================================================================== */

/* Variáveis de Cores, Tipografia e Efeitos */
:root {
  /* Paleta de Cores HSL (Harmoniosa e Sob Medida) */
  --primary: hsl(19, 87%, 53%);         /* Laranja IRE (#E65F1E) */
  --primary-hover: hsl(19, 87%, 45%);   /* Laranja Escuro (#C54E14) */
  --primary-light: hsl(19, 100%, 96%);  /* Laranja Suave Fundo (#FFF4EE) */
  --secondary: hsl(82, 26%, 27%);       /* Verde Oliva IRE (#4A5833) */
  --secondary-hover: hsl(82, 26%, 21%); /* Verde Oliva Escuro (#3B4628) */
  --secondary-light: hsl(82, 18%, 45%); /* Verde Oliva Claro (#718355) */
  --secondary-pale: hsl(82, 15%, 93%);  /* Verde Cinza Pálido (#EEF1EB) */
  
  /* Tons Neutros de Apoio */
  --dark-bg: hsl(82, 18%, 10%);         /* Fundo Escuro Premium (#1C1E18) */
  --dark-card: hsl(82, 14%, 14%);       /* Cards no Fundo Escuro (#252721) */
  --light-bg: hsl(48, 20%, 98%);        /* Fundo Areia/Creme Claro (#FAF9F5) */
  --light-card: hsl(0, 0%, 100%);       /* Cards Brancos Puro */
  --light-gray: hsl(48, 10%, 94%);      /* Cinza Claro Secundário (#F2F1EC) */
  --border-light: hsl(48, 10%, 88%);    /* Bordas Claras */
  
  /* Cores de Texto */
  --text-dark: hsl(82, 18%, 12%);       /* Texto Principal Escuro (#1F221B) */
  --text-muted: hsl(82, 10%, 42%);      /* Texto Secundário Mutado (#686C60) */
  --text-light: hsl(48, 20%, 95%);      /* Texto em Fundo Escuro (#FAF9F5) */
  --text-white: #ffffff;
  
  /* Tipografia */
  --font-title: 'Outfit', 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Espaçamentos e Layout */
  --container-width: 1200px;
  --header-height: 85px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(74, 88, 51, 0.12), 0 10px 10px -5px rgba(74, 88, 51, 0.04);
  
  /* Transições padrão */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* Otimização de Imagens e Acessibilidade */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

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

/* Classes Utilitárias do Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.align-center {
  align-items: center;
}

.align-stretch {
  align-items: stretch;
}

.text-center {
  text-align: center;
}

.text-orange {
  color: var(--primary) !important;
}

.text-white {
  color: var(--text-white) !important;
}

.font-bold {
  font-weight: 700;
}

.w-full {
  width: 100%;
}

/* Badges e Títulos de Seção */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid hsl(19, 87%, 90%);
  margin-bottom: 24px;
}

.section-badge {
  background-color: var(--secondary-pale);
  color: var(--secondary);
  border: 1px solid hsl(82, 26%, 85%);
  margin-bottom: 16px;
}

.info-badge {
  background-color: hsla(19, 87%, 53%, 0.15);
  color: var(--primary);
  border: 1px solid hsla(19, 87%, 53%, 0.3);
  margin-bottom: 16px;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 56px auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  font-weight: 400;
}

.section-subtitle-left {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: center;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--text-white);
  box-shadow: 0 4px 14px hsla(19, 87%, 53%, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(19, 87%, 53%, 0.5);
}

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-white);
  box-shadow: 0 4px 14px hsla(82, 26%, 27%, 0.25);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(82, 26%, 27%, 0.4);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.btn-text:hover {
  color: var(--primary);
  border-color: var(--primary);
  padding-right: 4px;
}

/* Seções de preenchimento global */
section {
  padding: clamp(60px, 10vw, 100px) 0;
}

/* ==========================================================================
   HEADER / NAVBAR (Glassmorphism & Sticky)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

/* Ativado via JS no Scroll */
.main-header.scrolled {
  background-color: hsla(48, 20%, 98%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  height: 75px;
}

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

.logo-link {
  display: flex;
  align-items: center;
  height: 55px;
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Menu de links */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.nav-item.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Oculto no celular */
.nav-cta-desktop {
  font-size: 0.9rem;
  padding: 10px 20px;
}

.mobile-cta-li {
  display: none;
}

/* Hamburguer Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  z-index: 1001;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 4px;
  transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  background-color: var(--light-bg);
  overflow: hidden;
}

/* Fundo geométrico sutil */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: var(--secondary-pale);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--secondary);
  margin-bottom: 20px;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  max-width: 540px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-light);
}

.trust-item i {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* Visual e Imagem do Hero */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Cards Flutuantes de Informação */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}

.floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-white);
}

.icon-orange {
  background-color: var(--primary);
}

.icon-green {
  background-color: var(--secondary);
}

.floating-text {
  display: flex;
  flex-direction: column;
}

.f-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
}

.f-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-top-left {
  top: 10%;
  left: -15%;
  animation-delay: 0.5s;
}

.card-bottom-right {
  bottom: 12%;
  right: -10%;
  animation-delay: 1.5s;
}

/* Micro-animação flutuante */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   STATS SECTION (Contadores)
   ========================================================================== */
.stats-section {
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 40px 0;
  border-bottom: 4px solid var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.stat-number {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-label i {
  width: 18px;
  height: 18px;
  color: var(--text-white);
}

/* ==========================================================================
   SERVIÇOS (Grid Interativo de Especialidades)
   ========================================================================== */
.services-section {
  background-color: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--light-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img {
  transform: scale(1.08);
}

.service-icon-floating {
  position: absolute;
  bottom: -20px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: var(--transition);
}

.service-card:hover .service-icon-floating {
  background-color: var(--secondary);
  transform: rotate(360deg);
}

.service-body {
  padding: 36px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  border-top: 1px solid var(--light-gray);
  padding-top: 16px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.service-features li i {
  width: 16px;
  height: 16px;
}

/* Card Destacado (Geral / Obras) */
.service-card-highlighted {
  border-color: var(--secondary);
  background-color: var(--secondary);
  color: var(--text-light);
}

.service-card-highlighted:hover {
  border-color: var(--primary);
}

.service-card-highlighted .service-card-title {
  color: var(--text-white);
}

.service-card-highlighted .service-card-desc {
  color: var(--secondary-pale);
}

.service-card-highlighted .service-icon-floating {
  background-color: var(--primary);
}

.service-card-highlighted .service-features {
  border-color: var(--secondary-light);
}

.service-card-highlighted .service-features li {
  color: var(--text-light);
}

.highlight-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* ==========================================================================
   DIFERENCIAIS (Por que nos escolher)
   ========================================================================== */
.features-section {
  background-color: var(--light-gray);
}

.features-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.experience-badge-container {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.features-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.experience-year-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
  color: var(--text-white);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyb-num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.eyb-text {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
}

.feature-icon i {
  width: 24px;
  height: 24px;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PORTFÓLIO & SLIDER ANTES E DEPOIS
   ========================================================================== */
.portfolio-section {
  background-color: var(--light-bg);
}

/* Container do Antes e Depois */
.before-after-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 64px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--text-white);
}

.ba-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  user-select: none;
}

.ba-image-before,
.ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image-before img,
.ba-image-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A imagem "Depois" será cortada dinamicamente pelo JS */
.ba-image-after {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--text-white);
  box-shadow: 10px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* Ajusta largura interna da imagem interna para prevenir distorção */
.ba-image-after img {
  width: 900px; /* Largura absoluta idêntica ao container principal */
  max-width: none;
}

/* Rótulos */
.ba-label {
  position: absolute;
  top: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 10;
}

.label-before {
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-white);
}

.label-after {
  left: 20px;
  background-color: var(--primary);
  color: var(--text-white);
}

/* Barra do Slider e Puxador */
.ba-slider-bar {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--text-white);
  pointer-events: none;
  z-index: 3;
}

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-white);
  border: 4px solid var(--text-white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: none;
  z-index: 4;
}

.ba-slider-handle i {
  width: 20px;
  height: 20px;
}

/* Controle de Toque Range Invisível Ocultado sobreposto */
.ba-slider-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

/* Filtros do Portfólio */
.portfolio-gallery-wrapper {
  margin-top: 32px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background-color: var(--light-gray);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.filter-btn:hover {
  background-color: var(--secondary-pale);
  color: var(--secondary);
}

.filter-btn.active {
  background-color: var(--secondary);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

/* Grid do Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  display: none; /* Controlado via classe .show no JS */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
}

.portfolio-item.show {
  display: block;
  animation: scaleUp 0.4s ease forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.portfolio-media {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(74, 88, 51, 0.95), rgba(74, 88, 51, 0.2));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 2;
}

.portfolio-media:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-media:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-title {
  color: var(--text-white);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.portfolio-category {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
  transition-delay: 0.05s;
}

.portfolio-media:hover .portfolio-title,
.portfolio-media:hover .portfolio-category {
  transform: translateY(0);
}

/* ==========================================================================
   DEPOIMENTOS (Testimonials Slider)
   ========================================================================== */
.testimonials-section {
  background-color: var(--light-gray);
}

.testimonials-slider-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 8px;
}

.testimonial-card {
  background-color: var(--light-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars i {
  width: 20px;
  height: 20px;
  color: #FFD166;
}

.star-filled {
  fill: #FFD166;
}

.quote-icon {
  color: hsla(19, 87%, 53%, 0.15);
}

.quote-icon i {
  width: 48px;
  height: 48px;
  transform: rotate(180deg);
}

.testimonial-text {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--secondary-pale);
}

/* Avatares mockados estéticos */
.av-1 { background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=100&h=100&q=80'); }
.av-2 { background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=100&h=100&q=80'); }
.av-3 { background-image: url('https://images.unsplash.com/photo-1522075469751-3a6694fb2f61?auto=format&fit=crop&w=100&h=100&q=80'); }

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Controles do Slider */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--light-card);
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.control-btn:hover {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  transform: scale(1.05);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.dot.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: 50px;
}

/* ==========================================================================
   FORMULÁRIO DE ORÇAMENTO (Conversão Extrema)
   ========================================================================== */
.contact-section {
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

/* Fundo geométrico */
.contact-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: rgba(230, 95, 30, 0.04);
  pointer-events: none;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 24px;
}

.contact-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--text-light);
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.c-method-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.c-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--dark-card);
  border: 1px solid hsla(82, 18%, 20%, 0.5);
  color: var(--primary);
}

.c-icon i {
  width: 24px;
  height: 24px;
}

.c-text {
  display: flex;
  flex-direction: column;
}

.ct-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  opacity: 0.6;
}

.ct-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
}

.social-trust-badges {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.badge-trust-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-trust-footer i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Painel do Formulário Estilo Catálogo Arquitetura */
.contact-form-panel {
  background-color: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-header-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.form-header-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  width: 100%;
}

.grid-2-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--secondary-light);
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background-color: var(--light-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: var(--font-body);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px hsla(19, 87%, 53%, 0.12);
}

/* Customização dos selects */
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.text-area-wrapper {
  align-items: flex-start;
}

.text-area-wrapper i {
  top: 16px;
}

.text-area-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  padding: 16px;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.form-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   FAQ SECTION (Acordeão de Dúvidas)
   ========================================================================== */
.faq-section {
  background-color: var(--light-bg);
}

.faq-accordion-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--secondary);
  transition: var(--transition);
  gap: 16px;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] {
  color: var(--primary);
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0; /* Controlado via JS */
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
  padding: 0 32px 28px 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   RODAPÉ / FOOTER (Navegação & SEO)
   ========================================================================== */
.main-footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding-top: 80px;
  border-top: 4px solid var(--primary);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
}

.branding-col {
  padding-right: 32px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.75;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  transition: var(--transition);
}

.social-icon-btn:hover {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.75;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact-info li i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-contact-info li a:hover {
  color: var(--primary);
}

.footer-copyright-panel {
  padding: 32px 0;
  background-color: hsl(82, 18%, 8%);
  font-size: 0.75rem;
  opacity: 0.6;
}

.copyright-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   BOTÃO FLUTUANTE DO WHATSAPP (Alta Conversão)
   ========================================================================== */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-decoration: none;
}

.wa-icon-wrapper {
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.whatsapp-floating-btn:hover .wa-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

/* Efeito Pulso/Ping */
.wa-ping {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.6;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 1;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Balão Informativo Tooltip */
.wa-tooltip {
  position: absolute;
  right: 76px;
  background-color: var(--light-card);
  color: var(--secondary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.4s ease;
  transition-delay: 1s; /* Aparece com delay para chamar atenção */
}

/* Balão visível por padrão após delay, controlado com JS ou CSS */
.whatsapp-floating-btn.visible .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-floating-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
  background-color: var(--secondary);
  color: var(--text-white);
  border-color: var(--secondary);
}

/* ==========================================================================
   OTIMIZAÇÃO RESPONSIVA E MOBILE EXTREMA
   ========================================================================== */

/* Telas Grandes e Desktops Médios */
@media (max-width: 1200px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Tablets e Desktops Pequenos (1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  .grid-2 {
    gap: 36px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

/* Tablets Verticais (768px) */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    text-align: center;
  }

  .hero-bg-overlay {
    width: 100%;
    clip-path: polygon(0 40%, 100% 25%, 100% 100%, 0% 100%);
    background-color: hsla(82, 26%, 27%, 0.05);
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-trust {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-visual {
    margin-top: 24px;
  }

  /* Grid de Contadores */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Diferenciais */
  .features-visual {
    order: 2; /* Joga a imagem para baixo no mobile */
    margin-top: 32px;
  }

  .experience-badge-container {
    max-width: 360px;
  }

  .experience-year-badge {
    padding: 16px 24px;
    bottom: -16px;
    right: -16px;
  }

  /* Antes e Depois */
  .before-after-container {
    border-width: 2px;
  }

  .ba-image-after img {
    width: 768px; /* Ajusta recorte mobile */
  }

  /* Depoimentos */
  .testimonial-card {
    padding: 32px 24px;
  }

  /* Contatos e Formulários */
  .contact-info-panel {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .contact-form-panel {
    padding: 32px 24px;
  }

  /* Hamburguer Menu Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%; /* Invisível no início */
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-light);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 24px;
    align-items: flex-start;
    overflow-y: auto;
  }

  /* Menu Ativo */
  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 20px;
  }

  .nav-item {
    font-size: 1.25rem;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-item::after {
    display: none;
  }

  .mobile-cta-li {
    display: block;
    margin-top: 20px;
  }

  .nav-cta-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }

  .nav-cta-desktop {
    display: none;
  }

  /* Efeito Menu Aberto no Hamburguer */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Celulares (576px) */
@media (max-width: 576px) {
  :root {
    --header-height: 70px;
  }

  section {
    padding: 50px 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 24px;
  }

  .stat-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .ba-image-wrapper {
    aspect-ratio: 4 / 3;
  }

  .ba-image-after img {
    width: 480px; /* Ajusta recorte mobile pequeno */
  }

  .grid-2-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .copyright-container {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-floating-btn {
    bottom: 20px;
    right: 20px;
  }

  .wa-icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .wa-tooltip {
    display: none; /* Esconde balão no celular para não cobrir a tela */
  }
}

/* ==========================================================================
   ANIMAÇÃO SCROLL REVEAL (CSS-TRIGGERED)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
