/* Tailwind CSS для Covered Bridge Motor Werks */
/* Custom CSS для автосервиса с clean, professional, and trustworthy modern style */

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

/* Cookie-баннер стили */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-banner h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.cookie-consent-banner p {
  margin: 0 0 15px 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-banner .cookie-options {
  margin: 15px 0;
}

.cookie-consent-banner .cookie-option {
  margin: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cookie-consent-banner .btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cookie-consent-banner .btn-accept {
  background: #10b981;
  color: white;
}

.cookie-consent-banner .btn-accept:hover {
  background: #059669;
  transform: translateY(-1px);
}

.cookie-consent-banner .btn-decline {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-banner .btn-decline:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cookie-consent-banner .cookie-links {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-consent-banner .cookie-links a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-consent-banner .cookie-links a:hover {
  color: #dbeafe;
}

/* Адаптивность cookie-баннера */
@media (max-width: 480px) {
  .cookie-consent-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .cookie-consent-banner .cookie-buttons {
    flex-direction: column;
  }
}

/* Кастомные утилиты для автосервиса */
.automotive-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

.automotive-text-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.automotive-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.automotive-card-dark {
  background: rgba(30, 64, 175, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.automotive-card-dark strong,
.automotive-card-dark b {
  color: inherit;
}

/* Анимации для кнопок */
.automotive-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.automotive-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.automotive-btn:hover::before {
  left: 100%;
}

.automotive-btn-primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.automotive-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.automotive-btn-secondary {
  background: transparent;
  color: #1e40af;
  border: 2px solid #3b82f6;
}

.automotive-btn-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

/* Hero section specific button styles */
section[style*="background-image"] .automotive-btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

section[style*="background-image"] .automotive-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

section[style*="background-image"] .automotive-btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #1e40af;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

section[style*="background-image"] .automotive-btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  color: #1e40af;
  border: 2px solid white;
  transform: translateY(-2px);
}

/* Hero секция стили */
.hero-overlay {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(59, 130, 246, 0.7) 100%);
}

/* Service cards */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.service-card img {
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

/* Team cards */
.team-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

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

/* Testimonial cards */
.testimonial-card {
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 60px;
  color: #3b82f6;
  font-weight: bold;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  background: #f8fafc;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
}

.faq-question:hover {
  background: #e2e8f0;
  color: #1e40af;
}

.faq-question.active {
  background: #1e40af;
  color: white;
}

.faq-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  font-weight: bold;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: white;
  color: #64748b;
  line-height: 1.6;
}

.faq-answer.active {
  max-height: 500px;
  padding: 20px;
}

/* Contact form */
.contact-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

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

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #374151;
}

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

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

.form-input.error {
  border-color: #ef4444;
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-item {
  display: block;
  padding: 15px 20px;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.mobile-menu-item:hover {
  background: #f9fafb;
  color: #1e40af;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .automotive-btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-overlay h1 {
    font-size: 2.5rem;
  }
  
  .hero-overlay p {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  
  .hero-overlay p {
    font-size: 1rem;
  }
  
  .service-card,
  .team-card,
  .testimonial-card {
    margin-bottom: 20px;
  }
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .cookie-consent-banner,
  .mobile-menu,
  .hamburger {
    display: none !important;
  }
}