/**
* Optimized Style CSS for Bharat Taxi
* Mobile responsive + PageSpeed fixes
*/

/* General */
* { padding: 0; border: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: "Open Sans", sans-serif; color: #212529; }
a { color: #eb5d1e; text-decoration: none; }
a:hover { color: #ef7f4d; text-decoration: none; }
h1, h2, h3, h4, h5, h6, .font-primary { font-family: "Raleway", sans-serif; }
h1 { letter-spacing: -0.2px; }
.section-title p { margin-top: 4px; }
.btn { font-weight: 600; font-display: swap; }
.container { max-width: 1140px; }

/* Back to top */
.back-to-top {
  position: fixed; visibility: hidden; opacity: 0;
  right: 15px; bottom: 15px; z-index: 99999;
  background: #eb5d1e; width: 40px; height: 40px; border-radius: 4px;
  transition: all 0.4s;
}
.back-to-top i { font-size: 24px; color: #fff; line-height: 0; }
.back-to-top:hover { background: #ee7843; color: #fff; }
.back-to-top.active { visibility: visible; opacity: 1; }

/* Disable aos delay on mobile */
@media screen and (max-width: 768px) { [data-aos-delay] { transition-delay: 0 !important; } }

/* Header */
#header {
  height: 72px; z-index: 997; background: #fff;
  box-shadow: 0px 2px 15px rgba(0,0,0,0.1); transition: all 0.5s;
}
#header .logo img { max-height: 40px; }
#main { margin-top: 72px; }

/* Navbar */
.navbar { padding: 0; }
.navbar ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
.navbar a {
  display: flex; align-items: center;
  padding: 10px 0 10px 30px; font-size: 15px; color: #4e4039; transition: 0.3s;
}
.navbar a:hover, .navbar .active { color: #eb5d1e; }
.navbar .getstarted {
  background: #eb5d1e; color: #fff; padding: 10px 25px; margin-left: 30px; border-radius: 50px;
}
.navbar .getstarted:hover { background: #ee7843; }

/* Mobile nav */
.mobile-nav-toggle { color: #7a6960; font-size: 28px; cursor: pointer; display: none; }
@media (max-width: 991px) { .mobile-nav-toggle { display: block; } .navbar ul { display: none; } }
.navbar-mobile {
  position: fixed; top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(78,64,57,0.9); transition: 0.3s;
}
.navbar-mobile ul {
  display: block; position: absolute; top: 55px; right: 15px; bottom: 15px; left: 15px;
  padding: 10px 0; background: #fff; overflow-y: auto;
}

/* Hero Section */
#hero {
  width: 100%; background: #fef8f5; border-bottom: 2px solid #fcebe3;
  margin: 72px 0 -72px 0; padding: 0; height: auto;
}
.hero-slide {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 20px; padding: 40px 20px;
}
.hero-slide img {
  width: 100%; max-width: 880px; height: auto;
  object-fit: cover; border-radius: 12px;
}
.hero-title {
  font-size: 42px; font-weight: 800; color: #2e2a27; line-height: 1.2; margin: 8px 0 12px;
}
.hero-subtitle { font-size: 18px; color: #555; line-height: 1.6; margin-bottom: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-ctas .btn { padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 16px; }
.btn-primary { background: #2257f3; color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-outline { border: 1px solid #bbb; color: #333; background: #fff; }
.btn-outline:hover { border-color: #888; }

/* Swiper hero slider */
.hero-slider { position: relative; }
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(34,87,243,0.95); color: #fff;
  top: 40%; transform: translateY(-50%);
}
.hero-slider .swiper-button-prev { left: 12px; }
.hero-slider .swiper-button-next { right: 12px; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: #cfcfcf; }
.swiper-pagination-bullet-active { background: #2257f3; }

/* Responsive Hero */
@media (max-width: 991px) {
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 16px; }
  .hero-slide { padding: 20px 12px; }
}
@media (max-width: 575px) {
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}

/* Sections */
section { padding: 60px 0; }
.section-title { text-align: center; padding-bottom: 30px; }
.section-title p {
  font-size: 28px; font-weight: 700; color: #4e4039;
  position: relative; margin-bottom: 15px;
}
.section-title p::after {
  content: ""; width: 60px; height: 2px; background: #eb5d1e;
  display: block; margin: 8px auto 0;
}

/* About */
.about h3 { font-weight: 700; font-size: 32px; color: #4e4039; }
.about h4 { font-size: 20px; font-weight: 700; color: #7a6960; }
.about p { font-size: 15px; color: #5a6570; }

/* Services */
.services .icon-box {
  padding: 30px; margin: 0 0 30px; background: #fff;
  box-shadow: 0 10px 29px rgba(68,88,144,0.1);
  border-radius: 12px; text-align: center; transition: all 0.3s ease;
}
.services .icon-box:hover { transform: translateY(-4px); }
.services .icon i { font-size: 44px; color: #ef7f4d; margin-bottom: 15px; }

/* Contact */
.contact .info {
  border-top: 3px solid #eb5d1e; border-bottom: 3px solid #eb5d1e;
  padding: 30px; background: #fff; width: 100%;
  box-shadow: 0 0 24px rgba(0,0,0,0.12);
}
.contact .info h4 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.contact .info p { font-size: 14px; }

/* Footer */
#footer { background: #fef8f5; padding: 20px 0; text-align: center; font-size: 14px; }
#footer .social-links a {
  font-size: 18px; display: inline-block; background: #eb5d1e; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; margin: 0 4px; line-height: 36px;
}
#footer .social-links a:hover { background: #ef7f4d; }

/* ===== Hero performance fixes, mobile-first stack ===== */
.hero-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 16px;
}

/* Reserve space to prevent layout shift */
.hero-media {
  width: 100%;
  max-width: 1140px;
}
.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  display: block;
  margin: 0 auto;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #2d2d2d;
  line-height: 1.3;
  margin: 4px 0 6px;
}
.hero-subtitle {
  font-size: 16px;
  color: #555;
  margin: 0 0 12px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-ctas .btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
}
.btn-primary { background:#2257f3; color:#fff; }
.btn-primary:hover { opacity:.9; }
.btn-outline { border:1px solid #bbb; color:#333; background:#fff; }
.btn-outline:hover { border-color:#888; }

/* Swiper controls sized for small screens first */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(34,87,243,.95);
  color: #fff;
  top: 40%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.hero-slider .swiper-button-prev { left: 12px; }
.hero-slider .swiper-button-next { right: 12px; }
.hero-slider .swiper-button-prev:after,
.hero-slider .swiper-button-next:after { font-size: 16px; font-weight: 700; }

.swiper-pagination { margin-top: 10px; }
.swiper-pagination-bullet { width: 8px; height: 8px; background: #ccc; opacity: 1; }
.swiper-pagination-bullet-active { background: #2257f3; }

/* Medium and up */
@media (min-width: 768px) {
  .hero-image { aspect-ratio: 16 / 9; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 18px; }
  .hero-ctas .btn { font-size: 16px; padding: 12px 22px; }
  .hero-slider .swiper-button-prev,
  .hero-slider .swiper-button-next { width: 44px; height: 44px; }
}

/* ===== Global a11y tweaks ===== */
:focus-visible {
  outline: 2px solid #2257f3;
  outline-offset: 2px;
}

/* Make sure images below the fold do not force reflow once loaded */
img[loading="lazy"] {
  contain: content;
}
