/* DispaUK – Dispatch HQ Styles */

:root {
  --bg: #0b1220;
  --bg-alt: #111a2e;
  --surface: #162035;
  --border: #243049;
  --text: #e8eef7;
  --text-muted: #9aadc2;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --success: #2ecc71;
  --primary: #3b82f6;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #60a5fa;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.875rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
}

.btn-small:hover {
  background: var(--accent-hover);
  color: white;
}

/* Hero */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--text-muted);
  font-weight: 500;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 48, 73, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 48, 73, 0.4) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Status Bar */
.status-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.status-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  align-items: center;
  justify-content: space-between;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25);
}

.status-label {
  color: var(--text-muted);
}

.status-value {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text);
}

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

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.about-card:hover {
  border-color: #3a4d6e;
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

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

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Operations */
.ops-placeholder .placeholder-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.placeholder-box h3 {
  margin-bottom: 8px;
}

.placeholder-box > p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hint {
  font-size: 0.9rem;
  margin-bottom: 24px !important;
}

.hint code {
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85em;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td.empty {
  color: var(--text-muted);
  text-align: center;
  padding: 28px 14px;
  font-style: italic;
}

/* Fleet */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.fleet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.fleet-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.fleet-card ul {
  list-style: none;
}

.fleet-card li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.fleet-card li:not(:last-child) {
  border-bottom-color: var(--border);
}

.fleet-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.contact-note {
  display: flex;
  align-items: center;
  padding: 20px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.contact-note p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-copy {
  color: #6b7c93;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-toggle span {
    transition: all 0.2s;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .status-inner {
    justify-content: flex-start;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
}
