@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --primary: #c5a059;
  --primary-hover: #d8b56f;
  --primary-glow: rgba(197, 160, 89, 0.3);
  --bg-dark: #0a0a0a;
  --bg-surface: #141414;
  --bg-surface-light: #1f1f1f;
  --text-muted: #888888;
  --text-light: #f5f5f5;
  --text-white: #ffffff;
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --border-glass: 1px solid rgba(197, 160, 89, 0.1);
  --border-glass-light: 1px solid rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(20, 20, 20, 0.5);
  --shadow-gold: 0 8px 32px 0 rgba(197, 160, 89, 0.15);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-light);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.section-padding {
  padding: 100px 24px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Section Title */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary);
}

/* ==========================================
   NAVBAR (HEADER)
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.logo-text {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--primary);
}

.logo-highlight {
  color: #ffd600 !important; /* Amarelo bem vivo/brilhante */
}

/* Hamburger menu button for mobile */
.nav-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--primary);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--primary);
}

/* Nav Menu Mobile First */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 40px;
  transition: var(--transition-smooth);
  z-index: 1000;
}

.nav-menu.open {
  right: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
  padding: 8px 0;
}

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

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

.nav-link:hover::after {
  width: 100%;
}

.nav-btn-wrapper {
  margin-top: 10px;
}

.nav-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* ==========================================
   BUTTONS & CALL TO ACTION COMPONENTS
   ========================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #a47e3a 100%);
  color: var(--bg-dark);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 125%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shimmer-infinite 3s infinite;
}

@keyframes shimmer-infinite {
  0% { left: -150%; }
  15% { left: 150%; }
  100% { left: 150%; }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--text-white);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-floating::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  top: 0;
  left: 0;
  animation: pulse-ring 2s infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ==========================================
   SECTION 1: HERO (PRIMEIRA DOBRA)
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 60px;
  background: radial-gradient(circle at 50% 50%, #1a150c 0%, var(--bg-dark) 80%);
  overflow: hidden;
}

/* Background animation */
.hero-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(50px);
  animation: float-glow 10s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes float-glow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-45%, -45%) scale(1.2);
    opacity: 1;
  }
}

/* Gold Circuit Background styling (Linhas de circuito elétrico) */
.hero-circuit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Hero Background Illustration (Eletricista em 3D no fundo) */
.hero-bg-illustration {
  display: none; /* Oculto por padrão em telas móveis muito pequenas (<480px) */
}

@media (min-width: 480px) {
  .hero-bg-illustration {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42%;
    max-width: 440px;
    min-width: 260px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    mix-blend-mode: screen;
    filter: contrast(1.05) brightness(0.85);
  }
  
  .hero-bg-illustration img {
    width: 100%;
    height: auto;
    mask-image: radial-gradient(circle at bottom left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 85%);
    -webkit-mask-image: radial-gradient(circle at bottom left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 85%);
  }
}

/* Pulses flowing animation (Pulso de luz contínuo e lento) */
.pulse-line {
  stroke-dasharray: 120 1200;
  stroke-dashoffset: 1320;
  animation: pulse-flow 10s linear infinite;
}

.pulse-1 {
  animation-duration: 8s;
  animation-delay: 0s;
}

.pulse-2 {
  animation-duration: 11s;
  animation-delay: 2.5s;
}

.pulse-3 {
  animation-duration: 9s;
  animation-delay: 1s;
}

.pulse-4 {
  animation-duration: 7s;
  animation-delay: 3.5s;
}

@keyframes pulse-flow {
  0% {
    stroke-dashoffset: 1320;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 0 24px;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-tag i {
  font-size: 0.9rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

/* Hero Mascot Graphic */
.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mascote-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-shadow: inset 0 0 40px rgba(197, 160, 89, 0.1);
}

.mascote-frame::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px dashed rgba(197, 160, 89, 0.3);
  border-radius: 50%;
  animation: rotate-dashed 40s linear infinite;
}

@keyframes rotate-dashed {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mascote-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 15px rgba(197, 160, 89, 0.3));
  border-radius: 50%;
  animation: float-mascot 6s ease-in-out infinite;
}

@keyframes float-mascot {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

/* Floating Particles */
.particles-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
  opacity: 0;
  animation: float-up 8s infinite linear;
}

.particle.p1 { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle.p2 { left: 30%; animation-delay: 2s; animation-duration: 9s; width: 6px; height: 6px; }
.particle.p3 { left: 50%; animation-delay: 4s; animation-duration: 6s; }
.particle.p4 { left: 70%; animation-delay: 1s; animation-duration: 8s; width: 3px; height: 3px; }
.particle.p5 { left: 90%; animation-delay: 3s; animation-duration: 7s; }

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}



/* ==========================================
   SECTION 2: SOBRE / DIFERENCIAIS
   ========================================== */
.sobre-section {
  background-color: var(--bg-surface);
  position: relative;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

/* Bloco de estatísticas de impacto (Sobre Nós - OPÇÃO A) */
.sobre-stats-container {
  width: 100%;
}

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

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass-light);
  border-radius: 12px;
  padding: 30px 16px;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.35);
  box-shadow: var(--shadow-gold);
}

.stat-num-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 8px;
}

.stat-number, .stat-number-text {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -1px;
}

.stat-suffix {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 1.3;
}

.sobre-text-block h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.sobre-text-block p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Diferenciais Split Layout (Layout Dividido - Cards + Quadro de Disjuntores SVG) */
.diferenciais-split-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.diferenciais-content {
  width: 100%;
}

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

.diferencial-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass-light);
  border-radius: 12px;
  padding: 20px 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
}

.diferencial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 50%, rgba(197, 160, 89, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.diferencial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: var(--shadow-gold);
}

.diferencial-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.diferencial-card:hover .diferencial-icon {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.05) rotate(5deg);
}

.diferencial-card-text {
  flex-grow: 1;
}

.diferencial-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-white);
  font-weight: 700;
}

.diferencial-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.diferenciais-graphic-side {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.circuit-board-wrapper {
  width: 100%;
  max-width: 380px;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-glass);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.circuit-board-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 160, 89, 0.25);
  box-shadow: var(--shadow-gold);
}

.circuit-board-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsividade Desktop para o Split Layout */
@media (min-width: 992px) {
  .diferenciais-split-container {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  
  .diferenciais-content {
    flex: 1.2;
  }
  
  .diferenciais-graphic-side {
    flex: 0.8;
    justify-content: flex-end;
  }
}

/* ==========================================
   SECTION 3: SERVIÇOS
   ========================================== */
.servicos-section {
  background-color: var(--bg-dark);
}

.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.servico-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass-light);
  border-radius: 12px;
  padding: 32px 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.servico-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.servico-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 160, 89, 0.2);
  box-shadow: var(--shadow-gold);
}

.servico-card:hover::after {
  width: 100%;
}

.servico-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.servico-card:hover .servico-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--primary-glow);
}

.servico-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.servico-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
}

/* ==========================================
   SECTION: TELA TENSIONADA (PREMIUM)
   ========================================== */
.tela-section {
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

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

.tela-img-box {
  width: 100%;
  display: flex;
  justify-content: center;
}

.tela-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.tela-img-wrapper:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
}

.tela-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.tela-img-wrapper:hover .tela-img {
  transform: scale(1.04);
}

.tela-img-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.2), transparent 70%);
  pointer-events: none;
}

/* ==========================================
   SECTION 4: COMO FUNCIONA (TIMELINE)
   ========================================== */
.como-funciona-section {
  background-color: var(--bg-surface);
}

/* Vertical Timeline for Mobile (default) */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background: rgba(197, 160, 89, 0.2);
  top: 0;
  bottom: 0;
  left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 55px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface-light);
  border: 2px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
  z-index: 5;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-number {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--primary);
  transform: scale(1.1);
}

.timeline-content {
  background: var(--bg-surface-light);
  border: var(--border-glass);
  border-radius: 10px;
  padding: 20px;
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateX(5px);
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: var(--shadow-soft);
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

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

/* ==========================================
   SECTION 5: DEPOIMENTOS (TESTIMONIALS)
   ========================================== */
.depoimentos-section {
  background-color: var(--bg-dark);
  overflow: hidden;
}

.depoimentos-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.depoimento-slide {
  min-width: 100%;
  padding: 10px;
}

.depoimento-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass-light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
}

.depoimento-quote-icon {
  font-size: 2.5rem;
  color: rgba(197, 160, 89, 0.15);
  margin-bottom: 10px;
}

.depoimento-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.depoimento-rating {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.depoimento-client {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
}

.depoimento-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

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

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* ==========================================
   SHOW-STOPPER / CALCULADORA & TABELA (SURPRESA)
   ========================================== */
.calculadora-section {
  background-color: var(--bg-surface);
  position: relative;
}

.calculadora-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

/* Service Table */
.tabela-container {
  background: var(--bg-surface-light);
  border: var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.table-search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.table-search-input {
  flex-grow: 1;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text-white);
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition-fast);
}

.table-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.services-list-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.services-list-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.services-list-table th, .services-list-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.services-list-table th {
  background: rgba(10, 10, 10, 0.8);
  color: var(--primary);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.services-list-table tr:last-child td {
  border-bottom: none;
}

.services-list-table tr {
  transition: var(--transition-fast);
}

.services-list-table tr:hover td {
  background: rgba(197, 160, 89, 0.05);
  color: var(--text-white);
}

/* Calculator Box */
.calc-box {
  background: rgba(31, 31, 31, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: var(--shadow-gold);
}

.calc-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.calc-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.calc-option-item {
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.calc-option-item:hover {
  border-color: rgba(197, 160, 89, 0.4);
  background: rgba(197, 160, 89, 0.03);
}

.calc-option-item.selected {
  border-color: var(--primary);
  background: rgba(197, 160, 89, 0.08);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

/* Styled Custom Checkbox */
.calc-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-right: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  background: transparent;
  flex-shrink: 0;
}

.calc-option-item.selected .calc-checkbox {
  border-color: var(--primary);
  background-color: var(--primary);
}

.calc-checkbox i {
  font-size: 0.75rem;
  color: var(--bg-dark);
  opacity: 0;
  transition: var(--transition-fast);
}

.calc-option-item.selected .calc-checkbox i {
  opacity: 1;
}

.calc-option-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.calc-option-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(197, 160, 89, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.calc-summary {
  background: rgba(10, 10, 10, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border-left: 3px solid var(--primary);
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.calc-summary-row:last-child {
  margin-bottom: 0;
}

.calc-total-label {
  font-weight: 700;
  color: var(--text-white);
  font-size: 1.05rem;
}

.calc-total-value {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.25rem;
}

.calc-cta {
  width: 100%;
}

/* ==========================================
   SECTION 6: CTA FINAL
   ========================================== */
.cta-final-section {
  background: linear-gradient(135deg, #120e06 0%, #1a150c 50%, #0a0a0a 100%);
  position: relative;
  text-align: center;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.cta-final-content {
  max-width: 650px;
  margin: 0 auto;
}

.cta-final-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-final-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-final-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

/* ==========================================
   SECTION 7: RODAPÉ (FOOTER)
   ========================================== */
.footer {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 24px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info-col .logo-wrapper {
  margin-bottom: 16px;
}

.footer-about-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 320px;
}

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

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-list i {
  color: var(--primary);
  font-size: 1.05rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-list a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-dev-by {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-dev-by span {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================
   SECTION 5.5: ÁREA DE ATENDIMENTO
   ========================================== */
.atendimento-section {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.map-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: var(--border-glass);
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.atendimento-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Pulsating animation for markers (Ponto pulsante contínuo) */
.pulse-ring-glow {
  transform-origin: center;
  animation: marker-pulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  opacity: 0;
}

@keyframes marker-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.marker-dot {
  filter: drop-shadow(0 0 6px var(--primary));
  transition: var(--transition-smooth);
}

.map-marker {
  cursor: pointer;
}

.map-marker:hover .marker-dot {
  transform: scale(1.3);
  fill: #ffffff;
}

.marker-label {
  font-family: var(--font-main);
}

.marker-sub {
  font-family: var(--font-main);
  opacity: 0.6;
}

/* Mobile-first adjustments for Map labels */
@media (max-width: 576px) {
  .marker-sub {
    display: none; /* Oculta bairros menores em telas pequenas para evitar sobreposição */
  }
  .marker-label {
    font-size: 13px; /* Ajusta tamanho do rótulo principal no mobile */
  }
  .map-wrapper {
    padding: 15px 10px; /* Reduz espaçamento do mapa no mobile */
  }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ==========================================
   MEDIA QUERIES (RESPONSIVE ADAPTATIONS)
   ========================================== */

/* TABLET LAYOUT (768px+) */
@media (min-width: 768px) {
  .section-padding {
    padding: 100px 40px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  /* Hero section tablet */
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
    gap: 30px;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-description {
    margin: 0 0 32px 0;
  }
  
  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .mascote-frame {
    width: 320px;
    height: 320px;
  }
  
  /* Sobre / Diferenciais tablet */
  .sobre-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .tela-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
  }
  
  .sobre-img-box {
    max-width: 100%;
  }
  
  .diferenciais-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Serviços grid tablet */
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Calculadora & Tabela tablet */
  .calculadora-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  
  .calc-box {
    padding: 36px 30px;
  }
  
  /* CTA Final tablet */
  .cta-final-buttons {
    flex-direction: row;
  }
  
  /* Footer tablet */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* DESKTOP LAYOUT (1280px+) */
@media (min-width: 1280px) {
  .section-padding {
    padding: 120px 0;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  /* Navbar Desktop */
  .nav-toggle {
    display: none;
  }
  
  .nav-menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: none;
    display: flex;
    flex-direction: row;
    gap: 40px;
    padding: 0;
  }
  
  .nav-link {
    font-size: 0.95rem;
  }
  
  .nav-btn-wrapper {
    margin-top: 0;
  }
  
  /* Hero Desktop */
  .hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .mascote-frame {
    width: 400px;
    height: 400px;
  }
  
  /* Sobre / Diferenciais desktop */
  .sobre-grid {
    gap: 80px;
  }
  
  .sobre-text-block h3 {
    font-size: 2.25rem;
  }
  
  /* Serviços Grid desktop */
  .servicos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  /* Timeline Horizontal for Desktop */
  .timeline {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
  }
  
  .timeline::before {
    left: 0;
    right: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: rgba(197, 160, 89, 0.2);
  }
  
  .timeline-item {
    padding-left: 0;
    margin-bottom: 0;
    width: 23%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .timeline-number {
    position: relative;
    margin: 0 auto 24px auto;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .timeline-content:hover {
    transform: translateY(-8px);
  }
  
  /* Calculadora & Tabela Desktop */
  .calculadora-grid {
    gap: 40px;
  }
  
  .calc-options-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Footer Desktop */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
  }
}

/* ==========================================
   CHATBOT FAQ WIDGET
   ========================================== */
.chatbot-toggle-btn {
  position: fixed;
  bottom: 96px; /* 24px + 56px (whatsapp) + 16px (gap) */
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary); /* Dourado */
  color: var(--bg-dark);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.4);
  z-index: 998;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chatbot-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.6);
}

.chatbot-widget {
  position: fixed;
  bottom: 100px;
  right: 88px; /* Beside the buttons on desktop */
  width: 350px;
  height: 500px;
  max-height: calc(100vh - 120px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.chatbot-widget.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chatbot-header {
  background-color: var(--bg-darker);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chatbot-online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #25d366;
  border: 2px solid var(--bg-darker);
  border-radius: 50%;
}

.chatbot-title h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-white);
}

.chatbot-title span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: color 0.2s;
}

.chatbot-close-btn:hover {
  color: var(--text-white);
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg-dark);
}

/* Custom Scrollbar for messages */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: message-fade-in 0.3s ease;
}

@keyframes message-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-message {
  align-self: flex-start;
  background-color: var(--bg-card);
  color: var(--text-gray);
  border-bottom-left-radius: 4px;
}

.bot-message p {
  margin: 0;
}

.user-message {
  align-self: flex-end;
  background-color: rgba(197, 160, 89, 0.15); /* Dourado com opacidade */
  color: var(--text-white);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-bottom-right-radius: 4px;
}

.user-message p {
  margin: 0;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
  background-color: var(--bg-card);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-gray);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chatbot-input-area {
  padding: 12px 16px;
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
}

#chatbot-form {
  display: flex;
  gap: 8px;
}

#chatbot-input {
  flex: 1;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 10px 14px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

#chatbot-input:focus {
  outline: none;
  border-color: var(--primary);
}

#chatbot-send-btn {
  background-color: var(--primary);
  color: var(--bg-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

#chatbot-send-btn:hover {
  transform: scale(1.05);
  background-color: #d4b271;
}

#chatbot-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Error message styling */
.error-message {
  align-self: center;
  background-color: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .chatbot-widget {
    right: 16px;
    left: 16px;
    bottom: 160px; /* Acima do botão WhatsApp e do toggle */
    width: auto;
    height: 60vh;
  }
}
