/*
Theme Name: BookU Driver
Theme URI: https://bookudriver.com
Author: Mike Carrolo
Description: Marketing site for BookU Driver, a booking, tracking and live-status app for UK taxi, private hire, minicab and PCO drivers. Links through to the app at bookuhub.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bookudriver
*/

/* ---------- Design tokens ---------- */
:root {
  --bd-navy: #0d1128;
  --bd-navy-light: #1a1f42;
  --bd-blue: #a855f7;
  --bd-blue-light: #c084fc;
  --bd-amber: #a855f7;
  --bd-amber-light: #c084fc;
  --bd-ink: #0d1128;
  --bd-body: #475569;
  --bd-muted: #64748b;
  --bd-line: #e2e8f0;
  --bd-paper: #f8fafc;
  --bd-white: #ffffff;
  --bd-radius: 10px;
  --bd-max: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bd-body);
  background: var(--bd-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bd-ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

a { color: var(--bd-blue); text-decoration: none; }
a:hover { color: var(--bd-blue-light); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.bd-wrap {
  width: 100%;
  max-width: var(--bd-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.bd-section { padding: 88px 0; }
.bd-section--tight { padding: 56px 0; }
.bd-section--navy { background: var(--bd-navy); color: #cbd5e1; }
.bd-section--navy h2, .bd-section--navy h3 { color: #ffffff; }
.bd-section--paper { background: var(--bd-paper); }

.bd-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bd-blue);
}
.bd-section--navy .bd-eyebrow { color: var(--bd-amber); }

.bd-h2 { font-size: 34px; margin-top: 10px; }
.bd-lead {
  font-size: 17px;
  color: var(--bd-muted);
  max-width: 640px;
}
.bd-section--navy .bd-lead { color: #94a3b8; }

.bd-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.bd-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.bd-btn--primary { background: var(--bd-blue); color: #ffffff; }
.bd-btn--primary:hover { background: var(--bd-blue-light); color: #ffffff; }
.bd-btn--amber { background: var(--bd-amber); color: #ffffff; }
.bd-btn--amber:hover { background: var(--bd-amber-light); color: #ffffff; }
.bd-btn--ghost { border-color: rgba(255,255,255,0.35); color: #ffffff; background: transparent; }
.bd-btn--ghost:hover { border-color: #ffffff; color: #ffffff; }
.bd-btn--outline { border-color: var(--bd-line); color: var(--bd-ink); background: #ffffff; }
.bd-btn--outline:hover { border-color: var(--bd-blue); color: var(--bd-blue); }

/* ---------- Header / nav ---------- */
.bd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bd-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.bd-logo { display: flex; align-items: center; gap: 10px; }
.bd-logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: cover; flex-shrink: 0; display: block;
}
.bd-logo-word { font-weight: 800; font-size: 18px; color: #ffffff; letter-spacing: -0.01em; }
.bd-nav { display: flex; align-items: center; gap: 30px; }
.bd-nav-links { display: flex; align-items: center; gap: 26px; }
.bd-nav-links a { color: #cbd5e1; font-size: 14px; font-weight: 500; }
.bd-nav-links a:hover { color: #ffffff; }
.bd-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.bd-nav-toggle span { display: block; width: 22px; height: 2px; background: #ffffff; margin: 5px 0; }

/* ---------- Hero ---------- */
.bd-hero { background: var(--bd-navy); color: #ffffff; padding: 76px 0 90px; }
.bd-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.bd-hero h1 { font-size: 46px; color: #ffffff; margin-top: 14px; line-height: 1.15; }
.bd-hero .bd-lead { color: #b9c2d4; font-size: 18px; margin-top: 18px; max-width: 520px; }
.bd-hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.bd-hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.bd-hero-stat-num { font-size: 24px; font-weight: 800; color: #ffffff; }
.bd-hero-stat-label { font-size: 12.5px; color: #94a3b8; }

.bd-phone-frame {
  width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border-radius: 32px;
  border: 6px solid #1e293b;
  background: linear-gradient(160deg, #17233c, #0f172a);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.bd-placeholder {
  width: 100%; height: 100%;
  border: 1.5px dashed rgba(255,255,255,0.35);
  border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 20px;
}
.bd-placeholder-icon { font-size: 26px; opacity: 0.7; }
.bd-placeholder-text { font-size: 12.5px; color: #94a3b8; line-height: 1.5; }

.bd-hero-graphic { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55); }
.bd-hero-graphic img { width: 100%; height: auto; display: block; }

/* ---------- Co-Pilot chat mockup ---------- */
.bd-copilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 20px; }
.bd-copilot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(168,85,247,0.15); color: var(--bd-blue-light);
  font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 20px;
  margin-bottom: 18px;
}
.bd-chat-mock {
  background: var(--bd-navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 400px;
}
.bd-chat-row { display: flex; }
.bd-chat-row--user { justify-content: flex-end; }
.bd-chat-bubble {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.bd-chat-bubble--user { background: var(--bd-blue); color: #ffffff; border-bottom-right-radius: 4px; }
.bd-chat-bubble--bot { background: rgba(255,255,255,0.06); color: #dbe2f0; border-bottom-left-radius: 4px; }

/* ---------- Feature grid ---------- */
.bd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.bd-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.bd-card {
  background: #ffffff; border: 1px solid var(--bd-line); border-radius: var(--bd-radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.bd-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(168,85,247,0.12); color: var(--bd-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 6px;
}
.bd-card h3 { font-size: 17px; }
.bd-card p { font-size: 14px; color: var(--bd-muted); margin: 0; }

/* ---------- Screenshots ---------- */
.bd-shots-row { display: flex; gap: 22px; margin-top: 48px; overflow-x: auto; padding-bottom: 8px; }
.bd-shot-frame {
  flex: 0 0 220px;
  display: flex; flex-direction: column; gap: 10px;
}
.bd-shot-frame img {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  border-radius: 22px;
  border: 5px solid var(--bd-navy);
  background: var(--bd-paper);
  object-fit: cover;
  object-position: top center;
  display: block;
}
.bd-shot-caption { font-size: 13px; color: var(--bd-muted); text-align: center; }
.bd-shot-frame .bd-placeholder { border-color: var(--bd-line); }
.bd-shot-frame .bd-placeholder-text { color: var(--bd-muted); }

/* ---------- Video ---------- */
.bd-video-frame {
  width: 100%; max-width: 780px; margin: 44px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--bd-navy-light);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.bd-play-btn {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-size: 22px;
}

/* ---------- Reviews ---------- */
.bd-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.bd-review-card {
  background: #ffffff; border: 1px solid var(--bd-line); border-radius: var(--bd-radius);
  padding: 26px;
}
.bd-stars { color: var(--bd-amber); font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.bd-review-quote { font-size: 14.5px; color: var(--bd-body); font-style: italic; }
.bd-review-author { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--bd-ink); }
.bd-review-role { font-size: 12.5px; color: var(--bd-muted); }

/* ---------- CTA band ---------- */
.bd-cta-band { text-align: center; padding: 80px 0; background: linear-gradient(135deg, var(--bd-blue), #6d28d9); color: #ffffff; }
.bd-cta-band h2 { color: #ffffff; }
.bd-cta-band .bd-lead { color: rgba(255,255,255,0.85); margin: 14px auto 30px; }

/* ---------- Footer ---------- */
.bd-footer { background: var(--bd-navy); color: #94a3b8; padding: 56px 0 30px; font-size: 13.5px; }
.bd-footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.bd-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.bd-footer-links a { color: #94a3b8; }
.bd-footer-links a:hover { color: #ffffff; }
.bd-footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; color: #64748b; font-size: 12.5px; }

/* ---------- Language switcher ---------- */
.bd-lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.bd-lang-link { font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 6px; filter: grayscale(45%) opacity(0.75); transition: filter 0.15s ease, background 0.15s ease; }
.bd-lang-link:hover { filter: grayscale(0%) opacity(1); background: rgba(255,255,255,0.06); }
.bd-lang-link.is-active { filter: grayscale(0%) opacity(1); background: rgba(168,85,247,0.14); }

/* ---------- Language suggestion banner ---------- */
.bd-lang-suggest { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: var(--bd-navy-light); color: #cbd5e1; text-align: center; font-size: 13.5px; padding: 10px 44px 10px 16px; position: relative; }
.bd-lang-suggest a { color: var(--bd-blue-light); font-weight: 700; text-decoration: underline; }
.bd-lang-suggest-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94a3b8; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.bd-lang-suggest-close:hover { color: #ffffff; }

/* ---------- Basic page/blog content ---------- */
.bd-page-content { padding: 72px 0 90px; }
.bd-page-content h1 { font-size: 36px; margin-bottom: 24px; }
.bd-page-content .bd-content-body { max-width: 720px; }
.bd-post-list article { padding: 28px 0; border-bottom: 1px solid var(--bd-line); }
.bd-post-list h2 { font-size: 22px; }
.bd-post-meta { font-size: 13px; color: var(--bd-muted); margin: 6px 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bd-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .bd-hero .bd-lead { margin-left: auto; margin-right: auto; }
  .bd-hero-ctas, .bd-hero-stats { justify-content: center; }
  .bd-grid-3, .bd-grid-4, .bd-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .bd-phone-frame { margin-top: 40px; }
}

@media (max-width: 680px) {
  .bd-nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bd-navy); flex-direction: column; align-items: flex-start; padding: 16px 24px 20px; gap: 16px; display: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .bd-nav-links.is-open { display: flex; }
  .bd-nav-toggle { display: block; }
  .bd-lang-switch { margin: 8px 0 0; margin-left: 0; }
  .bd-hero h1 { font-size: 32px; }
  .bd-h2 { font-size: 26px; }
  .bd-grid-3, .bd-grid-4, .bd-grid-2 { grid-template-columns: 1fr; }
  .bd-section { padding: 56px 0; }
  .bd-footer-grid { flex-direction: column; gap: 24px; }
}
