/* Blue Titan HVAC - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* Custom Properties */
:root {
  --primary: #2B8AE8;
  --secondary: #1F2937;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
}

.font-pacifico {
  font-family: 'Pacifico', cursive;
}

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

/* Buttons */
.rounded-button {
  border-radius: 8px;
}

/* FAQ Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.active {
  transition: max-height 0.3s ease-in;
}

.faq-toggle {
  cursor: pointer;
}

.faq-toggle .ri-arrow-down-s-line {
  transition: transform 0.3s ease;
}

.faq-toggle .ri-arrow-down-s-line.rotate-180 {
  transform: rotate(180deg);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

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

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slideIn {
  animation: slideIn 0.5s ease-out;
}

/* Hero Sections */
.hero-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #2B8AE8 50%, #3b82f6 100%);
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(43, 138, 232, 0.1), rgba(43, 138, 232, 0.05));
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  transform: translateY(0);
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 138, 232, 0.1);
}

/* Mobile Menu */
.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu-open #mobileMenuOverlay {
  display: block;
}

.mobile-menu-open #mobileMenu {
  transform: translateX(0);
}

/* Dropdown Menu */
.group:hover .group-hover\:visible {
  visibility: visible;
  opacity: 1;
}

.group:hover .group-hover\:translate-y-0 {
  transform: translateY(0);
}

/* FAQ Accordion */
.faq-toggle {
  cursor: pointer;
  user-select: none;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.active {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.faq-toggle .ri-arrow-down-s-line {
  transition: transform 0.3s ease;
}

.faq-toggle .ri-arrow-down-s-line.rotate-180 {
  transform: rotate(180deg);
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Trust Badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.trust-badge:hover {
  background: var(--primary);
  color: white;
}

/* CTA Sections */
.cta-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Area Page Hero */
.area-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.area-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Mobile Responsive Improvements */

/* Touch targets for mobile */
.touch-manipulation {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(43, 138, 232, 0.1);
}

/* Button improvements for mobile */
@media (max-width: 768px) {
  button, .btn, a[class*="bg-"] {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }
}

/* Hero section mobile improvements */
@media (max-width: 768px) {
  .hero-section {
    height: 100svh; /* Use svh for mobile browsers */
    min-height: 600px;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-section h1 span {
    font-size: 1.5rem !important;
    display: block;
    margin-top: 0.5rem;
  }
  
  .hero-section p {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }
}

/* Service page hero improvements */
@media (max-width: 768px) {
  .hero-gradient {
    min-height: 70vh;
    padding: 3rem 0;
  }
  
  .hero-gradient h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-gradient .text-5xl,
  .hero-gradient .text-6xl {
    font-size: 2rem !important;
  }
  
  .hero-gradient .hidden.md\\:block {
    display: none !important;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  .text-xl {
    font-size: 1rem !important;
  }
  
  .text-2xl {
    font-size: 1.25rem !important;
  }
  
  .text-3xl {
    font-size: 1.5rem !important;
  }
  
  .text-4xl {
    font-size: 1.75rem !important;
  }
}

/* Grid improvements for mobile */
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  
  .lg\\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  
  .lg\\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Service card mobile improvements */
@media (max-width: 768px) {
  .service-card {
    padding: 1.5rem !important;
    margin-bottom: 1rem;
  }
  
  .service-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .service-card p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
}

/* Form improvements for mobile */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.875rem !important;
    min-height: 44px;
  }
  
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
  
  .md\\:col-span-2 {
    grid-column: span 1 !important;
  }
}

/* CTA section mobile improvements */
@media (max-width: 768px) {
  .flex-col.sm\\:flex-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .justify-center.md\\:justify-start {
    justify-content: center !important;
  }
  
  .text-center.md\\:text-left {
    text-align: center !important;
  }
}

/* FAQ mobile improvements */
@media (max-width: 768px) {
  .faq-toggle {
    padding: 1rem !important;
    font-size: 1rem !important;
  }
  
  .faq-content {
    padding: 1rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
}

/* Trust indicators mobile */
@media (max-width: 768px) {
  .grid-cols-2.md\\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
  
  .trust-badge {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
  }
}

/* Mobile spacing improvements */
@media (max-width: 768px) {
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .mb-16 {
    margin-bottom: 2rem !important;
  }
  
  .mb-12 {
    margin-bottom: 1.5rem !important;
  }
  
  .gap-8 {
    gap: 1.5rem !important;
  }
  
  .space-y-8 > * + * {
    margin-top: 1.5rem !important;
  }
}

/* Mobile container improvements */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Loading States */
.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
  }
}