/* ═══════════════════════════════════════════════════════════════════════════
   Heroes Logistics Inc. — main stylesheet
   Palette: deep navy hero, signal red CTA, amber accent, clean light body
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* Body / surfaces */
  --bg:           #FFFFFF;
  --bg-soft:      #F9FAFB;
  --bg-dark:      #0A1428;          /* hero / footer */
  --bg-dark-2:    #14192E;
  --card:         #FFFFFF;
  --border:       #E5E7EB;
  --border-dark:  #1F2937;

  /* Text */
  --text:         #111827;
  --text-soft:    #374151;
  --text-mut:     #6B7280;
  --text-on-dark: #F9FAFB;
  --text-on-dark-mut: #9CA3AF;

  /* Brand */
  --primary:      #DC2626;          /* signal red — CTA */
  --primary-d:    #B91C1C;
  --accent:       #F59E0B;          /* amber — highlight */
  --accent-d:     #D97706;
  --emerald:      #059669;

  /* Layout */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -16px rgba(15, 23, 42, 0.30);

  --container: 1180px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--primary-d); }

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

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { color: var(--text); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }

main { flex: 1; }

/* ── Layout primitives ──────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: 36px; }
.section-head p { color: var(--text-mut); font-size: 17px; margin-top: 12px; }
.section-dark .section-head p { color: var(--text-on-dark-mut); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  line-height: 1.1;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn .ico { flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(220,38,38,0.35); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(220,38,38,0.55), 0 1px 2px rgba(15,23,42,0.10);
}
.btn-primary:hover {
  background: var(--primary-d);
  color: white;
  box-shadow: 0 10px 22px -6px rgba(220,38,38,0.7), 0 3px 6px rgba(15,23,42,0.15);
}

.btn-amber {
  background: var(--accent);
  color: #1A1308;
  font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(245,158,11,0.45);
}
.btn-amber:hover {
  background: var(--accent-d);
  color: #1A1308;
  box-shadow: 0 10px 22px -6px rgba(245,158,11,0.6);
}

.btn-outline { border-color: var(--border); color: var(--text); background: var(--bg); }
.btn-outline:hover { border-color: var(--text); background: var(--bg-soft); }

.btn-on-dark {
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-on-dark:hover {
  background: rgba(255,255,255,0.10);
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.55);
}

.btn-lg { padding: 16px 30px; font-size: 16px; gap: 10px; }
.btn-block { display: flex; width: 100%; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text-on-dark);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-on-dark);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 18px;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 12px -4px rgba(220,38,38,0.5);
}
.brand-text { line-height: 1.1; }
.brand-text .name { font-size: 15px; font-weight: 900; letter-spacing: 0.02em; }
.brand-text .sub  { font-size: 10.5px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.topbar-spacer { flex: 1; }
.topbar-nav { display: flex; gap: 4px; }
.topbar-nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(249,250,251,0.85);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.topbar-nav a:hover { background: rgba(255,255,255,0.06); color: var(--text-on-dark); }
.topbar-nav a.active { background: rgba(220,38,38,0.18); color: white; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.topbar-phone {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.topbar-phone:hover { color: var(--accent-d); background: rgba(245,158,11,0.10); }
.topbar-phone .ico { flex-shrink: 0; }
.topbar-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text-on-dark);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.topbar-toggle:hover { background: rgba(255,255,255,0.08); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(220,38,38,0.20), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(245,158,11,0.12), transparent 60%),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.4), transparent);
}
.hero h1 { color: var(--text-on-dark); font-size: 56px; line-height: 1.05; max-width: 820px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: rgba(249,250,251,0.85); font-size: 19px; line-height: 1.6; max-width: 620px; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.10); }
.hero-stats .stat { min-width: 120px; }
.hero-stats .stat .value { font-size: 32px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.hero-stats .stat .label { font-size: 12px; color: rgba(249,250,251,0.65); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-top: 4px; }

/* ── Sub-hero (used on inner pages) ─────────────────────────────────────── */
.sub-hero {
  background:
    radial-gradient(700px 360px at 80% 50%, rgba(220,38,38,0.20), transparent 60%),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: 60px 0;
}
.sub-hero h1 { color: var(--text-on-dark); font-size: 40px; }
.sub-hero p { color: rgba(249,250,251,0.78); font-size: 16px; max-width: 640px; margin-top: 10px; }
.crumbs { font-size: 13px; color: rgba(249,250,251,0.55); margin-bottom: 14px; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--text-on-dark); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #D1D5DB; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(220,38,38,0.08);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card-icon.amber { background: rgba(245,158,11,0.12); color: var(--accent-d); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-mut); font-size: 14.5px; line-height: 1.65; }

/* ── Grids ──────────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Stats band (on dark or soft background) ───────────────────────────── */
.stats-band {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 56px 0;
}
.stats-band .grid-4 { gap: 32px; }
.stats-band .stat-cell { text-align: center; padding: 12px 0; }
.stats-band .stat-cell .value { font-size: 44px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.stats-band .stat-cell .label { font-size: 13px; color: rgba(249,250,251,0.7); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-top: 8px; }

/* ── CTA banner (full-width, dark) ──────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-d) 140%);
  color: var(--text-on-dark);
  padding: 56px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: var(--text-on-dark); font-size: 28px; max-width: 640px; }
.cta-band p { color: rgba(249,250,251,0.85); margin-top: 6px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-soft);
}
.field label .req { color: var(--primary); margin-left: 3px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field .hint { font-size: 12px; color: var(--text-mut); margin-top: 4px; }
.field .err  { font-size: 12.5px; color: var(--primary); margin-top: 4px; min-height: 16px; }
.form-banner {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: 4px;
}
.form-banner.success { background: rgba(5, 150, 105, 0.10); color: var(--emerald); border: 1px solid rgba(5,150,105,0.25); }
.form-banner.error   { background: rgba(220, 38, 38, 0.08); color: var(--primary-d); border: 1px solid rgba(220,38,38,0.25); }

/* ── Lists / value props ────────────────────────────────────────────────── */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15.5px; color: var(--text-soft); line-height: 1.55; }
.checks li::before {
  content: "✓"; flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(5,150,105,0.12); color: var(--emerald);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 13px;
  margin-top: 1px;
}
.section-dark .checks li { color: rgba(249,250,251,0.85); }

/* ── Service cards w/ illustrative top ──────────────────────────────────── */
.service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.service {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}
.service:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(220,38,38,0.10), rgba(220,38,38,0.04));
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.service h3 { font-size: 17px; }
.service p  { color: var(--text-mut); font-size: 14px; line-height: 1.6; }
.service ul { list-style: none; padding: 0; margin-top: 6px; display: grid; gap: 6px; }
.service ul li { font-size: 13.5px; color: var(--text-soft); display: flex; gap: 6px; }
.service ul li::before { content: "•"; color: var(--accent-d); }

/* ── Map embed ──────────────────────────────────────────────────────────── */
.map-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-mut);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: var(--text-on-dark); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-on-dark-mut); font-size: 14px; }
.footer-grid a:hover { color: var(--text-on-dark); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; margin-top: 10px; color: var(--text-on-dark-mut); }
.footer-brand .compliance { margin-top: 16px; font-size: 12px; color: rgba(249,250,251,0.55); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(249,250,251,0.55);
}
.footer-bottom a { color: rgba(249,250,251,0.65); margin-left: 16px; }
.footer-bottom a:hover { color: var(--text-on-dark); }

/* ── Doc pages (privacy / terms / accessibility) ────────────────────────── */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc-wrap h1 { font-size: 38px; margin-bottom: 6px; letter-spacing: -0.02em; }
.doc-wrap .meta {
  color: var(--text-mut);
  font-size: 13.5px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.doc-wrap h2 { font-size: 22px; margin: 44px 0 14px; color: var(--text); }
.doc-wrap h3 { font-size: 16.5px; margin: 24px 0 8px; color: var(--text); }
.doc-wrap p, .doc-wrap li { color: var(--text-soft); line-height: 1.78; font-size: 15.5px; }
.doc-wrap ul, .doc-wrap ol { padding-left: 22px; margin-bottom: 16px; }
.doc-wrap li { margin-bottom: 8px; }
.doc-wrap strong { color: var(--text); font-weight: 700; }
.doc-wrap hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.doc-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.doc-wrap th, .doc-wrap td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.doc-wrap th { background: var(--bg-soft); font-weight: 700; color: var(--text); }
.doc-wrap tr:last-child td { border-bottom: 0; }
.doc-wrap code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; color: var(--primary-d); }
.doc-wrap a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(220,38,38,0.3); text-underline-offset: 3px; }
.doc-wrap a:hover { text-decoration-color: var(--primary); }
.doc-contact-card {
  margin-top: 16px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 15px;
  line-height: 1.85;
}
.doc-contact-card strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--text); }
.doc-contact-card a { color: var(--text-soft); text-decoration: none; }
.doc-contact-card a:hover { color: var(--primary); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 720px) {
  .topbar-nav { display: none; }
  .topbar-toggle { display: inline-flex; }
  .topbar-actions .btn:not(.btn-primary) { display: none; }
  .topbar.menu-open .topbar-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-dark);
    padding: 14px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 28px; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .hero-cta .btn { flex: 1; min-width: 0; padding: 14px 18px; }
  .hero-stats { gap: 24px; margin-top: 40px; }
  .hero-stats .stat .value { font-size: 26px; }
  .stats-band .stat-cell .value { font-size: 30px; }
  .grid-3, .grid-4, .service-row, .grid-2 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .doc-wrap h1 { font-size: 28px; }
  .doc-wrap h2 { font-size: 19px; }
  .doc-wrap p, .doc-wrap li { font-size: 15px; }
  .sub-hero h1 { font-size: 30px; }
}
