/*
🎨 PERSONALIZAÇÃO DE CORES - SUPER SIMPLES!

Para mudar as cores de todo o site, altere apenas a variável abaixo:
--main-color: #1e40af;  ← Mude esta cor!

Exemplos de cores:
Azul: #1e40af
Verde: #059669
Roxo: #7c3aed
Vermelho: #dc2626
Laranja: #ea580c
Rosa: #db2777

Todas as outras cores são geradas automaticamente!
*/

:root {
  /* COR PRINCIPAL - Altere apenas esta cor para personalizar todo o site */
  --main-color: #1e40af;
  
  /* Cores geradas automaticamente a partir da cor principal */
  --primary-color: var(--main-color);
  --primary-dark: color-mix(in srgb, var(--main-color) 80%, black);
  --primary-light: color-mix(in srgb, var(--main-color) 80%, white);
  --secondary-color: color-mix(in srgb, var(--main-color) 60%, #0ea5e9);
  --accent-color: color-mix(in srgb, var(--main-color) 40%, #06b6d4);
  
  /* Cores neutras */
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  
  /* Sombras */
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Banner */
.top-banner {
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.9rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  visibility: visible;
  opacity: 1;
  min-height: 50px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.top-banner.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.top-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-banner-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.top-banner-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.top-banner-info i {
  color: var(--secondary-color);
}

.top-banner-social {
  display: flex;
  gap: 1rem;
}

.top-banner-social a {
  color: var(--white);
  text-decoration: none;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.top-banner-social a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.header.scrolled {
  top: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--main-color) 0%, color-mix(in srgb, var(--main-color) 70%, white) 100%);
  color: var(--white);
  padding: 280px 0 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
  margin-top: 130px;
  transition: margin-top 0.3s ease;
}

.hero-content {
  transform: translateY(-50px);
}

.hero.banner-hidden {
  margin-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  margin-bottom: 2rem;
  text-align: center;
}

.hero-logo-img {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s both;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
  margin-top: 1rem;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
  background: #f8fafc;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 0;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3,
.service-card p {
  padding: 0 1.25rem;
}

.service-card h3 {
  margin-top: 1rem;
}

.service-card p {
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.video-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.video-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.video-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

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

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
}

/* Gallery Section */
.gallery {
  padding: 80px 0;
  background: var(--light-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  line-height: 0;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-overlay h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.gallery-overlay p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.9;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* FAQ Section */
.faq {
  background: var(--white);
  padding: 100px 0;
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: color-mix(in srgb, var(--main-color) 10%, var(--light-bg));
}

.faq-question h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.faq-question i {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 25px 30px;
  max-height: 200px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 1rem;
}

.contact-form {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 15px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-links a {
  color: var(--primary-color);
  text-decoration: none;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  font-size: 1.1rem;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 5px 0 5px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.footer-section p,
.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: var(--white);
  text-decoration: none;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  text-align: center;
  padding: 12px 0;
 
  color: #9ca3af;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.4;
}

.footer-bottom a {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Stats Banner */
.stats-banner {
  background: #ffffff;
  color: var(--text-dark);
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.stats-grid .stat-item {
  text-align: center;
  background: #f8fafc;
  padding: 2rem 1rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.stats-grid .stat-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
}

.stats-grid .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.stats-grid .stat-label {
  color: var(--text-light);
  font-weight: 500;
}

/* Emergency Banner */
.emergency-banner {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.emergency-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="alert" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 0L30 30H0Z" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23alert)"/></svg>');
}

.emergency-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.emergency-icon {
  width: 100px;
  height: 100px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 3rem;
  flex-shrink: 0;
}

.emergency-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.emergency-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.emergency-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-emergency {
  background: var(--white);
  color: #dc2626;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-emergency:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  color: #dc2626;
}

.emergency-note {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Testimonials Banner */
.testimonials-banner {
  background: var(--light-bg);
  padding: 80px 0;
}

.testimonials-wrapper {
  position: relative;
  margin-top: 3rem;
}

.testimonials-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.testimonials-grid::-webkit-scrollbar {
  height: 8px;
}

.testimonials-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.testimonials-grid::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.testimonial-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  min-width: 280px;
  max-width: 280px;
  min-height: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.testimonial-content p {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  font-size: 0.95rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-text {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-text:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.testimonial-text::after {
  content: " (clique para ler mais)";
  font-size: 0.8rem;
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-text:hover::after {
  opacity: 1;
}

/* Modal para depoimento completo */
.modal-depoimento {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: 15px 15px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* Responsivo do modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-body p {
    font-size: 1rem;
  }
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-initials {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.author-info h4 {
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Botões de navegação dos depoimentos */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-nav:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-prev {
  left: -25px;
}

.testimonial-next {
  right: -25px;
}

/* Responsivo - Botões de navegação */
@media (max-width: 768px) {
  .testimonial-nav {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .testimonial-prev {
    left: -10px;
  }
  
  .testimonial-next {
    right: -10px;
  }
}

/* Features Section */
.features {
  padding: 80px 0;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--light-bg);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color), color-mix(in srgb, var(--main-color) 70%, white));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
  background: var(--white);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--main-color), color-mix(in srgb, var(--main-color) 70%, white));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--main-color) 0%, color-mix(in srgb, var(--main-color) 70%, white) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.feature i {
  color: #10b981;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-image { height: 220px; }
  .top-banner {
    display: none !important;
  }
  
  .header {
    position: fixed;
    top: 0;
    transform: translateZ(0);
    transition: transform 0.3s ease;
  }

  .header.scrolled {
    transform: translateY(-100%);
  }
  
  /* Header scroll effect removido */
  
  .top-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .top-banner-info {
    justify-content: center;
    gap: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 998;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .header.scrolled + .nav-menu {
    transform: translateY(-100%);
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }

  .mobile-menu {
    display: flex;
  }

  .faq-question {
    padding: 20px 15px;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 20px 15px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

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

  .emergency-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .emergency-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .emergency-text h2 {
    font-size: 2rem;
  }

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

  .cta-content h2 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .service-image { height: 180px; }
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 120px 0 60px;
    margin-top: 80px;
    transition: margin-top 0.3s ease;
  }

  .hero-content {
    transform: translateY(-30px);
  }

  .header.scrolled ~ .hero {
    margin-top: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Evitar que âncoras fiquem sob o header */
section {
  scroll-margin-top: 150px;
  transition: scroll-margin-top 0.3s ease;
}

body.banner-hidden section {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  section {
    scroll-margin-top: 100px;
    transition: scroll-margin-top 0.3s ease;
  }

  .header.scrolled ~ section {
    scroll-margin-top: 0;
  }
}

/* Loading animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1002;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  user-select: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsividade para botões flutuantes */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .whatsapp-float {
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}



    /* Estilo do botão Saiba Mais */
    .service-card {
      position: relative;
      overflow: hidden;
    }

    .service-image {
      position: relative;
      overflow: hidden;
    }

    .service-action {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      opacity: 0;
      transition: all 0.3s ease;
      z-index: 10;
    }

    .service-card:hover .service-action {
      opacity: 1;
    }

    .service-card:hover .service-image::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 5;
    }

    .btn-saiba-mais {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: #25D366 !important;
      color: white !important;
      padding: 12px 24px;
      border-radius: 25px;
      text-decoration: none !important;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.3s ease;
      box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
      border: none;
      cursor: pointer;
      min-width: 140px;
    }

    .btn-saiba-mais:hover {
      background: #128C7E !important;
      color: white !important;
      text-decoration: none !important;
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }

    .btn-saiba-mais i {
      font-size: 16px;
    }