/* CSS otimizado para SEO e design moderno */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1e40af;
  --primary-blue-dark: #1e3a8a;
  --primary-blue-light: #3b82f6;
  --accent-green: #10b981;
  --accent-green-dark: #059669;
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #20BA5A;
  --text-dark: #1f2937;
  --text-gray: #4b5563;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: block;
  contain: layout;
}

/* Header com gradiente sutil */
header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-blue-light);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

header:hover::after {
  opacity: 1;
}

header:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

nav {
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 2rem;
}

.nav-brand {
  flex-shrink: 0;
}

.nav-brand a {
  text-decoration: none;
  color: var(--primary-blue-dark);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-brand a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-brand a:hover {
  color: var(--primary-blue);
}

.nav-brand a:hover::before {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: space-around;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(16, 185, 129, 0.05));
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

nav a:hover {
  color: var(--primary-blue);
}

nav a:hover::before {
  width: 80%;
}

nav a:hover::after {
  opacity: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2;
  margin-top: 0;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
  color: white;
}


/* Main Content */
main {
  padding: 3rem 0;
  min-height: 60vh;
  display: block;
  width: 100%;
  position: relative;
  contain: layout style;
}

section {
  margin-bottom: 4rem;
  display: block;
  width: 100%;
  contain: layout style;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--primary-blue-dark);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

h3.benefit-title,
h4 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Cards de Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  contain: layout;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px) translateZ(0);
  opacity: 0.98;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--primary-blue-light);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

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

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

.service-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.7;
}

/* CTA Buttons */
.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--accent-green) 100%);
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 1rem 0.5rem 1rem 0;
  box-shadow: var(--shadow-md);
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta:hover {
  transform: translateY(-2px) translateZ(0);
  opacity: 0.95;
}

.cta:hover::before {
  width: 300px;
  height: 300px;
}

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

/* Listas */
ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.service-list {
  list-style: none;
  margin-left: 0;
  display: grid;
  gap: 1rem;
}

.service-list li {
  padding: 1rem;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-green);
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 2.5rem;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.2rem;
}

.service-list li:hover {
  background: #f3f4f6;
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

/* História Section */
.history-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: block;
  width: 100%;
  contain: layout style;
  min-height: 200px;
}

.history-section h2 {
  color: var(--primary-blue-dark);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #e5e7eb;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--primary-blue);
}

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

footer p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #d1d5db;
}

footer strong {
  color: #ffffff;
  font-size: 1.1rem;
}

footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Map Container */
.map-container {
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

/* FAQ */
.faq {
  margin: 3rem 0;
}

.faq-item {
  margin-bottom: 2rem;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: #f3f4f6;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  color: var(--primary-blue-dark);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-gray);
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    position: relative;
    flex-wrap: wrap;
    padding: 0.4rem 0;
  }

  .nav-brand {
    flex: 1;
  }

  .nav-brand a {
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
    order: 2;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  nav ul.active {
    display: flex;
    max-height: 500px;
    padding: 0.5rem 0;
  }

  nav ul li {
    width: 100%;
    margin: 0;
  }

  nav a {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
    border-radius: 0;
  }

  nav a::before {
    left: 2rem;
    transform: none;
    width: 4px;
    height: 100%;
    top: 0;
    bottom: 0;
  }

  nav a:hover::before {
    width: 4px;
  }

  nav a::after {
    display: none;
  }
}

  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .cta {
    width: 100%;
    text-align: center;
  }
}

/* Animações suaves */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: slideIn 0.6s ease;
}

/* Destaques */
.highlight {
  background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Links de Cidades */
.cities-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  contain: layout;
}

.city-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 100px;
  text-align: center;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.city-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.city-link:hover {
  transform: translateY(-5px) translateZ(0);
  opacity: 0.98;
}

.city-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.city-link:hover::after {
  opacity: 1;
}

.city-link:hover::before {
  transform: scaleX(1);
}

.city-link h3 {
  color: var(--primary-blue-dark);
  margin: 0;
  font-size: 1.35rem;
  text-align: center;
  width: 100%;
}

/* Seção de benefícios */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  contain: layout style;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  position: relative;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px) translateZ(0);
  opacity: 0.98;
}

.benefit-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.benefit-item:hover::after {
  opacity: 1;
}

.benefit-item h3 {
  color: var(--primary-blue-dark);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.benefit-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
