/* Custom Design System for Ghaziabad Tempo Traveller */
:root {
  --primary-color: #0b2545;
  --primary-hover: #134074;
  --accent-color: #f4a261;
  --accent-hover: #e76f51;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1da851;
  --phone-color: #d90429;
  --phone-hover: #ef233c;
  --dark-text: #1d2d44;
  --muted-text: #6c757d;
  --light-bg: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 6px 20px rgba(11, 37, 69, 0.1);
  --shadow-lg: 0 12px 30px rgba(11, 37, 69, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s ease-in-out;
}

/* Strict Mobile Overflow & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--dark-text);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Ensure no images or SVGs overflow their container */
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Crucial Fix: Ensure headers inside dark brand sections are bright white */
.bg-brand,
.bg-brand h1,
.bg-brand h2,
.bg-brand h3,
.bg-brand h4,
.bg-brand h5,
.bg-brand h6,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.text-white h1,
.text-white h2,
.text-white h3,
h1.text-white,
h2.text-white,
h3.text-white,
.text-white {
  color: #ffffff !important;
}

.bg-brand p,
.bg-brand .lead,
.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

.text-brand {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-brand {
  background-color: var(--primary-color) !important;
}

.bg-light-custom {
  background-color: var(--light-bg) !important;
}

/* Buttons & CTAs */
.btn-call {
  background-color: var(--phone-color);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-call:hover {
  background-color: var(--phone-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 4, 41, 0.4);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-brand-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  border: 1px solid var(--primary-color);
  transition: var(--transition);
}

.btn-brand-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-brand-outline {
  background-color: transparent;
  color: var(--primary-color) !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
}

.btn-brand-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff !important;
}

/* Header & Navbar */
.top-bar {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.top-bar a {
  color: #ffffff;
}

.navbar-custom {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
  transition: var(--transition);
}

.navbar-custom .navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.navbar-custom .nav-link {
  font-weight: 600;
  color: var(--dark-text);
  padding: 8px 16px !important;
  font-size: 0.95rem;
  border-radius: 6px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(11, 37, 69, 0.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.94) 0%, rgba(19, 64, 116, 0.88) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 60px 0 80px;
}

.hero-section h1 {
  color: #ffffff !important;
  font-size: 2.75rem;
  line-height: 1.2;
}

.hero-section .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9) !important;
}

.trust-badge-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Quick Enquiry Form Card */
.enquiry-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-top: -35px;
  position: relative;
  z-index: 10;
  max-width: 100%;
}

.enquiry-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-text);
  margin-bottom: 4px;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid #ced4da;
  padding: 10px 14px;
  font-size: 0.95rem;
  max-width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(11, 37, 69, 0.15);
}

/* Vehicle & Feature Cards */
.fleet-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fleet-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 37, 69, 0.2);
}

.fleet-card-img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.fleet-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fleet-card:hover .fleet-card-img {
  transform: scale(1.05);
}

.fleet-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

.fleet-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fleet-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.fleet-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.875rem;
  color: #4a5568;
}

.fleet-spec-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.fleet-spec-list i {
  color: var(--primary-color);
}

/* Feature/Why Choose Us Card */
.feature-box {
  padding: 24px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(11, 37, 69, 0.08);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Destination Card */
.destination-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 240px;
  display: block;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.destination-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 37, 69, 0.95) 0%, rgba(11, 37, 69, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
}

.destination-card:hover img {
  transform: scale(1.08);
}

.destination-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 4px 0;
}

.destination-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Local SEO Section */
.location-badge {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 4px;
  box-shadow: var(--shadow-sm);
}

/* Accordion FAQs */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
  padding: 16px 20px;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(11, 37, 69, 0.05);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
}

/* Mobile Sticky CTA Bar */
#mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  display: none;
  box-sizing: border-box;
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.15rem;
  }
}

@media (max-width: 767.98px) {
  #mobile-cta {
    display: flex;
    gap: 10px;
  }

  body {
    padding-bottom: 65px;
  }

  .hero-section {
    padding: 35px 0 55px;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .enquiry-card {
    margin-top: -25px;
    padding: 16px;
  }

  .navbar-custom .navbar-brand {
    font-size: 1.1rem;
  }

  .display-5 {
    font-size: 1.85rem !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .btn-call,
  .btn-whatsapp {
    padding: 9px 16px;
    font-size: 0.9rem;
  }
}

/* Footer Styling */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  padding: 50px 0 20px;
  overflow: hidden;
}

footer h5 {
  color: #ffffff !important;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.75);
}

footer ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
}

/* Breadcrumbs */
.breadcrumb-item a {
  color: var(--primary-color);
  font-weight: 500;
}