/* DMG UK Logistics — site styles (rebuilt from the Wix site, Nov 2026) */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #06103c;
  --blue: #004990;
  --red: #e31937;
  --light: #fafafa;
  --rule: #7f8fbf;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --head: "Montserrat", Arial, sans-serif;
  --wrap: 1160px;
  --header-h: 125px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font: 16px/1.5 var(--body); color: var(--navy); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.logo img { width: 198px; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 14px; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--red); }
.tagline { margin: 0; font: 18px var(--head); color: var(--red); letter-spacing: -.01em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; display: block; }

/* ---------- Hero ---------- */
.hero { height: 305px; background: url("../images/hero.jpg") center / cover no-repeat; }

/* ---------- Section headings with rule ---------- */
.rule-title { font: 700 16px/1.5 var(--head); text-align: center; padding-bottom: 12px; margin: 0 auto 28px; border-bottom: 1px solid var(--rule); max-width: 300px; }

/* ---------- About (3 columns) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.about > * { min-height: 699px; }
.journey { background: var(--blue); color: #fff; padding: 36px 24px 36px 36px; }
.journey .rule-title { border-color: rgba(255,255,255,.6); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; font: 12px/1.3 var(--head); }
.timeline::before { content: ""; position: absolute; left: 55px; top: 6px; bottom: 6px; width: 2px; background: #fff; }
.timeline li { display: grid; grid-template-columns: 46px 1fr; gap: 28px; position: relative; padding: 4px 0 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 51px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.timeline .year { font-weight: 700; }
.timeline p { margin: 0; }
.who { background: #fff; padding: 36px 28px; display: flex; flex-direction: column; }
.who p { margin: 0 0 24px; }
.who .who-logo { width: 134px; margin: auto auto 0; }
.map-art { background: #0b2a4a url("../images/uk-map.jpg") center / cover no-repeat; }

/* ---------- Gallery slider ---------- */
.gallery { background: var(--light); padding: 40px 0; position: relative; }
.gallery .track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 0 4px; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 247px; scroll-snap-align: start; }
.gallery img { width: 247px; height: 247px; border-radius: 50%; object-fit: cover; }
.gallery .slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: #fff; filter: drop-shadow(0 0 3px rgba(0,0,0,.6)); padding: 10px; }
.gallery .slide-btn svg { width: 22px; height: 40px; display: block; }
.gallery .prev { left: 8px; }
.gallery .next { right: 8px; }

/* ---------- Partners & accreditations ---------- */
.partners, .accreditations { background: var(--light); padding: 50px 0 20px; }
.partners .rule-title, .accreditations .rule-title { color: var(--blue); }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 4px; list-style: none; margin: 0; padding: 0; }
.logo-grid li { width: 121px; height: 72px; display: flex; align-items: center; justify-content: center; }
.logo-grid img { max-height: 100%; object-fit: contain; }
.partners .logo-grid { max-width: 880px; margin: 0 auto; } /* 7 logos per row, as on the Wix site */
.accreditations { padding-bottom: 50px; }
.accreditations .logo-grid { gap: 40px 60px; }
.accreditations .logo-grid li { width: auto; height: auto; }
.accreditations img.rha { width: 169px; }
.accreditations img.sepa { width: 300px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 2fr; background: var(--light); }
.contact-info { background: var(--navy); color: #fff; padding: 50px 40px 60px 50px; }
.contact-info h2 { font: 30px var(--head); letter-spacing: -.04em; display: inline-block; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.6); margin-bottom: 26px; }
.contact-info h3 { font: 16px var(--body); margin: 0 0 12px; }
.contact-info ul { list-style: none; margin: 0 0 40px; padding: 0; }
.contact-info li { margin: 0 0 10px; padding-left: 14px; position: relative; }
.contact-info li::before { content: ""; position: absolute; left: 0; top: .45em; width: 6px; height: 6px; border: solid var(--chev, var(--red)); border-width: 3px 3px 0 0; transform: rotate(45deg); }
.contact-info .accounts li { --chev: #fff; }
.contact-info a { text-decoration: none; }
.contact-info a:hover, .contact-info a:focus-visible { text-decoration: underline; }
.contact-info .spaced { margin-top: 22px; }

.map { background: #fff; color: var(--navy); width: 100%; max-width: 327px; aspect-ratio: 327 / 269; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; font-size: 14px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map button { font: inherit; color: #fff; background: var(--blue); border: 0; padding: 8px 16px; cursor: pointer; }
.map.loaded { padding: 0; }

.contact-form { padding: 40px 50px 60px; max-width: 720px; margin: 0 auto; width: 100%; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-form label { display: block; font-size: 14px; margin: 0 0 6px 2px; }
.contact-form input, .contact-form textarea { width: 100%; font: 14px var(--body); color: var(--navy); background: #fff; border: 1px solid #9aa0b4; padding: 8px 10px; margin-bottom: 16px; border-radius: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button { width: 100%; font: 14px var(--body); color: #fff; background: var(--blue); border: 0; padding: 12px; cursor: pointer; margin-top: 4px; }
.contact-form button:hover { background: #003a73; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.5em; }
.form-status.error { color: #b00020; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { padding: 22px 0; font-size: 13px; color: #282626; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; }
.site-footer nav { display: flex; gap: 24px; }

/* ---------- Policy pages ---------- */
.legal { padding: 50px 0 80px; }
.legal article { max-width: 760px; margin: 0 auto; }
.legal h1 { font: 700 30px/1.3 var(--head); margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.legal h2 { font: 700 18px/1.4 var(--head); color: var(--blue); margin: 30px 0 8px; }
.legal p { margin: 0; line-height: 1.7; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 100px 20px 120px; }
.not-found h1 { font: 700 28px var(--head); margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about > * { min-height: 0; }
  .map-art { grid-column: 1 / -1; min-height: 360px; }
  .contact { grid-template-columns: 1fr; }
  .contact-form { padding: 40px 20px 60px; }
}
@media (max-width: 760px) {
  :root { --header-h: 84px; }
  .logo img { width: 140px; }
  .nav-toggle { display: block; }
  .header-right { flex-direction: row; align-items: center; }
  .tagline { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 6px 10px rgba(0,0,0,.08); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid #eee; }
  .hero { height: 180px; }
  .about { grid-template-columns: 1fr; }
  .journey { padding: 32px 20px; }
  .map-art { min-height: 300px; }
  .gallery figure { flex-basis: 200px; }
  .gallery img { width: 200px; height: 200px; }
  .contact-info { padding: 40px 20px; }
  .contact-form .row { grid-template-columns: 1fr; }
}
