/* Base Styles */
:root {
  --primary: #e63946;
  --secondary: #1d3557;
  --light: #f1faee;
  --white: #ffffff;
  --gray: #6c757d;
  --light-gray: #f8f9fa;
  --dark: #212529;
  --danger: #e63946;
  --success: #2a9d8f;
  --warning: #e9c46a;
  --primary-hover: #c1121f;
  --transition: all 0.3s ease;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
}

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

/* Road Assistance Section */
.roadside-image {
  position: relative;
}

.emergency-call-box {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  transition: var(--transition);
}

.emergency-call-box:hover {
  transform: translateX(-50%) translateY(-5px);
}

.roadside-features .feature-item {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.roadside-features .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
  .emergency-call-box {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: 1.5rem;
  }
}


/* mobile resposnive css */

/* Responsive styling */
@media (max-width: 768px) {
  .road-container {
    flex-direction: column;
  }

  .road-left,
  .road-right {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .emergency-call-box {
    position: static !important;
    margin-top: 20px;
  }

  .text-lg-start {
    text-align: center !important;
  }
}

.py-6 {
  padding-top: 4.5rem;
  /* padding-bottom: 4.5rem; */
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 5px;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
}

.btn-danger,
.bg-danger {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-danger:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.btn-outline-danger {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-danger:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.hero-carousel .carousel-item img {
  margin-top: 10vh;
  height: 500px;
  object-fit: cover;

}

.text-danger {
  color: var(--primary) !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.section-heading {
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.section-subheading {
  font-size: 1.2rem;
  color: var(--gray);
}

.section-divider {
  height: 4px;
  width: 60px;
  background-color: var(--primary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

img {
  max-width: 100%;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}

.brand-text {
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  color: var(--black);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--primary);
}

.navbar-scrolled {
  background-color: var(--white);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.navbar-scrolled .navbar-nav .nav-link {
  color: var(--dark);
}

.navbar-scrolled .navbar-toggler {
  color: var(--dark);
}

.navbar-toggler {
  border: none;
  color: var(--white);
  font-size: 1.2rem;
}

.emergency-btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  margin-top: 10vh;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.slider-nav:hover {
  background: var(--primary);
}

.prev-slide {
  left: 20px;
}

.next-slide {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
}

/* Navbar Logo */
.navbar-logo {
  height: 50px;
  width: auto;
}

/* Footer Logo */
.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1.5rem;
}

/* Blog Section */
.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.blog-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* About Section */
.image-stack {
  position: relative;
  width: 100%;
}

.image-stack__item {
  max-width: 75%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-stack__item--top {
  position: relative;
  z-index: 1;
}

.image-stack__item--bottom {
  position: absolute;
  top: 30%;
  left: 30%;
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-danger);
  /* Or use `background-color: red;` */
  overflow: hidden;
}

.icon-box img {
  width: 60%;
  /* Or 100% if you want full fit */
  height: auto;
  object-fit: contain;
}


.counter-box {
  text-align: center;
}

.counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.counter-box p {
  color: var(--gray);
  font-weight: 600;
  margin: 0;
}

/* Services Section */
.service-tabs {
  margin-bottom: 3rem;
}

.service-tabs .nav-link {
  font-weight: 600;
  color: var(--dark);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.service-tabs .nav-link.active {
  background-color: var(--primary);
  color: var(--white);
}

.service-card {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: var(--white);
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.service-card:hover:before {
  height: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--white);
}

.service-card h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--gray);
  margin-bottom: 0;
}

/* Feature Cards */
.feature-card {
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: var(--white);
  height: 100%;
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 2rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: var(--white);
}

.feature-card h4 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray);
  margin-bottom: 0;
}

/* Coverage Section */
.coverage-info {
  padding-right: 2rem;
}

.map-container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* Testimonials */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.testimonial-rating {
  color: #FFD700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author h5 {
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  color: var(--gray);
  margin: 0;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.prev-btn,
.next-btn {
  background-color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin: 0 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 5px;
  transition: var(--transition);
  cursor: pointer;
}

.dot.active {
  background-color: var(--primary);
  width: 25px;
  border-radius: 10px;
}

/* Forms */
.emergency-form,
.booking-form,
.contact-form {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Gallery */
.gallery-container img {
  transition: var(--transition);
}

.gallery-container img:hover {
  transform: scale(1.03);
}

/* Pricing */
.pricing-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom-left-radius: 10px;
}

.pricing-header {
  padding: 2rem;
  background-color: #f8f9fa;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.pricing-header h3 {
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pricing-body {
  padding: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  margin-right: 0.5rem;
}

.pricing-note {
  font-style: italic;
  color: var(--gray);
}

/* FAQ Section */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  font-weight: 600;
  padding: 1.25rem;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(230, 57, 70, 0.05);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e63946'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Contact Section */
.contact-info {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(230, 57, 70, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-item h5 {
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--gray);
}

.social-links {
  display: flex;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  margin-right: 0.75rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--secondary);
}

.footer h5 {
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-cert {
  height: 30px;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-cert:hover {
  opacity: 1;
}

.emergency-box {
  transition: var(--transition);
}

.emergency-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.emergency-icon {
  color: var(--white);
}

.emergency-phone {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.emergency-phone:hover {
  color: var(--white);
  text-decoration: underline;
}

.subscription-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
}

.subscription-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.back-to-top-btn:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    color: var(--dark);
  }

  .service-tabs .nav-link {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
  }

  .image-stack__item--bottom {
    top: 20%;
    left: 20%;
  }

  .pricing-card.featured {
    transform: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }

  .coverage-info {
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
  }

  .section-heading {
    font-size: 2rem;
  }

  .counter {
    font-size: 2rem;
  }

  .service-tabs .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .image-stack__item--top {
    max-width: 90%;
  }

  .image-stack__item--bottom {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: auto;
    min-height: 300px;
  }

  .hero-slide {
    position: relative;
    height: auto;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .slider-nav {
    top: 90%;
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .slider-dots {
    bottom: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-btns .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-btns .btn:last-child {
    margin-bottom: 0;
  }

  .service-tabs {
    flex-direction: column;
  }

  .service-tabs .nav-item {
    margin-bottom: 0.5rem;
  }

  .service-tabs .nav-link {
    width: 100%;
    text-align: center;
  }

  .testimonial-author-img {
    width: 50px;
    height: 50px;
  }
}