:root {
  --fpc-red: #d0202b;
  --fpc-red-dark: #a5171f;
  --fpc-blue: #16357a;
  --fpc-blue-dark: #0e2456;
  --fpc-white: #ffffff;
  --grey-50: #f6f7f9;
  --grey-100: #eef0f3;
  --grey-200: #dde1e7;
  --grey-400: #98a2b3;
  --grey-600: #5b6472;
  --grey-800: #262d38;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.06);
  /* Single source of truth for the sticky header's rendered height (measured,
     not guessed - 96px desktop/tablet, 52px at the ≤480px mobile tier where
     the header itself gets more compact). Everything that needs to offset
     around the sticky header - the filters sidebar, its mobile toggle, any
     future sticky element - reads this instead of a hardcoded pixel value. */
  --header-height: 96px;
}

* { box-sizing: border-box; }

/* Guarantees the native `hidden` attribute always wins, even on elements
   whose own class sets `display` unconditionally (e.g. .button, or any
   flex/grid container class) - without this, a class-level display rule
   and the browser's default `[hidden] { display: none }` tie on
   specificity, and the LAST one loaded (i.e. the component's own class)
   wins, silently un-hiding anything toggled via .hidden = true/false in JS.
   Hit this exact bug with .app-landing__state and .button on /app - fixed
   globally here instead of patching each class that happens to collide. */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--grey-800);
  background: var(--grey-50);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  /* Some WebKit/Safari builds only recognise the prefixed value and silently
     fall back to static (not sticky) without it - the single most common
     real-world cause of "sticky works everywhere except iOS Safari". */
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 500;
  min-height: var(--header-height);
  background: var(--fpc-blue);
  border-bottom: 4px solid var(--fpc-red);
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.18);
}

/* Anchor targets land below the sticky header instead of underneath it -
   no in-page anchor links exist on the site yet, but this is here so any
   added later (FAQ deep-links, etc.) work correctly without remembering
   to add this again. */
[id] {
  scroll-margin-top: 76px;
}

.site-header__bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--fpc-white);
  text-decoration: none;
}

/* Primary nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav__link:hover, .nav__link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fpc-white);
}

.nav__link.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--fpc-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  order: 3;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fpc-white);
  border-radius: 2px;
}

.brand__logo-wrap {
  background: var(--fpc-white);
  border-radius: 6px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}

.brand__logo {
  display: block;
  height: 56px;
  width: auto;
}

/* Hire list badge (header) */
.hire-list-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--fpc-white);
  text-decoration: none;
  transition: background 0.15s ease;
}

.hire-list-badge:hover, .hire-list-badge:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hire-list-badge__icon {
  width: 22px;
  height: 22px;
}

.hire-list-badge__count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--fpc-red);
  color: var(--fpc-white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Pricing disclaimer (js/pricing.js renderPricingDisclaimer()) - shown under
   any list of hire-list/enquiry items. Deliberately visible, not a small
   italic footnote - the "daily rate only, no total shown" caveat is
   important enough that it shouldn't be easy to miss. */
.pricing-disclaimer {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: var(--grey-100);
  border-left: 3px solid var(--fpc-blue);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--grey-600);
}

/* Hire list page (hire-list.html / js/hireListPage.js) */
.hire-list-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hire-list-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hire-list-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hire-list-item__name {
  margin: 0;
  font-weight: 700;
  color: var(--grey-800);
}

.hire-list-item__name-link {
  color: inherit;
  text-decoration: none;
}

.hire-list-item__name-link:hover, .hire-list-item__name-link:focus-visible {
  color: var(--fpc-blue);
  text-decoration: underline;
}

.hire-list-item__part {
  font-size: 0.8rem;
  color: var(--grey-400);
}

.hire-list-item__stale-notice {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--grey-600);
}

.hire-list-item__stale-notice a {
  color: var(--fpc-blue);
}

.hire-list-item__price {
  font-weight: 700;
  color: var(--fpc-blue);
}

.hire-list-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hire-list-item__qty label {
  font-size: 0.85rem;
  color: var(--grey-600);
}

.hire-list-item__qty-input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  font-size: 0.95rem;
}

.hire-list-item__remove {
  justify-self: start;
  background: none;
  border: none;
  color: var(--fpc-red);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
}

.hire-list-item__remove:hover, .hire-list-item__remove:focus-visible {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .hire-list-item {
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
  }

  .hire-list-item--readonly {
    grid-template-columns: 1fr auto auto;
  }

  .hire-list-item--quoted {
    grid-template-columns: 1fr auto;
  }
}

.hire-list-item__qty-readonly {
  color: var(--grey-600);
  font-size: 0.9rem;
}

.hire-list-item__basis {
  display: block;
  font-size: 0.82rem;
  color: var(--fpc-blue);
  font-weight: 600;
}

.hire-list-item__basis--unpriced {
  color: var(--fpc-red);
}

/* Calculated quote totals (hire-enquiry.html, once dates are entered) */
.quote-totals {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
}

.quote-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--grey-600);
}

.quote-totals__row--total {
  border-top: 1px dashed var(--grey-200);
  font-weight: 700;
  color: var(--grey-800);
}

.quote-totals__row--grand {
  border-top: 2px solid var(--fpc-blue);
  margin-top: 4px;
  padding-top: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fpc-blue);
}

/* Sits directly under the "Loss and damage waiver (10%)" row, inside the
   same quote-totals block - only rendered when the waiver applies (see
   renderQuote() in js/hireEnquiry.js), not when declined. */
.quote-totals__waiver-note {
  margin: 2px 0 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--grey-600);
}

.quote-totals__waiver-note a {
  color: var(--fpc-blue);
  font-weight: 600;
}

/* Loss and Damage Waiver opt-out - unlike the trade-account copy in
   .quote-total-payable__trade-note, this checkbox is a REAL control (see
   js/hireEnquiry.js) that changes lossDamageWaiver/totalPayable, not
   static explanatory text. */
.ldw-toggle {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
}

.ldw-toggle[hidden] {
  display: none;
}

.ldw-toggle__note {
  margin: 10px 0 0 28px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--grey-600);
}

.quote-deposit {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--grey-100);
  border-radius: var(--radius);
}

.quote-deposit__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.quote-deposit__label {
  font-size: 0.85rem;
  color: var(--grey-600);
}

.quote-deposit__amount {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--grey-800);
}

.quote-deposit__note {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--grey-600);
}

.quote-deposit[hidden] {
  display: none;
}

/* Total payable panel (hire-enquiry.html, once dates are entered) - the
   deposit-inclusive figure sits below the deposit panel it depends on, in
   its own bordered block so it doesn't read as part of the hire charge
   above it. Border uses --fpc-blue (not a filled background) to keep it
   readable as informational, not a call-to-action. */
.quote-total-payable {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--fpc-white);
  border: 2px solid var(--fpc-blue);
  border-radius: var(--radius);
}

.quote-total-payable__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--fpc-blue);
}

.quote-total-payable__caveat {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--grey-600);
}

.quote-total-payable__trade-note {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--grey-600);
}

.quote-total-payable__trade-note a {
  color: var(--fpc-blue);
  font-weight: 600;
}

.quote-total-payable[hidden] {
  display: none;
}

.hire-list-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hire-list-actions[hidden] {
  display: none;
}

/* Hire enquiry form (hire-enquiry.html / js/hireEnquiry.js) */
.field-error {
  display: block;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: var(--fpc-red);
  font-weight: 600;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--fpc-red);
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 10px 0;
  font-size: 0.95rem;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--grey-800);
  cursor: pointer;
}

.radio-row__label {
  font-weight: 700;
  color: var(--grey-800);
  flex-basis: 100%;
}

.duration-display {
  margin: 4px 0 12px;
  font-weight: 700;
  color: var(--fpc-blue);
}

.form-error-banner {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fdecec;
  border: 1px solid var(--fpc-red);
  border-radius: var(--radius);
  color: var(--fpc-red-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

.call-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fpc-red);
  color: var(--fpc-white);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.call-button:hover, .call-button:focus-visible {
  background: var(--fpc-red-dark);
}

.call-button__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero */
.hero {
  background: var(--fpc-white);
  text-align: center;
  padding: 32px 20px 24px;
  border-bottom: 1px solid var(--grey-200);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--fpc-blue);
}

.hero p {
  margin: 0;
  color: var(--grey-600);
  max-width: 640px;
  margin: 0 auto;
}

.hero--compact {
  padding: 28px 20px;
}

.hero--home {
  position: relative;
  background: var(--fpc-blue-dark);
  border-bottom: 4px solid var(--fpc-red);
  padding: 51px 20px;
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 53, 122, 0.88) 0%, rgba(14, 36, 86, 0.88) 100%);
  z-index: 1;
}

.hero--home .hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero--home h1 {
  color: var(--fpc-white);
  font-size: 2.1rem;
  margin: 0 0 10px;
}

.hero--home p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Scoped (not the bare .hero__actions/.hero__stats above, which other
   pages' compact heroes also use) - only the homepage hero's internal
   spacing shrinks along with its reduced padding. */
.hero--home .hero__actions {
  margin-top: 19px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero--home .hero__stats {
  margin-top: 18px;
}

.hero__stats-sep {
  color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.button--primary {
  background: var(--fpc-red);
  color: var(--fpc-white);
}

.button--primary:hover, .button--primary:focus-visible {
  background: var(--fpc-red-dark);
}

.button--outline {
  background: transparent;
  color: var(--fpc-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.button--outline:hover, .button--outline:focus-visible {
  border-color: var(--fpc-white);
  background: rgba(255, 255, 255, 0.08);
}

.button--outline-dark {
  background: transparent;
  color: var(--fpc-blue);
  border-color: var(--fpc-blue);
}

.button--outline-dark:hover, .button--outline-dark:focus-visible {
  background: var(--fpc-blue);
  color: var(--fpc-white);
}

.button--outline-dark.is-added {
  background: #1a7a3c;
  color: var(--fpc-white);
  border-color: #1a7a3c;
}

.button--outline-dark:disabled {
  cursor: default;
}

.button--outline-light {
  background: transparent;
  color: var(--fpc-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.button--outline-light:hover, .button--outline-light:focus-visible {
  border-color: var(--fpc-white);
  background: rgba(255, 255, 255, 0.12);
}

/* Content sections (Home, About, FAQs) */
.section {
  padding: 48px 20px;
}

.section--muted {
  background: var(--grey-100);
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 760px;
}

.section__inner--narrow h2 {
  color: var(--fpc-blue);
  font-size: 1.3rem;
  margin: 28px 0 8px;
}

.section__inner--narrow h2:first-child {
  margin-top: 0;
}

.section__inner--narrow p {
  color: var(--grey-800);
  line-height: 1.6;
}

.home-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.section__heading-row h2 {
  color: var(--fpc-blue);
  margin: 0;
  font-size: 1.3rem;
}

.link-more {
  color: var(--fpc-red);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.link-more:hover {
  text-decoration: underline;
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--grey-400);
  font-style: italic;
  border-top: 1px dashed var(--grey-200);
  padding-top: 12px;
  margin-top: 24px;
}

/* Legal pages (Terms, Privacy, Cookie Policy) */
.legal-content h2 {
  color: var(--fpc-blue);
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.legal-content h2:first-of-type {
  margin-top: 8px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--grey-800);
  line-height: 1.6;
}

.legal-content ul li {
  margin-bottom: 6px;
}

.legal-content__updated {
  font-size: 0.85rem;
  color: var(--grey-400);
}

.legal-inline-note {
  color: var(--grey-400);
  font-style: italic;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--grey-800);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fpc-blue);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--fpc-white);
  border-bottom: 2px solid var(--fpc-white);
  transform: rotate(-45deg);
}

/* Featured category cards (Home) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 900px (not 700px) so standard tablet-portrait widths (e.g. 768px iPad)
   actually get the 2-column layout, not just phones. */
@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--grey-800);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover, .category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.category-card__image-wrap {
  height: 200px;
  padding: 20px;
  background: var(--fpc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.category-card__label {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--fpc-blue);
  text-align: center;
}

/* Feature grid (Home - "Why choose FPC Tool Hire") */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  display: block;
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.feature-card--link {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.feature-card--link:hover, .feature-card--link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--fpc-blue);
  margin-bottom: 14px;
}

.feature-card__icon svg {
  display: block;
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
}

.feature-card h3 {
  color: var(--fpc-blue);
  font-size: 1rem;
  margin: 0 0 6px;
}

.feature-card p {
  color: var(--grey-600);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--fpc-blue-dark);
  border-top: 4px solid var(--fpc-red);
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.25);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--fpc-white);
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions .button {
    flex: 1;
    justify-content: center;
  }
}

/* CTA band */
.cta-band {
  background: var(--fpc-red);
  color: var(--fpc-white);
  text-align: center;
  padding: 48px 20px;
}

.cta-band__inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-band .hero__actions {
  margin-top: 20px;
}

.cta-band .button--outline-light {
  border-color: rgba(255, 255, 255, 0.7);
}

/* FAQs */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 4px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fpc-blue);
  padding: 14px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--fpc-red);
  font-weight: 800;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 16px 18px;
  color: var(--grey-800);
  line-height: 1.6;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-layout h2 {
  color: var(--fpc-blue);
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.contact-detail__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-400);
  font-weight: 700;
}

.contact-detail__value {
  color: var(--grey-800);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
}

a.contact-detail__value:hover {
  color: var(--fpc-blue);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form[hidden] {
  display: none;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--grey-800);
  margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--fpc-blue);
  outline-offset: 1px;
}

.contact-form button {
  margin-top: 12px;
  align-self: flex-start;
}

.contact-form__note {
  font-size: 0.8rem;
  color: var(--grey-400);
  margin: 8px 0 0;
}

/* Credit account application form */
.credit-form {
  margin-top: 28px;
}

.credit-form__section {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 8px 20px 20px;
  margin: 0 0 24px;
}

.credit-form__section legend {
  padding: 0 8px;
  color: var(--fpc-blue);
  font-weight: 700;
  font-size: 1.05rem;
}

.credit-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .credit-form__grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 10px 0;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--grey-800);
}

.form-field input,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field textarea {
  height: 80px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--fpc-blue);
  outline-offset: 1px;
}

.form-field--file input[type="file"] {
  width: 100%;
  padding: 8px 0;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--grey-800);
}

.credit-form__hint {
  font-size: 0.8rem;
  color: var(--grey-400);
  margin: 0;
}

.credit-form__consent {
  margin: 4px 0 16px;
}

.credit-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--grey-800);
  line-height: 1.5;
  cursor: pointer;
}

.credit-form__checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.credit-form__checkbox a {
  color: var(--fpc-red);
  font-weight: 700;
  text-decoration: none;
}

.credit-form__checkbox a:hover {
  text-decoration: underline;
}

.credit-form__confirmation {
  margin-top: 28px;
  padding: 24px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  text-align: center;
}

.credit-form__confirmation h2 {
  color: var(--fpc-blue);
  margin: 0 0 8px;
}

.credit-form__confirmation p {
  color: var(--grey-600);
  margin: 0;
}

/* Shared form confirmation/error states (Contact form, Account Application form) */
.form-confirmation {
  margin-top: 28px;
  padding: 24px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  text-align: center;
}

.form-confirmation h2,
.form-confirmation h3 {
  color: var(--fpc-blue);
  margin: 0 0 8px;
}

.form-confirmation p {
  color: var(--grey-600);
  margin: 0;
}

.form-submit-result {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

p.form-submit-result--error {
  color: var(--fpc-red);
}

/* Layout */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Filters sidebar */
.filters {
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 16px;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  /* Single scroll container for the whole panel (search + heading + list)
     instead of the list having its own separate nested scrollbar - if the
     category list is taller than the space left under the sticky header,
     the panel itself scrolls. */
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
}

.filters__search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.filters__search input:focus {
  outline: 2px solid var(--fpc-blue);
  outline-offset: 1px;
}

.filters__heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-600);
  margin: 0 0 8px;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-list__item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--grey-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.category-list__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.category-list__item:hover {
  background: var(--grey-100);
}

.category-list__item.is-active {
  background: var(--fpc-blue);
  color: var(--fpc-white);
  font-weight: 600;
}

.category-list__item .count {
  color: var(--grey-400);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.category-list__item.is-active .count {
  color: rgba(255, 255, 255, 0.75);
}

/* Catalogue */
.catalogue {
  /* When a search scrolls the results into view, keep the toolbar clear of
     the sticky site-header instead of tucking under it. */
  scroll-margin-top: calc(var(--header-height) + 12px);
}

/* Mobile-only sticky search + category dropdown. Hidden on desktop, where
   the .filters sidebar provides the same controls (see the 900px media
   query, which flips this to display:flex and hides .filters). */
.catalogue-controls {
  display: none;
}

.catalogue-controls__search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.catalogue-controls__search input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  font-size: 1rem;
}

.catalogue-controls__search input:focus {
  outline: 2px solid var(--fpc-blue);
  outline-offset: 1px;
}

.catalogue-controls__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--grey-100);
  color: var(--grey-600);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.catalogue-controls__clear:hover {
  background: var(--grey-200);
  color: var(--grey-800);
}

.catalogue-controls__select {
  flex-shrink: 0;
  max-width: 45%;
  padding: 10px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--fpc-white);
  color: var(--grey-800);
}

.catalogue__toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.catalogue__toolbar h2 {
  margin: 0;
  color: var(--fpc-blue);
  font-size: 1.25rem;
}

.results-count {
  color: var(--grey-600);
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--grey-800);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover, .product-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12);
}

.product-card__image-wrap {
  aspect-ratio: 4 / 3;
  background: var(--fpc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__image-wrap.is-placeholder img {
  width: 40%;
  height: 40%;
  object-fit: contain;
  opacity: 0.9;
}

.product-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card__category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fpc-red);
  font-weight: 700;
}

.product-card__desc {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--grey-800);
  margin: 0;
}

.product-card__part {
  font-size: 0.78rem;
  color: var(--grey-400);
}

.product-card__price {
  margin-top: auto;
  padding-top: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fpc-blue);
}

/* .product-card is the outer container (border/shadow/etc); the clickable
   link only wraps the image+body via display:contents so the "Add to Hire
   List" button can sit alongside it as a sibling - a <button> nested inside
   an <a> is invalid HTML and unreliable to click. */
.product-card__link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.product-card__actions {
  padding: 0 14px 14px;
}

.product-card__actions .add-to-hire-list {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--fpc-blue);
  background: transparent;
  color: var(--fpc-blue);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-card__actions .add-to-hire-list:hover, .product-card__actions .add-to-hire-list:focus-visible {
  background: var(--fpc-blue);
  color: var(--fpc-white);
}

.product-card__actions .add-to-hire-list.is-added {
  background: #1a7a3c;
  border-color: #1a7a3c;
  color: var(--fpc-white);
}

.empty-state {
  text-align: center;
  color: var(--grey-600);
  padding: 48px 0;
}

/* Named "No results for X" state on the catalogue. A bordered, padded card
   so a zero-match search reads as a deliberate answer, never as a page that
   failed to load. */
.empty-state--results {
  padding: 32px 20px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: var(--grey-100);
}

.empty-state--results strong {
  color: var(--grey-800);
}

.empty-state--results a {
  color: var(--fpc-blue);
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: var(--fpc-blue-dark);
  color: var(--fpc-white);
  margin-top: 32px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__inner p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  max-width: 480px;
}

.site-footer__about {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.site-footer__address a {
  color: inherit;
  text-decoration: none;
}

.site-footer__address a:hover {
  text-decoration: underline;
}

.site-footer__cross-sell a {
  color: var(--fpc-white);
  font-weight: 600;
  text-decoration: underline;
}

.site-footer__cross-sell a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Cross-sell band (homepage + Hire page, directly above the footer - see
   render_cross_sell_band() in site_common.py). Light/blue-tinted on
   purpose: distinct from both the page content above (white/grey
   sections) and the navy footer directly below, and deliberately NOT the
   site red - that stays reserved for "Call to Hire". */
.cross-sell-band {
  /* Deliberately a different navy from the footer (--fpc-blue-dark) directly
     below it - if the two matched exactly they'd blend into one long dark
     block instead of reading as two distinct sections. */
  background: var(--fpc-blue);
}

.cross-sell-band__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* Uses the recolored -white.png variant (dark wordmark -> white, red accent
   kept) so it sits directly on the navy background - no card needed. */
.cross-sell-band__logo {
  display: block;
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.cross-sell-band__text {
  flex: 1 1 400px;
}

.cross-sell-band__heading {
  margin: 0 0 8px;
  color: var(--fpc-white);
  font-size: 1.6rem;
}

.cross-sell-band__body {
  margin: 0;
  color: var(--grey-200);
  font-size: 1rem;
  max-width: 560px;
}

.cross-sell-band__cta {
  flex-shrink: 0;
  background: var(--fpc-white);
  color: var(--fpc-blue);
}

.cross-sell-band__cta:hover, .cross-sell-band__cta:focus-visible {
  background: var(--grey-100);
}

@media (max-width: 700px) {
  .cross-sell-band__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
  }

  .cross-sell-band__logo {
    align-self: flex-start;
  }

  .cross-sell-band__text {
    flex: none;
  }

  .cross-sell-band__cta {
    align-self: stretch;
    justify-content: center;
  }
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--fpc-white);
  text-decoration: underline;
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px;
}

.footer-legal-links {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-legal-links a,
.footer-legal-links__button {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-legal-links a:hover,
.footer-legal-links__button:hover {
  color: var(--fpc-white);
  text-decoration: underline;
}

.footer-legal-links__button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.site-footer__copyright {
  max-width: 1200px;
  margin: 8px auto 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}

/* Areas We Cover */
.postcode-checker {
  margin-top: 28px;
  padding: 24px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
}

.postcode-checker__label {
  display: block;
  font-weight: 700;
  color: var(--fpc-blue);
  margin-bottom: 10px;
}

.postcode-checker__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.postcode-checker__input {
  flex: 1 1 220px;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--grey-800);
}

.postcode-checker__input:focus-visible {
  outline: 2px solid var(--fpc-blue);
  outline-offset: 1px;
}

.postcode-checker__row .button {
  flex-shrink: 0;
}

.postcode-checker__result {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.5;
}

.postcode-checker__result--error {
  color: var(--fpc-red);
}

.postcode-checker__result--muted {
  color: var(--grey-400);
  font-style: italic;
}

.postcode-checker__note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--grey-400);
  font-style: italic;
}

.tier-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tier-heading h2 {
  color: var(--fpc-blue);
  margin: 0;
  font-size: 1.3rem;
}

.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(22, 53, 122, 0.1);
  color: var(--fpc-blue);
}

.towns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.town-card {
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 16px;
}

.town-card h3 {
  color: var(--fpc-blue);
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.town-card h3 a {
  color: var(--fpc-blue);
  text-decoration: underline;
}

.town-card h3 a:hover, .town-card h3 a:focus-visible {
  color: var(--fpc-blue-dark);
}

.town-card__distance {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fpc-red);
  font-weight: 700;
  margin-bottom: 6px;
}

.town-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .towns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Breadcrumb (product detail pages) */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin: 0 0 16px;
}

.breadcrumb a {
  color: var(--fpc-blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  margin: 0 6px;
  color: var(--grey-400);
}

/* Product detail page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-detail__image-wrap {
  background: var(--fpc-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail__image-wrap.is-placeholder img {
  width: 40%;
  height: 40%;
  opacity: 0.9;
}

.product-detail__category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fpc-red);
  font-weight: 700;
}

.product-detail__info h1 {
  color: var(--fpc-blue);
  font-size: 1.6rem;
  margin: 4px 0 8px;
}

.product-detail__part {
  color: var(--grey-400);
  font-size: 0.9rem;
}

.product-detail__price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fpc-blue);
  margin: 12px 0;
}

/* Product-page rate card (individual product pages only - listing/category
   tiles keep the plain "From £X" treatment, see js/app.js formatPrice()).
   Deliberately compact and un-collapsible (no accordion/tab) - see the
   mobile reorder rule below that puts this ahead of the product image,
   since it's the reason people are on the page. */
.rate-card {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--grey-100);
  border-radius: var(--radius);
}

.rate-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  font-size: 1rem;
}

.rate-card__row--header {
  font-weight: 700;
  color: var(--fpc-blue);
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.rate-card__vat-note {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--grey-400);
  text-transform: uppercase;
}

.rate-card__row:not(.rate-card__row--header) span:last-child {
  font-weight: 700;
  color: var(--grey-800);
}

.rate-card__note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--grey-600);
}

.rate-card--one-off .rate-card__row span:last-child {
  font-weight: 700;
  color: var(--grey-800);
}

.product-detail__blurb {
  color: var(--grey-800);
  line-height: 1.6;
  margin: 16px 0;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Product detail: technical spec content */
.product-detail__overview {
  color: var(--grey-800);
  line-height: 1.6;
  margin: 4px 0 16px;
}

.product-specs {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-200);
}

.product-specs h2 {
  color: var(--fpc-blue);
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.product-specs h2:first-child {
  margin-top: 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.spec-table tr {
  border-bottom: 1px solid var(--grey-100);
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 8px 12px 8px 0;
  vertical-align: top;
}

.spec-table th {
  color: var(--grey-600);
  font-weight: 600;
  width: 220px;
}

.spec-table td {
  color: var(--grey-800);
}

.product-specs__note {
  font-size: 0.85rem;
  color: var(--grey-400);
  font-style: italic;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Info (title, rate card, deposit) before the image on phones - the
     rate card is the reason someone is on this page, and burying it below
     a full-width image would push it past the fold on most handsets. */
  .product-detail__info {
    order: 1;
  }

  .product-detail__image-wrap {
    order: 2;
  }
}

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

  /* Below ~900px the desktop sidebar would eat most of the screen, so it is
     hidden entirely and replaced by the sticky .catalogue-controls toolbar
     (compact search + category dropdown) that lives inside .catalogue - see
     js/app.js for the shared wiring that keeps both control sets in sync. */
  .filters {
    display: none;
  }

  .catalogue-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    /* Full-bleed white band so results scrolling underneath don't show
       through the gap between the toolbar and the sticky header. */
    margin: 0 0 16px;
    padding: 12px 0;
    background: var(--fpc-white);
  }

  .site-header__bar {
    position: relative;
  }

  .brand { order: 1; }
  .hire-list-badge { order: 2; }
  .call-button { order: 3; }
  .nav-toggle { order: 4; }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--fpc-blue-dark);
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
    /* Sticky headers don't scroll internally on their own - if the open
       mobile menu is taller than the viewport, it needs its own scroll
       rather than becoming unreachable below the fold. */
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav__link {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  /* Keeps the sticky header to ~60px on phones so it doesn't eat too much
     vertical space while stuck at the top. */
  :root { --header-height: 52px; }
  .site-header__bar { padding: 8px 14px; }
  .brand__logo-wrap { padding: 3px 8px; }
  .brand__logo { height: 26px; }
  .nav-toggle { width: 30px; height: 30px; }
  .hire-list-badge { width: 32px; height: 32px; }
  .hire-list-badge__icon { width: 19px; height: 19px; }
  .call-button { padding: 6px 12px; font-size: 0.75rem; gap: 6px; }
  .call-button__icon { width: 15px; height: 15px; flex-shrink: 0; }
  .call-button__label { display: none; }
  .site-header__bar { gap: 8px; }
  .hero h1 { font-size: 1.3rem; }
  /* Mobile hero is already proportionally tighter than desktop, so it
     only comes down ~10% here vs. ~20% on desktop (.hero--home above is
     64px -> 51px; mobile is 64px -> 58px, and the internal gaps below
     scale down together with it, same as the desktop reduction). */
  .hero--home { padding: 58px 20px; }
  .hero--home h1 { font-size: 1.6rem; margin-bottom: 11px; }
  .hero--home .hero__actions { margin-top: 22px; }
  .hero--home .hero__stats { margin-top: 20px; }
}

/* Promo banner (homepage only, for now - see site_common.py
   render_promo_banner() / data/promotions.json). The scrim is a second
   background-image layer stacked on top of the photo - it darkens the
   left side (where the text sits) while staying transparent on the
   right so the red diagonal in the source photo still shows through. */
.promo-banner {
  position: relative;
  /* max-width:100% guards against a real browser quirk: aspect-ratio
     combined with min-height can derive a preferred WIDTH from
     min-height x ratio (200 x 6 = 1200px) and hold the box to that even
     when the actual viewport is narrower (confirmed between 640-1200px
     viewports) - without this, the banner (and page) overflowed
     horizontally at e.g. 850px wide. */
  max-width: 100%;
  aspect-ratio: 6 / 1;
  min-height: 200px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(10, 22, 47, 0.94) 0%, rgba(10, 22, 47, 0.88) 30%, rgba(10, 22, 47, 0.45) 55%, rgba(10, 22, 47, 0) 75%),
    url("/assets/hero/industrial-uk-hire-banner-background.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.promo-banner__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-banner__content {
  max-width: 40%;
}

/* Promo code "ticket" (optional - only renders when the active promotion
   has a code, see render_promo_banner()). Positioned in the right third,
   well clear of .promo-banner__content's 40% - deliberately CSS-only, no
   product image, so it reads as a voucher stuck on the banner rather
   than part of the photo. */
.promo-banner__ticket {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 14px 24px;
  text-align: center;
  pointer-events: none;
}

.promo-banner__ticket-code {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1;
}

.promo-banner__ticket-note {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.85);
}

.promo-banner__headline {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.promo-banner__subtext {
  margin: 0 0 8px;
  color: #e6e9f0;
  font-size: 17px;
  line-height: 1.4;
}

.promo-banner__small-print {
  margin: 0 0 16px;
  color: #b9c0cf;
  font-size: 13px;
  line-height: 1.4;
  max-width: 520px;
}

/* Same red-pill button as the rest of the site, but sized down a touch
   so it reads as secondary to the header's "Call to Hire" button. */
.promo-banner__cta {
  padding: 10px 20px;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  /* The ticket now stacks full-width below the CTA (see .promo-banner__ticket
     override below), and .promo-banner__content widens to 100% (right below)
     instead of staying pinned to 40% - so a fixed aspect-ratio/min-height box
     no longer matches the content's real height. Same fix as the 640px block:
     let the box grow to fit instead of clipping/overflowing into the section
     below it. */
  .promo-banner {
    aspect-ratio: unset;
    min-height: auto;
    padding: 32px 20px;
  }

  .promo-banner__content {
    max-width: 100%;
  }

  .promo-banner__headline {
    font-size: 28px;
  }

  .promo-banner__subtext {
    font-size: 16px;
  }

  /* Drop out of the absolutely-positioned overlay - as a plain block, it
     naturally falls into normal flow right after .promo-banner__content
     (and the CTA button inside it), full width, no rotation. */
  .promo-banner__ticket {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: 16px;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  /* 6:1 is too shallow once the text has to stack on a phone - drop the
     fixed aspect ratio for a flat min-height instead, and let the image
     crop under object-position: center (it's an abstract texture, so
     cropping is fine). The scrim goes near-solid across the full width
     here since there's no room left to preserve an uncovered right-hand
     side once the banner this short. */
  .promo-banner {
    aspect-ratio: unset;
    min-height: 240px;
    background-image:
      linear-gradient(90deg, rgba(10, 22, 47, 0.96) 0%, rgba(10, 22, 47, 0.94) 60%, rgba(10, 22, 47, 0.88) 100%),
      url("/assets/hero/industrial-uk-hire-banner-background.jpg");
  }

  .promo-banner__content {
    max-width: 100%;
    padding: 24px 0;
  }

  .promo-banner__headline {
    font-size: 24px;
  }

  .promo-banner__subtext {
    font-size: 15px;
  }

  .promo-banner__ticket {
    padding: 10px 16px;
    margin-top: 12px;
  }

  .promo-banner__ticket-code {
    font-size: 1.3rem;
  }

  .promo-banner__ticket-note {
    font-size: 0.6rem;
  }
}

/* PWA install bar - deliberately lighter/subtler than .cookie-banner (which
   uses solid navy) since this is a suggestion, not a consent gate. The two
   are never shown at the same time (see js/pwa.js), but this still sits at
   a lower z-index than the cookie banner (1000) as a defensive fallback. */
.pwa-install-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--fpc-white);
  border-top: 3px solid var(--fpc-blue);
  box-shadow: 0 -2px 10px rgba(16, 24, 40, 0.12);
}

.pwa-install-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pwa-install-bar__text {
  flex: 1 1 320px;
  margin: 0;
  color: var(--grey-800);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pwa-install-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pwa-install-bar__install {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.pwa-install-bar__dismiss {
  border: none;
  background: none;
  color: var(--grey-400);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.pwa-install-bar__dismiss:hover {
  color: var(--grey-800);
}

@media (max-width: 600px) {
  .pwa-install-bar__inner {
    flex-wrap: nowrap;
  }
}

/* Notification preferences panel - a centred modal (unlike the cookie
   banner/install bar, both bottom-fixed strips) since it only ever opens
   from a deliberate footer click, never automatically, so it never needs
   to compete with those for screen space. */
.push-preferences-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(16, 24, 40, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.push-preferences {
  background: var(--fpc-white);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow);
}

.push-preferences__heading {
  margin: 0 0 10px;
  color: var(--fpc-blue);
  font-size: 1.2rem;
}

.push-preferences__intro {
  margin: 0 0 20px;
  color: var(--grey-600);
  font-size: 0.88rem;
  line-height: 1.5;
}

.push-preferences__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--grey-200);
  cursor: pointer;
}

.push-preferences__option input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.push-preferences__option-note {
  display: block;
  color: var(--grey-600);
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 2px;
}

.push-preferences__status {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--grey-600);
}

.push-preferences__status--error {
  color: var(--fpc-red);
}

.push-preferences__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* /app install landing page - deliberately tighter padding than .section
   (48px) so the whole thing fits one phone screen where possible; this
   page has one job (get installed), not long-form content. */
.app-landing {
  padding: 32px 20px 40px;
}

.app-landing__inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.app-landing__inner h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  color: var(--fpc-blue);
}

.app-landing__sub {
  margin: 0 0 20px;
  color: var(--grey-600);
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-landing__benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-landing__benefits li {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--grey-800);
}

.app-landing__benefits strong {
  color: var(--fpc-blue);
}

.app-landing__install {
  margin-bottom: 24px;
}

.app-landing__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.app-landing__install-btn {
  width: 100%;
  max-width: 320px;
  font-size: 1.05rem;
  padding: 14px 20px;
}

.app-landing__fallback,
.app-landing__unsupported,
.app-landing__confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--grey-800);
}

.app-landing__unsupported {
  color: var(--fpc-red);
  border-color: var(--fpc-red);
  background: rgba(208, 32, 43, 0.06);
}

.app-landing__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--fpc-blue);
}

.app-landing__repeat-notice {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--grey-800);
  text-align: left;
  line-height: 1.45;
}

.app-landing__steps {
  text-align: left;
  margin: 0;
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--grey-800);
  line-height: 1.5;
}

.app-landing__steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-landing__alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.app-landing__skip {
  font-size: 0.85rem;
  color: var(--grey-600);
}
