/* Base Styles and Font */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
  margin: 0;
  padding: 0;
}

/* License Bar */
.license-bar {
  background-color: #000;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  text-align: center;
}

/* Navbar Styles */
.custom-navbar {
  background-color: #000;
  min-height: 100px;
  position: relative;
  z-index: 9999; /* Ensures nav is above hero for hamburger clicks */
}
.custom-navbar .navbar-brand img {
  height: 100px;
  margin: 0;
}
/* For desktop, align logo far left */
@media (min-width: 992px) {
  .custom-navbar .navbar-brand {
    margin-right: auto;
    text-align: left;
  }
}
/* For mobile, center the logo */
@media (max-width: 767.98px) {
  .custom-navbar .navbar-brand {
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }
}
.custom-navbar .nav-link {
  color: #ddd;
  font-size: 1.25rem;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.custom-navbar .nav-link:hover {
  color: #fff;
  background-color: red;
  border-radius: 5px;
}
.custom-navbar .nav-link.active {
  color: #fff !important;
}
.btn.btn-primary,
.btn.btn-call {
  background-color: red !important;
  border-color: red !important;
  color: #fff !important;
  font-size: 1.1rem;
  padding: 0.75rem 1.25rem;
}

.btn.btn-primary-black {
  background-color: black !important;
  border-color: black !important;
  color: #fff !important;
  font-size: 1.1rem;
  padding: 0.75rem 1.25rem;
}
/* Navbar Toggler Icon (White) */
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero Section with Video Background and Tint */
.hero {
  position: relative;
  height: 80vh; /* 80% of the viewport height */
  overflow: hidden;
}

/* The hero image covers the entire section */
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: -5px;
  width: 110%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* On mobile, prioritize the right side */
@media (max-width: 767.98px) {
  .hero-video {
    object-position: left center !important;
  }
  /* Reduce hero text font sizes on mobile */
  .hero-text h1 {
    font-size: 3rem !important; /* smaller than the default 4rem */
    padding-top: 2px;
  }
  .hero-text p {
    font-size: 1.5rem !important; /* smaller than the default 2rem */
  }
}

@media (max-width: 550px) {
  /* Ensure the contact form doesn't overflow the screen on very small devices */
  .contact-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0.8rem; /* reduce padding if necessary */
    max-height: 77.5%;
  }

  /* Also reduce heading sizes further if needed */
  .kf-form2 h3 {
    font-size: 1.0rem;
  }

  /* Adjust form controls to be smaller */
  .kf-form2 .form-control {
    font-size: 0.8rem;
    padding: 0.4rem;
  }

  /* And the submit button, too */
  .kf-form2 button.btn.btn-primary {
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  /* Reduce hero text font sizes on mobile */
  .hero-text h1 {
    font-size: 2.7rem !important; /* smaller than the default 4rem */
    padding-top: 5px;
  }
  .hero-text p {
    font-size: 1.3rem !important; /* smaller than the default 2rem */
  }
}


.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 150%;
}
.hero-content .row {
  height: 100%;
  align-items: center;
  justify-content: center;
}
.hero-text {
  text-align: left;
  color: #fff;
}
.hero-text h1 {
  font-size: 4rem;
  font-family: 'Montserrat', serif;
  font-weight: 700;
}
.hero-text p {
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

/* Hero Statistic & Subtext (for Commercial and Luxury pages) */
.hero-stat {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  margin: 1rem 0;
}
.hero-subtext {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

/* Contact Form Container */
.hero-form {
  position: relative;
  margin: auto;
  max-width: 750px; /* Limit the size to 450px */
}
.contact-phone-extension {
  background-color: red;
  color: #fff;
  padding: 0.75rem;
  border: 2px solid red;
  border-radius: 10px 10px 0 0;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.contact-wrapper {
  position: relative;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kf-form2 {
  background-color: #f8f8f8;
}

.contact-header {
  color: #000;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.kf-form2 .form-control {
  margin-bottom: 1rem;
}
.kf-form2 button {
  width: 100%;
  margin-bottom: 1rem;
}
.kf-form2 .btn.btn-primary {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

/* Description Section */
.description-section {
  padding: 3rem 0;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.description-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Map Section */
.map-section {
  padding: 3rem 0;
}
.map-section.bg-light {
  background-color: #f8f8f8;
}
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
}
.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: 0;
}

/* Services Title Section */
.services-title-section {
  padding: 3rem 0 1rem 0;
}

/* Carousel Tile Section (Desktop Only) */
.tile-carousel-section {
  padding: 3rem 0;
}
.tile-carousel-section .container {
  max-width: 1100px;
}
.tile-carousel-section .tile-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  height: 100%;
}
.tile-carousel-section .tile-card-img {
  width: 100%;
  height: 200px;       /* or any uniform height you prefer */
  object-fit: cover;   /* ensures image covers the container, cropping top/bottom */
  object-position: 50% 50%;  /* center the cropped area (you can adjust if needed) */
  display: block;
}
.tile-carousel-section .tile-card-body {
  padding: 1rem;
  min-height: 150px;
}

/* Mobile: Vertical List of Services */
.services-vertical {
  padding: 3rem 0;
}

.services-vertical .tile-card-img {
  width: 100%;
  height: 200px;       /* or any uniform height you prefer */
  object-fit: cover;   /* ensures image covers the container, cropping top/bottom */
  object-position: 50% 50%;  /* center the cropped area (you can adjust if needed) */
  display: block;
}

.services-vertical .card-title {
  font-weight: bold;
  color: black;
}

/* Why Us Section */
.why-us-section {
  padding: 3rem 0;
  background-color: #f8f8f8;
}
.why-us-section ul {
  font-size: 1.1rem;
  line-height: 1.6;
  list-style-type: square;
  padding-left: 1.5rem;
}
.why-us-section ul li {
  margin-bottom: 0.5rem;
}

/* Contact Tow Truck Company Section */
.contact-tow-section {
  padding: 3rem 0;
  background-color: transparent;
  text-align: center;
}
.contact-tow-section .section-title {
  margin-bottom: 0.5rem;
}
.contact-tow-section .lead {
  font-size: 1.2rem;
}

/* Footer */
footer {
  position: relative;
  margin-top: 40px; /* Add spacing above the footer */
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer .social-media-icons {
  display: flex;
  gap: 0.5rem; /* Add some space between the buttons */
}

footer .btn-primary {
  background-color: #000 !important; /* Black background for the buttons */
  border-color: #000 !important; /* Black border for the buttons */
  color: #fff !important; /* White color for the icons */
  font-size: 1.25rem; /* Increase the size of the icons */
  padding: 0.5rem; /* Adjust padding for better spacing */
  border-radius: 50%; /* Make the buttons circular */
  width: 40px; /* Set a fixed width */
  height: 40px; /* Set a fixed height */
  display: inline-flex; /* Center the icon */
  align-items: center; /* Center the icon */
  justify-content: center; /* Center the icon */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effects */
}

footer .btn-primary:hover {
  background-color: red !important; /* Change background color to red on hover */
  color: #fff !important; /* Keep the icon color white on hover */
}

footer .btn-primary + .btn-primary {
  margin-left: 0.5rem; /* Add some space between the buttons */
}

/* Ensure the phone button has the same styling */
footer .btn-primary .fas.fa-phone {
  margin-right: 0.5rem; /* Add some space between the icon and the text */
}

/* Mobile Optimization */
@media (max-width: 767.98px) {
  .hero-content {
    max-width: 80%;
  }
  .hero-content .row {
    flex-direction: column;
  }
  /* On mobile, hero text above the form */
  .hero-text {
    order: 1 !important;
  }
  .hero-form {
    order: 2 !important;
    max-width: 500px; /* Limit the size to 450px */
  }
  /* Convert carousel into vertical list */
  .tile-carousel-section .carousel-inner {
    display: block;
  }
  .tile-carousel-section .carousel-item {
    display: block;
    margin-bottom: 1rem;
  }
  .tile-carousel-section .carousel-control-prev,
  .tile-carousel-section .carousel-control-next {
    display: none;
  }
  /* Reduce contact form size on mobile */
  .contact-wrapper {
    padding: 1rem;
    margin: 0 auto; /* Center the form */
  }
  .kf-form {
    margin-left: 10px;
    margin-right: 10px;
  }
  .kf-form2 h3 {
    font-size: 1.5rem;
  }
  .kf-form2 .form-control {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  .kf-form2 button {
    font-size: 1rem;
    padding: 0.5rem;
  }
  .map-responsive iframe {
    height: 130% !important;
  }
  .contact-phone-extension {
    margin-left: 10px;
    margin-right: 10px;
  }
  /* Footer Social Media Icons on Mobile */
  footer .container {
    flex-direction: column;
    align-items: center;
  }
  footer .social-media-icons {
    margin-bottom: 0.5rem; /* Add some space between the buttons vertically */
    justify-content: center; /* Center the buttons */
  }
  footer .btn-primary {
    width: 40px; /* Ensure buttons remain circular */
    height: 40px; /* Ensure buttons remain circular */
  }
  footer .btn-primary + .btn-primary {
    margin-left: 0; /* Remove horizontal spacing */
  }
  footer p {
    padding-top: 10px;
  }
}

/* Ensure the phone number wraps on smaller screens */
.contact-phone-extension .conditional-br {
  display: none;
}

@media (max-width: 420px) {
  .contact-phone-extension .conditional-br {
    display: inline;
  }
}

/* Desktop Adjustments */
@media (min-width: 992px) {
  /* No additional changes needed */
}
