@charset "UTF-8";

/* Import Bootstrap 5 CSS */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Custom CSS for First Class Utilities - Bootstrap 5 Compatible */

/* Bootstrap customizations */
:root {
  --bs-primary: #F36A00;
  --bs-primary-rgb: 243, 106, 0;
  --bs-font-sans-serif: "Montserrat", sans-serif;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: background-image 1s ease-in-out;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Additional text contrast enhancement */
.hero-content::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -2rem;
  right: -2rem;
  bottom: -2rem;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
  z-index: -1;
  border-radius: 20px;
}

/* Hero text animations */
.hero-title {
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.2s both;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
  animation: fadeInUp 1s ease-out 0.4s both;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

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

.hero1 {
  background-image: url("/img/headerimages1.webp");
}

.hero2 {
  background-image: url("/img/headerimages2.webp");
}

.hero3 {
  background-image: url("/img/headerimages3.webp");
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-bg {
    min-height: 80vh; /* Reduced height since form is first */
  }
  
  .hero-content {
    text-align: center !important;
    padding: 2rem 0;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
    min-height: 56px; /* Better touch target */
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .navbar-brand img {
    max-height: 70px;
  }
  
  /* Improved mobile navigation */
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: rgba(40, 167, 69, 0.1);
  }
  
  .navbar-nav .btn {
    margin-top: 1rem;
    min-height: 50px;
  }
  
  /* Hide Call Now button in collapsed mobile menu */
  .navbar-nav .nav-item:last-child {
    display: none;
  }
}

@media (max-width: 576px) {
  /* Extra small devices - form first priority */
  .contact-form-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .contact-form-section .text-center.mb-5 h2 {
    font-size: 1.75rem;
  }
  
  .contact-form-section .lead {
    font-size: 1rem;
  }
  
  .hero-bg {
    min-height: 70vh; /* Further reduced for xs screens */
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  /* Enhanced mobile form experience */
  .contact-form-section .card-body {
    padding: 1.5rem !important;
  }
  
  .form-control {
    min-height: 56px; /* Better touch targets */
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Better mobile carousel - show only 1 image at a time on mobile */
  .carousel-inner .row .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Hide 2nd and 3rd images on mobile */
  .carousel-inner .row .col-md-4:nth-child(2),
  .carousel-inner .row .col-md-4:nth-child(3) {
    display: none;
  }
  
  /* Make first image full width on mobile */
  .carousel-inner .row .col-md-4:first-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 60px;
    height: 60px; /* Larger touch targets */
  }
  
  /* Mobile-friendly spacing */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Utility classes */
.min-vh-75 {
  min-height: 75vh;
}

/* Section spacing */
.section-padding {
  padding: 4rem 0;
}

/* Section animations and styling */
.experts-section,
.trusted-section,
.specials-section,
.why-choose-section {
  position: relative;
  overflow: hidden;
}

.experts-section::before,
.trusted-section::before,
.specials-section::before,
.why-choose-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(40, 167, 69, 0.02) 50%, transparent 60%);
  animation: shimmer 10s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Enhanced section titles */
.experts-section h2,
.trusted-section h2,
.specials-section h2,
.why-choose-section h2 {
  position: relative;
  display: inline-block;
}

.experts-section h2::after,
.trusted-section h2::after,
.specials-section h2::after,
.why-choose-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 2px;
}

/* Feature icons enhancement */
.experts-section .d-flex img,
.why-choose-section .d-flex i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.experts-section .d-flex:hover img,
.why-choose-section .d-flex:hover i {
  transform: scale(1.1);
}

/* Card hover effects */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

/* Button customizations */
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Carousel customizations */
.carousel-control-prev,
.carousel-control-next {
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

/* Footer styling */
.footer {
  background-color: #212529 !important;
}

.footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #F36A00 !important;
}

/* Form styling */
.form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #28a745;
}

.form-floating > .form-control:focus {
  border-color: #28a745;
}

/* Enhanced form styling */
.contact-form-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form-section .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.contact-form-section .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #20c997);
}

.form-floating {
  position: relative;
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

/* Form validation states */
.form-control.is-valid {
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.52-.53 2.09-2.08L2.05 2.26.73 3.58z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4M8.2 4.6l-2.4 2.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus,
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Navbar styling */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #333 !important;
  transition: color 0.3s ease;
  position: relative;
  margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
  color: #28a745 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #28a745;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Typography */
body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

/* Form-first layout for all screen sizes */
main {
  display: flex;
  flex-direction: column;
}

.hero-section {
  order: 2; /* Hero comes after form */
}

.contact-form-section {
  order: 1; /* Form comes first */
}

.experts-section {
  order: 3;
}

.trusted-section {
  order: 4;
}

.specials-section {
  order: 5;
}

.why-choose-section {
  order: 6;
}

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

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus indicators */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid #28a745;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid;
  }
  
  .card {
    border: 1px solid;
  }
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #28a745;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-to-main:focus {
  top: 0;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

/* Responsive images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Custom spacing */
.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Button customizations - Enhanced design */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: white !important;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
}

.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;
}

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

.btn:hover,
.btn:focus,
.btn:active {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  color: white !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn:visited {
  color: white !important;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 25px;
}

/* Contact form enhancements */
.contact-form-section .card {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Responsive text alignment */
@media (max-width: 576px) {
  .text-sm-center {
    text-align: center !important;
  }
  
  /* Improve spacing on mobile */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  /* Stack carousel images vertically on mobile */
  .carousel-inner .row .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Improve form spacing on mobile */
  .contact-form-section .card-body {
    padding: 1.5rem !important;
  }
}

/* Tablet and larger screens - maintain original order */
@media (min-width: 769px) {
  /* Show Call Now button on larger screens */
  .navbar-nav .nav-item:last-child {
    display: block !important;
  }
  
  /* Restore 3-column carousel layout on larger screens */
  .carousel-inner .row .col-md-4:nth-child(2),
  .carousel-inner .row .col-md-4:nth-child(3) {
    display: block;
  }
  
  .carousel-inner .row .col-md-4:first-child {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Tablet optimizations */
@media (min-width: 577px) and (max-width: 768px) {
  .hero-content {
    text-align: center !important;
  }
  
  .display-3 {
    font-size: 2.75rem;
  }
  
  /* Show 2 images on tablet instead of 3 */
  .carousel-inner .row .col-md-4:nth-child(3) {
    display: none;
  }
  
  .carousel-inner .row .col-md-4:nth-child(1),
  .carousel-inner .row .col-md-4:nth-child(2) {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }
  
  .hero-bg::before {
    display: none;
  }
}