/* Custom CSS for RepairWalla */

/* Root variables for consistent theming */
:root {
    --primary-color: #0066cc;
    --secondary-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced buttons */
.btn {
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Card enhancements */
.card {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation enhancements */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004499 100%);
    min-height: 70vh;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Icon styling */
.fa-2x, .fa-3x {
    transition: var(--transition);
}

.fa-2x:hover, .fa-3x:hover {
    transform: scale(1.1);
}

/* Form enhancements */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Alert enhancements */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Accordion styling */
.accordion-button {
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Progress indicators */
.progress {
    height: 8px;
    border-radius: 4px;
}

/* Loading animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Accessibility improvements */
.btn:focus, .form-control:focus, .form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom utility classes */
.shadow-custom {
    box-shadow: var(--box-shadow);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Star rating */
.star-rating {
    color: #ffc107;
}

/* Service card hover effects */
.service-card {
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Brand logo styling */
.brand-logo {
    filter: grayscale(100%);
    transition: var(--transition);
}

.brand-logo:hover {
    filter: grayscale(0%);
}

/* CTA section styling */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Testimonial styling */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
}

/* Emergency banner */
.emergency-banner {
    background: linear-gradient(90deg, var(--danger-color), #e74c3c);
    animation: pulse 3s infinite;
}

/* WhatsApp button styling */
.whatsapp-btn {
    background: #25d366;
    border-color: #25d366;
}

.whatsapp-btn:hover {
    background: #1da851;
    border-color: #1da851;
}

/* Phone link styling */
a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}

a[href^="tel:"]:hover {
    color: var(--primary-color);
}

/* Service area grid */
.service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Pricing table enhancements */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* FAQ section styling */
.faq-section .accordion-item {
    border: none;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

/* Loading spinner */
.spinner-custom {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-custom {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}
 
    #callButton:hover {
      background-color: #0056b3;
    }
    #thankYou {
      margin-top: 40px;
      font-size: 18px;
      color: green;
      display: none;
    }
    /* ===== Floating Buttons ===== */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.call-btn {
  background-color: #0d6efd;
  color: #fff;
  border: none;
}

.call-btn:hover {
  background-color: #0b5ed7;
  transform: translateY(-3px);
}

.whatsapp-btn {
  background-color: #25d366;
  color: #fff;
  border: none;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: translateY(-3px);
}

.floating-buttons i {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .floating-buttons {
    flex-direction: row;
    bottom: 15px;
    right: 15px;
    left: 15px;
    justify-content: center;
    gap: 10px;
  }

  .floating-buttons .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .floating-buttons i {
    margin-right: 5px;
    font-size: 1rem;
  }
}