/* JayKay Earthwork — colours sampled from the logo: orange #F05820, charcoal, black. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #f05820;
  --orange-deep: #c2410c;
  --ink: #1a1a1a;
  --muted: #4e4a45;
  --paper: #f3efe8;
  --white: #fff;
  --black: #0e0e0e;
  --black-2: #141414;
  --line: #e3ddd4;
  --soft: #d2ccc4;
  --wa: #075e54;
  --font: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

a {
  color: var(--orange-deep);
}

a:hover {
  color: #9a3412;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 80;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  position: fixed;
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Language: EN unless the BM radio is checked. Works without JavaScript. */
body:has(#lang-ms:checked) [data-lang="en"] {
  display: none;
}

body:has(#lang-en:checked) [data-lang="ms"] {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  border-bottom: 4px solid var(--orange);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 8px 0 0;
}

.brand {
  display: block;
  margin-right: auto;
  line-height: 0;
}

.brand img {
  height: 42px;
  width: auto;
  max-width: min(62vw, 280px);
}

.header-call {
  display: none;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  min-height: 44px;
  align-items: center;
}

.header-call:hover {
  color: var(--orange);
}

.lang {
  display: grid;
  grid-auto-flow: column;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}

.lang input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lang label {
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

body:has(#lang-en:checked) label[for="lang-en"],
body:has(#lang-ms:checked) label[for="lang-ms"] {
  background: var(--orange);
  color: var(--white);
}

.lang input:focus-visible + label {
  outline: 3px solid var(--white);
  outline-offset: -3px;
}

.site-nav {
  order: 3;
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding-bottom: 4px;
}

.site-nav a {
  color: #f3f0eb;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 1.15rem;
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.78rem, 3.2vw, 1.15rem);
  line-height: 1;
}

.site-nav a:hover {
  color: var(--orange);
}

.hero {
  background: var(--black);
  color: var(--white);
  padding: 28px 0 8px;
}

.hero-logo {
  display: none;
}

.hero-copy h1 {
  margin-top: 10px;
  color: var(--white);
  font-size: clamp(3rem, 12.5vw, 6.4rem);
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.lede {
  margin-top: 16px;
  max-width: 38rem;
  color: var(--soft);
  font-size: 1.0625rem;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 18px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #d64220;
  color: var(--white);
}

.btn-primary:focus-visible {
  outline-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
}

.btn-ico {
  width: 22px;
  height: 22px;
  flex: none;
}

.facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 4px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.facts li {
  padding: 14px 10px 14px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 10px;
}

.facts li:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}

.fact-label {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.95rem;
}

.section {
  padding: 48px 0;
  scroll-margin-top: 140px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--orange-deep);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 8px;
  background: var(--orange);
  transform: skewX(-28deg);
  flex: none;
}

h2 {
  font-size: clamp(2.4rem, 8vw, 4.15rem);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.intro {
  max-width: 38rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.cards,
.fleet,
.jobs,
.why,
.areas,
.actions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards {
  display: grid;
  gap: 12px;
}

.cards li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  padding: 16px 16px 18px;
}

.cards h3,
.why h3,
.shot-title {
  font-size: 1.55rem;
  text-transform: uppercase;
}

.cards p {
  margin-top: 6px;
  color: var(--muted);
}

.ico {
  width: 36px;
  height: 36px;
  display: block;
  margin-bottom: 10px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band-dark {
  background: var(--black-2);
  color: var(--white);
}

.band-dark .kicker,
.band-dark .shot-meta,
.areas .num {
  color: var(--orange);
}

.band-dark h2 {
  color: var(--white);
}

.band-dark .intro,
.band-dark .lede {
  color: var(--soft);
}

.fleet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jobs {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.subhead {
  margin: 28px 0 12px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  text-transform: uppercase;
  color: var(--white);
}

.shot {
  margin: 0;
}

.shot-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e6e1d8;
  overflow: hidden;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  line-height: 1.1;
  padding: 6px 8px;
}

.shot-title {
  display: block;
  margin-top: 8px;
}

.shot-meta {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
}

.why {
  display: grid;
  gap: 12px;
}

.why li,
.areas li {
  background: var(--white);
  padding: 18px 16px 20px;
}

.why .num,
.areas .num {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--orange-deep);
}

.why h3 {
  margin: 6px 0 8px;
}

.why p {
  color: var(--muted);
}

.areas {
  display: grid;
  gap: 10px;
}

.areas li {
  background: var(--black);
  color: var(--white);
  min-height: 118px;
}

.area-name {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-transform: uppercase;
  line-height: 0.92;
}

.area-note {
  display: block;
  margin-top: 6px;
  color: var(--soft);
}

.contact-grid {
  display: grid;
  gap: 18px;
}

.actions {
  display: grid;
  gap: 10px;
}

.actions a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 68px;
  padding: 12px 14px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
}

.actions a:hover {
  border-color: var(--ink);
  color: inherit;
}

.act-kicker {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-size: 1rem;
}

.act-main {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.act-phone {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

address {
  font-style: normal;
  margin-top: 16px;
}

.reg,
.trade,
.addr {
  display: block;
}

.trade,
.addr {
  margin-top: 10px;
}

.addr {
  color: var(--muted);
}

.map {
  background: var(--white);
  border: 1px solid var(--line);
}

.map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  background: #e6e1d8;
}

.map-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-weight: 600;
}

.site-footer {
  background: var(--black);
  color: var(--soft);
  padding: 28px 0 88px;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer strong {
  color: var(--white);
  font-weight: 600;
}

.fine {
  display: block;
  margin-top: 8px;
}

.legal {
  margin-top: 16px;
  color: #a39e96;
  font-size: 0.85rem;
}

.wa-float {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.wa-float:hover {
  background: #064e46;
  color: var(--white);
}

.wa-float:focus-visible {
  outline-color: var(--white);
}

.wa-float .btn-ico {
  width: 30px;
  height: 30px;
}

.wa-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-404 {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
}

.page-404 .wrap {
  padding: 32px 0 48px;
}

.page-404 h1 {
  margin: 18px 0;
  font-size: clamp(3rem, 12vw, 5rem);
  text-transform: uppercase;
}

.page-404 p {
  color: var(--soft);
  max-width: 28rem;
  margin-bottom: 12px;
}

.page-404 .cta {
  margin-top: 8px;
}

@media (min-width: 640px) {
  .facts li {
    padding: 16px 14px;
  }

  .facts li:first-child {
    padding-left: 0;
  }

  .cards,
  .areas {
    grid-template-columns: 1fr 1fr;
  }

  .cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn {
    width: auto;
  }
}

@media (min-width: 720px) {
  .brand img {
    height: 52px;
  }

  .section {
    padding: 72px 0;
  }

  .why,
  .jobs {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
    gap: 28px;
  }

  .map iframe {
    height: 100%;
    min-height: 460px;
  }

  .map {
    height: 100%;
  }
}

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

@media (min-width: 900px) {
  .bar {
    flex-wrap: nowrap;
    min-height: 76px;
    padding: 0;
    gap: 18px;
  }

  .brand {
    margin-right: 0;
  }

  .header-call {
    display: inline-flex;
  }

  .site-nav {
    order: 0;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    padding: 0;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 1.15rem;
  }

  .hero {
    padding: 48px 0 8px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
  }

  .hero-logo {
    display: block;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .fleet {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-nav,
  .lang,
  .wa-float,
  .shot-badge,
  .header-call {
    display: none !important;
  }

  .site-header,
  .hero,
  .band-dark,
  .site-footer,
  .areas li {
    background: #fff !important;
    color: #000 !important;
  }

  .lede,
  .intro,
  .fact-label,
  .addr {
    color: #222 !important;
  }

  a {
    color: #000;
  }
}
