/* ==========================================================================
   ARUN TOOL HIRE. DEMONSTRATION SITE.

   Built on a fixed rail rather than a top header, which is the point of
   difference from the other demos in the portfolio. Navigation, opening hours
   and the counter phone number sit in a column that stays put while the
   catalogue scrolls past. A yard price list reads like a ledger, so the page
   is numbered in sections, set in a monospace where figures matter, and has
   no rounded corner anywhere on it.
   ========================================================================== */

:root {
  --steel: #16181c;
  --steel-2: #23262c;
  --concrete: #f2f2f0;
  --paper: #ffffff;
  --hazard: #ffcc00;
  --hazard-dark: #b8940a;
  --ink: #16181c;
  --ink-soft: #4d525c;
  --ink-faint: #6b7280;
  --line: #d5d5d1;
  --line-dark: #34383f;

  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  font-family: var(--sans);
  background-color: var(--paper);
  color: var(--ink-soft);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body { line-height: 1.6; overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.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;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.on-dark { color: var(--paper) !important; }

/* --------------------------------------------------------------------------
   Rail layout
   -------------------------------------------------------------------------- */
.frame { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1000px) { .frame { grid-template-columns: 300px 1fr; } }

.rail {
  background-color: var(--steel);
  color: #a8adb8;
  border-bottom: 3px solid var(--hazard);
}
@media (min-width: 1000px) {
  .rail {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 3px solid var(--hazard);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
  }
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
@media (min-width: 1000px) { .rail-top { padding: 0 0 2rem; } }

.logo { display: flex; align-items: center; gap: 0.65rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background-color: var(--hazard);
  color: var(--steel);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo-text strong { font-weight: 800; }

.rail-burger {
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
}
.rail-burger span { display: block; width: 20px; height: 2px; background-color: var(--paper); }
.rail-burger[aria-expanded="true"] { border-color: var(--hazard); }
@media (min-width: 1000px) { .rail-burger { display: none; } }

.rail-panel { display: none; padding: 0 1.25rem 1.5rem; }
.rail-panel.is-open { display: block; }
@media (min-width: 1000px) {
  .rail-panel { display: block; padding: 0; flex: 1; }
}

.rail-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.rail-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #d5d5d1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-height: 44px;
}
.rail-nav a:hover { color: var(--hazard); }
.rail-num { font-family: var(--mono); font-size: 0.75rem; color: var(--hazard); }

.rail-block { padding: 1.5rem 0; border-bottom: 1px solid var(--line-dark); }
.rail-label {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8b919c;
  margin-bottom: 0.6rem;
}
.rail-line { font-size: 0.8125rem; line-height: 1.65; }
.rail-dim { color: #8b919c; }
.rail-tel {
  display: block;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hazard);
  margin-bottom: 0.35rem;
}
.rail-cta { margin-top: 1.5rem; }
@media (min-width: 1000px) { .rail-cta { margin-top: auto; } }

.column { min-width: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.95rem 1.6rem;
  min-height: 46px;
  border: 2px solid var(--steel);
  background-color: var(--steel);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background-color: var(--steel-2); }
.btn-hazard { background-color: var(--hazard); border-color: var(--hazard); color: var(--steel); }
.btn-hazard:hover { background-color: #e6b800; border-color: #e6b800; }
.btn-ghost { background-color: transparent; border-color: var(--paper); color: var(--paper); }
.btn-ghost:hover { background-color: var(--paper); color: var(--steel); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.75rem; min-height: 44px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Opening and numbered blocks
   -------------------------------------------------------------------------- */
.opener { padding: 3rem 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .opener { padding: 5rem 3rem; } }

.tag {
  display: inline-block;
  background-color: var(--hazard);
  color: var(--steel);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.25rem;
}
.opener h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 1.1rem; }
.opener-text { font-size: 1.0625rem; max-width: 34rem; margin-bottom: 2.5rem; }

.counters { display: grid; grid-template-columns: 1fr; max-width: 34rem; }
@media (min-width: 620px) { .counters { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.counters > div { padding: 1rem 0; border-top: 3px solid var(--steel); }
.counters dt { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.counters dd { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-top: 0.15rem; }

.block { padding: 3rem 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .block { padding: 4.5rem 3rem; } }
.block-pale { background-color: var(--concrete); }
.block-dark { background-color: var(--steel); border-bottom-color: var(--line-dark); }

.block-head { display: flex; gap: 1.25rem; margin-bottom: 2.5rem; max-width: 46rem; }
.block-num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hazard-dark);
  padding-top: 0.45rem;
  flex-shrink: 0;
}
.block-num-light { color: var(--hazard); }
.block-head h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 0.5rem; }
.block-head p { font-size: 0.9375rem; color: var(--ink-faint); }
.block-head p.on-dark { color: #a8adb8 !important; }

/* --------------------------------------------------------------------------
   Featured kit
   -------------------------------------------------------------------------- */
.kit-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 760px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }

.kit { border: 1px solid var(--line); background-color: var(--paper); display: flex; flex-direction: column; }

/* Catalogue shots are square cutouts on white, so they are contained rather
   than cropped. Cover would slice the top off a scaffold tower. */
.kit-shot {
  aspect-ratio: 4 / 3;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 0.75rem;
}
.kit-shot img { width: 100%; height: 100%; object-fit: contain; }

.kit-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.kit-ref {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.kit h3 { font-size: 1.0625rem; margin-bottom: 0.55rem; }
.kit-note { font-size: 0.875rem; color: var(--ink-faint); flex: 1; margin-bottom: 1rem; }

/* Rates deliberately live in the table only, so a price change happens in one
   place rather than here as well */
.kit-link { padding-top: 0.85rem; border-top: 1px solid var(--line); }
.kit-link a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--hazard);
  padding-bottom: 1px;
}
.kit-link a:hover { color: var(--hazard-dark); }

/* --------------------------------------------------------------------------
   Rates table
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background-color: var(--paper); }
.rates { width: 100%; border-collapse: collapse; min-width: 36rem; }
.rates th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background-color: var(--steel);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.rates td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.rates tbody tr:last-child td { border-bottom: 0; }
.rates tbody tr:nth-child(even) { background-color: var(--concrete); }
.rates .ref, .rates .num { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
.rates th.num, .rates td.num { text-align: right; }

/* --------------------------------------------------------------------------
   Availability
   -------------------------------------------------------------------------- */
.booking { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 880px) { .booking { grid-template-columns: 0.85fr 1.15fr; gap: 2rem; } }

.booking-pick, .booking-cal, .request {
  background-color: var(--steel-2);
  border: 1px solid var(--line-dark);
  padding: 1.5rem;
}
@media (min-width: 768px) { .booking-pick, .booking-cal, .request { padding: 1.75rem; } }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a8adb8;
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--paper);
  background-color: var(--steel);
  border: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--hazard); }
.field input::placeholder, .field textarea::placeholder { color: #7c828d; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--hazard) 50%),
                    linear-gradient(135deg, var(--hazard) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.25em, calc(100% - 13px) 1.25em;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 1.5rem; }
.legend span { display: flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; color: #a8adb8; }
.sw { width: 12px; height: 12px; display: block; border: 1px solid var(--line-dark); }
.sw-free { background-color: var(--steel); }
.sw-out { background-color: #4a2020; border-color: #7a3535; }
.sw-pick { background-color: var(--hazard); border-color: var(--hazard); }

.booking-help { margin-top: 1.25rem; font-size: 0.8125rem; color: #a8adb8; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.cal-head p {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.cal-nav {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background-color: var(--steel);
  border: 1px solid var(--line-dark);
  color: var(--paper);
  font-size: 1rem;
  cursor: pointer;
}
.cal-nav:hover { border-color: var(--hazard); color: var(--hazard); }
.cal-nav[disabled] { opacity: 0.3; cursor: not-allowed; }
.cal-nav[disabled]:hover { border-color: var(--line-dark); color: var(--paper); }

.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow {
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: #8b919c;
  text-align: center;
}
.cal-cell {
  aspect-ratio: 1 / 1;
  min-height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  background-color: var(--steel);
  border: 1px solid var(--line-dark);
  color: #d5d5d1;
  cursor: pointer;
}
.cal-cell:hover:not([disabled]) { border-color: var(--hazard); }
.cal-cell[disabled] { cursor: not-allowed; }
.cal-cell.is-blank { background-color: transparent; border-color: transparent; cursor: default; }
.cal-cell.is-past { color: #6b7280; background-color: #1b1e23; }
.cal-cell.is-out { background-color: #4a2020; border-color: #7a3535; color: #e2a0a0; }
.cal-cell.is-pick { background-color: var(--hazard); border-color: var(--hazard); color: var(--steel); font-weight: 600; }

.cal-status {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.8125rem;
  background-color: var(--steel);
  border-left: 3px solid var(--line-dark);
  color: #a8adb8;
}
.cal-status.is-ok { border-left-color: var(--hazard); color: var(--paper); }
.cal-status.is-bad { border-left-color: #b44a4a; color: #f0b6b6; }

.request { margin-top: 1.5rem; position: relative; }
.request h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 1.1rem; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.summary {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--hazard);
  background-color: var(--steel);
  border: 1px solid var(--line-dark);
  padding: 0.8rem 0.9rem;
  margin-bottom: 1.1rem;
}
.fineprint { margin-top: 0.9rem; font-size: 0.75rem; color: #8b919c; }

.form-error {
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.875rem;
  color: #f0b6b6;
  background-color: #3a1c1c;
  border-left: 3px solid #b44a4a;
}
.form-error.hidden { display: none; }

.done {
  position: absolute;
  inset: 0;
  background-color: var(--steel-2);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 2rem;
  gap: 0.5rem;
}
.done-tick { font-size: 1.75rem; color: var(--hazard); }
.done h3 { font-size: 1.25rem; }
.done p { color: #a8adb8; margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Terms
   -------------------------------------------------------------------------- */
.terms { border-top: 3px solid var(--steel); max-width: 52rem; }
.terms dt {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-top: 1.15rem;
}
.terms dd {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  padding: 0.25rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot { padding: 2rem 1.5rem; background-color: var(--concrete); }
@media (min-width: 768px) { .foot { padding: 2.5rem 3rem; } }
.foot-line { font-size: 0.875rem; color: var(--ink-soft); }
.foot-line strong { color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.foot-line a { border-bottom: 1px solid var(--line); }
.foot-line a:hover { border-bottom-color: var(--hazard); color: var(--ink); }
.foot-fine { margin-top: 0.6rem; font-size: 0.75rem; color: var(--ink-faint); }
.foot-fine a { text-decoration: underline; text-underline-offset: 2px; }
.foot-fine a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Mobile and motion
   -------------------------------------------------------------------------- */
h1, h2, h3, p, li, td, dt, dd { overflow-wrap: break-word; }
.btn, .rail-nav a, .cal-cell, .cal-nav, .rail-burger { -webkit-tap-highlight-color: rgba(255, 204, 0, 0.25); }

@media (hover: none) {
  .btn:hover { background-color: var(--steel); }
  .btn-hazard:hover { background-color: var(--hazard); }
}

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