/* ============================================================
   ROBOTAXI REPORT — MASTER STYLESHEET
   ============================================================ */

:root {
  --bg: #f9f8f5;
  --white: #ffffff;
  --navy: #0c3d6e;
  --navy-light: #1a5491;
  --teal: #0d7a5f;
  --teal-hover: #0a6550;
  --teal-light: #e1f5ee;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --green: #16a34a;
  --green-light: #dcfce7;
  --gray-100: #f3f2ef;
  --gray-200: #e5e4df;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --text: #2c2c2a;
  --text-muted: #6b7280;
  --border: #e2e0d9;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.10);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--teal); }
img { max-width: 100%; }

/* ============================
   NAVIGATION
============================ */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 6px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
  white-space: nowrap;
  margin-right: 12px;
  text-decoration: none !important;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  flex: 1;
  align-items: center;
}
.nav-links a {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none !important;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--gray-100);
  color: var(--text);
}
.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  font-weight: 600 !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--teal-hover) !important; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text);
  margin-left: auto;
  padding: 4px 8px;
  line-height: 1;
}

/* ============================
   LAYOUT
============================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-wrapper { min-height: calc(100vh - 60px); }
.section { padding: 48px 20px; max-width: 1100px; margin: 0 auto; }
.section-sm { padding: 32px 20px; max-width: 1100px; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sidebar-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title { font-size: 22px; font-weight: 700; }
.section-link { font-size: 14px; font-weight: 500; color: var(--teal); text-decoration: none !important; }
.section-link:hover { text-decoration: underline !important; }

/* ============================
   HERO
============================ */
.hero {
  background: linear-gradient(135deg, #0c3d6e 0%, #0d5c47 100%);
  color: white;
  padding: 72px 20px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.15;
}
.hero h1 em { color: #5DCAA5; font-style: normal; }
.hero p {
  font-size: 18px;
  opacity: 0.88;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================
   BUTTONS
============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none !important;
  line-height: 1.3;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-hover); color: white; }
.btn-secondary { background: rgba(255,255,255,0.15); color: white; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.btn-outline { background: white; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--gray-100); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================
   STATS STRIP
============================ */
.stats-strip {
  background: var(--navy);
  color: white;
  padding: 36px 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-number { font-size: 34px; font-weight: 800; color: #5DCAA5; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; opacity: 0.72; }

/* ============================
   CARDS
============================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-link { display: block; text-decoration: none !important; color: inherit; }
.card-link:hover .card { transform: translateY(-1px); }

/* Company card */
.company-card { display: flex; flex-direction: column; gap: 14px; }
.company-card-header { display: flex; align-items: center; gap: 12px; }
.company-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.company-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.company-tagline { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* Score badges */
.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}
.score-badge.excellent { background: #dcfce7; color: #15803d; }
.score-badge.good { background: #d1fae5; color: #065f46; }
.score-badge.fair { background: var(--amber-light); color: #92400e; }
.score-badge.poor { background: var(--red-light); color: #991b1b; }
.score-badge.gray { background: var(--gray-100); color: var(--gray-600); }

.score-excellent { color: #15803d; }
.score-good { color: #065f46; }
.score-fair { color: #92400e; }
.score-poor { color: #991b1b; }

/* Rating bars */
.rating-bars { display: flex; flex-direction: column; gap: 8px; }
.rating-bar-row {
  display: grid;
  grid-template-columns: 105px 1fr 28px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.rating-bar-label { color: var(--text-muted); font-size: 12px; }
.rating-bar-track {
  background: var(--gray-200);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), #16a34a);
  transition: width 0.6s ease;
}
.rating-bar-value { font-weight: 600; font-size: 12px; text-align: right; color: var(--text); }

/* Review card */
.review-card { display: flex; flex-direction: column; gap: 10px; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-meta { display: flex; flex-direction: column; gap: 3px; }
.review-author { font-weight: 600; font-size: 14px; }
.review-details { font-size: 12px; color: var(--text-muted); }
.review-details a { color: var(--text-muted); }
.review-details a:hover { color: var(--teal); }
.review-stars { display: flex; gap: 1px; flex-shrink: 0; margin-top: 2px; }
.star { color: #f59e0b; font-size: 15px; }
.star.empty { color: var(--gray-200); }
.review-body { font-size: 14px; color: #444; line-height: 1.65; font-style: italic; }
.review-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
}

/* ============================
   PAGE HEADER
============================ */
.page-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 36px 20px;
}
.page-header-inner { max-width: 1100px; margin: 0 auto; }
.page-header h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.page-header p { color: var(--text-muted); font-size: 16px; max-width: 560px; }

/* ============================
   FORMS
============================ */
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--text); }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-control {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 122, 95, 0.12);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }

/* Rating input */
.rating-input-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px;
}
.rating-row {
  display: grid;
  grid-template-columns: 130px 1fr 50px;
  gap: 10px;
  align-items: center;
}
.rating-row-label { font-size: 13px; font-weight: 600; }
.rating-row input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: var(--gray-200);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.rating-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.rating-row-value {
  font-weight: 800;
  font-size: 17px;
  color: var(--teal);
  text-align: center;
}
.rating-preview {
  text-align: center;
  padding: 10px;
  background: white;
  border-radius: 8px;
  margin-top: 4px;
}
.rating-preview-score { font-size: 28px; font-weight: 800; color: var(--teal); }
.rating-preview-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================
   TABLES
============================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; background: white; }
thead th {
  background: var(--gray-100);
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-100); }

/* ============================
   BADGES
============================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-yellow { background: var(--amber-light); color: #854d0e; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* ============================
   ALERTS
============================ */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 4px solid;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert-info { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.alert-success { background: #f0fdf4; border-color: var(--green); color: #166534; }
.alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert-error { background: var(--red-light); border-color: var(--red); color: #991b1b; }

/* ============================
   FAQ
============================ */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: white; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
  transition: background 0.15s;
}
.faq-question:hover { background: var(--gray-100); }
.faq-chevron { flex-shrink: 0; font-size: 11px; color: var(--text-muted); transition: transform 0.25s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 4px 20px 20px; font-size: 15px; color: #444; line-height: 1.7; }

/* ============================
   AD SLOTS
============================ */
.ad-slot {
  border-radius: var(--radius);
  padding: 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.ad-slot a { display: block; text-decoration: none; color: inherit; }
.ad-slot-leaderboard { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-slot-rectangle { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.ad-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.ad-placeholder .ad-icon { font-size: 36px; margin-bottom: 10px; }
.ad-placeholder .ad-headline { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.ad-placeholder .ad-body { font-size: 13px; opacity: 0.85; margin-bottom: 14px; line-height: 1.4; }
.ad-placeholder .ad-cta {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.15s;
}
.ad-placeholder .ad-cta:hover { transform: scale(1.05); }
.ad-placeholder .ad-label {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.5;
}
/* Leaderboard placeholder */
.ad-slot-leaderboard .ad-placeholder {
  flex-direction: row;
  gap: 16px;
  padding: 12px 24px;
}
.ad-slot-leaderboard .ad-placeholder .ad-icon { font-size: 28px; margin-bottom: 0; }
.ad-slot-leaderboard .ad-placeholder .ad-text { text-align: left; }
.ad-slot-leaderboard .ad-placeholder .ad-headline { font-size: 15px; margin-bottom: 3px; }
.ad-slot-leaderboard .ad-placeholder .ad-body { font-size: 12px; margin-bottom: 0; }

/* ============================
   LOADING
============================ */
.loading-text { text-align: center; color: var(--text-muted); padding: 48px 20px; font-size: 15px; }
.skeleton {
  background: linear-gradient(90deg, #f0f0ee 25%, #e8e8e5 50%, #f0f0ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ============================
   SUCCESS
============================ */
.success-page { text-align: center; padding: 80px 20px; max-width: 480px; margin: 0 auto; }
.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-page h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.success-page p { color: var(--text-muted); line-height: 1.65; margin-bottom: 28px; }

/* ============================
   FILTER BAR
============================ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.filter-bar select, .filter-bar input {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: var(--font);
  background: white;
  color: var(--text);
  cursor: pointer;
}
.filter-bar select:focus, .filter-bar input:focus {
  outline: none;
  border-color: var(--teal);
}

/* ============================
   SIDEBAR
============================ */
.sidebar-card { margin-bottom: 20px; }
.sidebar-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s;
}
.sidebar-links a:hover { background: var(--gray-100); text-decoration: none; }

/* ============================
   CITY / COMPANY PAGE HEROES
============================ */
.inner-hero {
  background: linear-gradient(135deg, #0c3d6e, #0d5c47);
  color: white;
  padding: 48px 20px;
}
.inner-hero-inner { max-width: 1100px; margin: 0 auto; }
.inner-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.inner-hero p { font-size: 16px; opacity: 0.85; max-width: 580px; line-height: 1.6; }
.chip-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  background: rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
}

/* Trust score display */
.trust-score-display {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.trust-score-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 4px solid;
}
.trust-score-circle.excellent { border-color: var(--green); background: var(--green-light); }
.trust-score-circle.good { border-color: #65a30d; background: #f7fee7; }
.trust-score-circle.fair { border-color: var(--amber); background: var(--amber-light); }
.trust-score-circle.poor { border-color: var(--red); background: var(--red-light); }
.trust-score-number { font-size: 26px; font-weight: 800; line-height: 1; }
.trust-score-max { font-size: 10px; color: var(--text-muted); }
.trust-score-info h3 { font-size: 18px; font-weight: 700; }
.trust-score-info p { font-size: 13px; color: var(--text-muted); }

/* ============================
   FOOTER
============================ */
.site-footer {
  background: #12121f;
  color: #9ca3af;
  padding: 52px 20px 28px;
  margin-top: 72px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
.footer-brand { font-size: 20px; font-weight: 800; color: white; margin-bottom: 10px; }
.footer-tagline { font-size: 14px; line-height: 1.65; max-width: 240px; color: #6b7280; }
.footer-col h4 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px;
  color: #d1d5db; margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: #6b7280; font-size: 14px; transition: color 0.15s; text-decoration: none; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
}
.footer-bottom a { color: #6b7280; }
.footer-bottom a:hover { color: white; }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 14px; }
  .nav-cta { margin-left: 0 !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding: 44px 20px; }
  .inner-hero { padding: 36px 20px; }
  .rating-row { grid-template-columns: 110px 1fr 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .trust-score-display { flex-direction: column; text-align: center; }
}
