/* ═══════════════════════════════════════════════════
   JEM LOGISTICS — SHARED STYLESHEET
   All pages import this file
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600;700&family=Source+Sans+3:wght@400;600&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }
body { margin: 0; padding: 0; }

:root {
  --navy:        #1a2a4a;
  --navy-light:  #243559;
  --navy-dark:   #111c30;
  --accent:      #8A1C2E;
  --accent-h:    #6B1220;
  --white:       #ffffff;
  --off-white:   #f5f6f8;
  --mid-grey:    #e0e3ea;
  --text-dark:   #1a1a2e;
  --text-muted:  #5a6074;
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --font-copy:   'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-copy); color: var(--text-dark); background: var(--white); overflow-x: hidden; }

/* ── TOPBAR ── */
.topbar { width: 100% !important; box-sizing: border-box; background: var(--navy-dark); color: rgba(255,255,255,.75); font-family: var(--font-body); font-size: 13px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--accent); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-cta { background: var(--accent); color: var(--white) !important; padding: 4px 14px; border-radius: 3px; font-weight: 600; transition: background .2s; }
.topbar-cta:hover { background: var(--accent-h) !important; }

/* ── NAV ── */
.nav-wrap { position: sticky; top: 0; z-index: 1000; width: 100% !important; max-width: 100% !important; box-sizing: border-box; background: var(--navy); transition: box-shadow .3s, background .3s; }
.nav-wrap.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); background: rgba(26,42,74,.97); backdrop-filter: blur(12px); }
nav { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-bar { width: 5px; height: 36px; background: var(--accent); border-radius: 2px; }
.logo-text { font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: 1.5px; color: var(--white); line-height: 1; }
.logo-sub { font-family: var(--font-body); font-size: 9px; font-weight: 500; color: rgba(255,255,255,.45); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links li { position: relative; }
.nav-links a { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 14px; border-radius: 4px; display: block; transition: color .2s, background .2s; letter-spacing: .4px; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.18); min-width: 180px; overflow: hidden; border-top: 3px solid var(--accent); }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { color: var(--text-dark) !important; font-size: 13px; padding: 10px 18px; border-radius: 0; background: transparent !important; }
.dropdown-menu a:hover { background: var(--off-white) !important; color: var(--accent) !important; }
.dropdown > a::after { content: ' ▾'; font-size: 10px; opacity: .6; }
.nav-cta { background: var(--accent); color: var(--white) !important; padding: 9px 22px !important; border-radius: 4px !important; font-weight: 700 !important; letter-spacing: .6px !important; text-transform: uppercase; font-size: 13px !important; transition: background .2s, transform .15s !important; }
.nav-cta:hover { background: var(--accent-h) !important; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,.08); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 28px; color: rgba(255,255,255,.82); text-decoration: none; font-family: var(--font-body); font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.06); transition: background .2s, color .2s; }
.mobile-menu a:hover { background: rgba(255,255,255,.05); color: var(--accent); }
.mobile-menu .mobile-cta { background: var(--accent); color: var(--white); text-align: center; margin: 16px 20px 20px; border-radius: 4px; border-bottom: none; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--navy); padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: var(--white); clip-path: polygon(0 100%, 100% 30%, 100% 100%); }
.page-hero.grey-base::after { background: var(--off-white); }
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 60px 60px; }
.page-hero-accent { position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: linear-gradient(to bottom, var(--accent), transparent); opacity: .7; }
.page-hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-breadcrumb { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.page-breadcrumb a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb span { color: var(--accent); }
.page-title { font-family: var(--font-head); font-size: clamp(44px, 7vw, 80px); font-weight: 900; text-transform: uppercase; color: var(--white); line-height: 1; margin-bottom: 16px; }
.page-title em { font-style: normal; color: var(--accent); }
.page-subtitle { font-family: var(--font-body); font-size: 18px; color: rgba(255,255,255,.55); max-width: 540px; line-height: 1.6; }

/* ── SECTION COMMONS ── */
section { padding: 88px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-label { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px; }
.section-title { font-family: var(--font-head); font-size: clamp(34px, 5vw, 52px); font-weight: 900; text-transform: uppercase; line-height: 1.05; color: var(--navy); margin-bottom: 18px; }
.section-title.light { color: var(--white); }
.section-desc { font-size: 17px; color: var(--text-muted); max-width: 580px; line-height: 1.75; }
.section-desc.light { color: rgba(255,255,255,.6); }
.accent-line { width: 56px; height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 32px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── BUTTONS ── */
.btn-primary { background: var(--accent); color: var(--white); padding: 14px 34px; font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; border-radius: 4px; border: 2px solid var(--accent); transition: background .2s, transform .15s, box-shadow .2s; display: inline-block; }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(138,28,46,.4); }
.btn-outline-dark { background: transparent; color: var(--navy); padding: 14px 34px; font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; border-radius: 4px; border: 2px solid var(--navy); transition: background .2s, color .2s, transform .15s; display: inline-block; }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--navy-dark); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 60px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand .logo { margin-bottom: 18px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 260px; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.social-link:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.footer-col h5 { font-family: var(--font-head); font-size: 16px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.45); text-decoration: none; font-size: 14px; transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '—'; font-size: 10px; opacity: .4; }
.footer-links a:hover { color: var(--accent); }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-icon { width: 32px; height: 32px; background: rgba(138,28,46,.14); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.contact-text { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; }
.contact-text a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.contact-text a:hover { color: var(--accent); }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.28); letter-spacing: .3px; }
.footer-credit { width: 100%; text-align: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: rgba(255,255,255,.22); }
.footer-credit a { color: var(--accent); text-decoration: none; font-weight: 600; transition: color .2s; }
.footer-credit a:hover { color: #c0354a; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 768px) { .nav-links, .nav-cta { display: none; } .hamburger { display: flex; } section { padding: 60px 0; } .topbar-left { display: none; } .topbar-right { flex: 1; justify-content: center; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
