/* ClimaTech Pro - Global Styles */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #ffffff;
}

/* CSS Variables - HVAC Color Palette */
:root {
  --hvac-blue: #0ea5e9;
  --hvac-deep-blue: #0369a1;
  --hvac-darker-blue: #1e40af;
  --hvac-orange: #f97316;
  --hvac-green: #10b981;
  --hvac-gray: #6b7280;
  --hvac-light-gray: #f3f4f6;
  --hvac-dark-gray: #374151;
  --hvac-white: #ffffff;
  --hvac-black: #111827;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* MOBILE IMPROVEMENTS - APENAS ADIÇÕES SEM QUEBRAR DESKTOP */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }
  
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .btn-primary-large,
  .btn-secondary-large {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Lucide Icons - Melhorar Espaçamento Global */
[data-lucide] {
  flex-shrink: 0;
  margin: 0 0.1rem;
}

.w-4.h-4 {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem;
  min-height: 1rem;
}

.w-5.h-5 {
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem;
  min-height: 1.25rem;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.ml-2 {
  margin-left: 0.5rem !important;
}

/* Products Grid - NOVO DESIGN COMPACTO E ELEGANTE */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Classe para centralizar o estado vazio */
.products-grid.is-empty {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Product Card - REDESENHADO COMPACTO E ELEGANTE */
.product-card-detailed {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  border: 1px solid #e5e7eb;
  height: 520px;
  display: flex;
  flex-direction: column;
}

.product-card-detailed.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card-detailed:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

/* Image Container - MUITO MAIOR PARA CLAREZA TOTAL */
.product-image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-detailed:hover .product-image {
  transform: scale(1.05);
}

/* Badges - MENORES E MAIS LIMPOS */
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #f59e0b;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-efficiency {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #10b981;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Content - MAIS COMPACTO */
.product-content-detailed {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-header {
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-category {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.product-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4em;
  flex-shrink: 0;
}

/* Specs - LAYOUT FLEXÍVEL E ESPAÇADO */
.product-specs-simple {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.spec-item-simple {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  padding: 0.25rem 0;
}

/* Features - TAGS MENORES */
.product-features-simple {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: auto;
  min-height: 2rem;
}

.feature-tag-simple {
  background: #eff6ff;
  color: #3b82f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid #dbeafe;
}

/* Action Button - MAIS ELEGANTE */
.btn-quote-request {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: 1rem;
  flex-shrink: 0;
}

.btn-quote-request:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

/* Empty State - Quando não há produtos */
.products-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--hvac-gray);
}

.products-empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--hvac-dark-gray);
}

.products-empty-state p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.product-card-loading {
  animation: pulse 2s infinite;
}

/* Animação de entrada dos produtos */
.product-card-detailed {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card-detailed.visible {
  opacity: 1;
  transform: translateY(0);
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

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

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

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

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

.top-20 {
  top: 5rem;
}

.top-40 {
  top: 10rem;
}

.bottom-20 {
  bottom: 5rem;
}

.bottom-40 {
  bottom: 10rem;
}

.left-10 {
  left: 2.5rem;
}

.left-1\/4 {
  left: 25%;
}

.right-20 {
  right: 5rem;
}

.right-1\/3 {
  right: 33.333333%;
}

.w-8 {
  width: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-20 {
  width: 5rem;
}

.w-24 {
  width: 6rem;
}

.w-28 {
  width: 7rem;
}

.w-32 {
  width: 8rem;
}

.w-full {
  width: 100%;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-20 {
  height: 5rem;
}

.h-24 {
  height: 6rem;
}

.h-28 {
  height: 7rem;
}

.h-32 {
  height: 8rem;
}

.h-full {
  height: 100%;
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-90 {
  opacity: 0.9;
}

.overflow-hidden {
  overflow: hidden;
}

.pointer-events-none {
  pointer-events: none;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Color Classes */
.text-hvac-blue {
  color: var(--hvac-blue);
}

.text-hvac-deep-blue {
  color: var(--hvac-deep-blue);
}

.text-hvac-orange {
  color: var(--hvac-orange);
}

.text-hvac-green {
  color: var(--hvac-green);
}

.text-white {
  color: white;
}

.bg-hvac-blue {
  background-color: var(--hvac-blue);
}

.bg-hvac-orange {
  background-color: var(--hvac-orange);
}

.bg-hvac-green {
  background-color: var(--hvac-green);
}

/* Background and Layout */
.min-h-screen {
  min-height: 100vh;
}

.bg-gradient {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e0e7ff 100%);
}

.hvac-mesh-bg {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--hvac-blue), var(--hvac-darker-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Animations */
@keyframes propeller-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes propeller-ultra-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-propeller-slow {
  animation: propeller-slow 6s linear infinite;
  will-change: transform;
}

.animate-propeller-ultra-slow {
  animation: propeller-ultra-slow 12s linear infinite;
  will-change: transform;
}

.animate-slide-in-left {
  animation: slide-in-left 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s ease-out forwards;
}

/* Responsive Design - PRODUTOS MOBILE */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card-detailed {
    height: 480px;
  }
  
  .product-image-container {
    height: 240px;
  }
  
  .product-content-detailed {
    padding: 1rem;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  
  .sm\:w-auto {
    width: auto;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Flex Layout */
.flex-col {
  flex-direction: column;
}

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

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

/* Common Button Base Styles */
button {
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Icon Sizing */
.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

/* Additional utility classes for responsive images */
img {
  max-width: 100%;
  height: auto;
}
