/* ============================================================
   MACHINERY HIRE NETWORK (MHN) — core stylesheet
   Palette:  navy #071A3D (trim) | blue #023697 (logo, all CTAs) | white + light grey dominant
             charcoal #1C2430 | light grey #F3F5F7 | white
   Colour source of truth: assets/js/brand.js — keep these vars in sync.
   Type:     Archivo (display/headings) + Inter (body)
   ============================================================ */

:root {
  --navy: #071a3d;
  --navy-700: #0d2653;
  --navy-500: #14356e;
  --blue: #023697;
  --accent: #023697;
  --blue-600: #001f66;
  --blue-050: #e9eefb;
  --charcoal: #1c2430;
  --grey: #5a6675;
  --grey-100: #f3f5f7;
  --grey-200: #e6eaf0;
  --line: #dde3ec;
  --white: #ffffff;
  --amber-bg: #fff8e6;
  --amber-line: #e8c26a;

  --wrap: 1180px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 8px 24px rgba(11, 27, 51, .07);
  --font-d: "Archivo", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }

h1, h2, h3, h4 {
  font-family: var(--font-d);
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 var(--s2);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.35rem); }
h4 { font-size: 1rem; }
p  { margin: 0 0 var(--s2); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--s7) 0; }
.section--tight { padding: var(--s5) 0; }
.section--grey { background: var(--grey-100); }
.section--navy { background: var(--navy); color: #cfd8e6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.lead { font-size: 1.08rem; color: var(--grey); max-width: 62ch; }
.section--navy .lead { color: #b9c5d8; }
.muted { color: var(--grey); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Eyebrow: the blue spec rule ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s2);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--blue); }
.section--navy .eyebrow { color: #5f92e8; }
.section--navy .eyebrow::before { background: #5f92e8; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--onDark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 10px 16px; font-size: .85rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 104px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 0; margin-right: 8px; }
.brand img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 1060px) { .brand img { height: 60px; } }
@media (max-width: 520px) { .brand img { height: 48px; } }
.site-footer img { display: block; }
@media (max-width: 520px) { .site-footer img { height: 44px !important; } }

.brand svg { display: block; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > .btn { display: none; }          /* mobile menu only — desktop uses the header CTA */
.nav a {
  font-family: var(--font-d);
  font-size: .88rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
@media (min-width: 1120px) { .nav a { font-size: .92rem; padding: 8px 13px; } }
.nav a:hover { color: var(--blue-600); background: var(--grey-100); }
.nav a[aria-current="page"] { color: var(--blue-600); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-tel {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy); content: ""; position: relative;
}
.nav-toggle span::before { top: -6px; position: absolute; }
.nav-toggle span::after { top: 6px; position: absolute; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .header-tel { display: none; }
  .header-inner { min-height: 84px; gap: var(--s2); }
  /* the CTA already sits at the top of the mobile menu — keep the bar clean */
  #headerBookBtn { display: none; }
  .nav > .btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--grey-200); font-size: 1.02rem; }
  .nav .btn { margin-top: 14px; border-bottom: 0; width: 100%; padding: 15px 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(4,16,40,.93) 0%, rgba(4,16,40,.72) 42%, rgba(7,26,61,.30) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: center right;
  z-index: 0;
}
@media (max-width: 760px) {
  .hero::after {
    background-image:
      linear-gradient(180deg, rgba(4,16,40,.86) 0%, rgba(4,16,40,.78) 55%, rgba(4,16,40,.90) 100%),
      var(--hero-img-mobile, var(--hero-img, none));
    background-position: center;
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(68px, 11vw, 132px) 0;
  min-height: clamp(420px, 56vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(4,16,40,.45); }
.hero p { color: #cbd8ea; font-size: 1.12rem; max-width: 56ch; }
.hero .btn-row { margin-top: var(--s3); }

.page-head { background: var(--navy); color: #fff; padding: var(--s6) 0 var(--s5); }
.page-head h1 { color: #fff; margin-bottom: var(--s2); }
.page-head p { color: #b9c5d8; max-width: 64ch; margin: 0; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--navy-700);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.trust ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 8px;
  font-family: var(--font-d);
  font-size: .88rem;
  font-weight: 600;
  color: #dbe4f1;
}
.trust li svg { flex: none; }
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust ul { grid-template-columns: 1fr; } .trust li { padding: 12px 4px; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.feature { border-top: 3px solid var(--blue); }
.feature h3 { font-size: 1.1rem; }

/* Equipment cards */
.eq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.eq-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, #0f2f6b, #071a3d);
  background-size: cover;
  background-position: center;
}
.eq-media .placeholder-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--font-d);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8fb1e8;
  background: rgba(11, 27, 51, .75);
  border: 1px solid rgba(143, 180, 255, .4);
  padding: 4px 8px;
  border-radius: 3px;
}
.eq-body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; }
.eq-body h3 { margin-bottom: 6px; }
.eq-body .btn-row { margin-top: auto; padding-top: var(--s2); }
.eq-list { list-style: none; margin: 0 0 var(--s2); padding: 0; }
.eq-list li { position: relative; padding-left: 18px; font-size: .95rem; color: var(--grey); }
.eq-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; background: var(--blue); border-radius: 1px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-d);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.status--available { background: var(--blue-050); color: var(--blue-600); }
.status--soon { background: var(--grey-100); color: var(--grey); }
.status--limited { background: #fdf3e3; color: #8a5a12; }

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  font-size: .9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-200);
}
.spec-row span:first-child { color: var(--grey); }
.spec-row span:last-child { font-weight: 600; text-align: right; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.filter {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: .88rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--charcoal);
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps--4 { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--line); padding-top: var(--s2); }
.step .num {
  font-family: var(--font-d);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}
.section--navy .step { border-color: rgba(255, 255, 255, .16); }
.section--navy .step .num { color: #5f92e8; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .95rem; color: var(--grey); margin: 0; }
.section--navy .step p { color: #b9c5d8; }

/* ---------- Notices ---------- */
.notice {
  border-left: 3px solid var(--blue);
  background: var(--blue-050);
  padding: var(--s3);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .96rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice--warn { border-left-color: var(--amber-line); background: var(--amber-bg); }
.notice--edit {
  border-left-color: var(--grey);
  background: var(--grey-100);
  font-size: .88rem;
  color: var(--grey);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  padding: 20px 44px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 16px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 44px 20px 0; color: var(--grey); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .form-shell { padding: var(--s3) 20px; } }
.field { margin-bottom: var(--s3); }
.field label, .legend {
  display: block;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: .86rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .hint { font-size: .8rem; color: var(--grey); margin: 4px 0 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], input[type="file"], select, textarea {
  width: 100%;
  font-family: var(--font-b);
  font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c0392b; }
.field .error { display: none; font-size: .82rem; color: #c0392b; margin-top: 4px; }
.field.is-invalid .error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.req { color: var(--blue); }

.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .94rem; }
.check input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* Multi-step */
.stepper { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s4); }
.stepper li {
  flex: 1 1 90px;
  list-style: none;
  font-family: var(--font-d);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
  border-top: 3px solid var(--grey-200);
  padding-top: 8px;
}
.stepper li[data-state="active"] { color: var(--blue-600); border-top-color: var(--blue); }
.stepper li[data-state="done"] { color: var(--navy); border-top-color: var(--navy); }
.fstep { display: none; }
.fstep.is-active { display: block; }
.fstep h2 { font-size: 1.4rem; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--s3); }

.form-success {
  display: none;
  border: 1px solid var(--blue);
  background: var(--blue-050);
  border-radius: var(--radius);
  padding: var(--s4);
}
.form-success.is-visible { display: block; }

/* ---------- Contact detail list ---------- */
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list .k {
  display: block;
  font-family: var(--font-d);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2px;
}
.detail-list .v { font-size: 1.02rem; color: var(--navy); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb0c8; padding: var(--s6) 0 var(--s3); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s5); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-chip { display: inline-block; }
.footer-logo-chip img { height: 50px; width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (max-width: 520px) { .footer-logo-chip img { height: 42px !important; } }

.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c3cfe0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: space-between;
  font-size: .84rem;
  color: #7f92ac;
}

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: none;
  align-items: center;
  gap: var(--s3);
  max-width: 680px;
  margin: 0 auto;
  font-size: .9rem;
}
.cookie.is-visible { display: flex; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; } }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- equipment hire rates ---- */
.rate-row { display:flex; gap:10px; margin:14px 0 4px; }
.rate { flex:1; background:var(--grey,#F3F5F7); border:1px solid var(--line,#E2E8F0); border-radius:8px; padding:9px 12px; text-align:center; }
.rate-amt { display:block; font-family:var(--font-d,"Barlow Condensed"),sans-serif; font-weight:700; font-size:1.3rem; color:var(--blue,#023697); line-height:1; }
.rate-per { display:block; font-size:.72rem; color:#64748b; text-transform:uppercase; letter-spacing:.05em; margin-top:3px; }
