/*
Theme Name: Vivire Marketing
Theme URI: https://viviremarketing.com.br
Description: Tema WordPress customizado e otimizado para a Vivire Marketing, migrado do Astro, com suporte nativo a Markdown e SEO Local avançado.
Version: 1.0.0
Author: Vivire Marketing
Author URI: https://viviremarketing.com.br
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viviremarketing
*/

/* ==========================================================================
   Resets e Variáveis Globais (extraídos do Layout.astro)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #47005e;
  --primary-dark: #3a004b;
  --secondary: #000000;
  --accent: #1a1a1a;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --gray: #6C757D;
  --success: #28A745;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background: var(--white);
  overflow-x: hidden;
  padding-top: 80px; /* Compensa o Header fixo */
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--white);
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Header / Menu de Navegação (extraído do Header.astro)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

header .logo {
  display: block;
}

header .logo img {
  height: 50px;
  width: auto;
}

header .nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

header .nav-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

header .nav-links a:hover {
  color: var(--primary);
}

@media (max-width: 968px) {
  header .nav-links {
    display: none;
  }
}

/* ==========================================================================
   Footer (extraído do Footer.astro)
   ========================================================================== */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 30px;
}

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

footer .logo {
  display: block;
  margin-bottom: 15px;
}

footer .logo img {
  height: 40px;
  width: auto;
}

footer .footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

footer .footer-links h4, footer .footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--white);
}

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

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

footer .footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

footer .footer-contact p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

footer .footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}

footer .footer-seo-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

footer .footer-seo-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.3s;
}

footer .footer-seo-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  footer .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==========================================================================
   Botão do WhatsApp Flutuante (WhatsAppFloat.astro)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37,211,102,0.5);
}

/* ==========================================================================
   Formulário de Leads (LeadForm.astro)
   ========================================================================== */
.lead-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.lead-form h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.lead-form > p {
  color: var(--gray);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E9ECEF;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
  font-family: 'Inter', sans-serif;
  background: var(--white);
}

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

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

.form-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 16px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 8px;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-note {
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ==========================================================================
   Home e Seções Globais (index.astro)
   ========================================================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

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

.hero-text p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.services {
  padding: 80px 0;
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 35px;
  border-radius: 16px;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.service-features {
  list-style: none;
  margin-bottom: 15px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  text-align: left;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.service-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.local {
  padding: 80px 0;
}

.local-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.local-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.local-text p {
  color: var(--gray);
  margin-bottom: 25px;
}

.local-features {
  list-style: none;
}

.local-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-weight: 500;
}

.local-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
}

.local-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.testimonials {
  padding: 80px 0;
  background: var(--secondary);
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-card p {
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.faq {
  padding: 80px 0;
  background: var(--light);
}

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

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 20px 25px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: var(--gray);
}

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

.faq-item.active .faq-question::after {
  content: '-';
}

.orcamento {
  padding: 80px 0;
  background: var(--light);
}

.orcamento-content {
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Páginas de Bairro e Serviços Localizados
   ========================================================================== */
.bairro-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  text-align: center;
  color: var(--white);
}

.bairro-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.bairro-hero h1 span {
  color: var(--primary);
}

.bairro-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 30px;
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.services-section {
  padding: 60px 0;
}

.services-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.bairro-cta {
  padding: 60px 0;
  background: var(--primary);
  text-align: center;
  color: var(--white);
}

.bairro-cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.bairro-cta p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.bairro-cta .cta-btn {
  background: var(--white);
  color: var(--primary);
}

/* Landing Pages de Serviço + Bairro */
.service-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.service-hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.main-content h2, .main-content h3 {
  margin-bottom: 20px;
  margin-top: 30px;
}

.main-content p {
  margin-bottom: 20px;
  color: #333;
}

.main-content ul {
  margin-bottom: 25px;
  list-style: none;
}

.main-content ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.trust-card {
  background: var(--light);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 25px;
}

.trust-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.trust-card p {
  font-size: 0.95rem;
  color: var(--gray);
}

.keywords {
  font-size: 0.85rem !important;
  font-style: italic;
}

.service-cta {
  padding: 60px 0;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.service-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.service-cta p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.service-cta .cta-btn {
  background: var(--white);
  color: var(--primary);
}

.other-neighborhoods {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.other-neighborhoods h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.other-neighborhoods p {
  color: var(--gray);
  margin-bottom: 40px;
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.neighborhood-card {
  background: var(--light);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.neighborhood-card:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==========================================================================
   Página de Contato
   ========================================================================== */
.contact-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  text-align: center;
  color: var(--white);
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.contact-hero h1 span {
  color: var(--primary);
}

.contact-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--light);
  padding: 25px;
  border-radius: 12px;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.info-card p {
  color: var(--gray);
}

.contact-map {
  padding: 0 0 80px;
}

.contact-map h2 {
  text-align: center;
  margin-bottom: 40px;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Media Queries Responsivas Gerais
   ========================================================================== */
@media (max-width: 968px) {
  body {
    padding-top: 70px;
  }
  
  .hero-content, .local-content, .contact-grid, .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
}
