/* Alliance Fuel. Colours come from the logo: the blue fuel drop (azure to cyan) and the lime "A".
   The A's slope is the site's signature: hero cut, the lime stripe and the angled blue band. */
:root {
  --ink: #0a2540;        /* deep blue, text and dark surfaces */
  --ink-2: #33475b;
  --muted: #5d6f80;
  --azure: #1e8fe8;      /* drop, darker side */
  --cyan: #46dff0;       /* drop, light side */
  --lime: #84f000;       /* the A */
  --lime-press: #74d400;
  --paper: #ffffff;
  --mist: #f2f6f9;
  --line: #dbe4eb;
  --radius: 14px;
  --slope: 7vw;          /* height of the angled cuts */
  --wrap: 1180px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: var(--azure); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0; font-stretch: 118%; font-weight: 760; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h3 { font-size: 1.2rem; font-stretch: 110%; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--display); font-stretch: 110%;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-press); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .2s, box-shadow .2s; }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand span { font: 760 1.2rem/1 var(--display); font-stretch: 120%; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 500; font-size: .975rem; }
.nav__links a:hover { color: #fff; text-decoration: underline; }
.nav.is-solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .brand { color: var(--ink); }
.nav.is-solid .nav__links a { color: var(--ink-2); }
.nav.is-solid .nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden;
  background: var(--ink); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--slope)));
  padding: 120px 0 calc(var(--slope) + 64px);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,.6) 0, rgba(10,37,64,0) 160px),
              linear-gradient(90deg, rgba(10,37,64,.9) 0%, rgba(10,37,64,.66) 42%, rgba(10,37,64,.12) 78%),
              linear-gradient(0deg, rgba(10,37,64,.35), rgba(10,37,64,0) 40%);
}
.hero__content { position: relative; max-width: var(--wrap); }
.hero__kicker { font-weight: 500; color: var(--cyan); margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.4rem + 5vw, 5.2rem); font-stretch: 122%; font-weight: 800; max-width: 12ch; }
.hero__lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* lime stripe running along the hero's angled edge (the slope of the A) */
.hero__edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--slope) + 12px); background: var(--lime);
  clip-path: polygon(0 0, 100% calc(100% - 12px), 100% 100%, 0 12px);
}

/* ---------- Supply ---------- */
.supply { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.supply__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.supply__intro { position: sticky; top: 110px; }
.supply__intro p { margin-top: 18px; color: var(--muted); max-width: 30em; }
.link-arrow { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--azure); }
.supply__list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 168px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.item:last-child { border-bottom: 1px solid var(--line); }
.item img { width: 168px; height: 116px; object-fit: cover; border-radius: 10px; }
.item p { margin-top: 6px; color: var(--muted); }

/* ---------- Why: angled blue band ---------- */
.why {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, var(--ink) 0%, #0d4f8f 52%, var(--azure) 100%);
  clip-path: polygon(0 0, 100% var(--slope), 100% 100%, 0 calc(100% - var(--slope)));   /* same slope as the hero */
  padding: calc(var(--slope) + 72px) 0 calc(var(--slope) + 80px);
  margin: calc(var(--slope) * -0.4) 0;
}
.why__photo {
  position: absolute; inset: 0 0 0 auto; width: 58%;
  background: url("../assets/photos/fleet-line.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
  opacity: .28; mix-blend-mode: luminosity;
}
.why__inner { position: relative; }
.why h2 { color: #fff; max-width: 17ch; }
.why__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.why__cols > div { border-top: 3px solid var(--lime); padding-top: 18px; }
.why h3 { color: #fff; }
.why p { margin-top: 8px; color: rgba(255,255,255,.85); }

/* ---------- Fleet ---------- */
.fleet { padding: clamp(80px, 10vw, 128px) 0 clamp(56px, 7vw, 96px); }
.fleet__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.fleet__head p { color: var(--muted); max-width: 26em; }
.fleet__mosaic {
  display: grid; gap: 14px; margin-top: 36px;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px;
  grid-template-areas: "a b b" "a c d";
}
.fleet__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.m1 { grid-area: a; } .m2 { grid-area: b; } .m3 { grid-area: c; } .m4 { grid-area: d; }

/* ---------- Ordering ---------- */
.ordering { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 112px); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: none; }
.steps li { position: relative; padding-top: 70px; }
.steps__n {
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; display: grid; place-items: center;
  font: 800 1.35rem/1 var(--display); font-stretch: 120%; color: var(--ink); background: var(--lime);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 14px;   /* a small "A" */
}
.steps p { margin-top: 8px; color: var(--muted); }

/* ---------- Quote ---------- */
.quote { background: var(--mist); padding: clamp(64px, 8vw, 112px) 0; }
.quote__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote__side > p { margin-top: 16px; color: var(--muted); max-width: 30em; }
.contact { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact li { display: grid; gap: 2px; }
.contact span { font-size: .875rem; color: var(--muted); }
.contact a, .contact address { font-style: normal; font-weight: 600; color: var(--ink); font-size: 1.05rem; text-decoration: none; }
.contact a:hover { color: var(--azure); text-decoration: underline; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; box-shadow: 0 18px 40px -28px rgba(10,37,64,.35); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(30,143,232,.18); }
.field.is-invalid input { border-color: #c62828; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--azure); flex: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: #b71c1c; font-weight: 600; }
.form__done { text-align: center; padding: 24px 8px; }
.form__done p { margin-top: 8px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 40px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand p { font: 700 1.05rem/1.2 var(--display); font-stretch: 115%; color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.footer__links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__legal { grid-column: 1 / -1; font-size: .875rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; }

/* ---------- Mobile quick bar ---------- */
.quickbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .supply__grid, .quote__grid { grid-template-columns: 1fr; }
  .supply__intro { position: static; }
  .why__cols { grid-template-columns: 1fr; gap: 28px; }
  .why__photo { width: 100%; opacity: .18; }
}
@media (max-width: 720px) {
  :root { --slope: 12vw; }
  body { font-size: 1rem; padding-bottom: 68px; }
  .nav__inner { height: 64px; }
  .nav__cta { display: none; }
  .hero { min-height: 86vh; padding-top: 96px; }
  .hero__shade { background: linear-gradient(180deg, rgba(10,37,64,.55), rgba(10,37,64,.85)); }
  .item { grid-template-columns: 96px 1fr; gap: 16px; }
  .item img { width: 96px; height: 80px; }
  .fleet__mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; grid-template-areas: "a a" "b b" "c d"; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .quickbar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; inset: auto 0 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -1px 0 var(--line);
  }
  .quickbar a {
    display: grid; place-items: center; min-height: 46px; border-radius: 999px; font: 700 1rem/1 var(--display);
    text-decoration: none; color: var(--ink); border: 2px solid var(--line);
  }
  .quickbar .quickbar__main { background: var(--lime); border-color: var(--lime); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
  .hero { background: var(--ink) url("../assets/video/poster.webp") center / cover; }
}
