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

:root {
  --primary-color: #e10600;
  --primary-glow: rgba(225, 6, 0, 0.6);
  --dark-bg: #0a0a0a;
  --light-bg: #1a1a1a;
  --card-bg: #141414;
  --text-color: #ffffff;
  --text-muted: #b0b0b0;
  --container-width: 1200px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* evita overflow horizontal global */
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-bg);
  background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.nav-open { overflow: hidden; }
body.modal-open { overflow: hidden; }
  body.touch-device, body.touch-device a, body.touch-device button, body.touch-device .carousel-button { cursor: auto; }

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

a:hover {
  color: #ff4500;
}

a, button, .carousel-button {
  cursor: none;
}

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

.section-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 60px;
  text-shadow: 0 0 20px var(--primary-glow);
  letter-spacing: 1.5px; /* Refinamento Tipográfico */
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #c10500);
  color: var(--text-color);
  font-weight: 700;
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 1.1rem;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 25px var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 40px var(--primary-glow);
}

.btn-primary {
  will-change: transform, box-shadow, background, color;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 18px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  transition: var(--transition);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 10, 0.98);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Logo alinhada à esquerda */
.header .logo {
  margin-right: auto; /* Empurra o menu para a direita */
}

/* Menu de navegação */
.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header .logo img {
  height: 55px;
  filter: drop-shadow(0 0 8px var(--primary-color));
  transition: var(--transition);
}

.header .logo img:hover {
  filter: drop-shadow(0 0 15px var(--primary-color));
  transform: scale(1.05);
}

/* Menu de navegação - estilos gerais */

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
}

/* Botão Hamburguer */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

.nav-menu a {
  color: var(--text-color);
  font-weight: 600;
  padding: 10px 20px;
  position: relative;
  border-radius: 8px;
  transition: color 0.4s ease;
  overflow: hidden;
  z-index: 1;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-menu a:hover {
  color: var(--text-color);
}

.nav-menu a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1619405399517-d7fce0f13302?auto=format&fit=crop&w=1920&q=80');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -1;
  will-change: transform;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-color);
  margin-bottom: 25px;
  text-shadow: 0 0 30px var(--primary-glow), 
               0 5px 15px rgba(0,0,0,0.8);
  line-height: 1.2;
  letter-spacing: 2px; /* Refinamento Tipográfico */
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px var(--primary-glow), 
                 0 5px 15px rgba(0,0,0,0.8);
  }
  to {
    text-shadow: 0 0 40px var(--primary-color), 
                 0 5px 15px rgba(0,0,0,0.8);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 45px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  line-height: 1.8;
}

/* Services Section */
.services-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--light-bg) 100%);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Container principal dos serviços */
.services-section .container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Grid de cards de serviços */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  will-change: transform, box-shadow;
  width: 100%;
}

/* Efeito de Borda Gradiente */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-glow)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Efeito de Brilho (Glare) */
.card::after {
    content: '';
    position: absolute;
    top: var(--y, 0); left: var(--x, 0);
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s, width 0.5s, height 0.5s;
    pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px var(--primary-glow);
}

.card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.card-content {
  padding: 16px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.card-icon {
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: var(--transition);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2;
}

.card:hover .card-icon {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
  transition: var(--transition);
  text-align: center;
}

.card:hover .card-title {
  text-shadow: 0 0 10px var(--primary-glow);
}

.card-description {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--dark-bg) 100%);
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Container centralizado */
.gallery-section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Título da seção */
.gallery-section .section-title {
  width: 100%;
  text-align: center;
  margin-bottom: 50px;
}

/* Galeria Antes & Depois */
.comparison-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .comparison-slider {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
  }
  
  .comparison-slider img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

.comparison-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(225, 6, 0, 0.3);
  cursor: col-resize;
  width: 100%;
  height: 300px;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 440px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.03), rgba(0,0,0,0.1));
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y; /* permite rolagem vertical no mobile */
}

.comparison-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 15px var(--primary-glow);
}

.slider-handle div {
  width: 50px;
  height: 50px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  background: var(--dark-bg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.slider-handle div::before, .slider-handle div::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.slider-handle div::before {
  border-right: 8px solid var(--primary-color);
}

.slider-handle div::after {
  border-left: 8px solid var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--light-bg) 100%);
  position: relative;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px 25px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--primary-glow);
  border-left-width: 8px;
}

.testimon/* Container principal dos serviços */
.services-section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Grid de cards de serviços */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.service-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 35px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  will-change: transform, box-shadow;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--primary-glow);
  border-left-width: 8px;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.85));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&w=1920&q=80');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -2;
  will-change: transform;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(225, 6, 0, 0.1) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-text {
  font-size: 1.3rem;
  max-width: 650px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease-in-out;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  max-width: 150px;
  animation: pulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  left: 0;
  top: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-width 0.2s, background-color 0.2s;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 50px;
  height: 50px;
  background-color: var(--primary-glow);
  border-width: 3px;
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 0;
  top: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(225, 6, 0, 0.2);
}

.footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 15px;
  }
  
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .section-title { 
    font-size: 2.5rem; 
    margin-bottom: 50px;
  }
  
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.3rem; }
  
  .service-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
  }
  
  .carousel-slide img {
    height: 400px;
  }
  /* Ajustes para Antes & Depois em tablets */
  .comparison-slider { min-height: 320px; }
  .comparison-gallery { gap: 35px; }
}

@media (max-width: 1024px) {
  .header .container {
    grid-template-columns: auto 1fr auto;
    justify-content: space-between;
    align-items: center;
  }
  
  .header .logo {
    justify-self: center;
    grid-column: 1;
  }
  
  .nav-menu {
    display: none; /* Será mostrado via JavaScript quando o menu mobile for ativado */
  }
  
  .nav-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 3;
  }
}

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

@media (max-width: 768px) {
  .section-title { font-size: 2.2rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .btn-primary {
    padding: 15px 35px;
    font-size: 1rem;
  }
  
  .testimonial-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .header .container { gap: 10px; }

  /* Mostrar botão e transformar menu em off-canvas */
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    top: 70px; /* abaixo do header */
    right: -100%;
    width: 85vw;
    max-width: 360px;
    height: calc(100vh - 70px);
    background: #0e0e0e;
    box-shadow: -10px 0 30px rgba(0,0,0,.6);
    border-left: 1px solid rgba(225,6,0,.2);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    transition: right .35s ease;
    z-index: 1001;
  }
  .nav-menu a { 
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
  }
  .nav-menu.open { right: 0; }

  /* Ajustes mobile gerais */
  .services-section, .gallery-section, .testimonials-section, .cta-section { padding: 80px 0; }
  .gallery-section .container { width: 100%; max-width: none; padding: 0 12px; }
  .comparison-gallery { width: 100%; }

  /* Ajustes para Antes & Depois em mobile */
  .comparison-gallery { gap: 40px; width: 100vw; margin-left: calc(-50vw + 50%); }
  .comparison-slider { 
    min-height: 0; 
    aspect-ratio: 4/3; 
    width: 100vw; 
    max-width: 100vw; 
    margin: 0; 
    overflow: hidden; 
    border-radius: 0;
    box-sizing: border-box;
  }
  .gallery-section, .gallery-section .container { width: 100%; max-width: 100%; overflow-x: hidden; padding: 0; }
  .slider-handle { width: 3px; }
  .slider-handle div { width: 42px; height: 42px; border-width: 2px; }
  .slider-handle div::before {
    border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 7px solid var(--primary-color);
  }
  .slider-handle div::after {
    border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--primary-color);
  }
}

@media (max-width: 768px) {
  .nav-menu a { 
    margin: 0;
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .card-content {
    padding: 25px;
  }
  /* Evita qualquer overflow horizontal residual na seção de galeria */
  .gallery-section, .comparison-gallery { overflow-x: hidden; }
}


/* Estilos para o aviso de cookies */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ddd;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.cookie-text a:hover {
  color: #fff;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.cookie-btn.accept {
  background: var(--primary-color);
  color: white;
}

.cookie-btn.accept:hover {
  background: #ff1a1a;
  transform: translateY(-2px);
}

.cookie-btn.decline {
  background: transparent;
  color: #aaa;
  border: 1px solid #666;
}

.cookie-btn.decline:hover {
  color: #fff;
  border-color: #999;
}

/* Estilos para o certificado do Google */
.google-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.google-badge:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.google-badge img {
  height: 40px;
  width: auto;
  max-width: 150px;
  display: block;
  margin: 0 auto;
}

/* Ajustes para mobile */
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .section-title { 
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
  .services-section, .gallery-section, .testimonials-section, .cta-section { padding: 60px 0; }
  
  .service-cards {
    grid-template-columns: 1fr;
  }
  
  .testimonial-cards {
    grid-template-columns: 1fr;
  }
  
  .carousel-slide img {
    height: 250px;
  }
  
  .btn-primary {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  /* Antes & Depois - telas muito pequenas */
  .comparison-gallery { gap: 30px; width: 100vw; margin-left: calc(-50vw + 50%); }
  .comparison-slider { 
    min-height: 0; 
    aspect-ratio: 1/1; 
    width: 100vw; 
    max-width: 100vw; 
    margin: 0; 
    overflow: hidden; 
    border-radius: 0;
    box-sizing: border-box;
  }
  .gallery-section, .gallery-section .container { width: 100%; max-width: 100%; overflow-x: hidden; padding: 0; }
  .slider-handle { width: 3px; }
  .slider-handle div { width: 36px; height: 36px; border-width: 2px; }
  .slider-handle div::before {
    border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-right: 6px solid var(--primary-color);
  }
  .slider-handle div::after {
    border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--primary-color);
  }
}

/* Service Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
.modal__dialog { position: relative; width: min(900px, 92vw); max-height: 85vh; overflow: auto; background: #0f0f0f; border: 1px solid rgba(225, 6, 0, 0.25); border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.modal__title { font-size: 1.6rem; color: var(--primary-color); margin: 0 0 12px; }
.modal__content { color: #fff; }
.modal__content p { margin: 0 0 12px; }
.modal__content ul { color: #fff; }
.modal__content li { color: #fff; }
.modal__content h4 { color: #fff; margin: 10px 0 6px; font-size: 1.05rem; }
.modal__content ul { margin: 6px 0 16px 20px; }
.modal__close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.modal__cta { display: inline-block; margin-top: 8px; }

@media (max-width: 480px) {
  .modal__dialog { width: 94vw; padding: 18px; border-radius: 14px; }
}

/* Floating Social Buttons */
.social-floating {
  position: fixed;
  right: 18px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1200; /* acima do header e do menu mobile */
}

.social-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* icones svg usam currentColor */
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(6px);
  line-height: 0; /* evita deslocamento vertical por baseline */
  padding: 0; /* garante sem espaçamento interno inesperado */
}

.social-btn svg {
  display: block; /* remove gap de linha e garante centralização exata */
  width: 26px;
  height: 26px;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}
.social-btn:active {
  transform: translateY(0) scale(0.98);
}

.social-btn:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

.social-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-color: rgba(37, 211, 102, 0.4);
}

.social-btn.instagram {
  background: linear-gradient(135deg, #f58529, #feda77, #dd2a7b, #8134af, #515bd4);
  border-color: rgba(221, 42, 123, 0.4);
}
@media (max-width: 768px) {
  .social-floating { right: 14px; bottom: 18px; }
  .social-btn { width: 54px; height: 54px; }
}
@media (max-width: 480px) {
  .social-floating { right: 12px; bottom: 14px; gap: 10px; }
  .social-btn { width: 52px; height: 52px; }
}
