/* Enhanced Design for AI-Powered Commercial Roadside Assistance */

:root {
  /* Modern, tech-oriented color scheme */
  --primary: #2563eb;     /* Bright blue - primary brand color */
  --primary-dark: #1e40af; /* Darker blue for hover states */
  --secondary: #10b981;   /* Teal/green for success states and accents */
  --accent: #7c3aed;      /* Purple for special highlights, AI features */
  --dark: #111827;       /* Almost black for backgrounds */
  --light: #f9fafb;      /* Off-white for backgrounds */
  --gray-100: #f3f4f6;   /* Lightest gray */
  --gray-200: #e5e7eb;   /* Light gray */
  --gray-300: #d1d5db;   /* Medium-light gray */
  --gray-600: #4b5563;   /* Medium-dark gray */
  --gray-800: #1f2937;   /* Dark gray */
  --danger: #ef4444;     /* Red for alerts */
  --warning: #f59e0b;    /* Amber for warnings */
}

/* Global styles */
body {
  font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--light);
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1.5rem;
}

/* Header and navigation */
.navbar {
  background-color: var(--light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.3s ease;
  margin: 0 0.75rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, 
.nav-link:focus {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* Enhanced buttons */
.btn {
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

/* Hover effect for buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.7s ease;
}

.btn:hover::before {
  left: 100%;
}

/* Call-to-action sections */
.cta-section {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0;
  border-radius: 0.5rem;
  margin: 3rem 0;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section .btn-light {
  background-color: white;
  color: var(--primary);
  font-weight: 600;
}

/* Cards with modern style */
.card {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Service feature boxes */
.feature-box {
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Hero section enhancements */
.hero-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* AI-themed decorative elements */
.ai-circuit-pattern {
  position: relative;
}

.ai-circuit-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="200" height="200" fill="none"/><path d="M20 20 L180 20 L180 180 L20 180 Z" stroke="rgba(124,58,237,0.1)" stroke-width="2" fill="none"/><circle cx="20" cy="20" r="5" fill="rgba(124,58,237,0.2)"/><circle cx="180" cy="20" r="5" fill="rgba(124,58,237,0.2)"/><circle cx="180" cy="180" r="5" fill="rgba(124,58,237,0.2)"/><circle cx="20" cy="180" r="5" fill="rgba(124,58,237,0.2)"/><path d="M50 20 L50 180" stroke="rgba(124,58,237,0.1)" stroke-width="1" fill="none"/><path d="M80 20 L80 180" stroke="rgba(124,58,237,0.1)" stroke-width="1" fill="none"/><path d="M110 20 L110 180" stroke="rgba(124,58,237,0.1)" stroke-width="1" fill="none"/><path d="M140 20 L140 180" stroke="rgba(124,58,237,0.1)" stroke-width="1" fill="none"/><path d="M20 50 L180 50" stroke="rgba(124,58,237,0.1)" stroke-width="1" fill="none"/><path d="M20 80 L180 80" stroke="rgba(124,58,237,0.1)" stroke-width="1" fill="none"/><path d="M20 110 L180 110" stroke="rgba(124,58,237,0.1)" stroke-width="1" fill="none"/><path d="M20 140 L180 140" stroke="rgba(124,58,237,0.1)" stroke-width="1" fill="none"/></svg>');
  background-size: 100px 100px;
  opacity: 0.1;
  z-index: -1;
}

/* Tech-style indicator elements */
.tech-indicator {
  position: relative;
  padding-left: 1.5rem;
}

.tech-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* Glowing pulsating accents for AI elements */
.ai-accent {
  position: relative;
}

.ai-accent::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 rgba(124, 58, 237, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

/* Tech-style borders */
.tech-border {
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  position: relative;
  padding: 2rem;
  margin: 1rem 0;
}

.tech-border::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 20px;
  width: 50px;
  height: 10px;
  background-color: var(--light);
}

.tech-border::after {
  content: attr(data-label);
  position: absolute;
  top: -10px;
  left: 30px;
  padding: 0 10px;
  background-color: var(--light);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Enhanced search styles */
.search-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-control-lg, .form-select-lg {
  height: 55px !important;
  font-size: 16px !important;
  border: 2px solid #dee2e6 !important;
}

.form-control-lg:focus, .form-select-lg:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Location button styles for search box */
.location-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  z-index: 10;
}

.location-button:hover {
  color: var(--primary);
}

.search-feedback {
  background-color: #e6f7ff;
  border: 1px solid #b3e0ff;
  border-radius: 5px;
  padding: 10px 15px;
  margin-top: 10px;
  font-size: 14px;
  display: none;
}

/* Search box with transition effect */
.location-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.location-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Make search form more mobile-friendly */
  #global-search-form {
    flex-direction: column;
  }
  
  #global-search-form .btn {
    margin-top: 10px;
    width: 100%;
  }
  
  .search-container {
    padding: 1.5rem !important;
  }
}
@media (max-width: 576px) {
  .search-container .form-control,
  .search-container .form-select,
  .search-container .btn {
    font-size: 16px;
    height: auto;
    padding: 10px;
  }

  .search-container .input-group {
    flex-direction: column;
  }

  .search-container .btn {
    margin-top: 10px;
    width: 100%;
  }
}

/* =============================================== */
/* NEW STYLES BELOW - Account access and footer updates */
/* =============================================== */

/* Account access section styles */
.account-access-section {
  padding: 15px 0;
  background-color: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.account-access-section .btn {
  margin: 0 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.account-access-section .btn:hover {
  transform: translateY(-2px);
}

.account-access-section .btn-outline-dark:hover {
  background-color: var(--dark);
  color: white;
}

.account-access-section .btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

.account-access-section .btn-success {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.account-access-section .btn-success:hover {
  background-color: #0da271;
  border-color: #0da271;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.5);
}

/* Footer styles with yellow accents */
footer h4, 
footer h5,
.footer h4,
.footer h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--warning); /* Yellow border using your warning color variable */
  padding-bottom: 10px;
  display: inline-block;
}

/* Footer links with hover effects */
footer a:hover,
.footer a:hover {
  color: var(--warning); /* Yellow hover text */
  text-decoration: underline;
}

/* Footer social icon hover effect */
.social-icons a:hover,
.footer-social a:hover {
  color: var(--warning); /* Yellow on hover */
  transform: translateY(-3px);
}

/* Footer bottom links */
.footer-bottom a:hover {
  color: var(--warning); /* Yellow hover state for footer bottom links */
}

/* Emergency service red box with clean styling */
.emergency-service {
  background-color: var(--danger);
  padding: 1.5rem;
  border-radius: 8px;
  color: white;
}

.emergency-service h3 {
  color: white;
  border-bottom: none;
}

.emergency-service a.phone {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  background: rgba(255,255,255,0.2);
  padding: 8px 15px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.emergency-service a.phone:hover {
  background: rgba(255,255,255,0.3);
  color: white;
  text-decoration: none;
}

/* Service area badges with yellow highlight for nationwide */
.service-area {
  display: inline-block;
  padding: 5px 15px;
  background-color: rgba(255,255,255,0.1);
  color: white;
  border-radius: 20px;
  margin: 5px;
  transition: all 0.3s ease;
}

.service-area:hover {
  background-color: var(--warning);
  color: var(--dark);
  text-decoration: none;
}

.nationwide {
  background-color: var(--warning);
  color: var(--dark);
}

/* Enhanced footer based on your existing footer image */
.footer {
  background-color: #004080; /* Deep blue to match your site */
  color: #fff;
  padding: 60px 0 20px;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--warning);
  text-decoration: none;
  transform: translateX(3px);
}

.footer-social a {
  color: #ffffff;
  margin-right: 15px;
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
}

.footer-social a:hover {
  transform: translateY(-3px);
  color: var(--warning);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}
/* Top dropdown menu styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 0;
}

.dropdown-menu a,
.dropdown-menu button {
    padding: 12px 20px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* Admin login button styling */
.dropdown-menu a[href*="admin-login"],
.dropdown-menu a:has(i.fas.fa-user-shield),
.dropdown-menu .admin-login {
    background-color: #f8f9fa;
    color: #343a40 !important;
    border-bottom: 1px solid #eee;
}

/* Customer registration button styling */
.dropdown-menu a[href*="customer-register"],
.dropdown-menu a:has(i.fas.fa-truck-moving),
.dropdown-menu .customer-registration {
    background-color: #e9ecef;
    color: #0d6efd !important;
    border-bottom: 1px solid #ddd;
}

/* Vendor portal button styling */
.dropdown-menu a[href*="vendor-portal"],
.dropdown-menu a:has(i.fas.fa-tools),
.dropdown-menu .vendor-portal {
    background-color: #198754;
    color: white !important;
}

/* Hover effects for dropdown items */
.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #f8f9fa;
    border-left: 3px solid #ffd700;
}

/* Account portal header styling */
.account-portal-header {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.account-portal-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-portal-text {
    font-weight: 600;
    color: #343a40;
}

.account-portal-buttons a {
    margin-left: 10px;
    text-decoration: none;
}
