/* 
  Example Fleet Page CSS 
  Inspired by Apple’s hero style & large, full-width sections 
*/

/* Resets & Global Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0.9rem;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


nav a {
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
}

.nav-logo {
  flex: 1;
  align-items: center;
}

.nav-account a {
  color: white;
  background-color: black;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-links {
  flex: 2;
  display: flex;
  justify-content: center;
}

.nav-account {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav a:hover {
  color: white;
  background-color: #f01212;
}

nav a.active {
  color: white;
  background-color: black;
}

.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
}

/* MOBILE NAVIGATION (max-width: 768px) */
@media (max-width: 768px) {
  nav {
      flex-direction: column;
      align-items: flex-start;
      padding: 0.5rem;
  }
  .nav-links {
      display: flex;        /* stack vertically */
      flex-direction: column;
      position: absolute;   /* so it appears below the nav */
      top: 60px;
      left: 0;
      width: 100%;
      background-color: white;
      max-height: 0;        /* collapsed by default */
      overflow: hidden;     /* hide the menu */
      transition: max-height 0.3s ease;
      z-index: 1000;        /* ensures the menu appears on top */
  }
  .nav-links.active {
      max-height: 500px;    /* or enough to show all links */
  }
  .nav-links a {
      padding: 0.5rem 1rem;
      width: 100%;
      text-align: left;
      border-bottom: 1px solid #ddd;
  }
  .nav-account {
      width: 100%;
      justify-content: flex-start;
  }
  .nav-logo {
      width: 100%;
      text-align: left;
  }
  .hamburger {
      display: block;
  }
  .nav-dropdown:hover .nav-dropdown-content {
    display: none; /* Ensure no hover effect on small screens */
  }

  /* On mobile, when JS toggles .active-submenu, show the sub-menu. */
  .nav-dropdown-content.active-submenu {
    display: block;
    position: static;  /* So it stacks under "About Us" */
    box-shadow: none;  /* Up to you - might look better or worse */
    margin-left: 1rem; /* If you want an indentation, optional */
  }
}
/* Example nav dropdown styles */
/* Position parent */
.nav-dropdown {
  position: relative; 
  display: inline-block;
}

/* Top-level link styling */
.nav-dropbtn {
  text-decoration: none;
  color: #000; /* Adjust to your existing nav color */
  padding: 0.5em 1em;
  display: inline-block;
}

/* Dropdown content hidden by default */
.nav-dropdown-content {
  display: none;
  position: absolute; /* So it floats below the parent */
  background-color: #fff; /* Match your site's header color or brand style */
  min-width: 180px;       /* Adjust to taste */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Slight shadow for clarity */
  z-index: 999;           /* Ensures it appears on top */
}

/* Individual link in dropdown */
.nav-dropdown-content a {
  color: #000;  /* Adjust text color to match theme */
  padding: 0.75em 1em;
  text-decoration: none;
  display: block;
}

/* Show dropdown on hover (desktop) */
.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

/* Hover effect for links */
.nav-dropdown-content a:hover {
  background-color: #f01212;
}
/* HERO SECTION */
.fleet-hero {
    background: url('../images/hero-bus.jpg') center center / cover no-repeat;
    position: relative;
    min-height: 70vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* Optional: a semi-transparent overlay if you want to darken the image */
.fleet-hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.4); /* black overlay at 40% transparency */
  z-index: 1;
}

.hero-content {
  position: relative; /* ensure it sits above the overlay */
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons (example) */
.hero-buttons button {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: center;
  border: none;
  white-space: nowrap; /* Prevents the button text from wrapping */
  background-color: #f01212;
  color: white;
  font-size: 0.9rem;
}

.hero-buttons button:hover {
  background-color: white;
  color: #f01212;
  border: 1px solid #f01212;
}


/* FLEET ROWS */
.fleet-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;  /* “Nearly” full-page sections */
  padding: 2rem 1rem;
  position: relative;
  text-align: center;
}

/* Optional: alternate background color for each row */
.darker-bg {
  background-color: #f5f5f7; /* Light grey, Apple-like tone */
}

/* Vehicle Info */
.fleet-info {
  margin-bottom: 2rem;
}

.fleet-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.fleet-info p {
  font-size: 1.125rem;
  color: #555;
}

/* Horizontal Scroll Container */
.scroll-container {
  display: flex;
  overflow-x: auto; /* Horizontal scroll */
  scroll-snap-type: x mandatory; /* optional for “snap” effect */
  gap: 1rem; /* spacing between images */
  padding: 1rem;
}

.scroll-container::-webkit-scrollbar {
  /* Hide the scrollbar if desired (like Apple’s website). */
  display: none;
}

.scroll-container img {
  flex: 0 0 auto;
  width: auto;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: center; /* center each image in view when scrolling */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer Compatibility (assuming footer.css handles the styling) */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #111;
  color: #fff;
}

footer a {
  margin: 0 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .fleet-hero {
    min-height: 50vh;
  }
  .fleet-info h2 {
    font-size: 1.5rem;
  }
  .fleet-info p {
    font-size: 1rem;
  }
}

.scroll-buttons {
  position: relative;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 700px;
  display: flex;
  justify-content: space-between;
  transform: translate(-50%, -50%);
  margin-top: 10px;
  /* Removed pointer-events: none; */
}

.scroll-buttons button {
  position: relative;
  z-index: 10;
  cursor: pointer;
  /* styling, e.g. background, border, etc. */
}


.scroll-prev {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.scroll-next {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
}
