﻿/* ==========================================================================
   CLIMATIZAR SERRA GAÚCHA - STYLESHEET PRINCIPAL
   Design System Ultra-Moderno, Glassmorphism e Micro-Interações
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --color-navy-950: #040914;
  --color-navy-900: #071120;
  --color-navy-800: #0b1a30;
  --color-navy-700: #122847;
  --color-navy-600: #1e3a64;
  
  --color-cyan-400: #22d3ee;
  --color-cyan-500: #06b6d4;
  --color-cyan-600: #0891b2;
  
  --color-blue-500: #0ea5e9;
  --color-blue-600: #0284c7;
  --color-blue-700: #0369a1;
  
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  
  --color-green-whatsapp: #25D366;
  --color-green-whatsapp-dark: #128C7E;
  
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 20px 40px -15px rgba(6, 182, 212, 0.12);
  --shadow-glow-cyan: 0 0 35px -5px rgba(6, 182, 212, 0.4);
  --shadow-glow-green: 0 0 30px -5px rgba(37, 211, 102, 0.45);
}

/* Base Reset & Smooth Scroll */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0b1a30;
}
::-webkit-scrollbar-thumb {
  background: #0284c7;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Tipografia de Destaque */
.font-display {
  font-family: var(--font-display);
}

/* Efeito de Gradiente de Texto */
.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-dark {
  background: linear-gradient(135deg, #071120 0%, #1e3a64 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(7, 17, 32, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-dark {
  background: rgba(11, 26, 48, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.07);
}

.glass-card-accent {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(14, 165, 233, 0.03) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Botões com Micro-interações */
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(6, 182, 212, 0.6);
  filter: brightness(1.08);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1eb956 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px -4px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.6);
  filter: brightness(1.05);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Efeito Shimmer em Botões */
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transform: rotate(30deg) translateX(-100%);
  animation: shimmerEffect 4.5s infinite;
}

@keyframes shimmerEffect {
  0% { transform: rotate(30deg) translateX(-100%); }
  25%, 100% { transform: rotate(30deg) translateX(100%); }
}

/* Animações Flutuantes e Pulso */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 35px rgba(37, 211, 102, 0.85), 0 0 10px rgba(37, 211, 102, 0.5); }
}

.pulse-whatsapp {
  animation: pulseGlow 2.5s infinite;
}

/* Ripple de Ondas de Ar */
.air-ripple {
  position: relative;
}
.air-ripple::before, .air-ripple::after {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  animation: airWave 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  opacity: 0;
  pointer-events: none;
}
.air-ripple::after {
  animation-delay: 1.5s;
}

@keyframes airWave {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 3D Tilt Card Container */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.tilt-inner {
  transform: translateZ(30px);
}

/* Sliders Personalizados para o Simulador de Climatização */
input[type=range].custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.3s;
}

input[type=range].custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0284c7;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

input[type=range].custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #06b6d4;
}

input[type=range].custom-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0284c7;
  border: 3px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

/* Efeito de Fluxo de Ar no Hero (Canvas) */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Badges e Tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Accordion Smooth Transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-content.active {
  max-height: 500px;
  opacity: 1;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Efeito de Grid de Engenharia de Fundo */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-grid-light {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
}

/* Modal de Contato Rápido / WhatsApp */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 32, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}

/* Custom Scroll reveal class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade refinada */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
  }
}
