/* =========================================================
   White Glove Executive Transport — site styles
   Colors and fonts match the flyer and app prototype.
   ========================================================= */
:root {
  --ink: #14181F;        /* near-black: header, text */
  --navy: #1F3A5F;       /* headings, links */
  --amber: #E8A317;      /* buttons, highlights */
  --cream: #F4F2EE;      /* page background */
  --paper: #FFFFFF;      /* cards */
  --muted: #4E5663;      /* secondary text */
  --line: #D9D5CC;       /* borders */
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; line-height: 1; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4vw, 42px); color: var(--navy); }
h3 { font-size: 24px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section.alt { background: #ECE8E0; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: var(--cream); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 64px; }
.brand { color: var(--cream); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; }
.brand span { color: var(--amber); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: #D5D9DF; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav-call { color: var(--amber) !important; font-weight: 600; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--cream); padding: 72px 0 56px; }
.eyebrow { color: var(--amber); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); margin-bottom: 20px; }
.lead { font-size: 20px; color: #D5D9DF; max-width: 680px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.states { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.states li { border: 1px solid #5A6370; border-radius: 4px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.states li.hl { border-color: var(--amber); }
.hero .hero-fine { color: #D5D9DF; margin-top: 12px; }

.notice { background: #FFF4DB; border-bottom: 1px solid var(--amber); padding: 12px 0; font-size: 15px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #D4930F; }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid #9AA1AB; }
.btn.block { width: 100%; }

/* ---------- cards & lists ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-3.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.who { margin-top: 24px; color: var(--muted); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: 17px; }
.ticks { padding-left: 20px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form [hidden] { display: none; }
.row-3 { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row-3 { grid-template-columns: 1fr; } }
.suggest { margin-top: -8px; border: 1px solid #c9ccd3; border-radius: 8px; background: #fff; overflow: hidden; }
.suggest p { margin: 0; padding: 8px 12px; font-size: 13px; color: #5b6472; }
.suggest button { display: block; width: 100%; padding: 10px 12px; border: 0; border-top: 1px solid #e6e8ec; background: #fff; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.suggest button:hover, .suggest button:focus { background: #f1f4f9; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px;
  border: 1px solid #9AA1AB; border-radius: 6px; background: var(--paper); min-height: 48px; width: 100%;
}
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 20px; min-height: 20px; margin-top: 3px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid #9AA1AB; border-radius: 22px; padding: 10px 16px; font-weight: 600; cursor: pointer; }
.pills label:has(input:checked) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pills input { width: auto; min-height: 0; margin: 0; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- quote ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.price-box { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; display: grid; gap: 14px; }
.price-label { margin: 0; font-weight: 600; color: var(--muted); }
.price { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 64px; line-height: 1; }
.breakdown { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 15px; }
.breakdown dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about img { border-radius: var(--radius); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #C9CED6; padding: 32px 0; font-size: 14px; }
.footer a { color: var(--amber); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- phone layout ---------- */
@media (max-width: 800px) {
  .quote-layout, .about { grid-template-columns: 1fr; }
  .price-box { position: static; }
  .nav a:not(.nav-call) { display: none; }
  .section { padding: 48px 0; }
}

/* ---------- pay table (drivers page) ---------- */
.pay { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.pay th, .pay td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.pay td:not(:first-child), .pay th:not(:first-child) { text-align: right; }

/* ---------- state + city pickers ---------- */
.row-state { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2.5fr); gap: 12px; }

/* ---------- booking form extras ---------- */
.form h3 { font-size: 22px; color: var(--navy); margin: 12px 0 0; }
.form input[type="file"] { padding: 10px; background: var(--paper); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; }
.form-status.error { color: #A3261B; font-weight: 600; }
.done h3 { color: var(--navy); }

/* ---------- photo picker ---------- */
.photo-picker { display: grid; gap: 8px; }
.photo-picker .label { font-weight: 600; font-size: 15px; }
.btn-ghost-dark { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); justify-self: start; }
.visually-hidden { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-picker { position: relative; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumbs li { position: relative; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 14px; border: 0; background: rgba(20,24,31,.8); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

/* ---------- city search box ---------- */
.combo { position: relative; display: block; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: var(--paper); border: 1px solid #9AA1AB; border-radius: 6px; box-shadow: 0 8px 24px rgba(20,24,31,.15); max-height: 320px; overflow-y: auto; }
.combo-list li { padding: 12px 14px; font-weight: 400; cursor: pointer; }
.combo-list li:hover { background: #E9EEF5; }
.combo-list li.none { color: var(--muted); cursor: default; font-size: 14px; }

/* ---------- Company data tables ---------- */
.pay.data th, .pay.data td { text-align: left; }
.pay.data th[scope="row"] { width: 38%; color: var(--muted); font-weight: 600; }
.pay.data td:not(:first-child), .pay.data th:not(:first-child) { text-align: left; }

/* ---------- Footer copyright and Terms page ---------- */
.copyright { flex-basis: 100%; margin: 8px 0 0; font-size: 13px; color: #9AA1AB; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink); }

/* ---------- Logo mark in the top bar ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; }

/* ---------- Phones and tablets ---------- */
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
.brand { white-space: nowrap; }
.pay td, .pay th { overflow-wrap: anywhere; }
.footer a { display: inline-block; padding: 6px 0; }
@media (max-width: 800px) {
  html { scroll-padding-top: 112px; }
  .topbar-inner { gap: 0 16px; min-height: 0; padding-top: 8px; padding-bottom: 4px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  /* Menu becomes one row under the logo; swipe sideways if it doesn't fit. */
  .nav { flex: 1 0 100%; flex-wrap: nowrap; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav a:not(.nav-call) { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; flex: 0 0 auto; }
  .nav-call { order: -1; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; }
  .pay th, .pay td { padding: 10px; }
}
