/* ------------------ IMPORT & RESET ------------------ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

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

/* ------------------ NAVBAR ------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0,0,0,0.7);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  margin: 0;
}

.navbar .logo {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;          /* space between image and "Zone Ride" text */
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.logo img {
  height: 42px;       /* adjust to taste */
  width: auto;
  object-fit: contain;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin-right: 25px;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.navbar ul li a:hover,
.nav-login-btn {
  background: #ff6b00;
  padding: 10px 20px;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

/* Login button */
.login-btn {
  padding: 10px 20px;
  background: #ff6b00;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.user-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.profile-btn {
  background: white;
  border: 2px solid #222;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

#profileDropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background: white;
  width: 160px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 1000;
}

#profileDropdown.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#profileDropdown a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  font-size: 14px;
  color: #222;
  border-bottom: 1px solid #eee;
}

#profileDropdown a:hover {
  background: #f4f4f4;
}

#profileDropdown a:last-child {
  border-bottom: none;
}

@keyframes fadeDropdown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Page placeholder */
.page { padding: 40px 18px; }

/* Modal backdrop */
.modal {
  display: none; /* toggled by JS */
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}

/* Card */
.modal-card {
  width: 420px;
  max-width: 98%;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcff 100%);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(19,24,34,0.25);
  padding: 22px;
  position: relative;
  animation: pop .18s ease-out;
}

/* Close */
.close {
  position: absolute; right: 12px; top: 10px;
  background: transparent; border: none; font-size: 22px; cursor: pointer;
}

/* Forms */
.auth-view { text-align: left; }
.auth-view h2 { margin: 4px 0 12px 0; font-size: 1.25rem; }
.auth-view input {
  width: 100%; padding: 10px 12px; margin: 8px 0; border:1px solid #ddd;
  border-radius: 8px; font-size: 0.95rem;
}
.primary-btn {
  width:100%; padding: 10px; margin-top: 8px;
  border: none; border-radius: 8px; font-weight: 600;
  background: linear-gradient(90deg,#007BFF,#0062E6); color: #fff; cursor:pointer;
}
.muted { color: #666; font-size: 0.95rem; }
.toggleForm { color: #0062E6; cursor: pointer; font-weight:600; }

/* small messages */
.form-msg { min-height: 1.2em; margin-bottom: 6px; color: red; font-size:0.95rem; }

/* animation */
@keyframes pop { from { transform: translateY(-6px) scale(.99); opacity:0 } to { transform:none; opacity:1 } }

/* Accessibility: screen-reader-only (used for labels) */
.sr-only { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Responsive adjustments */
@media (max-width: 520px) {
  .modal-card { width: 100%; padding: 18px; border-radius: 10px; }
  .primary-btn { font-size: 1rem; }
}
@media (max-width: 768px) {
  .nav-login-btn {
    width: 50%;
    margin: 0 auto;   /* centers it horizontally */
    display: block;
    text-align: center;
    padding: 12px;
  }
}


/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url('https://images.pexels.com/photos/2174656/pexels-photo-2174656.jpeg') no-repeat center center/cover;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero-content {
  color: #fff;
  text-align: center;
  max-width: 700px;
  padding: 20px;
  z-index: 2;
}

.hero-content h1 {
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.8s ease-out;
}

.hero-content h1.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-content p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out 0.3s; /* small delay after heading */
}

.hero-content p.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animated Bikes */
.bike-animation {
  position: absolute;
  bottom: 20px;
  width: 40px;
  height: 20px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/3/33/Motorcycle_icon.svg') no-repeat center/contain;
  animation: ride 10s linear infinite;
  animation-delay: calc(var(--i) * 2s);
}

@keyframes ride {
  0% { left: -50px; }
  100% { left: 110%; }
}

/* Booking Card */
.booking-card {
  display: flex;
  justify-content: center;
  margin-top: -50px; /* overlap hero banner */
  padding: 0 20px 50px 20px;
  z-index: 2;
  position: relative;
}

.booking-card .card {
  background: rgba(255,255,255,0.85); /* lighter for dark text */
  backdrop-filter: blur(10px);
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 900px;
  width: 100%;
  color: #333; /* dark text */
  text-align: left;
}

.booking-card h2 {
  margin-bottom: 20px;
  font-size: 28px;
  text-align: center;
}
#location {
  width: 100%;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin-bottom: 25px;
}


 #location {
    font-size: 15px;
  }


/* Inline form row */
.booking-card .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.booking-card .form-group,
.booking-card .form-group-inline {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.booking-card .form-group-inline input[type="date"],
.booking-card .form-group-inline input[type="time"] {
  margin-top: 5px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
  background: rgba(0,0,0,0.05);
  color: #333;
}

.booking-card .form-group-inline label {
  font-weight: 500;
  margin-bottom: 5px;
}

.booking-card .form-group input,
.booking-card .form-group select {
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
  background: rgba(0,0,0,0.05);
  color: #333;
}

.booking-card .form-group input::placeholder,
.booking-card .form-group-inline input::placeholder {
  color: rgba(0,0,0,0.5);
}

.booking-card .search-btn {
  width: 100%;
  padding: 12px;
  background: #ff9800;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.3s;
}

.booking-card .search-btn:hover {
  background: #e68900;
}
#searchBtn {
  background-color: #e68a00;
  color: white;
  font-weight: 700;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
}

#searchBtn:hover {
  background-color: #cc7a00;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #f8f9fb, #eaf3ff);
  padding: 80px 10%;
  text-align: center;
}

.about-container h2 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 15px;
}

.about-container .intro-text {
  max-width: 850px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

.about-container h3 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 40px;
  font-weight: 600;
}
/* Slightly faster fade-in for About Us text */
.fade-in-about {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  transition-delay: 0.2s; /* Appears slightly earlier */
}

.fade-in-about.show {
  opacity: 1;
  transform: translateY(0);
}


/* === SERVICES SECTION === */
.services-section {
  background-color: #ffffff; /* White background */
  color: #333;
  text-align: center;
  padding: 60px 20px;
}

.services-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 10px;
}

.services-section h3 {
  font-size: 1.5rem;
  color: #0056b3;
  margin-top: 25px;
}

.services-section p {
  max-width: 800px;
  margin: 0 auto 30px;
 font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Cards container */
.services-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
}
  /* Individual card design */
.service-card {
  background: #ffffff;
  border-radius: 15px;
  width: 250px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.service-card h4 {
  color: #007bff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.price {
  display: block;
  font-weight: 600;
  color: #00bfff;
  font-size: 1.1rem;
}
/* === WHY CHOOSE US SECTION === */
.why-choose-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 40px;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap: 30px; /* space between cards */
  justify-content: center;
  align-items: stretch;
  padding: 40px 80px;
}

.why-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.why-card img {
  width: 55px;
  margin-bottom: 15px;
}

.why-card h4 {
  font-size: 1.2rem;
  color: #1e40af;
  margin-bottom: 10px;
  font-weight: 600;
}

.why-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === WHY CHOOSE US - RESPONSIVE === */
/* Tablet view (768px and below) */
@media (max-width: 768px) {
  .why-choose-heading {
    font-size: 2rem;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablet */
    gap: 20px;
    padding: 30px 20px;
  }

  .why-card {
    padding: 25px 15px;
  }

  .why-card img {
    width: 50px;
    margin-bottom: 12px;
  }

  .why-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .why-card p {
    font-size: 0.9rem;
  }
}

/* Mobile view (480px and below) */
@media (max-width: 480px) {
  .why-choose-heading {
    font-size: 1.75rem;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .why-choose-grid {
    grid-template-columns: 1fr; /* 1 card per row on mobile */
    gap: 20px;
    padding: 20px 15px;
  }

  .why-card {
    padding: 20px 15px;
  }

  .why-card img {
    width: 45px;
    margin-bottom: 10px;
  }

  .why-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .why-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* === SCROLL FADE-IN === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay */
.fade-in.stagger {
  transition-delay: var(--delay);
}

/* Hover lift effect on cards */
.why-card:hover {
  transform: translateY(-10px) scale(1.02);
  transition: transform 0.4s ease;
}

/* Footer */
/* ── SPLIT LOGO ── */
/*.split-logo-wrapper {*/
/*  position: absolute;*/
  /* bottom: 0;                        sits at the bottom edge of whatever section is above the footer */
/*  left: 10%;*/
/*  transform: translateX(-50%);*/
  /*width: 160px;                      control the displayed logo size */
/*  z-index: 10;*/
/*}*/

/* top half lives inside the section above the footer */
/*.logo-top {*/
/*  width: 100%;*/
  /*height: 120px;                      half the rendered logo height */
/*  background: url('../images/Zone-Ride-logoupload-PNG.png') center top / 100% auto no-repeat;*/
/*  overflow: hidden;*/
/*}*/

/* bottom half overlaps down into the footer */
/*.logo-bottom {*/
/*  width: 100%;*/
/*  height: 45px;*/
/*  background: url('<?php echo PUBLIC_URL; ?>/assets/images/Zone-Ride-logoupload-PNG.png') center bottom / 100% auto no-repeat;*/
/*  overflow: hidden;*/
/*}*/

/* give footer extra top padding so content clears the logo */
.footer {
  background: #111;
  color: #fff;
  padding: 70px 20px 20px 20px;    /* was 50px, now 70px */
  text-align: left;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 16px;
  line-height: 1.5;
}

.footer-links, .footer-contact {
  margin-top: 20px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #ff9800;
}


.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  color: rgba(255,255,255,0.7);
}

/* Responsive */
@media(max-width: 768px){
  /* Make navbar compact */
.navbar {
  padding: 15px 20px;
}

/* Hide nav links initially */
.nav-links {
  position: absolute;
  top: 70px;
  left: -100%;
  width: 100%;
  flex-direction: column;
  background: rgba(0,0,0,0.95);
  text-align: center;
  padding: 20px 0;
  transition: 0.3s;
}

/* Show when active */
.nav-links.active {
  left: 0;
}

/* Stack links nicely */
.nav-links li {
  margin: 15px 0;
}

/* IMPORTANT: Move menu button to right */
.menu-toggle {
  display: flex;
  position: absolute;
  right: 20px;
  top: 22px;
}
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .booking-card .form-row {
    flex-direction: column;
  }
  .booking-card .form-group-inline input[type="date"],
  .booking-card .form-group-inline input[type="time"] {
    width: 100%;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-links, .footer-contact {
    margin-top: 20px;
  }
}
/* Responsive map wrapper */
.footer-map {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.policies {
  color: white;
  font-family: 'Poppins', sans-serif;
}
.policies h3 {
  font-weight: 700;
  margin-bottom: 9px;
  margin-top: 20px;
}
.policies ul {
  list-style: none;
  padding: 0;
}
.policies li {
  margin: 6px 0;
}
.policies a {
  color: #f1f1f1;
  text-decoration: none;
  transition: 0.3s;
}
.policies a:hover {
  color: #ff9800;
}

/* Popup overlay */
.popup {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Popup content */
.popup-content {
  background: #fff;
  color: #333;
  padding: 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeCenter 0.35s ease forwards;
  max-height: 80vh;
  overflow: hidden;
}

/* Scrollable area for long text */
.scrollable {
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 10px;
}

/* Scrollbar styling */
.scrollable::-webkit-scrollbar {
  width: 6px;
}
.scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}
.scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: 0.3s;
}
.close:hover {
  color: #ff9800;
}

/* Default desktop animation (fade + scale center) */
@keyframes fadeCenter {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* MOBILE VIEW: Slide-up animation */
@media (max-width: 768px) {
  .popup {
    align-items: flex-end;
  }

  .popup-content {
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 350px;
    transform: translateY(100%);
    animation: slideUp 0.4s ease forwards;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}
.footer-logo img {
  height: 90px;
  width: auto;
  margin-bottom: 15px;
  display: block;
}
/* Center footer logo in mobile view */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto 15px auto;
  }

  .footer-logo,
  .footer-links,
  .policies {
    text-align: center;
  }
}
/* ================= DESKTOP HARD RESET ================= */
@media (min-width: 769px) {

  .footer-container {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr !important;
    gap: 50px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .footer-container > * {
    width: 100%;
  }

  .footer-bottom {
    grid-column: 1 / -1;   /* makes copyright full width */
    text-align: center;
  }

}
/* ===== MOBILE MENU FIX ===== */
@media (max-width:768px){

.navbar{
  position: fixed;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* FORCE SHOW MENU */
.menu-toggle{
  display:flex !important;
  flex-direction:column;
  position:absolute;
  right:20px;
  top:22px;
  z-index:9999;   /* VERY IMPORTANT */
}

/* Hamburger lines */
.menu-toggle span{
  background:#fff;
  height:3px;
  width:25px;
  margin:4px 0;
  display:block;
}

/* Hide menu initially */
.nav-links{
  position:absolute;
  top:70px;
  left:-100%;
  width:100%;
  background:rgba(0,0,0,0.95);
  flex-direction:column;
  text-align:center;
  padding:20px 0;
  transition:.3s;
}

.nav-links.active{
  left:0;
}

}
/* ===== FORCE MOBILE MENU BUTTON ===== */

@media (max-width:768px){

.menu-toggle{
display:flex !important;
flex-direction:column;

position:fixed;   /* ⭐ CHANGE THIS */

right:20px;
top:20px;

z-index:999999;   /* ⭐ VERY HIGH */
}
.navbar{
z-index:999998;
}

}
