/* ========================================
   Alfa Chaveiro São Luís - Styles CSS
   Design moderno, responsivo e otimizado para SEO local
======================================== */

:root {
  /* Cores da marca para empresa de chaveiro */
  --primary-color: #1a365d; /* Azul escuro profissional */
  --secondary-color: #2d3748; /* Cinza escuro */
  --accent-color: #38a169; /* Verde WhatsApp */
  --light-bg: #f7fafc; /* Fundo claro */
  --dark-bg: #1a202c; /* Fundo escuro */
  --text-light: #ffffff;
  --text-dark: #2d3748;
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  --gradient-accent: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

/* Scrollbar customizado */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-accent);
}

/* Header */
header {
  background: var(--gradient-primary);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

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

.logo-emoji {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

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

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding: 120px 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  animation: bounceIn 0.6s ease-out;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-accent);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px -5px rgba(56, 161, 105, 0.4);
}

.whatsapp-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

/* SEO Content Section */
.seo-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

.seo-section {
  background: var(--text-light);
  margin-bottom: 3rem;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.seo-section:hover {
  transform: translateY(-5px);
}

.seo-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.seo-section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.seo-section p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.seo-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.seo-section li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 2rem 0;
  background: var(--gradient-primary);
  margin: 2rem 0;
  border-radius: 15px;
}

.cta-section .cta-button {
  margin: 0;
}

/* Map Section */
.map-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.map-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.map-container {
  background: var(--text-light);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

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

/* Footer */
footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #48bb78;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section ul li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #48bb78;
}

.government-links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.government-links a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Micro animações */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .header-content {
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .seo-content {
    padding: 2rem 1rem;
  }

  .seo-section {
    padding: 1.5rem;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-button {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 1rem 2rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .seo-section h2 {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
