/* ==========================================================================
   DMX Direct Maintenance - base styles
   ========================================================================== */

/* Self-hosted (not Google's CDN, to avoid sending visitor IPs to Google —
   relevant given this is an EU business with its own cookie policy).
   Sora ships as a variable font, so one file covers the whole 100–800
   weight range instead of a file per weight. */
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url("../fonts/sora-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url("../fonts/sora-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--dmx-purple: #7828B4;       /* primary brand purple — matches logo */
	--dmx-purple-dark: #54187F;  /* darker purple for hover/accents */
	--dmx-purple-light: #9448D0;
	--dmx-ink: #1c1c1c;
	--dmx-grey-bg: #F4F4F6;
	--dmx-white: #ffffff;
	--font-base: "Sora", "Helvetica Neue", Arial, sans-serif;
	--container-width: 1160px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--dmx-ink);
	line-height: 1.6;
}

a { color: var(--dmx-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 700; }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.btn {
	display: inline-block;
	padding: 12px 28px;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--purple {
	background: var(--dmx-purple);
	color: var(--dmx-white);
}
.btn--purple:hover { background: var(--dmx-purple-dark); color: var(--dmx-white); text-decoration: none; }
.btn--white {
	background: var(--dmx-white);
	color: var(--dmx-purple);
}
.btn--white:hover { background: #eee; color: var(--dmx-purple); text-decoration: none; }
.btn--outline {
	background: transparent;
	color: var(--dmx-purple);
	border: 1px solid var(--dmx-purple);
}
.btn--outline:hover { background: var(--dmx-purple); color: var(--dmx-white); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
	/* Slightly translucent white while sticky/fixed over page content, so
	   whatever scrolls underneath shows through a little — blur keeps the
	   nav text/logo legible against whatever's behind it. */
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #eee;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 200;
	transform: translateY(0);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(28, 28, 28, 0.1); }
body { padding-top: var(--header-height, 82px); }
/* WP admin toolbar is also fixed to the viewport top when logged in — sit
   the header below it instead of underneath/behind it. Offsets match core's
   own admin-bar breakpoints (32px desktop, 46px <= 782px). */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
/* Fixed header covers the top of the viewport, so anchor-linked sections
   (e.g. line station list -> #amsterdam) need room to land below it. */
[id] { scroll-margin-top: var(--header-height, 82px); }
.site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	padding-bottom: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo__img { height: 34px; width: auto; display: block; }
.site-logo__text { font-size: 1.8rem; font-weight: 800; color: var(--dmx-purple); }
.site-logo__sub { font-size: 0.65rem; font-weight: 700; line-height: 1.1; border-left: 1px solid #ccc; padding-left: 10px; }

.site-nav.collapse { display: block; }
.site-nav__list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	font-weight: 500;
}
.site-nav__item { position: relative; }
.site-nav__item a { color: var(--dmx-ink); }
.site-nav__item.is-current > a { color: var(--dmx-purple); font-weight: 700; }

.site-nav__parent-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	color: var(--dmx-ink);
	cursor: pointer;
}
.site-nav__item.is-current .site-nav__parent-toggle { color: var(--dmx-purple); font-weight: 700; }
.site-nav__caret { transition: transform 0.15s ease; flex-shrink: 0; }
.site-nav__item.is-open .site-nav__caret { transform: rotate(180deg); }

.site-nav__submenu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--dmx-white);
	box-shadow: 0 12px 20px -8px rgba(28, 28, 28, 0.2);
	border-radius: 2px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 10;
}
.site-nav__item.has-children:hover .site-nav__submenu,
.site-nav__item.has-children.is-open .site-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.site-nav__subitem a { display: block; padding: 10px 20px; white-space: nowrap; color: var(--dmx-ink); }
.site-nav__subitem a:hover { color: var(--dmx-purple); }
.site-nav__subitem.is-current a { color: var(--dmx-purple); font-weight: 700; }

.site-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: none;
	color: var(--dmx-purple);
	cursor: pointer;
}
.site-nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background-size: cover;
	background-position: center;
	/* Same shape as the A380 photo (1920x600), like the directmaintenance.com
	   slider: the whole plane shows, scaled to the page width. min-height keeps
	   room for the slogan/banner/buttons below ~1280px wide, where the photo
	   then crops at the sides instead of shrinking further. */
	/* width must be definite: otherwise, once min-height kicks in, aspect-ratio
	   widens the box to keep the shape (1280px wide on a 1024px screen). */
	width: 100%;
	aspect-ratio: 1920 / 600;
	min-height: 400px;
	display: flex;
	flex-direction: column;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	/* No darkening: the daytime A380 photo (2026-09-30) is meant to read bright,
	   and the slogan is now purple (not white), so it needs no dark backing.
	   The purple banner/buttons along the bottom are solid, so stay legible. */
	background: none;
}
.hero__inner {
	/* Left edge keeps the design's 41px-of-1200 (3.42%) inset. Vertically it
	   sits higher than the design's 38.85% so the purple slogan lands in the
	   clear sky of the A380 photo, above the wing line and clear of the nose. */
	position: absolute;
	left: 3.42%;
	top: 20%;
}
.hero__title { margin: 0; }
/* The slogan is imported vector artwork (an SVG export from the Figma
   design), not live text — its letterforms/kerning don't match plain Sora
   at any weight, so it's rendered as an image rather than approximated.
   The clamp() floor (250px) and its 55vw mid-range factor are both well
   above the design's own 46%-of-hero-width proportion specifically so it
   stays a prominent, easily-readable size on phones instead of shrinking
   down to match that proportion literally on a narrow viewport. */
/* 36vw (not the design's ~46%) because the full-width A380 photo puts the
   nose ~43% from the left — the slogan has to end before it. */
.hero__title-img { display: block; width: clamp(250px, 36vw, 553px); height: auto; }

.hero__bottom-row {
	position: relative;
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-right: 40px;
}
.hero__banner {
	background: var(--dmx-purple);
	max-width: 480px;
	padding: 28px 32px;
}
.hero__banner-text p { color: var(--dmx-white); margin: 0; font-size: 1.5rem; line-height: 1.26; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.hero__buttons .btn { border-radius: 0; }

/* ---------- Quality and approvals ----------
   Layout (flex, spacing, stacking, borders) is all Bootstrap utility classes
   in quality-approvals.twig. What's left here is only what stock Bootstrap
   has no utility for: the background-image mechanics and the brand purple
   (same reasoning as .btn--purple — this Bootstrap build has no "purple"
   in its color palette). */
.qa-hero {
	background-size: cover;
	background-position: center 30%;
	background-color: var(--dmx-purple-dark);
	height: 520px; /* fixed, not aspect-ratio-scaled, so it never grows taller on wide viewports */
}
/* Our Services: the uploaded header photo is 1200x300 (4:1) — unlike every
   sibling page's header image, which is already exactly 1200x520 (2.31:1,
   a pixel-perfect match for the hero box needing no crop at all) — so cover
   alone leaves it looking flat/zoomed-out compared to the design. Zoomed
   and repositioned specifically for this one image's own composition. */
.qa-hero--services {
	background-size: 180%;
	background-position: 62% 85%;
	background-repeat: no-repeat;
}
/* Line Stations (archive + every country page share this photo): client
   asked for the wingtips/winglets at the far left and right edges to be
   cropped out. Below ~1100px wide, cover already crops the sides away (the
   520px-tall box is narrower than the photo's 2.31:1 shape); above that,
   cover fits by width and shows the full width, so zoom in ~12% there.
   112% of a >=1100px box keeps the image >=534px tall, so it still covers. */
@media (min-width: 1100px) {
	.stations-hero { background-size: 112% auto; }
}
.qa-hero__overlay {
	background: linear-gradient(180deg, rgba(28, 12, 51, 0.05) 0%, rgba(28, 12, 51, 0.4) 100%);
}
.qa-hero__banner {
	background: var(--dmx-purple);
	max-width: 460px;
	min-width: 0;
	/* Exact padding measured from the design's banner rectangle vs. its
	   text box — not symmetric (was previously Bootstrap's flat p-4/p-5
	   utility classes, which padded it much more generously on every
	   side and made the box read taller/bulkier than the design). */
	padding: 20px 16px 20px 40px;
}
.qa-hero__banner p { font-size: 1.5rem; line-height: 1.26; white-space: pre-line; }
.qa-hero__title {
	font-size: clamp(1.9rem, 4.5vw, 3rem); /* 3rem = 48px, the design's fixed size on every inner-page hero */
	min-width: 0;
}
@media (min-width: 768px) {
	/* A long title's natural (unwrapped) width can exceed the row's
	   remaining space next to the banner, which pushes it onto its own
	   line under flex-wrap. flex-basis:0 + grow lets it claim the
	   remaining space instead of demanding its full content width, so it
	   always stays on the same row and wraps its own text within that
	   space; text-align keeps it hugging the right edge as before. */
	.qa-hero__title { flex: 1 1 0%; text-align: right; }
}

/* ---------- Legal / plain content pages (privacy policy, etc.) ---------- */
.legal-content { max-width: 820px; overflow-wrap: break-word; }
.legal-content h1 { color: var(--dmx-purple); }
.legal-content h2, .legal-content h3, .legal-content strong { color: var(--dmx-ink); }
.legal-content p, .legal-content li { font-size: 0.875rem; line-height: 1.7; }
.legal-content ul, .legal-content ol { padding-left: 1.4em; }
.legal-content a { color: var(--dmx-purple); }
.legal-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.9rem;
}
.legal-content table td, .legal-content table th {
	border: 1px solid #ddd;
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}
.legal-content .wp-block-table { overflow-x: auto; }

/* Contact Us page: Registered office / Office hours block sits in its own
   column to the right of the enquiry emails, instead of stacking under them. */
.contact-details { display: flex; flex-wrap: wrap; gap: 20px 60px; }
.contact-details__col { flex: 1 1 280px; min-width: 0; }
.contact-details__col p:first-child { margin-top: 0; }

/* Service detail (service-single.twig): raw WYSIWYG content, e.g. the
   "Boeing family" / "Airbus family" subheadings on the Aircraft models
   served page. Same heading treatment as the rest of the site's h2/h3s
   (Sora bold, violet) instead of the generic black h1-h3 default. */
.service-detail h3 { color: var(--dmx-purple); font-size: 1.5rem; margin-top: 1.4em; }

.service-detail p, .service-detail li { font-size: 0.875rem; line-height: 1.7; }
.service-detail ul { padding-left: 1.4em; }

/* News detail (single.twig): same prose styling as .legal-content, but
   full width instead of the 820px reading column, with a smaller title. */
.news-detail { max-width: none; }
.news-detail__title { font-size: 1.75rem; }

/* Contact Us map: fixed heights per breakpoint rather than an aspect-ratio
   percentage — at narrow widths a ratio-based height gets too short to be
   a usable map. Scoped separately from Bootstrap's .ratio, which is also
   used for the unrelated YouTube embed on the aircraft disinfection page. */
.contact-map { height: 500px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Intro ---------- */
.intro { padding: 90px 0; }
.intro__inner { max-width: 780px; }
.intro__heading { color: var(--dmx-purple); font-size: 1.5rem; line-height: 1.26; font-weight: 400; }
.intro__body p { margin: 0 0 1.2em; font-size: 0.875rem; line-height: 1.43; }
.intro__cta { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.intro__cta-label { font-weight: 700; }
.intro__cta .btn { border-radius: 0; }

/* ---------- Our services ---------- */
.services__inner { max-width: 960px; }
.services__inner p { font-size: 0.875rem; line-height: 1.43; }
.services__list {
	columns: 2;
	column-gap: 48px;
	padding-left: 1.2em;
	margin: 24px 0 32px;
	font-size: 0.875rem;
	line-height: 1.43;
}
.services__list li { break-inside: avoid; margin-bottom: 12px; }
.services__list a { color: inherit; }
@media (max-width: 700px) {
	.services__list { columns: 1; }
}

/* ---------- Mission / Vision ---------- */
.mission-vision {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 100px 0;
	color: var(--dmx-white);
}
.mission-vision__overlay {
	position: absolute;
	inset: 0;
	background: rgba(90, 40, 130, 0.35);
}
.mission-vision__inner {
	position: relative;
	--bs-gutter-x: 0; /* Bootstrap's .row/.col-* gutter system is neutralized here — this section's spacing is owned entirely by our own padding below, not Bootstrap's gutters. */
	flex-wrap: nowrap; /* Bootstrap's .row defaults to wrap; the divider's own width can push the row a hair past 100%, which would otherwise wrap "Our vision" onto a new line. */
	align-items: flex-start;
	text-align: center;
}
.mission-vision__col { padding: 0 40px; }
.mission-vision__col h3 { font-size: 1.5rem; line-height: 1.26; }
.mission-vision__col p { font-size: 1.5rem; font-weight: 400; line-height: 1.26; }
.mission-vision__divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.5); }

/* ---------- Line stations ---------- */
.line-stations { padding: 90px 0; }
.line-stations__inner { --bs-gutter-x: 0; flex-wrap: nowrap; gap: 60px; align-items: center; max-width: 1140px; margin: 0 auto; }
.line-stations__text { flex: 0.9; }
.line-stations__text h2 { color: var(--dmx-purple); font-size: 1.5rem; }
.line-stations__text p { font-size: 0.875rem; line-height: 1.43; }
.line-stations__list { font-size: 0.875rem; line-height: 1.43; }
.line-stations__columns { display: flex; gap: 40px; margin-top: 20px; }
.line-stations__list { list-style: none; margin: 0; padding: 0; }
.line-stations__list li { margin-bottom: 6px; }
.line-stations__list li {
	cursor: default;
	border-radius: 4px;
	padding: 2px 6px;
	margin-left: -6px;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.line-stations__list li.is-active { background: #F1E9FB; }
/* Station names are plain text on the homepage (client asked for no links, the map just shows where they are). */
.line-stations__list li { color: var(--dmx-purple); }
.line-stations__list li.is-active { color: var(--dmx-purple-dark); -webkit-text-stroke: 0.45px currentColor; } /* same no-reflow hover bold as .stations-table below */

.stations-table { margin-bottom: 0; border-collapse: collapse; }
.stations-table thead th {
	border-bottom: 3px solid var(--dmx-purple);
	color: var(--dmx-purple);
	font-weight: 700;
	padding: 10px 16px 10px 0;
}
.stations-table tbody td {
	border-bottom: 1px solid #e5e5e5;
	padding: 12px 16px 12px 0;
	vertical-align: top;
}
.stations-table tbody td:first-child { font-weight: 600; white-space: nowrap; }
/* Extra breathing room between the Country and Stations columns — the
   base 16px cell padding read as too tight once country names sit right
   next to station names. Selector needs th/td + class (not just the class
   alone) to out-specificity .stations-table thead th / tbody td above,
   which each also set padding-right via the `padding` shorthand. */
.stations-table th.stations-table__country,
.stations-table td.stations-table__country { padding-right: 56px; }

/* Site-wide body-copy size: 0.875rem, matching About Us/Career/Home's
   .intro__body p. Several other pages (Line Stations + sub-pages, Quality
   & Approvals, Our Services' grey CTA box, every service detail page's
   "Looking for support" line) had plain unstyled <p>/<li> falling back to
   the 16px browser default instead — .station-copy and .body-copy are the
   same rule under two names (the former predates this being generalized
   site-wide; kept rather than churning the 3 templates already using it).
   th/td rules need class+type to out-specificity .stations-table
   thead th / tbody td above (same reason as the padding override). */
.station-copy p, .body-copy p,
.station-copy li, .body-copy li,
.station-copy .stations-table th,
.station-copy .stations-table td { font-size: 0.875rem; line-height: 1.43; }
.stations-table__airport { display: block; }
.stations-table__airport + .stations-table__airport { margin-top: 6px; }
.stations-table [data-station] { cursor: default; transition: color 0.15s ease; }
/* Hover "bold" is a thin text stroke, not font-weight: real bold glyphs are
   wider, so in a narrow column the name re-wrapped on hover (client: ZNZ's
   "Karume" jumped to the next line). The stroke thickens the letters
   without changing their width, so nothing moves. */
.stations-table [data-station].is-active { color: var(--dmx-purple-dark); -webkit-text-stroke: 0.45px currentColor; }

/* Aircraft capabilities table (service-single.twig, Boeing/Airbus/Embraer)
   reuses .stations-table's header-rule + row-divider look, but needs its
   own overrides: no bold/nowrap first column (that's a "station name"
   treatment, not appropriate for a plain list of aircraft models), a font
   size that matches the surrounding .service-detail prose (table cells
   don't inherit the `.service-detail p, .service-detail li` rule), and
   more breathing room between the Boeing and Airbus columns. Placed after
   .stations-table above so it wins the cascade at equal specificity. */
.capabilities-table thead th,
.capabilities-table tbody td { font-size: 0.875rem; }
.capabilities-table tbody td:first-child { font-weight: 400; white-space: normal; padding-right: 80px; }
.capabilities-table { margin-bottom: 3em; }

.line-stations__map {
	flex: 1;
	min-width: 320px;
	position: relative;
	aspect-ratio: 469 / 458; /* matches the uploaded map graphic's own proportions */
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
/* Narrowed only on the front page's compact two-column layout — the
   stations archive page gives the map its own larger column (col-lg-7)
   and the design uses that extra room too, so capping it the same way
   there would just make an already-tight East-Africa dot cluster worse. */
.line-stations__inner .line-stations__map { flex: 1.5; max-width: 640px; }
/* Line Stations page: same 640px map as the homepage, in its wider col-lg-7. */
.col-lg-7 > .line-stations__map { max-width: 640px; margin-left: auto; }
.line-stations__dot {
	position: absolute;
	display: block;
	/* Design is an 8px purple fill with a 1px white ring drawn outside it
	   (10px total). box-sizing:border-box (global) means a plain
	   8px box + 1px border would eat into the fill instead of sitting
	   outside it, so the box is sized to the full 10px render bounds and
	   the border inset from there — 10 - 2*1 = 8px fill, matching exactly. */
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px; /* centers the dot on its left/top percentage */
	border-radius: 50%;
	background: var(--dmx-purple);
	border: 1px solid var(--dmx-white);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.line-stations__dot:hover,
.line-stations__dot.is-active {
	background: var(--dmx-purple-dark);
	transform: scale(1.6);
	box-shadow: 0 0 0 5px rgba(110, 47, 181, 0.25);
}

/* ---------- Join CTA ---------- */
.join-cta { background: var(--dmx-purple); color: var(--dmx-white); padding: 70px 0; }
.join-cta__text a { color: var(--dmx-white); }
.join-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.join-cta__text { max-width: 640px; }
.join-cta__text h2 { font-size: 1.5rem; }
.join-cta__text p { margin: 0 0 10px; font-size: 0.875rem; line-height: 1.43; }
.join-cta__action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex-shrink: 0; }
.join-cta__action .btn { border-radius: 0; }

/* ---------- Latest news ---------- */
.latest-news { background: var(--dmx-grey-bg); padding: 80px 0; }
.latest-news__heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.latest-news__heading h2 { color: var(--dmx-purple); font-size: 1.5rem; }
.latest-news__grid { --bs-gutter-x: 0; gap: 30px; }
.latest-news__grid .news-card.col-4 { width: calc(33.3333% - 20px); }
.news-card { display: flex; flex-direction: column; }
.news-card__image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.news-card__title {
	font-size: 1rem;
	line-height: 1.4;
	margin: 14px 0 10px;
	height: 4.2em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.news-card__title a { color: var(--dmx-purple); }
.news-card__date { font-size: 0.8rem; color: #777; padding-top: 12px; margin-bottom: 14px; border-top: 1px solid #ddd; }
.news-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Customers ---------- */
.customers { padding: 70px 0 90px; }
.customers h2 { color: var(--dmx-purple); margin-bottom: 30px; font-size: 1.5rem; }
.customers__slider { display: flex; align-items: center; gap: 40px; }
.customers__viewport { flex: 1; overflow: hidden; }
.customers__track {
	display: flex;
	transition: transform 0.6s ease;
}
.customers__logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 70px;
	padding: 0 20px;
}
/* Each logo's box/img size is set inline by inc/logo-balance.php (equal
   visual area, padding trimmed). The box crops the img to its visible
   content; max-width scales the whole thing down on narrow slots. */
.customers__logo-box { display: block; overflow: hidden; flex-shrink: 0; }
.customers__logo-box img { display: block; max-width: none; }
/* Fallback when a logo couldn't be measured (no GD / unreadable file). */
.customers__logo > img { height: 42px; width: auto; max-width: 150px; object-fit: contain; }
.customers__arrow {
	background: none;
	border: 1px solid var(--dmx-purple);
	color: var(--dmx-purple);
	width: 44px;
	height: 44px;
	border-radius: 2px;
	cursor: pointer;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.customers__arrow:disabled { opacity: 0.35; cursor: default; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dmx-purple); color: var(--dmx-white); padding: 50px 0 30px; }
.site-footer a { color: var(--dmx-white); }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr auto;
	gap: 30px;
	align-items: start;
}
.site-footer__col ul, .site-footer__contact { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.site-footer__contact p { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.site-footer__contact .icon { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; }
.site-footer__contact .icon svg { width: 100%; height: 100%; }
/* Company name sits under the e-mail, lined up with its text (16px icon + 8px gap). */
.site-footer__company { padding-left: 24px; }
.site-footer__social { text-align: right; }
.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--dmx-purple);
	border-radius: 2px;
	font-weight: 700;
	font-size: 1rem;
}
.social-icon img, .social-icon svg { display: block; width: 28px; height: 28px; object-fit: contain; }
.social-icon svg { color: var(--dmx-purple); } /* .site-footer a sets white, which would hide the glyph */
/* Tagline / legal links / logo share one row. Grid track widths (1.4fr
   tagline column vs. auto logo column) don't line up with the row's true
   midpoint, so the legal links use position:absolute + left:50% against
   this row specifically rather than fighting the grid for centering. */
.site-footer__bottom { grid-column: 1 / -1; position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 30px; }
/* Same vector export as the hero slogan, same reasoning: floor (170px) and
   30vw factor both sit above the design's own 22%-of-footer-width
   proportion so it doesn't read tiny on a narrow footer row on mobile. */
.site-footer__tagline-img { display: block; width: clamp(170px, 30vw, 265px); height: auto; }
.site-footer__legal {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	font-size: 0.8rem;
	white-space: nowrap;
}
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }
/* Negative top margin pulls it up into the grid's 30px row gap (~15px left). */
.site-footer__credit { grid-column: 1 / -1; margin: -15px 0 0; text-align: center; font-size: 0.7rem; opacity: 0.7; }
.site-footer__credit a { text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }
.site-footer__logo { text-align: right; }
.site-footer__logo img { max-width: 160px; max-height: 60px; }
.logo-dmx { display: block; font-size: 1.6rem; font-weight: 800; }
.logo-sub { display: block; font-size: 0.7rem; font-weight: 700; }

/* ---------- 404 ---------- */
.error-404 {
	min-height: calc(100vh - var(--header-height, 82px));
	display: flex;
	align-items: center;
	background: var(--dmx-grey-bg);
}
.error-404__inner { text-align: center; padding: 80px 24px; }
.error-404__code {
	margin: 0;
	font-size: clamp(90px, 18vw, 180px);
	font-weight: 800;
	line-height: 1;
	color: var(--dmx-purple);
}
.error-404__title { margin: 0 0 16px; font-size: clamp(1.4rem, 3vw, 2rem); }
.error-404__text { max-width: 480px; margin: 0 auto 32px; color: #555; }
.error-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.site-nav__toggle { display: inline-flex; }
	.site-nav.collapse:not(.show) { display: none; }
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--dmx-white);
		border-bottom: 1px solid #eee;
		box-shadow: 0 12px 20px -8px rgba(28, 28, 28, 0.15);
		z-index: 100;
	}
	.site-nav__list { flex-direction: column; gap: 0; padding: 8px 0; }
	.site-nav__item a { display: block; padding: 14px 24px; }
	.site-nav__parent-toggle { width: 100%; justify-content: space-between; padding: 14px 24px; }
	.site-nav__submenu {
		position: static;
		min-width: 0;
		box-shadow: none;
		background: var(--dmx-grey-bg);
		padding: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.2s ease;
	}
	.site-nav__item.has-children.is-open .site-nav__submenu { max-height: 200px; }
	.site-nav__subitem a { padding: 12px 24px 12px 40px; }
	.hero { aspect-ratio: auto; min-height: 480px; }
	.hero__bottom-row { flex-direction: column; align-items: flex-start; padding-right: 0; }
	.hero__banner { width: 100%; max-width: 100%; }
	.hero__banner-text p { font-size: 1rem; }
	.hero__buttons { flex-wrap: nowrap; gap: 4px; }
	.hero__buttons .btn { padding: 10px 10px; font-size: 0.7rem; }
	.mission-vision__inner { flex-direction: column; gap: 40px; }
	.mission-vision__col { width: 100%; }
	.mission-vision__divider { display: none; }
	.line-stations__inner { flex-direction: column; }
	.line-stations__map { min-width: 0; width: 100%; }
	.latest-news__heading { flex-direction: column; align-items: flex-start; gap: 16px; }
	.latest-news__heading .btn { white-space: nowrap; }
	.latest-news__grid .news-card.col-4 { width: 100%; }
	.contact-map { height: 350px; }
	.customers__arrow { width: 44px; height: 44px; }
	.customers__logo { padding: 0 8px; }
	.site-footer__inner { grid-template-columns: 1fr; text-align: left; }
	.site-footer__logo, .site-footer__social { text-align: left; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
	.site-footer__legal { position: static; transform: none; text-align: left; white-space: normal; }
	.site-footer__credit { text-align: left; }
	.qa-hero { aspect-ratio: auto; min-height: 520px; }
	.qa-hero__banner p { font-size: 1rem; }
	.error-404__inner { padding: 60px 24px; }
	.error-404__actions { flex-direction: column; align-items: center; }
	.error-404__actions .btn { width: 100%; max-width: 280px; }
}
/* Phones show 2 logos per slide (see main.js) — tighter arrows/gaps leave
   more room for them, so --logo-scale doesn't shrink them as far. */
@media (max-width: 599px) {
	.customers__slider { gap: 10px; }
	.customers__arrow { width: 36px; height: 36px; }
	.customers__logo { padding: 0 6px; }
}
/* Homepage hero (A380 photo, 1920x600): keep the purple slogan off the
   plane's nose where the photo is cropped at the sides. The nose starts at
   43.2% of the photo's width, so place the image so the nose begins ~20px
   right of the slogan (left inset 3.42vw + its width).
   - 1280px+: full photo shown (hero = photo shape), default centring is fine.
   - 901-1279px: hero is 400px tall, photo 1280px wide, nose at 553px.
   - <=900px: hero is 480px tall (see the 900px block), photo 1536px wide,
     nose at 664px; slogan is 55vw there. max() stops the image's right edge
     from uncovering. */
@media (min-width: 901px) and (max-width: 1279px) {
	.hero { background-position-x: calc(39.42vw - 533px); }
}
@media (max-width: 900px) {
	.hero__title-img { width: clamp(250px, 55vw, 553px); }
	.hero { background-position-x: max(calc(3.42vw + clamp(250px, 55vw, 553px) - 644px), calc(100vw - 1536px)); }
}
