/* ===== Fonts =====
   Source Sans 3 (Adobe, SIL OFL 1.1 — static/fonts/OFL.txt) is the open sibling of
   Myriad, the face the MTE logo is set in. Self-hosted so the site makes no
   third-party request and needs no privacy-policy or CSP change. */
@font-face {
  font-family: 'Source Sans 3';
  src: url("../fonts/source-sans-3-latin-wght.edab84a4f6f5.woff2") format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Palette is taken from the two logos: --brand is the MTE logo's blue (#0166b3,
   sampled from mte_logo.webp) and --sky is the MTESS recycling mark (#61b0ce).
   The darker blues are the same hue deepened, so every surface reads as the logo. */
:root {
  --brand: #0166b3;
  --brand-dark: #014f8c;
  --deep: #0a2f55;
  --ink: #071d36;
  --sky: #61b0ce;
  --sky-soft: #e6f2f9;
  --surface: #f3f7fb;
  --line: #dbe4ee;
  --heading: #0a2f55;
  --text: #1d2835;
  --muted: #556275;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(7, 29, 54, 0.06), 0 4px 16px rgba(7, 29, 54, 0.06);
  --shadow-lift: 0 2px 4px rgba(7, 29, 54, 0.06), 0 14px 32px rgba(7, 29, 54, 0.12);
  --transition: 0.2s ease;
  --header-h: 80px;
}

/* scroll-padding keeps in-page anchors (#range) from landing under the sticky header. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--heading); letter-spacing: -0.01em; }

/* Stroke icons from the sprite in base.html; they take the colour of their text. */
/* Icon sprite: Chrome ignores `hidden` on inline SVG and lays it out at 300x150. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em; height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The logo's own Australia, as a solid icon that takes the text colour. */
.icon--au {
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("../images/australia.45d832ff08c4.webp") center / contain no-repeat;
  mask: url("../images/australia.45d832ff08c4.webp") center / contain no-repeat;
}

/* ===== Layout ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--grey { background: var(--surface); }

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
}

/* ===== Header ===== */
/* White, because the logo is blue-on-white artwork: on the old navy bar it vanished. */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(7, 29, 54, 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  margin-right: auto;
}
.navbar__logo:hover { color: var(--heading); }
.navbar__logo img { height: 56px; width: auto; }

/* The logo's own lettering is unreadable at header size, so the name is set beside it. */
.navbar__wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.navbar__wordmark strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.navbar__wordmark span { font-size: 0.78rem; font-weight: 600; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.navbar__nav > li { position: relative; }

.navbar__nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  color: var(--heading);
  font-size: 15.5px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.navbar__nav > li > a:hover,
.dropdown:focus-within > a { background: var(--sky-soft); color: var(--brand); }

.navbar__nav > li > a[aria-current="page"],
.dropdown:has([aria-current="page"]) > a {
  color: var(--brand);
  box-shadow: inset 0 -3px 0 var(--brand);
  border-radius: 0;
}

.navbar__nav .icon { font-size: 14px; }

/* Dropdown — opens on hover and on keyboard focus */
.dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 10px;
  list-style: none;
  z-index: 100;
}
/* Bridges the 6px gap so the menu stays open while the pointer crosses it. */
.dropdown__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu { display: block; }

.dropdown__group {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}
.dropdown__group:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }

.dropdown__menu li a {
  display: block;
  padding: 8px 12px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.dropdown__menu li a:hover { background: var(--sky-soft); color: var(--brand); }
.dropdown__menu li a[aria-current="page"] { color: var(--brand); background: var(--sky-soft); }

.navbar__call { padding: 11px 18px; font-size: 15px; white-space: nowrap; }

/* Mobile hamburger */
.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--heading);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .navbar__hamburger { display: block; }
  .navbar__inner { gap: 8px; }

  .navbar__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 8px 16px 16px;
    gap: 0;
  }

  .navbar__nav.open { display: flex; }
  .navbar__nav > li { width: 100%; border-bottom: 1px solid var(--line); }
  .navbar__nav > li:last-child { border-bottom: none; }
  .navbar__nav > li > a { padding: 14px 8px; font-size: 16.5px; border-radius: 0; }
  .navbar__nav > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); padding-left: 14px; }
  .navbar__nav > li.dropdown > a { display: none; }

  /* On touch there is no hover, so the sweeper list is always laid out in full. */
  .dropdown__menu,
  .dropdown:hover .dropdown__menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 8px;
    min-width: 0;
  }
  .dropdown__menu::before { display: none; }
  .dropdown__group { padding-left: 8px; }
  .dropdown__group:not(:first-child) { border-top: none; margin-top: 0; padding-top: 8px; }
  .dropdown__menu li a { padding: 10px 8px; font-size: 16.5px; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .navbar__logo img { height: 46px; }
  .navbar__wordmark strong { font-size: 1rem; }
  .navbar__wordmark span { font-size: 0.68rem; }
  .navbar__call { padding: 10px 12px; }
  .navbar__call-text { display: none; }
  .navbar__call .icon { font-size: 18px; }
}

@media (max-width: 360px) {
  .navbar__wordmark span { display: none; }
}

/* ===== Eyebrow labels ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--sky); }

/* ===== Hero carousel ===== */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 82vh, 780px);
  display: flex;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
.hero-slide.active { opacity: 1; }

/* A deep-blue wash from the left keeps the copy readable and lets the trucks show. */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 29, 54, 0.94) 0%, rgba(7, 29, 54, 0.82) 38%, rgba(7, 29, 54, 0.25) 75%, rgba(7, 29, 54, 0.1) 100%),
    linear-gradient(0deg, rgba(7, 29, 54, 0.55) 0%, rgba(7, 29, 54, 0) 30%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 620px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero__badge img {
  width: 76px; height: 76px;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
}
.hero__badge span { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); line-height: 1.4; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  margin-bottom: 34px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.hero-nav {
  position: absolute;
  bottom: 28px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.hero-nav:hover { background: rgba(255, 255, 255, 0.28); }
.hero-nav--prev { right: 84px; }
.hero-nav--next { right: 28px; }

.hero-dots {
  position: absolute;
  bottom: 44px;
  left: max(24px, calc((100% - 1180px) / 2 + 24px));
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.hero-dot.active { background: var(--sky); width: 44px; }

@media (max-width: 760px) {
  .hero { min-height: 0; padding: 56px 0 88px; }
  .hero__shade { background: linear-gradient(180deg, rgba(7, 29, 54, 0.78) 0%, rgba(7, 29, 54, 0.9) 100%); }
  .hero__badge img { width: 60px; height: 60px; }
  .hero-nav { display: none; }
  .hero-dots { left: 16px; bottom: 32px; }
}

/* ===== Stats bar ===== */
/* White figures on the logo blue: the logo's own colour pairing. */
.stats-bar {
  background: var(--brand);
  color: var(--white);
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stats-bar__grid > div { padding: 6px 16px; }
.stats-bar__grid > div + div { border-left: 1px solid rgba(255, 255, 255, 0.22); }

.stats-bar__number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  display: block;
  letter-spacing: -0.02em;
}

.stats-bar__label { font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); margin-top: 4px; font-weight: 600; }

@media (max-width: 700px) {
  .stats-bar__grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .stats-bar__grid > div:nth-child(3) { border-left: none; }
}

/* ===== Section headings ===== */
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-title--light { color: var(--white); }

.section-head--center { text-align: center; }
.section-head--center .section-divider,
.text-center + .section-divider { margin-left: auto; margin-right: auto; }
.section-head--center .section-divider { margin-bottom: 44px; }

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 48px;
}

/* Two-tone rule under headings: MTE blue running into MTESS sky. */
.section-divider {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0 62%, var(--sky) 62% 100%);
  margin: 14px 0 36px;
  border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }

/* Light backgrounds */
.btn--primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }

.btn--secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--secondary:hover { background: var(--brand); color: var(--white); }

/* Dark backgrounds */
.btn--light { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn--light:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--brand-dark); }

.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn--outline:hover { background: var(--white); border-color: var(--white); color: var(--brand); }

.btn--sm { padding: 9px 18px; font-size: 14.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
}
.link-arrow .icon { transition: transform var(--transition); }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(3px); }

/* ===== Our Range ===== */
.range {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 28px;
}
.range__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
}
.range__cards { display: grid; gap: 24px; }
.range__group--small .range__cards { grid-template-columns: repeat(3, 1fr); }

.product-range-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-range-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
/* Photos fill a fixed 16:10 frame so every card in the row lines up whatever the source ratio. */
.product-range-card__img-wrap {
  background: var(--surface);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.product-range-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
/* The Ceksan images are 2.5:1 banners with their own lettering; any crop cuts words, so show them whole. */
.product-range-card__img-wrap img.fit-contain { object-fit: contain; }
.product-range-card:hover .product-range-card__img-wrap img { transform: scale(1.03); }
.product-range-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-range-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 4px 0 8px;
}
.product-range-card__text {
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 18px;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .range { grid-template-columns: 1fr; }
  .range__group--small .range__cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .range__group--large .range__cards { max-width: 420px; }
}

/* ===== Cards (shared label) ===== */
.card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ===== Feature cards ===== */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
/* Six features (CityRay, SmartBee) would leave two orphans in a 4-up row; 3x2 reads cleaner. */
.feature-strip:has(> :nth-child(5)) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.feature-strip__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-strip__item:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.feature-strip__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sky-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.feature-strip__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.feature-strip__text { color: var(--muted); font-size: 0.97rem; line-height: 1.6; }

/* ===== Customers logo strip ===== */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}
.logo-strip img {
  height: 120px;
  width: 220px;
  object-fit: contain;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}
.logo-strip img:hover { box-shadow: var(--shadow); }

@media (max-width: 560px) {
  .logo-strip img { width: calc(50% - 10px); height: 96px; padding: 12px; }
}

/* ===== Certifications row ===== */
.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
}
.certs-row img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

/* ===== Promo pair (used stock / hire) ===== */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.promo-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--sky));
}
.promo-card .feature-strip__icon { margin-bottom: 20px; }
.promo-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.promo-card p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 768px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card { padding: 28px 24px; }
}

/* ===== CTA band ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--deep) 0%, var(--brand) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
/* The logo's Australia, faint, as a watermark on every closing call to action. */
.cta-band::after,
.page-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  aspect-ratio: 720 / 670;
  background: url("../images/australia.45d832ff08c4.webp") no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 0 auto 32px; font-size: 1.08rem; }

/* ===== Spec table ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }

.spec-table th,
.spec-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.spec-table th {
  background: var(--deep);
  color: var(--white);
  font-weight: 700;
}

.spec-table td:first-child { font-weight: 600; color: var(--heading); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) td { background: var(--surface); }

/* ===== Two-col layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col--reverse { direction: ltr; }
}

/* Small solid tag, e.g. "Australian Designed & Engineered" */
.tag {
  display: inline-block;
  background: var(--sky-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-grid > * { min-width: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
  overflow-wrap: anywhere;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sky-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.contact-info__item strong { color: var(--heading); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
@media (max-width: 600px) { .contact-form { padding: 24px 20px; } }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--sky-soft);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
}

.alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
@media (max-width: 400px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.blog-card__img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.blog-card__img--empty {
  background: var(--surface);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }

.blog-card__date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.35;
  flex: 1;
}

/* Blog post detail */
.post-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink) 0%, var(--deep) 60%, var(--brand) 140%);
  color: var(--white);
  padding: 64px 0 48px;
}

.post-hero__date { color: var(--sky); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.post-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; max-width: 860px; }

/* The featured photo rides up over the bottom of the hero band, framed as a card. */
.post-hero:has(+ .post-feature) { padding-bottom: 128px; }
.post-feature { position: relative; margin-top: -96px; padding: 0 24px; }
.post-feature img {
  width: 100%;
  max-width: 960px;
  max-height: 520px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.post-body p { margin-bottom: 22px; }
.post-body h2, .post-body h3 { margin: 32px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; }
.post-body li { margin-bottom: 6px; }

.post-body img {
  border-radius: var(--radius);
  margin: 28px auto;
  width: 100%;
  max-width: 680px;
  object-fit: cover;
}

.post-footer { background: var(--surface); padding: 48px 0; }

/* Post image gallery */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.post-gallery__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--ink);
}
.post-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.post-gallery__item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}
/* Wide posts (2 images) get 2-col layout, single image gets full-width */
.post-gallery:has(> :nth-child(2)):not(:has(> :nth-child(3))) {
  grid-template-columns: repeat(2, 1fr);
}
.post-gallery:not(:has(> :nth-child(2))) {
  grid-template-columns: 1fr;
  max-width: 600px;
}
@media (max-width: 600px) {
  .post-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .post-gallery__item { aspect-ratio: 1; }
}

/* ===== Page hero (non-home) ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink) 0%, var(--deep) 55%, var(--brand) 130%);
  color: var(--white);
  padding: 72px 0 64px;
}
.page-hero::after { right: 4%; width: 340px; opacity: 0.1; }
.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  max-width: 760px;
}
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 600px; font-size: 1.12rem; }
.page-hero h1::before {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--white) 0 62%, var(--sky) 62% 100%);
}

@media (max-width: 760px) {
  .page-hero { padding: 52px 0 44px; }
  .page-hero::after, .cta-band::after { width: 220px; right: -60px; opacity: 0.07; }
}

/* ===== Products page ===== */
.product-hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.coming-soon-badge {
  display: inline-block;
  background: var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Chassis brands on the CityRay page */
.chassis-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.chassis-row span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--heading);
}

/* ===== Timeline (About) ===== */
.timeline { list-style: none; max-width: 720px; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 39px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--sky));
}
.timeline li { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; position: relative; }
.timeline li:last-child { margin-bottom: 0; }
.timeline__year {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  padding: 5px 0;
  border-radius: 999px;
  font-size: 0.92rem;
  position: relative;
  box-shadow: 0 0 0 5px var(--white);
}
.timeline li span:last-child { padding-top: 3px; }

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge--sold { background: #f8d7da; color: #721c24; }
.badge--available { background: #d4edda; color: #155724; }

/* ===== Used stock listings ===== */
.used-listing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.used-listing__gallery {
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.used-listing__hero {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.used-listing__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  padding: 12px;
}

.used-listing__thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity var(--transition);
}

/* Side by side, the spec column is taller than a 16:10 photo; let the photo fill the height so no empty block sits under the thumbs. */
@media (min-width: 769px) {
  .used-listing__hero { flex: 1 1 0; min-height: 320px; aspect-ratio: auto; }
}
.used-listing__thumbs img:hover { opacity: 0.8; }

.used-listing__gallery--placeholder {
  min-height: 220px;
  align-items: center;
  justify-content: center;
}
.used-listing__no-img {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 40px;
  text-align: center;
}

.used-listing__info {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.used-listing__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  width: 100%;
}

.used-listing__head h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
}

.used-listing__desc {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 16px;
  line-height: 1.55;
}

.used-listing__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  width: 100%;
}
.used-listing__stats > div { display: flex; flex-direction: column; gap: 2px; }
.used-stat__label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.used-stat__value { font-size: 1rem; color: var(--heading); font-weight: 800; }

.used-listing__features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  width: 100%;
}
.used-listing__features li {
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px solid var(--surface);
}
.used-listing__features li:last-child { border-bottom: none; }
.used-listing__features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 13px;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .used-listing { grid-template-columns: 1fr; }
  .used-listing__info { padding: 22px 20px; }
  .used-listing__thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* Soft panel for inline calls to action inside a page */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  margin-top: 56px;
  text-align: center;
}
.panel h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.panel p { color: var(--muted); max-width: 540px; margin: 0 auto 24px; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
  border-top: 4px solid var(--brand);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
  gap: 40px;
  margin-bottom: 44px;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Full-colour logo on a white tile: the old white-silhouette filter wiped out its lettering. */
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--white); }
.footer__brand:hover { color: var(--white); }
.footer__brand img { height: 64px; width: auto; background: var(--white); border-radius: 12px; padding: 6px; }
.footer__brand strong { font-size: 1.15rem; line-height: 1.15; font-weight: 800; }

.footer__tagline { font-size: 0.95rem; margin-bottom: 18px; }
.footer__mtess { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer__mtess img { height: 34px; width: auto; }

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer a { color: rgba(255, 255, 255, 0.78); transition: color var(--transition); }
.footer a:hover { color: var(--sky); }
.footer ul li a { font-size: 0.97rem; }

.footer__contact-line { display: flex; gap: 12px; font-size: 0.95rem; margin-bottom: 14px; align-items: flex-start; overflow-wrap: anywhere; }
.footer__contact-line .icon { color: var(--sky); font-size: 18px; margin-top: 3px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom a { color: rgba(255, 255, 255, 0.65); }

/* ===== Partnerships ===== */
.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.partner-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.partner-card p { color: var(--muted); margin-bottom: 14px; }

@media (max-width: 600px) {
  .partner-card { flex-direction: column; padding: 24px; }
}

.partner-card__logo { width: 160px; flex-shrink: 0; }
.partner-card__logo img { width: 100%; height: auto; }

/* ===== Legal pages ===== */
.legal { max-width: 860px; }
.legal .section-title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(7, 29, 54, 0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  display: block;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__prev.hidden,
.lightbox__next.hidden { display: none; }

/* Make gallery images show a zoom cursor */
.used-listing__hero,
.used-listing__thumbs img,
.post-gallery__item img { cursor: zoom-in; }

/* Prevent drag-to-save on all images */
img { -webkit-user-drag: none; user-drag: none; user-select: none; -webkit-user-select: none; }

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