/*
  Access Office — homepage (access2026 theme)
  Hero reads as an annotated technical plate: registration/crop marks at
  the corners, a caption strip at the base like a plate label in a technical
  manual, a title-block facts strip below. Category tiles become a
  catalogue index — real category IDs as large mono numerals, not icons.

  Featured products / Completed Jobs / testimonials / brands below the
  tiles are still rendered by footer.twig's is_home_page branch (that's
  where the underlying OpenCart controller actually supplies that data) —
  restyled in footer.css to match this system.
*/

/* ---- Hero: an annotated plate, not a banner ---- */
.ao-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  border-bottom: 1px solid var(--border-color-strong);
}
.ao-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,19,18,.82) 0%, rgba(20,19,18,.30) 50%, rgba(20,19,18,.05) 100%);
}

/* Registration / crop marks — the four corners of a printed technical
   plate. Quiet, precise, and unmistakably not a marketing banner. */
.ao-hero-mark {
  position: absolute;
  width: 22px; height: 22px;
  z-index: 2;
  opacity: 0.85;
}
.ao-hero-mark::before, .ao-hero-mark::after {
  content: '';
  position: absolute;
  background: var(--color-white);
}
.ao-hero-mark::before { width: 100%; height: 1px; top: 0; left: 0; }
.ao-hero-mark::after  { width: 1px; height: 100%; top: 0; left: 0; }
.ao-hero-mark--tl { top: 16px; left: 16px; }
.ao-hero-mark--tr { top: 16px; right: 16px; transform: scaleX(-1); }
.ao-hero-mark--bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.ao-hero-mark--br { bottom: 16px; right: 16px; transform: scale(-1, -1); }

/* Plate caption strip — bottom edge of the photo, like a figure caption in
   a technical manual. Real facts only: job name, sector, region. */
.ao-hero-caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--color-blueprint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #CFE0EF;
}
.ao-hero-caption .plate-number { color: var(--color-white); font-weight: 600; }
.ao-hero-caption .sep { opacity: 0.5; }

.ao-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: var(--space-6) var(--space-4) var(--space-5);
}
.ao-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-signal);
  margin-bottom: var(--space-2);
}
.ao-hero-title {
  color: var(--color-white);
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: var(--space-3);
}
.ao-hero-body {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  max-width: 56ch;
  color: #EDEBE6;
}
@media (max-width: 767px) {
  .ao-hero { min-height: 420px; }
  .ao-hero-content { padding: var(--space-5) var(--space-3); }
  .ao-hero-mark { width: 16px; height: 16px; }
}

/* ---- Title block — facts strip immediately under the hero ---- */
.ao-titleblock-wrap { background: var(--color-surface); }

/* ---- Category tiles: catalogue index, not icon cards ---- */
.ao-category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-surface);
}
.ao-category-tile {
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-right: 1px solid var(--border-color);
  border-top: 3px solid var(--color-graphite);
  transition: border-top-color .15s ease, background .15s ease;
}
.ao-category-tile:last-child { border-right: none; }
.ao-category-tile:hover {
  border-top-color: var(--color-signal);
  background: var(--color-page-bg);
}
.ao-category-tile-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-blueprint);
  line-height: 1;
}
.ao-category-tile-number::before { content: 'NO. '; font-size: 13px; color: var(--color-text-muted); font-weight: 400; letter-spacing: 0.04em; }
.ao-category-tile-label {
  font-family: var(--font-heading);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-graphite);
  margin-top: var(--space-1);
}
.ao-category-tile-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.ao-category-tile-arrow {
  margin-top: auto;
  padding-top: var(--space-2);
  color: var(--color-graphite);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ao-category-tile:hover .ao-category-tile-arrow { color: var(--color-blueprint); }

@media (max-width: 991px) {
  .ao-category-tiles { grid-template-columns: repeat(2, 1fr); }
  .ao-category-tile:nth-child(2) { border-right: none; }
}
@media (max-width: 575px) {
  .ao-category-tiles { grid-template-columns: 1fr; }
  .ao-category-tile { border-right: none !important; }
}

/* ---- Section headers (reused below the tiles) ---- */
.ao-section { padding: var(--space-6) 0; }
.ao-section-header { text-align: left; margin-bottom: var(--space-4); }
.ao-section-header h2 {
  font-size: 22px;
  margin-bottom: var(--space-1);
}
.ao-section-header .ao-section-sub {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 14px;
  max-width: 60ch;
}
