/* ==========================================================================
   Hyderabad To Vijayawada Cabs — Design System
   Theme: Navy + Royal Blue + Amber. Clean, modern, conversion-focused.
   ========================================================================== */

:root {
  /* Navy */
  --navy-950: #071427;
  --navy-900: #0B1F3A;
  --navy-800: #132D52;
  --navy-700: #1B3A68;
  --navy-500: #2F5089;

  /* Royal blue */
  --blue-700: #0E3FC4;
  --blue-600: #155EEF;
  --blue-500: #3D7BFF;
  --blue-100: #E4ECFF;

  /* Amber (sparing use: CTAs, fare highlights) */
  --amber-600: #F59E0B;
  --amber-500: #FBBF24;
  --amber-400: #FDD067;

  /* Neutrals */
  --ivory-100: #FFF9ED;
  --ivory-050: #FFFDF8;
  --white: #FFFFFF;
  --grey-100: #F2F4F7;
  --grey-200: #E6E9EF;
  --ink-900: #1C2333;
  --ink-700: #3E475C;
  --ink-500: #6B7385;
  --line: #E6E9EF;
  --success: #1D8A4B;

  /* Type */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", monospace;

  /* Layout */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-deep: 0 20px 48px rgba(7, 20, 39, 0.22);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--ivory-050);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--ink-700); }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--blue-600);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.6em;
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-tight { padding: 44px 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--amber-500); color: var(--navy-950);
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(11,31,58,0.05);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex-shrink: 0; }
.brand-mark-img {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-family: var(--font-display); color: var(--navy-900); font-size: 1.02rem; font-weight: 800; white-space: nowrap; }
.brand-text span { font-size: 0.72rem; color: var(--blue-600); font-family: var(--font-mono); letter-spacing: 0.05em; font-weight: 600; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > * { margin-right: 26px; }
.main-nav > *:last-child { margin-right: 0; }
.main-nav a {
  color: var(--ink-900); text-decoration: none; font-size: 0.93rem; font-weight: 600;
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--blue-600); transition: width 0.2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav details { position: relative; }
.main-nav summary {
  color: var(--ink-900); cursor: pointer; list-style: none; font-size: 0.93rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav details[open] summary { color: var(--blue-600); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-deep);
  padding: 22px; display: grid; grid-template-columns: repeat(3, 200px); gap: 22px 28px;
  border: 1px solid var(--line);
}
.mega-col h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-600); font-family: var(--font-body); margin-bottom: 10px; }
.mega-col a { display: block; color: var(--ink-700); text-decoration: none; font-size: 0.9rem; padding: 5px 0; }
.mega-col a:hover { color: var(--blue-600); text-decoration: underline; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 10px; text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); color: var(--navy-950); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35); }
.btn-amber:hover { box-shadow: 0 10px 26px rgba(245, 158, 11, 0.5); }
.btn-outline { background: transparent; color: var(--navy-900); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-950); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top right, rgba(21,94,239,0.25), transparent 55%), var(--navy-900);
  color: var(--white);
  padding: 84px 0 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero .lede { color: #C7D3EA; font-size: 1.08rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--amber-500); }
.hero-stats div span { font-size: 0.82rem; color: #C7D3EA; }

.route-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-deep); color: var(--ink-900); position: relative;
}
.route-card h3 { margin-bottom: 4px; }
.route-card .muted { color: var(--ink-500); font-size: 0.88rem; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--navy-800); }
.field select, .field input {
  padding: 11px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 0.95rem; background: #fff;
}
.route-card [data-fc-result] {
  margin-top: 6px; background: var(--blue-100); border: 1px solid rgba(21,94,239,0.25);
  border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.route-card [data-fc-result] strong { font-family: var(--font-display); color: var(--navy-900); font-size: 1.05rem; }
.route-card [data-fc-result] span { font-size: 0.82rem; color: var(--ink-500); }
.route-card [data-fc-result] .fc-note { color: var(--amber-600); font-weight: 600; }
.trip-toggle { display: flex; gap: 10px; margin-bottom: 14px; }
.trip-toggle label {
  flex: 1; text-align: center; padding: 9px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-size: 0.85rem; font-weight: 700; color: var(--ink-700); cursor: pointer; position: relative;
}
.trip-toggle input { position: absolute; opacity: 0; }
.trip-toggle label:has(input:checked) { background: var(--amber-500); border-color: var(--amber-600); color: var(--navy-950); }

/* ---------- Highway divider (signature element) ---------- */
.road-divider {
  height: 14px; width: 100%;
  background: var(--navy-900);
  position: relative;
}
.road-divider::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%);
  background-image: repeating-linear-gradient(90deg, var(--amber-500) 0 28px, transparent 28px 52px);
}

/* ---------- Generic sections ---------- */
.band-grey { background: var(--grey-100); }
.band-navy { background: var(--navy-900); color: var(--white); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy p { color: #C7D3EA; }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .icon-badge {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.step-list li { position: relative; padding-left: 54px; }
.step-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--navy-950); font-family: var(--font-display); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy-800); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--blue-600); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 12px; }

table.fare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
table.fare-table th, table.fare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
table.fare-table th { background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-weight: 700; }
table.fare-table tr:last-child td { border-bottom: none; }
table.fare-table tr:hover td { background: var(--grey-100); }

.breadcrumb { font-size: 0.82rem; color: var(--ink-500); padding: 16px 0; }
.breadcrumb a { color: var(--ink-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-600); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--navy-800); font-weight: 700; }

.tag { display: inline-block; background: var(--blue-100); color: var(--blue-700); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin: 0 6px 6px 0; }

blockquote.review {
  background: #fff; border-left: 4px solid var(--amber-500); padding: 18px 22px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0; font-style: italic; color: var(--ink-700); box-shadow: var(--shadow-soft);
}
blockquote.review footer { margin-top: 10px; font-style: normal; font-weight: 700; color: var(--navy-800); font-size: 0.85rem; }

.fleet-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  border: 1px solid var(--line); background: #fff;
}
.fleet-photo img { width: 100%; height: 340px; object-fit: cover; display: block; }
.fleet-photo figcaption { padding: 12px 16px; font-size: 0.85rem; color: var(--ink-500); background: var(--grey-100); }

.vehicle-illus {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  border: 1px solid var(--line); background: var(--ivory-100);
}
.vehicle-illus img { width: 100%; height: auto; display: block; }
.vehicle-illus figcaption { padding: 10px 16px; font-size: 0.8rem; color: var(--ink-500); background: var(--grey-100); }
.route-map-illus { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-deep); }
.route-map-illus img { width: 100%; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #C7D3EA; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer a { color: #C7D3EA; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--amber-500); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--ink-500); }

/* ---------- Floating CTAs ---------- */
.floating-ctas { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.5rem; box-shadow: var(--shadow-deep); border: none; cursor: pointer;
}
.fab-call { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); color: var(--navy-950); animation: pulse 2.4s infinite; }
.fab-whatsapp { background: #25D366; color: #fff; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5), var(--shadow-deep);} 50% { box-shadow: 0 0 0 12px rgba(245,158,11,0), var(--shadow-deep);} }
@media (prefers-reduced-motion: reduce) { .fab-call { animation: none; } }

.mobile-bar { display: none; }

/* ---------- Callback popup ---------- */
.callback-popup {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  transform: translateY(120%); transition: transform 0.35s ease;
}
.callback-popup.show { transform: translateY(0); }
.callback-popup-inner {
  max-width: 560px; margin: 0 auto 18px; background: var(--navy-900); color: var(--white);
  border: 1px solid rgba(21,94,239,0.4); border-radius: var(--radius-lg); box-shadow: var(--shadow-deep);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.callback-popup-inner p { color: var(--white); margin: 0; font-size: 0.92rem; flex: 1 1 220px; min-width: 0; }
.callback-popup-inner strong { color: var(--amber-500); }
.callback-popup-inner .btn { flex-shrink: 0; }
.callback-close { background: none; border: none; color: #C7D3EA; font-size: 1.2rem; cursor: pointer; margin-left: auto; padding: 4px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--line); color: var(--navy-900);
    border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 1.1rem;
  }
  body.nav-open .main-nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: fixed; top: 70px; left: 0; right: 0; background: var(--white);
    padding: 18px 24px 26px; z-index: 400; box-shadow: var(--shadow-deep);
  }
  body.nav-open .mega { position: static; transform: none; grid-template-columns: 1fr; width: 100%; margin-top: 8px; }
  .header-cta .btn-outline { display: none; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 76px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .floating-ctas { right: 14px; bottom: 78px; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    background: var(--navy-950); border-top: 1px solid rgba(21,94,239,0.3);
  }
  .mobile-bar a {
    flex: 1; text-align: center; padding: 13px 0; color: var(--white); text-decoration: none;
    font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .mobile-bar a.call { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); color: var(--navy-950); }
  .mobile-bar a.wa { background: #1EBE57; }
  body { padding-bottom: 56px; }

  .site-header .wrap { padding: 10px 14px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark-img { width: 32px; height: 32px; }
  .brand-text strong { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; display: block; }
  .brand-text span { font-size: 0.56rem; }
  .header-cta { gap: 5px; }
  .header-cta .btn-amber { padding: 8px 10px; font-size: 0.74rem; white-space: nowrap; }
  .nav-toggle { padding: 6px 9px; font-size: 0.95rem; }

  .hero .lede { font-size: 0.98rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { font-size: 0.88rem; padding: 11px 18px; }
  .hero-stats { gap: 18px 22px; margin-top: 28px; }
  .hero-stats div strong { font-size: 1.3rem; }
  .route-card { padding: 20px; }
}
@media (max-width: 380px) {
  .brand-text span { display: none; }
  .header-cta .btn-amber { padding: 7px 9px; font-size: 0.7rem; }
}
