/* Quality Buses For Sale — site styles */
:root {
  --navy: #132c47;
  --navy-dark: #0c1e33;
  --accent: #e8862d;
  --accent-dark: #c96f1c;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1d2733;
  --muted: #5b6b7c;
  --line: #e3e8ee;
  --good: #1e7a3c;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 30, 50, .08), 0 8px 24px rgba(16, 30, 50, .07);
}

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

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, .brand { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .3px; }

img { max-width: 100%; display: block; }
a { color: var(--navy); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Top utility bar */
.topbar {
  background: var(--navy-dark);
  color: #cfd9e4;
  font-size: 14px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

/* Header */
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 18px; flex-wrap: wrap;
}
.brand { font-size: 26px; font-weight: 700; color: var(--navy); text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav.main a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); }
nav.main a:hover { color: var(--accent-dark); }
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 10px 22px; border-radius: 6px; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; font-size: 15px;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; border: 2px solid #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.15); }

/* Hero */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(9, 22, 38, .72), rgba(9, 22, 38, .72)), url("images/2010-new-flyer-transit-bus-for-sale/img-1.jpg") center 60% / cover no-repeat;
  padding: 96px 0 110px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; max-width: 720px; }
.hero p.lead { font-size: 19px; max-width: 640px; margin: 18px 0 30px; color: #e6edf5; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Trust bar */
.trustbar { background: var(--navy); color: #fff; }
.trustbar .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: rgba(255,255,255,.12);
}
.trust-item { background: var(--navy); padding: 18px 20px; }
.trust-item b { display: block; font-size: 16px; }
.trust-item small { color: #b8c6d5; font-size: 13.5px; line-height: 1.35; display: block; }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 34px; color: var(--navy); text-transform: uppercase; }
.section-head a.all { font-weight: 700; font-size: 15px; }

/* Inventory grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dde3ea; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .4px;
}
.badge.sold { background: #9aa7b5; }
.badge.multi { background: var(--good); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 21px; color: var(--navy); line-height: 1.2; }
.card .specs { color: var(--muted); font-size: 14px; }
.card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.card .price { font-size: 20px; font-weight: 800; color: var(--navy); }
.card .price small { font-weight: 600; color: var(--muted); font-size: 13px; }
.card a.details { font-weight: 700; font-size: 14.5px; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--text);
}
.filters button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Why us */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why .item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why .item .num { font-size: 30px; font-weight: 800; color: var(--accent); font-family: "Barlow Condensed", sans-serif; }
.why .item h3 { color: var(--navy); font-size: 20px; margin: 6px 0 4px; }
.why .item p { color: var(--muted); font-size: 14.5px; }

/* Contact */
.contact-band { background: var(--navy); color: #fff; text-align: center; padding: 60px 20px; }
.contact-band h2 { font-size: 36px; text-transform: uppercase; }
.contact-band p { color: #c9d6e2; max-width: 560px; margin: 10px auto 26px; }
.contact-band .phone { font-size: 30px; font-weight: 800; color: #fff; text-decoration: none; display: inline-block; margin-bottom: 18px; }

/* Footer */
footer.site { background: var(--navy-dark); color: #9fb0c1; padding: 40px 0 30px; font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-bottom: 26px; }
footer.site h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
footer.site a { color: #cfd9e4; text-decoration: none; display: block; margin-bottom: 6px; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 13px; }

/* Detail page */
.detail-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: start; }
.detail-wrap .gallery img { border-radius: var(--radius); box-shadow: var(--shadow); }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-table td:first-child { font-weight: 700; color: var(--navy); width: 44%; background: #fbfcfd; }
.price-big { font-size: 34px; font-weight: 800; color: var(--navy); }
.detail-cta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.detail-cta .btn { width: 100%; text-align: center; margin-top: 12px; }

@media (max-width: 860px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 80px; }
}
