/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Body & Layout */
body {
  margin: 0;
  font-family: 'Cabin', sans-serif;
  background: linear-gradient(to bottom, #1d4fbb, #0138a9 40%, #0138a9 60%, #1d4fbb);
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 60px;   /* Header height */
  padding-bottom: 50px; /* Footer height */
  line-height: 1.5;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.logo {
  height: 40px; /* or any size that fits your header nicely */
  width: auto;  /* keeps the aspect ratio */
  object-fit: contain; /* ensures no distortion */
}


nav {
  display: flex;
  gap: 1rem;
  /* remove flex-grow if not needed */
  align-items: center; /* vertically center links inside nav */
  /* justify-content: center; */ /* Optional: you can keep or remove based on layout */
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem; /* balanced vertical padding */
  border-radius: 4px;
  transition: background-color 0.3s;
  line-height: 1; /* ensure no extra height */
}

nav a:hover {
  background-color: rgba(255 255 255 / 0.2);
}

.header-right {
  display: flex;
  align-items: center; /* vertically center */
  gap: 0.6rem;
}




/* Vendor Login Button */
.vendor-login-btn {
  background: white;
  color: #0138a9;
  border: none;
  padding: 0.4rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.vendor-login-btn a {
  color: #0138a9;
  font-weight: 700;
  text-decoration: none;
}

.vendor-login-btn:hover {
  background-color: #e0e0e0;
}

/* Menu button (hamburger) */
.menu-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

/* SIDE MENU - Mobile */
.side-menu {
  position: fixed;
  top: 60px;
  right: -250px;
  width: 250px;
  height: calc(100vh - 60px);
  background: #022d86;
  flex-direction: column;
  padding: 1rem;
  transition: right 0.3s ease;
  z-index: 1500;
  display: flex;
}

.side-menu.open {
  right: 0;
}

.side-menu a {
  color: white;
  padding: 1rem 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}

.side-menu a:hover {
  background: rgba(255,255,255,0.1);
}

/* APP DOWNLOAD BANNER */
.app-banner {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  z-index: 1001;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(-100%);
  opacity: 0;
}

.app-banner.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.app-banner a {
  background: white;
  color: #0138a9;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.app-banner button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* MAIN CONTENT */
main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 1000;
  color: white;
}

/* COOKIE CONSENT POPUP */
.cookies-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #0d47a1;
  color: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  z-index: 1100;
  box-sizing: border-box;
  border-radius: 0;
}

.cookies-popup.hidden {
  display: none;
}

.cookies-popup p {
  flex: 1 1 300px;
  margin: 0;
  line-height: 1.3;
}

.cookies-popup button {
  flex: 0 0 auto;
  min-width: 90px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookies-popup button.accept {
  background-color: white;
  color: #0d47a1;
}

.cookies-popup button.accept:hover {
  background-color: #ffea00;
}

.cookies-popup button.decline {
  background-color: transparent;
  color: white;
  border: 1.5px solid white;
}

.cookies-popup button.decline:hover {
  background-color: rgba(255,255,255,0.2);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}

.sign-up-btn {
  position: fixed;
  bottom: 70px; /* above footer */
  right: 20px;
  background-color: #ffd600;
  color: #0138a9;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1100;
  transition: background-color 0.3s ease;
}

.sign-up-btn:hover {
  background-color: #ffea00;
}

.app-download-buttons {
  display: flex;
  justify-content: center;  /* Centers horizontally */
  align-items: center;      /* Centers vertically if needed */
  gap: 1rem;                /* Space between buttons */
  padding: 1rem 0;
  position: fixed;
  bottom: 50px;             /* Adjust so it’s just above footer */
  left: 50%;
  transform: translateX(-50%); /* Ensures it's exactly centered */
  background-color: #0138a9;
  width: 100%;
}

.app-download-buttons img {
  height: 50px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.app-download-buttons img:hover {
  transform: scale(1.05);
}

/* Default: Desktop Layout (Horizontal) */
.split-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.split-text .divider {
  width: 1px; /* thin vertical line */
  height: 30px;
  background-color: white;
}

.split-text span {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Mobile Layout: Vertical */
@media (max-width: 768px) {
  .split-text {
    flex-direction: column;
    gap: 0.5rem;
  }

  .split-text .divider {
    width: 80%; /* horizontal line */
    height: 1px;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full screen height */
  text-align: center;
  background-color: #0138a9; /* Match site background */
  color: white;
}

.hero-text h1 {
  font-size: clamp(3rem, 10vw, 8rem); /* Responsive large text */
  font-weight: 900;
  margin: 0.5rem 0;
  letter-spacing: 2px;
  width: 100%;
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/the-chauffeurs-app.jpg") no-repeat center center fixed;
  background-size: cover;
  opacity: 0.2;
  z-index: -1;
}

/* ---------------- Tabs (Resources Page) ---------------- */
.tab-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tabs button {
  flex: 1;
  padding: 0.8rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: background 0.3s;
}

.tabs button.active {
  background: white;
  color: #0138a9;
}

.tab-content {
  display: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 6px;
}

.tab-content.active {
  display: block;
}

iframe {
  width: 100%;
  height: 315px;
  border-radius: 6px;
  border: none;
}

.header-btn {
  background: white;
  color: #0138a9;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.header-btn:hover {
  background: #e0e0e0;
}



