/**
 * Custom styles for Axton Carpet Cleaning
 */

:root {
  --primary: #2ecc71; /* Changed from #0d6efd (blue) to #2ecc71 (green) */
  --light: #f3f6f8;
  --dark: #0e2e50;
}

/* Custom animations for service cards */
.service-item:hover .service-text {
  transform: translateY(-10px);
  transition: 0.5s;
}

.service-item .service-text {
  transition: 0.5s;
}

/* Custom styling for advanced service boxes */
#advanced-services .bg-white {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: 0.5s;
}

#advanced-services .bg-white:hover {
  transform: translateY(-10px);
}

/* Make service area boxes interactive */
#service-area .bg-light {
  transition: all 0.3s;
}

#service-area .bg-light:hover {
  background-color: var(--primary) !important;
  color: white;
}

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

/* Custom styling for the FAQ section */
.accordion-button:not(.collapsed) {
  background-color: rgba(46, 204, 113, 0.1); /* Updated to match green theme */
  color: var(--primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25); /* Updated to match green theme */
}

/* Custom phone number styling */
a[href^="tel:"] {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

a[href^="tel:"]:hover {
  color: var(--primary);
}

/* Enhance call to action buttons */
.btn-primary {
  font-weight: 600;
  transition: all 0.5s;
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: #27ae60; /* Darker green on hover */
  border-color: #27ae60;
  color: #fff !important; /* Ensure text is light colored on hover */
}

/* Override Bootstrap's blue focus styles */
.btn-check:focus + .btn-primary,
.btn-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25);
  color: #fff;
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: #27ae60;
  border-color: #27ae60;
  color: #fff;
}

/* Override text-primary class to use our green color */
.text-primary {
  color: var(--primary) !important;
}

/* Modern logo styling */
.navbar-brand h1 {
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  letter-spacing: -0.5px;
}

.navbar-brand h1:after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
}

/* Logo styles */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container h1 {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
}

.logo-icon {
  margin-left: 0.5rem;
  width: 24px;
  height: 24px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .display-1 {
    font-size: 3rem;
  }

  .display-5 {
    font-size: 1.5rem;
  }

  .service-item .service-text {
    padding: 1.5rem !important;
  }

  /* Hero button responsive adjustments */
  .carousel-caption .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  /* Fix logo and toggle button alignment */
  .navbar {
    padding: 0.5rem 1rem !important;
  }

  .navbar .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .navbar-brand {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0;
  }

  .logo-container {
    display: flex;
    align-items: center;
  }

  .logo-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    white-space: nowrap;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    margin-right: 0 !important;
  }

  /* Ensure the collapsed navbar displays properly */
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 767.98px) {
  /* More responsive adjustments for hero button */
  .carousel-caption .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .logo-container h1 {
    font-size: 1.4rem;
  }

  .logo-icon {
    width: 20px;
    height: 20px;
  }

  /* Even smaller hero button for mobile */
  .carousel-caption .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }

  /* Adjust hero content spacing */
  .carousel-caption {
    padding-bottom: 1rem;
  }

  .carousel-caption h1 {
    margin-bottom: 1rem !important;
  }

  /* Further adjustments for very small screens */
  .navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-brand {
    max-width: 75%;
    padding-left: 0.5rem !important;
  }

  .logo-container h1 {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 16px;
    height: 16px;
    margin-left: 0.3rem;
  }

  /* Smaller toggle button */
  .navbar-toggler {
    padding: 0.2rem 0.4rem;
    margin-right: 0.5rem !important;
  }
}

@media (max-width: 400px) {
  .logo-container h1 {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 18px;
    height: 18px;
  }
}

/* Make sure phone numbers are clickable on mobile */
@media (max-width: 767.98px) {
  a[href^="tel:"] {
    display: inline-block;
    padding: 0.5rem 0;
  }
}

/* Hero button responsive styles */
.carousel-caption .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 5px;
  font-weight: 700;
}

/* Button styles for all buttons */
.btn {
  transition: all 0.3s;
}

.btn:hover {
  color: #fff;
}

.btn-sm {
  transition: all 0.3s;
}

.btn-sm:hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Make the navbar call now button responsive */
@media (max-width: 1199.98px) {
  .navbar .btn-primary.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 0.9rem;
  }
}

/* Ensure navbar Call Now button remains hidden on mobile */
@media (max-width: 991.98px) {
  .navbar .btn-primary.d-none.d-lg-block {
    display: none !important;
  }
}

/* Detailed Cleaning Process mobile fixes */
#detailed-services .d-flex.align-items-center {
  margin-bottom: 1rem !important;
}

/* Mobile specific spacing fixes */
@media (max-width: 767.98px) {
  #detailed-services .d-flex.align-items-center {
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
  }
  
  #detailed-services .row.g-4 {
    --bs-gutter-y: 0.5rem;
  }
  
  #detailed-services .btn-square.bg-primary {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #detailed-services h6.mb-0 {
    font-size: 0.95rem;
    margin-bottom: 0 !important;
    font-weight: 600;
  }
  
  #detailed-services .col-sm-6:first-child {
    margin-bottom: 1rem;
  }
}

/* Even smaller screens */
@media (max-width: 575.98px) {
  #detailed-services .col-sm-6 {
    margin-bottom: 0.5rem;
  }
  
  #detailed-services .d-flex.align-items-center {
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
    padding-bottom: 0.75rem;
  }
  
  #detailed-services .d-flex.align-items-center:last-child {
    margin-bottom: 0.75rem !important;
    border-bottom: none;
  }
  
  /* Add more spacing between steps on mobile */
  #detailed-services .row.align-items-center.mb-5 {
    margin-bottom: 3rem !important;
  }
}
