:root {
  --bg: #f6f3ed;
  --panel: #ffffff;
  --ink: #25180f;
  --muted: #67584d;
  --accent: #4d2f1f;
  --accent-2: #9a7849;
  --ok: #1f9d63;
  --warn: #b26a00;
  --danger: #b4232a;
  --border: #e3d9cb;
  --title-font: "Barlow Condensed", "Trebuchet MS", sans-serif;
  --body-font: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(90, 58, 35, 0.08), rgba(158, 123, 70, 0.03)),
    radial-gradient(circle at 8% 8%, #f6ecdc 0%, var(--bg) 48%);
  min-height: 100vh;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand { font-weight: 800; color: #523424; }

.nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-top; }
.nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 9px;
}
.nav a:hover { color: var(--accent); }

.menu-toggle,
.menu-close,
.sidebar-toggle,
.sidebar-close {
  border: 1px solid transparent;
  border-radius: 10px;
  background: #4d2f1f;
  color: #fff;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  display: none;
}

.menu-close,
.sidebar-close {
  margin-bottom: 8px;
}

.hero {
  padding: 64px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.hero-cover {
  position: relative;
  margin: 20px 0 8px;
}

.hero-cover-image {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(9, 40, 82, 0.58), rgba(15, 103, 217, 0.34)),
    url('../images/armored-delivery.svg') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 30px rgba(16, 34, 63, 0.18);
}

.hero-cover .hero {
  position: relative;
  z-index: 1;
  padding: 38px 20px;
}

.section-block {
  padding: 10px 0 26px;
}

.section-head {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(16,34,63,.1);
}

h1, h2, h3, p { margin: 0 0 10px; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.1; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
h1, h2, h3 { font-family: var(--title-font); letter-spacing: .3px; }

.lead { color: var(--muted); }
.hero-intro {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(66, 44, 31, 0.96), rgba(120, 87, 50, 0.86)),
    url('../images/armored-delivery.svg') center/cover;
  color: #fff;
}
.hero-intro .lead { color: rgba(255, 255, 255, 0.88); }
.hero-intro::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 8px;
}
.hero-kpi {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
}
.hero-kpi small { display: block; opacity: 0.85; font-size: .78rem; }
.hero-kpi strong { font-size: 1rem; }

.track-card {
  background: linear-gradient(180deg, #ffffff, #f6faff);
}
.track-card form { display: grid; gap: 12px; }

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

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(16,34,63,.08);
}

.service-card h3 {
  margin-bottom: 6px;
}

.service-card p {
  color: var(--muted);
}

.history-timeline {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.history-item span {
  font-weight: 800;
  color: #5d3c27;
}

.history-item p {
  margin: 0;
  color: var(--ink);
}

.support-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.support-actions {
  display: flex;
  gap: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 4px;
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  transition: box-shadow .18s ease, border-color .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #91bff3;
  box-shadow: 0 0 0 3px rgba(15, 103, 217, .14);
}

button, .btn {
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  padding: 11px 16px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.btn.secondary {
  background: #e9f2ff;
  color: #0f56ad;
}

.msg {
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
}

.msg.ok { background: #eaf8f1; color: var(--ok); border: 1px solid #b9e5cd; }
.msg.error { background: #ffecef; color: var(--danger); border: 1px solid #f6c4ca; }

.track-shell {
  padding: 34px 0;
}
.track-hero {
  background:
    linear-gradient(126deg, rgba(9, 61, 132, 0.92), rgba(16, 103, 217, 0.74)),
    url('../images/armored-delivery.svg') center/cover;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.track-hero p { color: rgba(255, 255, 255, 0.9); }
.track-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.track-result .item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
}
.track-result .item span {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}
.track-result .item strong {
  display: block;
  margin-top: 2px;
}

.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #2f1e14, #5f432d);
  color: #fff;
  padding: 20px 14px;
}

.sidebar a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(255,255,255,.08);
}

.sidebar a.active,
.sidebar a:hover { background: rgba(255,255,255,.22); }

.main { padding: 20px; }

.admin-page .main {
  overflow-x: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.admin-page .table-wrap table {
  min-width: 960px;
  table-layout: auto;
}

.admin-page .table-wrap th,
.admin-page .table-wrap td {
  white-space: nowrap;
  font-weight: 700;
}

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  background: #f4ecdf;
  color: #5b3a22;
}

.timeline {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
}
.timeline li {
  margin-bottom: 10px;
  border-left: 3px solid #ddc6a3;
  background: #fcf8f2;
  border-radius: 0 10px 10px 0;
  padding: 8px 10px;
}

.footer-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .88rem;
}

.action-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.action-links a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 9px;
  background: #f4ecdf;
  color: #5a3c24;
  font-weight: 700;
  font-size: .85rem;
}

.home-page .hero-home-grid {
  align-items: stretch;
  grid-template-columns: 1.1fr .9fr;
}

.home-page .home-hero {
  margin-top: 10px;
}

.section-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 10px 0;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(35, 21, 12, 0.58), rgba(90, 61, 36, 0.45));
}

.section-shell::after {
  content: "";
  position: absolute;
  inset: -8% -16%;
  z-index: -2;
  background-image: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0% 50%;
  transform: scale(1.05);
  filter: saturate(0.95);
  animation: bgSlide 30s linear infinite;
}

.section-shell .section-head h2,
.section-shell .section-head p {
  color: #fff;
}

.section-shell .card,
.section-shell .service-card,
.section-shell .history-item,
.section-shell .ops-item,
.section-shell .business-card,
.section-shell .industry-card {
 /* background: rgba(255, 255, 255, 0.92);*/
  backdrop-filter: blur(2px);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items: stretch;
}

@keyframes bgSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-track-panel {
  border: 1px solid #deccb4;
  background: linear-gradient(180deg, #fff, #f9f4ed);
}

.trust-strip {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.trust-strip span {
  display: block;
  border: 1px solid #e7d8c4;
  border-radius: 9px;
  background: #fff;
  color: #62442d;
  font-size: .8rem;
  font-weight: 700;
  padding: 8px 10px;
}

.operations-band {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ops-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fbf8f3);
  box-shadow: 0 10px 26px rgba(48, 26, 10, .06);
}

.ops-item h3 {
  margin-bottom: 6px;
}

.ops-item p {
  color: var(--muted);
  margin: 0;
}

.process-timeline .history-item {
  background: linear-gradient(180deg, #fff, #fcf8f3);
}

.process-timeline .history-item span {
  font-size: 1.2rem;
  line-height: 1;
  align-self: center;
}

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

.business-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 21, 9, 0.08);
}

.business-card h3 {
  margin-bottom: 6px;
}

.business-card p {
  margin: 0;
  color: var(--muted);
}

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

.industry-card {
  border: 1px solid #ddcfbc;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #fcf8f2);
}

.industry-card h3 {
  margin-bottom: 5px;
}

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

.premium-support {
  border: 1px solid #d7c0a0;
  background:
    linear-gradient(120deg, rgba(77, 47, 31, 0.95), rgba(134, 95, 58, 0.9)),
    url('../images/armored-delivery.svg') center/cover no-repeat;
  color: #fff;
}

.premium-support .lead {
  color: rgba(255, 255, 255, 0.9);
}

.premium-support p {
  color: rgba(255, 255, 255, 0.94);
}

.premium-support .btn.secondary {
  background: #efe7d9;
  color: #4f301d;
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .track-result { grid-template-columns: 1fr; }
  .hero-kpis { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .operations-band { grid-template-columns: 1fr; }
  .home-page .hero-home-grid { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }

  .sidebar-toggle,
  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle,
  .menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .menu-close {
    display: flex;
    width: fit-content;
  }

  .topbar .inner {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 86vw);
    height: 100vh;
    padding: 14px;
    background: #fff;
    border-left: 1px solid var(--border);
    z-index: 60;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: -14px 0 36px rgba(36, 20, 8, 0.16);
  }

  .site-menu-open .nav {
    display: flex;
  }

  .site-menu-open {
    overflow: hidden;
  }

  .site-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(16, 10, 5, 0.48);
    z-index: 50;
    pointer-events: none;
  }

  .nav a {
    border: 1px solid var(--border);
    text-align: left;
    background: #fff;
  }

  .admin-page .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 84vw);
    height: 100vh;
    overflow-y: auto;
    z-index: 60;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .admin-page.admin-menu-open .sidebar {
    transform: translateX(0);
  }

  .admin-page.admin-menu-open {
    overflow: hidden;
  }

  .admin-page.admin-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(16, 10, 5, 0.48);
    z-index: 50;
  }
}

@media (max-width: 700px) {
  .topbar .inner {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .brand {
    font-size: .96rem;
  }
  .main {
    padding: 14px;
  }
  th, td {
    padding: 8px;
    font-size: .84rem;
    white-space: nowrap;
  }
  .admin-page .table-wrap table {
    min-width: 760px;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 1fr; }
  .support-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .support-actions {
    width: 100%;
    flex-direction: column;
  }
  .support-actions .btn {
    width: 100%;
    text-align: center;
  }
  .hero-cta-row .btn {
    width: 100%;
    text-align: center;
  }
}
