/* Jb Heating & Cooling - Custom Styles */
/* Clean, Professional, Trustworthy Modern Design */

/* Сброс для strong/b тегов - наследуют цвет родителя */
[class*="text-"] strong,
[class*="text-"] b,
[style*="color"] strong,
[style*="color"] b,
.text-white strong, .text-white b,
.text-light strong, .text-light b {
  color: inherit;
}

/* Кастомные цвета для HVAC тематики */
:root {
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --warm-gray: #f3f4f6;
  --cool-gray: #6b7280;
  --trust-green: #10b981;
  --professional-dark: #1f2937;
}

/* Основные утилитарные классы */
.climate-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.trust-gradient {
  background: linear-gradient(135deg, var(--trust-green) 0%, var(--accent-cyan) 100%);
}

.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Hero секция стили */
.hero-climate {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(6, 182, 212, 0.85) 100%);
}

/* Карточки услуг */
.service-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Экстренная услуга */
.emergency-service {
  border: 2px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

.emergency-service:hover {
  border-color: rgb(220, 38, 38);
}
.hover\:bg-red-50:hover {
  background-color: rgba(220, 38, 38, 0.5) !important;
}

.hover\:bg-blue-50:hover {
  background-color: var(--primary-blue) !important;
}

/* Команда */
.team-member {
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Процесс установки */
.process-step {
  position: relative;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
}

/* Бренд карточки */
.brand-card {
  transition: all 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Преимущества */
.benefit-card {
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
}

/* FAQ аккордеон */
.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  transition: background-color 0.3s ease;
}

.faq-answer {
  transition: all 0.3s ease;
}

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

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

/* Экстренная карточка */
.emergency-card {
  transition: all 0.3s ease;
  position: relative;
}

.emergency-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Советы по безопасности */
.safety-tip {
  transition: all 0.3s ease;
}

.safety-tip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Кнопки */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
}

.btn-accent {
  background: var(--trust-green);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
}

.btn-accent:hover {
  background: #059669;
  color: white;
  text-decoration: none;
}

/* Секции */
.section-climate {
  padding: 80px 0;
}

/* Grid layouts */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 60px;
  color: var(--accent-cyan);
  font-family: serif;
  line-height: 1;
}

/* Формы */
.form-climate {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--professional-dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Cookie Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--professional-dark);
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 500px;
  animation: slideUp 0.5s ease-out;
}

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

.cookie-banner-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.cookie-banner-text {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.cookie-accept {
  background: var(--trust-green);
  color: white;
}

.cookie-accept:hover {
  background: #059669;
}

.cookie-decline {
  background: #6b7280;
  color: white;
}

.cookie-decline:hover {
  background: #4b5563;
}

/* Навигация */
.nav-climate {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-climate.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Мобильное меню */
.mobile-menu {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 50;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  transform: translateY(0);
}

/* Footer */
.footer-climate {
  background: var(--professional-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* WCAG AA Accessibility - Контрастность для лучшей читабельности */
.text-accessible-cyan {
  color: #0891b2; /* cyan-600 - контраст 4.5:1 на белом */
}

/* Улучшенная контрастность для интерактивных элементов */
.interactive-link {
  color: #2563eb; /* blue-600 - контраст 5.7:1 */
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s ease;
}

.interactive-link:hover {
  text-decoration-color: currentColor;
}

.interactive-link:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .section-climate {
    padding: 60px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cookie-consent-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  
  .btn-primary, .btn-secondary, .btn-accent {
    min-width: 120px;
    padding: 10px 20px;
  }
  
  /* Исправление для iOS Safari */
  .hero-climate {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .form-climate {
    padding: 20px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
  
  .testimonial-card::before {
    font-size: 40px;
  }
}

/* Дополнительные стили для доступности */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}