/* ==========================================================
   Blue Maple Logistics Inc. — main stylesheet
   ========================================================== */

:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --blue: #1D4ED8;
  --sky: #3A86FF;
  --accent: #0A66E0;
  --accent-dark: #0852B5;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F4F6FA;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06);
  --max: 1200px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #CBD5E1; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero .eyebrow { color: #8AB8FF; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 3px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--navy);
  color: #CBD5E1;
  font-size: .88rem;
}
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(11,37,69,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); line-height: 1; }
.brand-name small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .22em; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: 10px; padding: 12px 22px; color: #fff; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(480px, 38vw, 680px);
  display: flex; align-items: stretch;
  overflow: hidden;
  background: var(--navy);
}
/* photo sits to the right of the panel, so the panel only overlaps its far-left edge */
.hero-photo { position: absolute; top: 0; bottom: 0; left: 36%; width: 64%; height: 100%; object-fit: cover; object-position: center; }
.hero-panel {
  position: relative; z-index: 1;
  width: 50%;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  display: flex; align-items: center;
  padding: 56px 10% 56px max(24px, calc((100vw - var(--max)) / 2 + 24px));
}
.hero-panel::after {            /* livery stripe along the slanted edge */
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  clip-path: polygon(calc(100% - 12px) 0, 100% 0, 80% 100%, calc(80% - 12px) 100%);
}
.hero-inner { max-width: 480px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 2.9vw, 2.9rem); line-height: 1.08; margin-bottom: 18px; }
.hero p { color: #C7D2E1; font-size: 1.1rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* ---------- Highlights strip ---------- */
.strip { background: #EEF4FF; color: var(--navy); border-bottom: 1px solid #DCE7FB; }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item {
  padding: 26px 20px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25;
  border-right: 1px solid #DCE7FB;
}
.strip-item svg { color: var(--accent); }
.strip-item:last-child { border-right: 0; }
.strip-item svg { width: 34px; height: 34px; flex: none; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: border-color .2s;
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--accent); }
a.card:hover h3 { color: var(--accent); }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .icon { width: 100%; height: 130px; object-fit: contain; margin: 0 auto 24px; }
.card .icon .accent { color: var(--accent); }
.card-link {
  font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link:hover { gap: 10px; }
.section-head { margin-bottom: 52px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .placeholder-art { width: 100%; height: 100%; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.checklist li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--accent); }

/* ---------- Why us features ---------- */
.feature { display: flex; gap: 18px; }
.feature .ficon {
  flex: none; width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(10,102,224,.10); color: var(--accent);
}
.section--navy .feature .ficon { background: rgba(255,255,255,.08); }
.feature .ficon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 6px; font-size: 1.15rem; }
.feature p { font-size: .97rem; margin: 0; }

/* ---------- Coverage ---------- */
.coverage-map {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 72px 0;
  overflow: hidden;
}
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; font-size: 1.15rem; opacity: .92; }
.cta .btn--outline:hover { color: var(--accent); }
.cta-leaf { position: absolute; right: -60px; top: -60px; width: 340px; opacity: .08; color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 64px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { color: var(--navy); font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero p { font-size: 1.15rem; max-width: 640px; margin: 0; }
.page-hero p a { color: var(--accent); }
.page-hero .hero-leaf { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 300px; color: var(--accent); opacity: .08; }
.page-hero .container { position: relative; z-index: 1; }

/* ---------- Service detail ---------- */
.service-block { padding: 80px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: 0; }
.service-block .icon-lg { width: 280px; max-width: 100%; height: 150px; object-fit: contain; object-position: left center; margin-bottom: 20px; }
.service-block .icon-lg .accent { color: var(--accent); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; padding: 0; margin: 20px 0 28px; }
.spec-list li { padding-left: 20px; position: relative; font-size: .97rem; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--accent); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: var(--accent);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .97rem; }
.section--navy .step p { color: #CBD5E1; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(58,134,255,.15);
}
.form-note { font-size: .88rem; color: var(--muted); margin: 16px 0 0; }
.hidden { display: none; }

.contact-info { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-info li { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-info .ficon { flex: none; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.contact-info .ficon svg { width: 22px; height: 22px; }
.contact-info strong { display: block; color: var(--ink); font-family: var(--font-head); }
.contact-info a { color: var(--text); text-decoration: none; }
.contact-info a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: #071A33; color: #94A3B8; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #CBD5E1; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }
.footer .brand { margin-bottom: 18px; }
.footer-bottom {
  margin-top: 56px; padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem;
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .strip .container { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid #DCE7FB; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 16px 24px;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav .btn { margin: 20px 0 0; justify-content: center; border-bottom: 0; border-radius: 6px; }
  .split, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .split--reverse .split-media { order: 0; }
  .section { padding: 72px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .spec-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-4, .strip .container, .footer-grid { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid #DCE7FB; }
  .strip-item:last-child { border-bottom: 0; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .cta .btn-row { width: 100%; }
}

/* Contact page layout */
.split--contact { grid-template-columns: 1fr 1.5fr; align-items: start; }
@media (max-width: 860px) { .split--contact { grid-template-columns: 1fr; } }

/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 90px; }

/* Home services: 5 cards, last row centred */
.grid-services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-services > .card { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 28px 22px; }
.grid-services > .card:last-child { border-right: 0; }
.grid-services > .card .icon { height: 96px; margin-bottom: 20px; }
.grid-services > .card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.grid-services > .card p { font-size: .93rem; margin: 0; }
a.card:hover { background: #F8FAFD; }
@media (max-width: 1100px) {
  .grid-services { grid-template-columns: repeat(3, 1fr); }
  .grid-services > .card { border-bottom: 1px solid var(--line); }
  .grid-services > .card:nth-child(3) { border-right: 0; }
}
@media (max-width: 700px) {
  .grid-services { grid-template-columns: 1fr 1fr; }
  .grid-services > .card:nth-child(3) { border-right: 1px solid var(--line); }
  .grid-services > .card:nth-child(2n) { border-right: 0; }
}
@media (max-width: 460px) {
  .grid-services { grid-template-columns: 1fr; }
  .grid-services > .card { border-right: 0 !important; }
}

/* ---------- Home: simple pieces ---------- */
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.head-row h2 { margin: 0; }
.text-link { font-family: var(--font-head); font-weight: 700; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.freight { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.freight-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.freight-list li { padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; color: var(--ink); font-weight: 500; }

.contact-band { background: var(--navy); color: #C7D2E1; padding: 56px 0; }
.contact-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 28px; }
.contact-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.15); }
.contact-band-grid a { padding: 22px 24px 4px 0; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.contact-band-grid a small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .82rem; color: #93A4BD; margin-bottom: 4px; }
.contact-band-grid a:hover { color: #8AB8FF; }

@media (max-width: 860px) {
  .hero { flex-direction: column; height: auto; }
  .hero-photo { position: relative; left: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .hero-panel { width: 100%; clip-path: none; padding: 40px 24px 48px; }
  .hero-panel::after { clip-path: none; top: 0; bottom: auto; height: 6px; }
  .freight { grid-template-columns: 1fr; gap: 24px; }
  .contact-band-grid { grid-template-columns: 1fr; }
  .contact-band-grid a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 560px) { .freight-list { columns: 1; } .hero-panel { padding: 32px 16px 40px; } }

.narrow { max-width: 760px; }
.note-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.note-box h3 { font-size: 1.15rem; margin-bottom: 14px; }
