/* ================================
   LEGAL LADY - CUSTOM STYLES
   Bootstrap 5 Compatible
   ================================ */

/* CSS Custom Properties for Brand Colors */
:root {
  --primary-color: #0B3A53;     /* Navy Blue */
  --secondary-color: #0FA3B1;   /* Teal */
  --accent-color: #F5F7FA;      /* Light Gray */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base Typography */
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.2;
}

p {
  line-height: 1.5;
}

/* Custom Bootstrap Color Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
  background-color: var(--secondary-color); 
  border-color: var(--secondary-color); 
}
.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  background-color: #0e8a96;
  border-color: #0e8a96;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* Navbar Enhancements */
.navbar-brand {
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--accent-color) 0%, #e8f4f8 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23E0E7ED" stroke-width="0.5" opacity="0.3"/></svg>') repeat;
  opacity: 0.1;
}

/* Card Enhancements */
.service-card,
.testimonial-card,
.blog-card,
.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.service-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Trust Badges */
.trust-badge {
  padding: 2rem;
  transition: transform 0.3s ease;
}

.trust-badge:hover {
  transform: scale(1.05);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1eb854;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Blog Specific Styles */
.blog-item {
  transition: opacity 0.3s ease;
}

.blog-item.hidden {
  display: none;
}

#categoryFilters .btn.active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(15, 163, 177, 0.25);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: var(--success-color);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: var(--danger-color);
}

/* Contact Page Specific */
.contact-icon {
  transition: transform 0.3s ease;
}

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

.business-hours .row {
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}

.business-hours .row:last-child {
  border-bottom: none;
}

/* Footer Enhancements */
footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color) !important;
}

.social-links a {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
}

/* Utility Classes */
.shadow-soft {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.rounded-lg {
  border-radius: 0.75rem !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.slide-up {
  animation: slideUp 0.6s ease-out;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Print Styles for Services Page */
@media print {
  .navbar,
  .whatsapp-float,
  .back-to-top,
  footer,
  .btn {
    display: none !important;
  }
  
  .service-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    color: black !important;
  }
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
  
  .trust-badge {
    padding: 1rem;
  }
  
  .service-card .card-body,
  .testimonial-card .card-body,
  .contact-card .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section .display-4 {
    font-size: 1.75rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  #categoryFilters {
    justify-content: center;
  }
  
  #categoryFilters .btn-sm {
    margin-bottom: 0.5rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .testimonial-card,
  .blog-card,
  .contact-card,
  .trust-badge,
  .whatsapp-float,
  .back-to-top {
    transition: none;
  }
  
  .fade-in,
  .slide-up {
    animation: none;
  }
}

/* Focus Indicators for Better Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus,
.navbar-brand:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0e8a96;
}