/*-----------------------------------*\
 * #services.css
\*-----------------------------------*/

/**
 * SERVICES HERO
 */
.services-hero {
  background-image: url('../images/hero.jpg'); /* Ensure you have an image here */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: hsla(0, 0%, 0%, 0.8);
  padding-block: var(--section-padding); 
  text-align: center;
  /* FIX: Removed margin-top to allow the image to fill the space under the header */
  margin-top: 0; 
}

.services-hero .hero-subtitle {
  color: var(--yale-blue);
  font-size: var(--fs-5);
  text-transform: uppercase;
  font-family: var(--ff-montserrat);
  margin-bottom: 10px;
}

.services-hero .hero-title {
  color: var(--white);
  font-size: var(--fs-1);
  margin-bottom: 70px;
}

.services-hero .hero-text {
  color: var(--gainsboro);
  font-size: var(--fs-5);
  max-width: 60ch;
  margin: 0 auto 40px;
}

/* FIX: Smaller, premium-looking hero button */
.services-hero .hero-btn {
    --padding: 12px 30px;
    --fs-5: 16px;
    font-weight: var(--fw-600);
}


/**
 * FEATURES SECTION
 */
.features-section {
  background-color: var(--cultured);
  /* Added margin for spacing */
  margin-block: var(--section-padding) 0;
}

.features-list {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .features-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features-item {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-15);
  text-align: center;
  box-shadow: 0 10px 30px hsla(0, 0%, 0%, 0.05);
  
  /* Initial state for animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animation target class */
.features-item.scroll-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Animation stagger */
.features-item:nth-child(2).scroll-animate {
  transition-delay: 0.2s;
}

.features-item:nth-child(3).scroll-animate {
  transition-delay: 0.4s;
}

.features-item .icon-box {
  color: var(--bright-navy-blue);
  font-size: 50px;
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gainsboro);
  border-radius: 50%;
  transition: var(--transition);
}

.features-item:hover .icon-box {
  background: var(--bright-navy-blue);
  color: var(--white);
}

.features-item .card-title {
  color: var(--gunmetal);
  margin-bottom: 10px;
}

.features-item .card-text {
  color: var(--black-coral);
}


/**
 * SERVICE TYPES (NEW SECTION)
 */
.service-types {
    background-color: var(--white);
    /* Added margin for spacing */
    margin-block: var(--section-padding) 0;
}

.type-list {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .type-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.type-card {
    border-radius: var(--radius-15);
    overflow: hidden;
    box-shadow: 0 10px 30px hsla(0, 0%, 0%, 0.1);

    /* Initial state for animation */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.type-card.scroll-animate {
    opacity: 1;
    transform: scale(1);
}

.type-card:hover {
    box-shadow: 0 15px 40px hsla(0, 0%, 0%, 0.15);
}

.type-card .card-banner {
    height: 250px;
}

.type-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.type-card:hover img {
    transform: scale(1.05);
}

.type-card .card-content {
    padding: 25px;
    text-align: center;
    background-color: var(--cultured);
}

.type-card .card-title {
    color: var(--gunmetal);
    margin-bottom: 8px;
}

.type-card .card-text {
    color: var(--black-coral);
    font-size: var(--fs-5);
}

/**
 * DETAILED SERVICES (TIMELINE STYLE)
 */
.detailed-services {
  background-color: var(--white);
  /* Added margin for spacing */
  margin-block: var(--section-padding) 0;
}

.detailed-services .timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0;
  padding: 0 20px;
}

/* Vertical line */
.detailed-services .timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--gainsboro);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 0;
}

.detailed-services .timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  
  /* Initial state for animation */
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 1s ease-out, transform 1s ease-out;
  z-index: 1; /* Keep content above the line */
}

.detailed-services .timeline-item.right {
  left: 50%;
  transform: translateX(100%);
}

/* Animation target class */
.detailed-services .timeline-item.scroll-animate {
  opacity: 1;
  transform: translateX(0);
}

.detailed-services .timeline-item.scroll-animate.right {
  transform: translateX(0);
}

/* The circle dot on the line */
.detailed-services .timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bright-navy-blue);
  border: 4px solid var(--cultured);
  top: 25px;
  border-radius: 50%;
  z-index: 2;
}

.detailed-services .timeline-item.right::after {
  left: -10px;
}

.detailed-services .timeline-content {
  padding: 25px 30px;
  background-color: var(--cultured);
  position: relative;
  border-radius: var(--radius-15);
  box-shadow: 0 5px 15px hsla(0, 0%, 0%, 0.05);
}

.detailed-services .timeline-step {
  color: var(--united-nations-blue);
  font-weight: var(--fw-600);
  font-size: var(--fs-6);
  display: block;
  margin-bottom: 5px;
}

.detailed-services .timeline-content h3 {
  color: var(--gunmetal);
  margin-bottom: 10px;
}

.cta{
    margin-top: 60px;
}

/* Media Query for Mobile Timeline */
@media screen and (max-width: 768px) {
  .detailed-services .timeline-container::after {
    left: 31px;
  }

  .detailed-services .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    transform: translateX(-50%); /* Adjusted for mobile */
  }

  .detailed-services .timeline-item.right {
    left: 0%;
    transform: translateX(50%); /* Adjusted for mobile */
  }

  .detailed-services .timeline-item.scroll-animate {
    transform: translateX(0);
  }
  
  .detailed-services .timeline-item.scroll-animate.right {
    transform: translateX(0);
  }

  .detailed-services .timeline-item::after,
  .detailed-services .timeline-item.right::after {
    left: 21px;
    right: auto;
  }
}

/**
 * VEHICLE RENTAL CTA
 */
.vehicle-rental-cta {
    background-color: var(--oxford-blue);
    background-image: linear-gradient(to right, hsla(208, 97%, 8%, 0.9), hsla(208, 97%, 8%, 0.9)), url('../images/fleet.jpg'); /* Use a nice background image and overlay */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    /* Added margin for spacing */
    margin-block: var(--section-padding) 0;
}

.vehicle-rental-cta .rental-content {
    max-width: 800px;
    margin-inline: auto;
}

.vehicle-rental-cta .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.vehicle-rental-cta .section-text {
    color: var(--gainsboro);
    margin-bottom: 40px;
    max-width: unset;
}