/* Only the On-site Security page loads this stylesheet. Sections run wide with
   generous type so everything stays easy to read. */
/* Hero: the hi-vis officers photo in its natural colours. */
.page-banner.onsite-banner { background-image: url("../images/security-officers-hi-vis-radio-street-event.webp"); background-position: center; }
.onsite-page { --onsite-panel: #f3f5f9; --onsite-line: #d3d9e6; --onsite-space: clamp(3.5rem, 8vw, 7rem); --onsite-gutter: max(1.25rem, 3vw); color: var(--ink); font-size: 1.0625rem; }
.onsite-wrap { width: 100%; max-width: 92rem; margin-inline: auto; padding-left: max(var(--onsite-gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--onsite-gutter), env(safe-area-inset-right, 0px)); }
.onsite-eyebrow { margin: 0 0 .875rem; color: var(--accent); font-size: clamp(.9375rem, 1vw, 1.0625rem); font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.onsite-page h2 { margin: 0 0 1.375rem; font-size: clamp(2.125rem, 4.2vw, 3.5rem); line-height: 1.1; letter-spacing: -.032em; }
.onsite-page h3 { margin: 0 0 .625rem; font-size: clamp(1.3125rem, 1.7vw, 1.5625rem); line-height: 1.24; letter-spacing: -.018em; }
.onsite-page p { margin: 0 0 1.125rem; font-size: clamp(1.0625rem, 1.15vw, 1.1875rem); line-height: 1.68; }
.onsite-section { padding-block: var(--onsite-space); }
.onsite-section-intro { max-width: 54rem; margin: 0 auto clamp(2.25rem, 4.5vw, 4rem); text-align: center; }
.onsite-section-intro p:last-child { margin-bottom: 0; color: var(--muted); font-size: clamp(1.125rem, 1.4vw, 1.25rem); }

/* Red check marks drawn by CSS so the lists stay plain text. */
.onsite-checklist { display: grid; gap: .8rem; margin: 1.75rem 0 2.25rem; padding: 0; list-style: none; }
.onsite-checklist li { position: relative; padding-left: 2.3rem; font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.5; }
.onsite-checklist li::before { content: ""; position: absolute; top: .1em; left: 0; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--accent); }
.onsite-checklist li::after { content: ""; position: absolute; top: calc(.1em + .32rem); left: .52rem; width: .4rem; height: .7rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Introduction: copy and calls to action beside a framed portrait. */
.onsite-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.75rem, 5.5vw, 5.5rem); align-items: center; padding-block: clamp(2.25rem, 5.5vw, 4.5rem) var(--onsite-space); }
.onsite-intro-copy { min-width: 0; }
.onsite-intro-copy > p:not(.onsite-eyebrow) { max-width: 62ch; font-size: clamp(1.125rem, 1.35vw, 1.25rem); }
.onsite-intro-media { position: relative; isolation: isolate; min-width: 0; width: 100%; max-width: 38rem; margin-inline: auto; padding: 0 1.25rem 1.25rem 0; }
.onsite-intro-media::before { content: ""; position: absolute; inset: 1.25rem 0 0 1.25rem; z-index: -1; background: var(--accent); }
.onsite-intro-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }

/* Section divider: the navy pinstripe background from the coverage option figures. */
.onsite-divider { height: clamp(5rem, 9vw, 8rem); background: repeating-linear-gradient(115deg, rgb(255 255 255 / .04) 0 2px, transparent 2px 14px), linear-gradient(160deg, #34466b 0%, #1f2747 55%, #121631 100%); }

/* Duties: icon cards with a red rule that grows on hover. */
.onsite-duties { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 1.8vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
.onsite-duty { position: relative; min-width: 0; padding: clamp(1.75rem, 2.6vw, 2.5rem); border: 1px solid var(--onsite-line); background: #fff; }
.onsite-duty::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 4px; background: var(--accent); transform: scaleX(.2); transform-origin: left; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.onsite-duty svg { width: 2.75rem; height: 2.75rem; margin-bottom: 1.25rem; fill: none; stroke: var(--accent); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.onsite-duty p { margin: 0; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .onsite-duty:hover::after { transform: scaleX(1); } }

/* Coverage options reuse the home page's officer figure and slanted panel. */
.onsite-coverage { padding-block: var(--onsite-space); background: linear-gradient(180deg, #fff 0%, var(--onsite-panel) 100%); }
.onsite-coverage-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.onsite-option { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; min-width: 0; padding: clamp(1.75rem, 3vw, 3rem); border-bottom: 4px solid var(--accent); background: #fff; box-shadow: 0 18px 44px rgb(18 22 42 / .085); }
.onsite-option .personnel-figure { max-width: 22rem; margin: 0 auto; }
.onsite-option-copy { min-width: 0; }
.onsite-option-copy p { color: var(--muted); }
.onsite-option .onsite-checklist { margin-top: 1.375rem; }

/* Process: a photo beside numbered steps joined by a red line. */
.onsite-process { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.75rem, 5.5vw, 5.5rem); align-items: center; }
.onsite-process-media { min-width: 0; }
.onsite-process-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.onsite-process-copy { min-width: 0; }
.onsite-steps { margin: 1.75rem 0 2.5rem; padding: 0; list-style: none; counter-reset: step; }
.onsite-steps li { position: relative; padding: 0 0 2rem 4.5rem; counter-increment: step; }
.onsite-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 3.125rem; height: 3.125rem; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.onsite-steps li:not(:last-child)::after { content: ""; position: absolute; top: 3.45rem; bottom: .3rem; left: calc(1.5625rem - 1px); width: 2px; background: rgb(203 25 57 / .25); }
.onsite-steps li:last-child { padding-bottom: 0; }
.onsite-steps h3 { padding-top: .5rem; }
.onsite-steps p { margin: 0; color: var(--muted); }



@media (prefers-reduced-motion: reduce) {
  .onsite-duty::after { transition: none; }
}
@media (max-width: 39.999rem) {
  .onsite-actions .page-btn { flex: 1 1 100%; }
}
@media (min-width: 40rem) {
  .onsite-duties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .onsite-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .onsite-duties { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onsite-coverage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 2.6vw, 2.5rem); }
  .onsite-process { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .onsite-process-media img { aspect-ratio: 4 / 5; object-position: 70% center; }
}

/* Final banner button: a red streak with a fading tail travels around a ring just
   outside the button. The ring is a rotating conic gradient masked to a thin band.
   Browsers without @property show the streak standing still; visitors who prefer
   reduced motion see no ring. */
@property --onsite-worm-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.onsite-worm-btn { position: relative; isolation: isolate; }
.onsite-worm-btn::before { content: ""; position: absolute; inset: -7px; z-index: -1; padding: 3px; background: conic-gradient(from var(--onsite-worm-angle), transparent 0 62%, rgb(203 25 57 / .15) 72%, rgb(203 25 57 / .6) 86%, var(--accent) 97%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: onsite-worm 2.4s linear infinite; pointer-events: none; }
@keyframes onsite-worm { to { --onsite-worm-angle: 360deg; } }
@supports not (background: conic-gradient(from 0deg, red, blue)) { .onsite-worm-btn::before { content: none; } }
@media (prefers-reduced-motion: reduce) { .onsite-worm-btn::before { content: none; } }
