/* ==========================================================================
   Legacy Logistics — Prototype Stylesheet
   ========================================================================== */

:root {
  --navy: #0a1f3d;
  --navy-deep: #071528;
  --navy-mid: #142c4f;
  --white: #ffffff;
  --grey-50: #f6f7f9;
  --grey-100: #eceef2;
  --grey-200: #dde1e7;
  --grey-400: #9aa3b2;
  --grey-600: #5b6472;
  --grey-800: #2b3242;
  --gold: #c9a24b;
  --gold-dark: #a9822f;
  --gold-light: #e8d6a3;
  --success: #1f7a4d;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 31, 61, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 31, 61, 0.16);
  --container: 1180px;
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--grey-600); }

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

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

section { padding: 84px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

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

.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

.bg-grey { background: var(--grey-50); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p { color: var(--grey-200); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 31, 61, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--grey-200);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-cta { display: none; }

.nav-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
  display: flex;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 20px 20px;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--grey-200);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.98rem;
}

.mobile-menu .btn { margin-top: 14px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 64px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(201,162,75,0.14), transparent 45%);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 75, 0.14);
  border: 1px solid rgba(201, 162, 75, 0.35);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero p.lead {
  color: var(--grey-200);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 560px;
}

.trust-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--grey-100);
}

.trust-points svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.hero-art {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.hero-art .route-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  color: var(--navy);
}

.route-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.route-card-head .status {
  background: rgba(31, 122, 77, 0.1);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.route-step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--grey-200);
}
.route-step:last-child { border-bottom: none; }

.route-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 4px;
  flex-shrink: 0;
}

.route-step.done .route-dot { background: var(--success); }

.route-step .rtext strong { display: block; font-size: 0.92rem; }
.route-step .rtext span { font-size: 0.8rem; color: var(--grey-600); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- How It Works ---------- */
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.step-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card h4 { margin-bottom: 4px; font-size: 1.02rem; }
.step-card p { margin: 0; font-size: 0.9rem; }

@media (min-width: 900px) {
  .stepper {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
  }
  .step-card {
    flex-direction: column;
    text-align: left;
    border-radius: 0;
    border: none;
    border-top: 3px solid var(--gold);
    padding: 24px 16px;
    background: transparent;
  }
  .step-card::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: var(--grey-200);
    z-index: -1;
  }
  .step-card:first-child::before { display: none; }
  .step-num { margin-bottom: 14px; }
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

.notice-box {
  margin-top: 40px;
  background: var(--grey-50);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.notice-box p { margin: 0; font-size: 0.92rem; color: var(--navy); }

/* ---------- Partner Model ---------- */
.partner-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 40px;
}

.partner-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.partner-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.partner-card .pnum {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-card p { font-size: 0.9rem; margin-bottom: 0; }

.callout {
  background: rgba(201,162,75,0.1);
  border: 1px solid rgba(201,162,75,0.3);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}
.callout p { color: var(--grey-100); margin: 0; font-size: 0.96rem; }

/* ---------- Request Delivery Form ---------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .form-grid.two-col { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

.field .req { color: var(--gold-dark); }

.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  color: var(--navy);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.field input.invalid,
.field textarea.invalid { border-color: #c0392b; background: #fdf2f1; }

.field .error-msg {
  font-size: 0.78rem;
  color: #c0392b;
  display: none;
}
.field.has-error .error-msg { display: block; }

.field textarea { resize: vertical; min-height: 90px; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
}

.checkbox-field input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold-dark);
  flex-shrink: 0;
}

.checkbox-field label { font-size: 0.88rem; color: var(--grey-600); font-weight: 400; }

.form-actions { grid-column: 1 / -1; margin-top: 6px; }

.form-note {
  font-size: 0.8rem;
  color: var(--grey-400);
  margin-top: 14px;
  text-align: center;
}

.confirmation-panel {
  display: none;
  text-align: center;
  padding: 30px 10px 10px;
}
.confirmation-panel.show { display: block; }
.form-grid.hide { display: none; }

.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(31,122,77,0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirmation-panel h3 { margin-bottom: 10px; }
.confirmation-panel p { max-width: 440px; margin-left: auto; margin-right: auto; }

/* ---------- Service Area ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.chip {
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip.muted { color: var(--grey-400); border-style: dashed; font-weight: 500; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Payment Readiness ---------- */
.pay-grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

@media (min-width: 900px) {
  .pay-grid { grid-template-columns: 1fr 1fr; }
}

.pay-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }

.pay-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--grey-600);
}
.pay-points svg { flex-shrink: 0; color: var(--gold-dark); margin-top: 3px; }

.pay-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}
.pay-card h4 { color: var(--gold-light); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.pay-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.92rem; }
.pay-line:last-child { border-bottom: none; }
.pay-line span:first-child { color: var(--grey-200); }
.pay-line span:last-child { font-weight: 600; color: var(--white); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.about-stats div { text-align: center; background: var(--grey-50); border-radius: var(--radius-md); padding: 18px 10px; }
.about-stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); }
.about-stats span { font-size: 0.78rem; color: var(--grey-600); }

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .vicon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--navy); color: var(--gold); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.value-list strong { display: block; font-size: 0.96rem; color: var(--navy); margin-bottom: 3px; }
.value-list p { margin: 0; font-size: 0.88rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 36px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-card .cicon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(201,162,75,0.12); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.contact-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.9rem; margin: 0; }

.contact-cta { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--grey-400);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-brand p { color: var(--grey-400); font-size: 0.9rem; max-width: 320px; }
.footer-domain { font-size: 0.85rem; color: var(--gold-light); margin-top: 10px; }

.footer-col h5 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--grey-400); }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: grid;
  gap: 14px;
}

.footer-disclaimer { font-size: 0.78rem; color: var(--grey-400); max-width: 900px; line-height: 1.6; }
.footer-copy { font-size: 0.8rem; color: var(--grey-400); }

/* ---------- Legal pages ---------- */
.legal-page { padding: 70px 0 90px; }
.legal-page .container { max-width: 840px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 6px; }
.legal-updated { font-size: 0.85rem; color: var(--grey-400); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 38px; }
.legal-page ul { color: var(--grey-600); padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--gold-dark); margin-bottom: 28px; }

/* ---------- Admin dashboard ---------- */
.admin-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 980px;
}

.admin-table th {
  text-align: left;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--grey-100);
  vertical-align: top;
  color: var(--navy);
}

.admin-table small { color: var(--grey-600); font-size: 0.78rem; }
.admin-table tr:hover td { background: var(--grey-50); }

.admin-select,
.quote-input {
  font-family: var(--font-body);
  font-size: 0.84rem;
  padding: 8px 10px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  color: var(--navy);
}

.quote-input { width: 90px; }

.badge-paid {
  display: inline-block;
  background: rgba(31, 122, 77, 0.1);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-refunded {
  display: inline-block;
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

@media (min-width: 700px) {
  .trust-points { grid-template-columns: repeat(2, 1fr); }
}
