/*
Theme Name: S.O.S Persianas Completo
Theme URI: https://consertopersianas.curitiba.br/
Description: Tema WordPress completo e moderno para serviços de conserto e manutenção de persianas e venezianas. Inclui imagens otimizadas, mapa de Curitiba, design responsivo e sistema completo de customização via WordPress Customizer.
Author: MiniMax Agent
Version: 2.0.0
Text Domain: sos-persianas-completo
Domain Path: /languages
Tags: business, responsive, one-page, services, contact-form, whatsapp, customizer, curitiba, persianas
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #6b7280;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== VARIÁVEIS CSS ===== */
:root {
  --sos-blue: #2364e5;
  --sos-red: #ef4343;
  --sos-black: #0a0a0a;
  --sos-white: #ffffff;
  --sos-light-gray: #f8f9fa;
  --sos-gray: #6b7280;
  --sos-dark-gray: #374151;
  --border-radius: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--sos-black);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 900;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--sos-gray);
  margin-bottom: 1rem;
}

/* ===== COMPONENTES REUTILIZÁVEIS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 5rem 0 7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--sos-blue);
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--sos-red);
  color: white;
}

.btn-secondary:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1.5rem 2.5rem;
  font-size: 1.125rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--sos-blue), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* ===== GRID RESPONSIVO ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

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

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== UTILITÁRIOS ===== */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

.text-left {
  text-align: left;
}

.hidden {
  display: none;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* ===== HEADER E NAVEGAÇÃO ===== */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-link {
  color: var(--sos-dark-gray);
  padding: 0.5rem 0;
  position: relative;
}

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

.mobile-nav-link {
  color: var(--sos-dark-gray);
  padding: 1rem;
  width: 100%;
  text-align: center;
}

.mobile-nav-link:hover {
  color: var(--sos-blue);
}

.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SEÇÕES PRINCIPAIS ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.5), transparent);
  z-index: 1;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--sos-red);
  margin-bottom: 2rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  animation: typewriter 2s ease-in-out;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(229, 231, 235, 1);
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes typewriter {
  0% { opacity: 0; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== CARTÕES DE SERVIÇO ===== */
.service-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

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

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgb(219, 234, 254);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--sos-blue);
  color: white;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--sos-blue);
  transition: color 0.3s ease;
}

.service-card:hover .service-icon svg {
  color: white;
}

/* ===== ETAPAS (HOW IT WORKS) ===== */
.step-card {
  background: var(--sos-light-gray);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--sos-blue);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 8px var(--sos-light-gray), var(--shadow-sm);
}

.step-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--sos-blue);
}

/* ===== FAQ ===== */
.faq-item {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sos-black);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--sos-light-gray);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--sos-gray);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

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

/* ===== BOTÃO WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

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

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delayed {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}

.fade-in-delayed.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .section-padding {
    padding: 3rem 0 4rem;
  }
  
  .hero-title,
  .hero-subtitle {
    font-size: 2.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .grid-cols-2,
  .grid-cols-4 {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .md\\:flex {
    display: flex;
  }
  
  .md\\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .lg\\:flex {
    display: flex;
  }
  
  .lg\\:hidden {
    display: none;
  }
}

/* ===== CLASSES AUXILIARES PARA IMAGENS INCLUÍDAS ===== */

/* Imagens otimizadas do tema */
.theme-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Card de serviço com imagem de fundo */
.service-card-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
}

/* Seção hero com imagem de experiência */
.hero-experience-bg {
  background-image: url('assets/images/image_3_fixed.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Container para mapa de cobertura */
.coverage-map-container {
  background-image: url('assets/images/image_2_with_map.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
}

/* Mapa independente de Curitiba */
.curitiba-map {
  background-image: url('assets/images/mapa_curitiba_80km.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
}

/* Card de processo com ícone */
.process-card-icon {
  background-image: url('assets/images/image_fixed.png');
  background-size: cover;
  background-position: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}

/* Responsivo para imagens */
@media (max-width: 768px) {
  .hero-experience-bg {
    background-attachment: scroll;
  }
  
  .coverage-map-container,
  .curitiba-map {
    min-height: 300px;
  }
}

/* Acessibilidade - melhor contraste */
.high-contrast-text {
  color: #1f2937;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Utilitários para imagens */
.img-responsive {
  max-width: 100%;
  height: auto;
}

.img-centered {
  display: block;
  margin: 0 auto;
}

.img-rounded {
  border-radius: 8px;
}

.img-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
