/* MGC Transport public website.
   Colours come from the oval logo: navy #2b2f8f, sky #0093d8, ice #7ad0f0. */
:root {
  --navy: #2b2f8f;
  --navy-deep: #1b1e5e;
  --navy-ink: #14174a;
  --sky: #0093d8;
  --sky-dark: #0074ad;
  --ice: #7ad0f0;
  --tint: #f2f8fe;
  --tint2: #e4f0fb;
  --ink: #0f1631;
  --ink2: #39435f;
  --muted: #5d6884;
  --line: #d9e4f1;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 23, 74, .06), 0 8px 24px -12px rgba(20, 23, 74, .18);
  --head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink2);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy-ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

section[id], form[id] { scroll-margin-top: 88px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--body); letter-spacing: .01em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Brand dots (from the logo) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-dark);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--ice); }
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots i { display: block; border-radius: 50%; background: var(--sky); }
.dots i:nth-child(1) { width: 9px; height: 9px; }
.dots i:nth-child(2) { width: 7px; height: 7px; background: var(--navy); }
.dots i:nth-child(3) { width: 5px; height: 5px; }
.dots i:nth-child(4) { width: 3px; height: 3px; background: var(--navy); }
.eyebrow-light .dots i:nth-child(even) { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20, 23, 74, .5); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.brand img { width: 142px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--sky); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .header-row { height: 66px; }
  .brand img { width: 112px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(20, 23, 74, .45);
    padding: 8px 16px 18px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a:not(.btn):hover { border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 14px; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--tint) 0%, #fff 78%);
  padding: 64px 0 88px;
}
.hero-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sw-navy { fill: var(--navy); opacity: .09; }
.sw-sky { fill: var(--sky); opacity: .14; }
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.2fr; gap: 28px; align-items: center; }
.hero h1 {
  font: 700 clamp(40px, 4.8vw, 60px)/1.02 var(--head);
  letter-spacing: -.005em; color: var(--navy-ink); margin-bottom: 22px;
}
.hero h1 .accent { display: block; color: var(--sky); font-style: italic; font-weight: 800; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-mail { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-mail a { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; }
.hero-mail a:hover { color: var(--sky-dark); }
.hero-mail .ico { width: 18px; height: 18px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--sky-dark); }
.hero-mail small { display: block; font: 600 11.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

/* The rig cut-out may bleed into the page margin on wide screens, never past the viewport. */
.hero-truck { position: relative; margin: 0 calc(-1 * clamp(0px, (100vw - 1180px) / 2 + 16px, 90px)) 0 0; }
.hero-truck img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(20, 23, 74, .16)); }
.hero-truck::before {
  content: ''; position: absolute; inset: -8% -6% -4% 2%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 147, 216, .18), rgba(0, 147, 216, 0) 66%);
}
.hero-truck::after {
  content: ''; position: absolute; left: 4%; right: 2%; bottom: -2%; height: 9%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 23, 74, .3), rgba(20, 23, 74, 0) 70%);
}

/* Numbers strip under the hero */
.stats {
  position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 48px 0 0; padding: 4px 0; background: var(--navy); border-radius: 20px;
  box-shadow: 0 24px 50px -28px rgba(27, 30, 94, .75);
}
.stats::after {
  content: ''; position: absolute; right: -60px; bottom: -120px; width: 300px; height: 200px; border-radius: 50%;
  border: 18px solid var(--sky); border-left-color: transparent; border-top-color: transparent; transform: rotate(-12deg); opacity: .4;
}
.stats > div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 26px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stats > div:first-child { border-left: 0; }
.stats dd { order: -1; margin: 0; font: 800 italic 48px/1 var(--head); color: #fff; }
.stats dd span { color: var(--ice); }
.stats dd .dd-unit { font: 600 17px/1 var(--body); font-style: normal; margin-left: 8px; letter-spacing: .02em; }
.stats dt { font-size: 14.5px; line-height: 1.35; color: rgba(255, 255, 255, .8); }

@media (max-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-truck { margin: 0 -8px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 600px) {
  .lead { font-size: 17.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-mail { flex-direction: column; }
  .hero-mail a { font-size: 15.5px; }
  .stats { border-radius: 16px; }
  .stats > div { padding: 16px 16px 18px; }
  .stats dd { font-size: 40px; }
  .stats dd .dd-unit { font-size: 15px; margin-left: 6px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section h2 { font: 700 clamp(34px, 4.2vw, 50px)/1.04 var(--head); margin-bottom: 14px; }
.section-sub { font-size: 18.5px; color: var(--muted); }
@media (max-width: 600px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #c3d6ec; box-shadow: 0 2px 4px rgba(20, 23, 74, .05), 0 20px 36px -18px rgba(20, 23, 74, .3); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--tint2), #d3e9fb); margin-bottom: 18px;
}
.card-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 700 26px/1.1 var(--head); margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--ink2); }
.ticks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; margin-top: auto; }
.card p + .ticks { margin-top: 18px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15px; font-weight: 500; color: var(--ink); }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 3px rgba(0, 147, 216, .15);
}
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Coverage */
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.map-wrap { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); }
.map { width: 100%; height: auto; }
.map-na { fill: #d5e8fa; stroke: #fff; stroke-width: 1.2; }
.map-nb { fill: #edf2f8; stroke: #fff; stroke-width: 1.2; }
.map-sv { fill: #e3eefa; stroke: #fff; stroke-width: 1.2; }
.map-cl { font: 600 15px/1 var(--body); letter-spacing: .22em; fill: #94a2ba; }
.map-cl-na { fill: #6386b8; font-size: 18px; letter-spacing: .3em; }
.map-cl-sm { font-size: 11px; letter-spacing: .12em; }
.map-ocean { font: italic 500 17px/1 var(--body); fill: #a3b5cc; letter-spacing: .08em; }
.rt { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; opacity: .75; }
.rt-x { stroke: var(--navy); stroke-dasharray: 5 5; opacity: .7; }
.map-dot { fill: #fff; stroke: var(--sky); stroke-width: 2.6; }
.map-dot-x { stroke: var(--navy); }
.map-hub { fill: var(--navy); }
.map-hub-ring { fill: var(--sky); opacity: .22; }
.map-tl { font: 600 19px/1 var(--body); fill: var(--navy-ink); paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 5px; stroke-linejoin: round; }
.map-tl-hub { font-size: 23px; font-weight: 700; fill: var(--navy); }
@media (prefers-reduced-motion: no-preference) {
  .map.drawn .rt { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease-out forwards; }
  .map.drawn .rt-x { animation-delay: .5s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 30px; }
.regions h3 { font: 700 15px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sky-dark); margin-bottom: 6px; }
.regions p { font-size: 16px; color: var(--ink); }
.region-x h3 { color: var(--navy); }
.note { margin-top: 26px; font-size: 16.5px; color: var(--muted); }
@media (max-width: 960px) { .coverage-grid { grid-template-columns: 1fr; gap: 36px; } .coverage-copy { order: -1; } .map-wrap { max-width: 620px; } }
@media (max-width: 480px) { .regions { grid-template-columns: 1fr; } }

/* Fleet band */
.section-navy { background: var(--navy-deep); color: rgba(255, 255, 255, .85); overflow: hidden; }
.section-navy h2 { color: #fff; }
.band-swoosh { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 160px; pointer-events: none; }
.band-swoosh path { fill: var(--sky); opacity: .16; }
.fleet-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: center; }
.fleet-list { list-style: none; margin: 30px 0 0; padding: 0; }
.fleet-list li { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.fleet-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fleet-list strong { font: 800 italic 40px/1 var(--head); color: var(--ice); }
.fleet-list span { font-size: 17.5px; color: #fff; }
.fleet-photo { position: relative; margin: 0; }
.fleet-photo img { position: relative; z-index: 1; width: 100%; height: auto; }
.fleet-photo::before {
  content: ''; position: absolute; inset: -6% -4% 0 -4%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 147, 216, .32), rgba(0, 147, 216, 0) 65%);
}
.fleet-photo::after {
  content: ''; position: absolute; left: 0; right: 4%; bottom: -1%; height: 8%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 70%);
}

.gallery { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.gallery figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #12154a; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  font: 600 15.5px/1.2 var(--body); color: #fff;
  background: linear-gradient(180deg, rgba(14, 16, 50, 0), rgba(14, 16, 50, .82));
}

.why { position: relative; margin-top: 56px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 30px 32px 32px; }
.why-h { font: 700 28px/1.1 var(--head); color: #fff; margin-bottom: 6px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.why-item { padding: 18px 0 0 22px; position: relative; }
.why-item::before { content: ''; position: absolute; left: 0; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.why-item h4 { font: 600 18px/1.3 var(--body); color: #fff; margin-bottom: 4px; }
.why-item p { font-size: 16px; color: rgba(255, 255, 255, .75); }
@media (max-width: 1080px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 0 28px; } }
@media (max-width: 960px) {
  .fleet-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: 1fr 1fr; margin-top: 48px; }
}
@media (max-width: 600px) {
  .fleet-list li { grid-template-columns: 70px 1fr; } .fleet-list strong { font-size: 32px; }
  .gallery { gap: 10px; } .gallery figure { border-radius: 12px; }
  .gallery figcaption { font-size: 14px; padding: 30px 12px 10px; }
  .why { padding: 22px 20px 24px; } .why-grid { grid-template-columns: 1fr; }
}

/* Contact + quote */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.contact-card { background: var(--tint); border: 1px solid var(--line); border-radius: 20px; padding: 10px 26px; position: sticky; top: 104px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { width: 22px; height: 22px; color: var(--sky-dark); margin-top: 3px; }
.contact-list .label { display: block; font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-list a { font-weight: 600; font-size: 17.5px; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.quote { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.quote h3 { font: 700 30px/1.1 var(--head); margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 22px; }
.f { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.f-wide { grid-column: 1 / -1; }
.f input, .f select, .f textarea {
  font: 400 16px/1.4 var(--body); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdff;
  padding: 11px 13px; min-height: 48px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.f textarea { resize: vertical; min-height: 92px; }
.f input::placeholder, .f textarea::placeholder { color: #9aa6bb; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(0, 147, 216, .14); }
.form-hint, .form-done { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.form-done { color: var(--ink); background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { position: static; } }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } .quote { padding: 22px 18px; } .contact-card { padding: 4px 18px; } }

/* Footer */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .7); padding: 44px 0; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-name { font: 700 22px/1 var(--head); color: #fff; margin-bottom: 10px; letter-spacing: .02em; }
.footer-quotes { margin-top: 12px; }
.footer-meta { text-align: right; }
.footer-meta p + p { margin-top: 6px; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; gap: 18px; } .footer-meta { text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
