/* City Rent A Car Cumilla — site stylesheet
   Mobile-first: base rules target small phones, larger screens are
   progressively enhanced via min-width media queries. */

:root {
  --accent: #0F6F66;
  --accent-soft: rgba(15, 111, 102, 0.09);
  --call: #C2570B;
  --whatsapp: #25D366;
  --ink: #1C1A17;
  --muted: #8F8A7C;
  --border: #E9E5D9;
  --bg: #FBF9F4;
  --card: #FFFFFF;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0 0 0.6em; text-wrap: pretty; }
a { color: var(--accent); }
img, svg { max-width: 100%; }

/* ---------- Bangla / English toggle ---------- */
.en { display: none; }
html[data-lang="en"] .bn { display: none; }
html[data-lang="en"] .en { display: inline; }

/* ---------- Layout shell ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name .bn { font-size: 16px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.brand-name .en { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-contact { display: none; } /* shown from tablet width up; mobile uses the sticky bottom bar */

.lang-toggle {
  display: flex;
  align-items: center;
  background: #F1EEE4;
  border-radius: 12px;
  padding: 3px;
  border: none;
}
.lang-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  height: 40px;
  min-width: 46px;
  border-radius: 9px;
  cursor: pointer;
  font-family: 'Manrope', 'Noto Sans Bengali', sans-serif;
}
html[data-lang="bn"] #lang-bn,
html[data-lang="en"] #lang-en {
  background: var(--accent);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero { padding: 22px 0 6px; }
.hero h1 { font-size: 21px; font-weight: 800; }
.hero p.lead { font-size: 13.5px; color: var(--muted); max-width: 56ch; }

/* ---------- Fare widget ---------- */
.fare-widget { margin: 18px 0 8px; }
.fare-widget h2 {
  font-size: 15px;
  font-weight: 700;
}
.fare-widget .hint { font-size: 11.5px; color: var(--muted); margin-top: -8px; margin-bottom: 14px; }

.route-list { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }

.route-item details {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}
.route-item details[open] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.route-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
}
.route-item summary::-webkit-details-marker { display: none; }
.route-item summary::marker { content: ''; }

.route-summary-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.route-icon { flex-shrink: 0; color: var(--muted); }
.route-item details[open] .route-icon { color: var(--accent); }
.route-name { font-size: 14.5px; font-weight: 700; }
.route-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 20px;
}
.chevron { flex-shrink: 0; color: var(--muted); transition: transform .15s; }
.route-item details[open] .chevron { transform: rotate(180deg); color: var(--accent); }

.vehicle-panel { padding: 2px 14px 14px; }
.vehicle-panel .label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 6px 0 8px;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.vehicle-card { position: relative; }
.vehicle-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.vehicle-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 11px 4px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
}
.vehicle-card input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.vehicle-card input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.vehicle-card svg { color: #5C594E; }
.vehicle-name { font-size: 11.5px; font-weight: 700; margin-top: 6px; }
.vehicle-fare { font-size: 12.5px; font-weight: 800; color: var(--accent); margin-top: 1px; }
.vehicle-card input:checked + label .vehicle-name,
.vehicle-card input:checked + label svg { color: var(--accent); }

.trip-summary {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.trip-summary.active { display: block; }
.trip-summary .label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.trip-summary .value { font-size: 13px; font-weight: 800; margin: 2px 0 0; }

/* ---------- Sticky mobile contact bar ---------- */
.mobile-contact-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--border);
}
.contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.contact-btn.call { background: var(--call); }
.contact-btn.whatsapp { background: var(--whatsapp); }
.contact-btn[aria-disabled="true"] { background: var(--border); color: var(--muted); pointer-events: none; }

/* ---------- Content sections (route pages, homepage) ---------- */
.section { padding: 26px 0; }
.section h2 { font-size: 17px; font-weight: 800; }
.section p { font-size: 13.5px; color: #4A473E; max-width: 66ch; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.trust-card h3 { font-size: 13.5px; font-weight: 800; margin: 0 0 4px; }
.trust-card p { font-size: 12.5px; margin: 0; }

.faq-list { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.faq-item h3 { font-size: 13.5px; font-weight: 800; margin: 0 0 4px; }
.faq-item p { font-size: 12.5px; color: #4A473E; margin: 0; }

.route-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.route-links a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  text-decoration: none;
}
.route-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 96px; /* extra bottom padding clears the sticky mobile bar */
  font-size: 12px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }

/* ================= Tablet / desktop ================= */
@media (min-width: 768px) {
  .nav-contact { display: flex; align-items: center; gap: 8px; }
  .nav-contact .contact-btn { height: 40px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
  .mobile-contact-bar { display: none; }
  .site-footer { padding-bottom: 22px; }

  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 15px; }

  .page-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
  }
  .fare-widget {
    position: sticky;
    top: 84px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 18px 6px;
    order: 2; /* fare widget is first in the HTML (mobile priority), keep it on the right on desktop */
  }
  .page-intro { order: 1; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 32px; }
  .trust-grid { grid-template-columns: 1fr 1fr 1fr; }
}
