/* RYDEXS — shared on every page: reset, dark mode, navbar, footer, floating buttons, booking-assistance popup
   Generated from the old inline <style> blocks; edit this file directly from now on. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  color: #050505;
  line-height: 1.6;
  /* clip (not hidden) — `hidden` makes body a scroll container and breaks position:sticky */
  overflow-x: clip;
}

/* ===== Dark theme ===== */
html[data-theme="dark"] body { background: #14161A; color: #F0F2F5; }

html[data-theme="dark"] { color: #F0F2F5; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 40px; height: 40px; padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: inherit;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle-label { display: none; }

.theme-toggle:hover { background: rgba(255,255,255,0.1); }

html[data-theme="dark"] .nav-cta { color: #1a1a1a; }

.theme-toggle-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.75 15.5A9.75 9.75 0 0 1 8.5 2.25 9.75 9.75 0 1 0 21.75 15.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.75 15.5A9.75 9.75 0 0 1 8.5 2.25 9.75 9.75 0 1 0 21.75 15.5Z'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .theme-toggle-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.2' y1='4.2' x2='5.6' y2='5.6'/%3E%3Cline x1='18.4' y1='18.4' x2='19.8' y2='19.8'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.2' y1='19.8' x2='5.6' y2='18.4'/%3E%3Cline x1='18.4' y1='5.6' x2='19.8' y2='4.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cg stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.2' y1='4.2' x2='5.6' y2='5.6'/%3E%3Cline x1='18.4' y1='18.4' x2='19.8' y2='19.8'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.2' y1='19.8' x2='5.6' y2='18.4'/%3E%3Cline x1='18.4' y1='5.6' x2='19.8' y2='4.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Footer keeps its original dark-image look regardless of theme */
html[data-theme="dark"] footer { color: white; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== NAVBAR ==================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Solid bar (after scrolling, or with the mobile menu open): dark grey, light text */
  background: #2B2F36;
  color: #F2F4F7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  padding: 0.7rem 2rem;
}

/* Transparent at the top of every page (backdrop per page is set in js/site.js);
   turns dark grey once the page scrolls or the mobile menu opens */
nav#navbar.nav-transparent:not(.scrolled):not(.menu-open) {
  background: transparent;
  border-bottom-color: transparent;
}

/* The logo's white lettering needs a soft shadow to read over a light photo */
nav#navbar.nav-transparent:not(.scrolled):not(.menu-open) .logo img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

/* Over a photo (Home, About, Contact) the white menu text gets a soft shadow */
@media (min-width: 1181px) {
  nav#navbar.nav-on-dark:not(.scrolled) .nav-links a:not(.nav-menu-cta) {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }
}

/* Over the plain white page (Fleet, Services in light mode) the transparent bar needs dark text */
html:not([data-theme="dark"]) nav#navbar.nav-on-page:not(.scrolled):not(.menu-open) {
  color: #050505;
}

html:not([data-theme="dark"]) nav#navbar.nav-on-page:not(.scrolled):not(.menu-open) .theme-toggle {
  border-color: rgba(5, 5, 5, 0.18);
}

html:not([data-theme="dark"]) nav#navbar.nav-on-page:not(.scrolled):not(.menu-open) .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.logo {
  height: 58px;
  width: auto;
  display: flex;
  align-items: center;
  opacity: 1;
}

.logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F5B301;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: #F5B301;
  color: #1a1a1a;
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.nav-cta:hover {
  background: #d99a00;
  transform: translateY(-2px);
}

/* Medium desktops: tighter menu so all nine links fit beside the logo and button */
@media (min-width: 1181px) and (max-width: 1500px) {
  .nav-links { gap: 1.6rem; }
  .nav-links a { font-size: 0.9rem; }
  nav, nav.scrolled { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav-cta { padding: 0.7rem 1.3rem; }
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  /* it's a <button>: take the navbar's text colour, no default button box */
  color: inherit;
  background: transparent;
  border: 0;
  padding: 6px 2px;
}

/* Only shown inside the mobile dropdown menu */
.nav-menu-cta {
  display: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

/* Switch to the hamburger menu below 1180px: nine menu links plus the logo and
   "Plan Your Trip" button no longer fit in one row there. */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #2B2F36;
    padding: 2rem;
    gap: 1rem;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
  }
  .theme-toggle {
    width: 100%; height: auto; border-radius: 8px;
    padding: 0.75rem 1rem; justify-content: flex-start; margin-top: 0.25rem;
  }
  .theme-toggle-label { display: inline; }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  /* Header CTA moves into the dropdown menu */
  .nav-cta {
    display: none;
  }
  .nav-menu-cta {
    display: block;
    background: #F5B301;
    color: #1a1a1a !important;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 0.5rem;
  }
}

/* ==================== FOOTER ==================== */
footer {
  background:
  linear-gradient(rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.94)),
  url('../vidhana soudha.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-logo {
  height: 58px;
  width: auto;
  display: block;
  margin: 0 0 1rem 0;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-section h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.footer-section ul li {
  margin-bottom: 1rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #F5B301;
}

.footer-map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
}

.footer-map-pin {
  display: flex;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.footer-address {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.75;
}

/* On wider screens the map is alone on its own grid row (only 4 tracks fit
   at the 1200px footer max-width), so let it claim the extra space instead
   of staying pinned to a single narrow column. */
@media (min-width: 700px) {
  .footer-map-section {
    grid-column: span 2;
  }
  .footer-map {
    height: 200px;
  }
}

@media (min-width: 1100px) {
  .footer-map-section {
    grid-column: span 3;
  }
  .footer-map {
    height: 240px;
  }
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer-social a img {
  width: 32px;
  height: 32px;
}

.footer-social a:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #2B2F36;
    padding: 2rem;
    gap: 1rem;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  /* Free up header space on small screens; the CTA lives in the menu instead */
  .nav-cta {
    display: none;
  }
  .logo {
    height: 58px;
  }
  .nav-menu-cta {
    display: block;
    background: #F5B301;
    color: #1a1a1a !important;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 0.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .footer-social {
    order: -1;
  }
  /* Keep the footer logo's left edge lined up with the nav logo above it */
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.8rem;
  }
  .logo {
    height: 58px;
  }
  footer {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

/* ==================== FLOATING ACTION BUTTONS ==================== */
.fab-stack {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  height: 56px;
  border-radius: 28px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.fab-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.fab-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  font-weight: 600;
  font-size: 0.95rem;
  transition: max-width 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.fab:hover .fab-label,
.fab:focus-visible .fab-label {
  max-width: 200px;
  opacity: 1;
  padding-right: 1.4rem;
}

.fab-book {
  background: #2D6CDF;
  color: #ffffff;
  height: 44px;
  padding: 0 1.15rem;
}

.fab-book .fab-label {
  max-width: none;
  opacity: 1;
  padding-right: 0;
  font-size: 0.85rem;
}

.fab-assistant {
  background: #F5B301;
  color: #1a1a1a;
}

.fab-whatsapp {
  background: #25D366;
  color: #ffffff;
}

.fab-top {
  background: #1a1a1a;
  color: #ffffff;
  width: 56px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.fab-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .fab-stack {
    right: 1rem;
    bottom: 1rem;
    gap: 0.75rem;
  }
  .fab { height: 50px; border-radius: 25px; }
  .fab-icon { width: 50px; height: 50px; }
}

/* ==================== ASSISTANT MODAL ==================== */
.assist-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.assist-overlay.open {
  opacity: 1;
  visibility: visible;
}

.assist-modal {
  position: relative;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.assist-overlay.open .assist-modal {
  transform: none;
}

.assist-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #333;
  transition: background 0.25s ease;
}

.assist-close:hover {
  background: #e4e4e4;
}

.assist-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-right: 2.5rem;
}

.assist-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  flex: 1;
  min-width: 220px;
}

.assist-title span {
  display: block;
}

.assist-agent {
  background: #FFF8E6;
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assist-agent-icon {
  color: #F5B301;
  display: grid;
  place-items: center;
}

.assist-agent small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
}

.assist-agent strong {
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
}

.assist-panel {
  margin-top: 1.75rem;
  background: #f7f7f7;
  border-radius: 14px;
  padding: 1.5rem;
}

.assist-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-bottom: 1.25rem;
}

.assist-benefit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.assist-benefit svg {
  color: #F5B301;
  flex: 0 0 auto;
}

.assist-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.assist-input-wrap {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  overflow: hidden;
}

.assist-input-wrap:focus-within {
  border-color: #F5B301;
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.15);
}

.assist-cc {
  padding: 0 1rem;
  height: 58px;
  display: flex;
  align-items: center;
  border-right: 1px solid #e2e2e2;
  font-weight: 600;
  color: #333;
}

.assist-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem;
  font-size: 1rem;
  font-family: inherit;
  min-width: 0;
}

.assist-submit {
  background: #1a9e4b;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 2rem;
  height: 60px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.3s ease;
}

.assist-submit:hover {
  background: #16813d;
}

.assist-confirm {
  margin-top: 1rem;
  color: #1a9e4b;
  font-weight: 600;
  display: none;
}

.assist-confirm.show {
  display: block;
}

@media (max-width: 640px) {
  .assist-modal { padding: 1.75rem 1.25rem; }
  .assist-header { padding-right: 2rem; }
  .assist-agent { width: 100%; }
}

.nav-links a.nav-active::after{width:100%;}

.logo a { display: flex; align-items: center; height: 100%; text-decoration: none; }
