/* ==========================================================================
   On-Dot Couriers Inc. — Clean Corporate Logistics Design System
   Brand Primary: #2B4584 | Deep Navy: #15254B | Accent Amber: #D97706
   ========================================================================== */

:root {
  --brand: #2B4584;
  --brand-dark: #1E3366;
  --brand-deep: #122042;
  --brand-soft: #EEF2FA;
  --brand-border: #D5E0F5;
  --accent: #D97706;
  --accent-soft: #FEF3C7;
  --success: #0F766E;
  --success-soft: #CCFBF1;
  --danger: #B91C1C;
  --danger-soft: #FEE2E2;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --border: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 40px rgba(18, 32, 66, 0.12);
  --container: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Utility Bar */
.topbar {
  background: var(--brand-deep);
  color: #CBD5E1;
  font-size: 0.84rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: #FFFFFF;
  font-weight: 500;
}

.topbar a:hover {
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(43, 69, 132, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 18px rgba(43, 69, 132, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--brand);
  border-color: var(--brand-border);
}

.btn-secondary:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: #B45309;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.87rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Badges & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 65%, #34549E 100%);
  color: #FFFFFF;
  padding: 68px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero p.lead {
  color: #DBEAFE;
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: #E2E8F0;
}

.hero-trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Quick Quote Card */
.quick-quote-card {
  background: #FFFFFF;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.quick-quote-header h2 {
  font-size: 1.18rem;
  margin: 0;
}

.rate-pill {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Page Banner (Inner Pages) */
.page-banner {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: #FFFFFF;
  padding: 52px 0;
}

.page-banner h1 {
  color: #FFFFFF;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin-bottom: 12px;
}

.page-banner p {
  color: #DBEAFE;
  font-size: 1.05rem;
  max-width: 660px;
  margin: 0;
}

/* Trust Metrics Strip */
.metrics-strip {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.84rem;
  color: var(--text-subtle);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-white {
  background: #FFFFFF;
}

.section-tinted {
  background: var(--brand-soft);
}

.section-header {
  max-width: 680px;
  margin-bottom: 42px;
}

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

.section-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.card-hover:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.check-list svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Forms & Autocomplete */
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-subtle);
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 69, 132, 0.14);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.input-with-badge {
  position: relative;
}

.input-dot {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-pickup { background: #16A34A; }
.dot-stop { background: #D97706; }
.dot-dropoff { background: #DC2626; }

.input-with-badge .form-control {
  padding-left: 34px;
}

/* Autocomplete Dropdown */
.autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}

.autocomplete-list.open {
  display: block;
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.focused {
  background: var(--brand-soft);
}

.autocomplete-main {
  font-weight: 600;
  color: var(--text);
}

.autocomplete-sub {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Smart Calculator Layout */
.calculator-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.option-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.15s ease;
  text-align: left;
}

.option-card:hover {
  border-color: var(--brand-border);
  background: #FAFBFD;
}

.option-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(43, 69, 132, 0.12);
}

.option-card-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 3px;
}

.option-card-meta {
  font-size: 0.77rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

/* Route Map Box */
.map-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#routeMap, #hqMap {
  width: 100%;
  height: 310px;
  z-index: 1;
}

.route-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: #F8FAFC;
}

.route-stat {
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.route-stat:last-child {
  border-right: none;
}

.route-stat-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  font-weight: 600;
}

.route-stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
  margin-top: 2px;
}

/* Quote Breakdown Receipt */
.receipt-card {
  margin-top: 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed #CBD5E1;
  margin-bottom: 14px;
}

.receipt-ref {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.receipt-rows {
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

.receipt-row strong {
  color: var(--text);
}

.receipt-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--brand);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.receipt-total-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.receipt-total-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
}

.receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.status-banner {
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  margin-bottom: 14px;
  display: none;
}

.status-banner.show { display: block; }
.status-info { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-border); }
.status-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #FECACA; }
.status-success { background: var(--success-soft); color: var(--success); border: 1px solid #99F6E4; }

/* Extra Stops List */
.stop-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.stop-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.btn-remove-stop {
  padding: 10px 12px;
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-remove-stop:hover {
  background: #FFE4E6;
}

/* Interactive Coverage Checker */
.zone-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.zone-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.zone-name {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
}

.zone-meta {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.zone-badge {
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.faq-btn:hover {
  background: #F8FAFC;
}

.faq-panel {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-panel {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--brand);
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 48px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 8px;
}

.cta-band p {
  color: #DBEAFE;
  margin: 0;
  max-width: 560px;
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1E293B;
}

.footer-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Honeypot hidden field */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .calculator-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .metrics-grid,
  .footer-grid,
  .zone-list {
    grid-template-columns: 1fr;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 16px 24px 22px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .cta-band {
    padding: 34px 26px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 14px;
  }
  .nav-inner {
    gap: 8px;
  }
  .brand-link {
    gap: 8px;
    min-width: 0;
  }
  .brand-name {
    font-size: 0.9rem;
  }
  .brand-sub {
    display: none;
  }
  .brand-logo {
    height: 36px;
    width: 36px;
  }
  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-actions .btn-primary {
    padding: 7px 9px;
    font-size: 0.78rem;
  }
  .nav-actions .btn-primary svg {
    display: none;
  }
  .receipt-actions {
    grid-template-columns: 1fr;
  }
  .route-stats-bar {
    grid-template-columns: 1fr;
  }
  .route-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .route-stat:last-child {
    border-bottom: none;
  }
}

/* Print-Friendly Quote Slip */
@media print {
  .topbar, .site-header, .site-footer, .no-print, .receipt-actions {
    display: none !important;
  }
  body {
    background: #FFFFFF;
  }
  .receipt-card {
    box-shadow: none;
    border: 1px solid #000000;
  }
}
