/* Custom CSS for Ground Ready Services */

/* Override Bootstrap primary color if needed */
:root {
  --bs-primary: #0d6efd;
  --bs-primary-rgb: 13, 110, 253;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom button hover effects */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Card hover effects */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Service icons animation */
.service-icon {
  transition: all 0.3s ease;
}

.service-icon:hover {
  transform: scale(1.1);
}

/* Form validation styles */
.form-control:invalid {
  border-color: #dc3545;
}

.form-control:valid {
  border-color: #28a745;
}

/* Responsive image styling for services */
.service-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 0.75rem;
}

@media (max-width: 768px) {
  .service-image {
    height: 250px;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1200px) {
  .service-image {
    height: 400px;
  }
}

/* Service content blocks styling */
.service-content-block {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-content-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.service-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.service-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Google Maps responsive embedding */
.map-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-container {
    padding-bottom: 75%; /* More square aspect ratio on mobile */
  }
}

/* Testimonial cards */
.testimonial-card {
  border-left: 4px solid var(--bs-primary);
}

/* Footer social links */
.footer-social a {
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--bs-primary) !important;
}

/* Hero section background */
.hero-section {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
}

/* Section padding responsive */
@media (max-width: 768px) {
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Custom form styling */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: .65;
  transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Loading animation for form submission */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Image responsive with aspect ratio */
.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Service category grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Custom navbar active state */
.navbar-nav .nav-link.active {
  color: var(--bs-primary) !important;
  font-weight: 600;
}

/* Quote form steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Progress bar for multi-step form */
.progress-bar-custom {
  height: 4px;
  background-color: var(--bs-primary);
  transition: width 0.3s ease;
}

/* Map container */
.map-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Service area badges */
.service-area-badge {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--bs-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Testimonial star ratings */
.star-rating {
  color: #ffc107;
  font-size: 1.25rem;
}

/* Partner section icons */
.partner-icon {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.partner-icon:hover {
  opacity: 1;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .alert {
    display: none !important;
  }
  
  .container {
    max-width: none !important;
  }
}
