/* APX Partnership — shared styles. No build step, no external fonts.
   Brand: Deep Red, Near-Black, White and Light Gray, straight from the APX
   style guide. The red square from the APX mark is the one recurring device:
   it sits in front of every label. Red is an accent, never a background wash.
   Layout: a label rail on the left, content on the right, a solid rule above
   each list and hairlines between its rows. */

:root {
  /* Colour (APX Brand Style Guide) */
  --red: #c8102e;           /* Deep Red */
  --red-dark: #a30c25;      /* button hover */
  --black: #141414;         /* Near-Black */
  --white: #ffffff;
  --gray: #f2f2f2;          /* Light Gray */
  --ink: #141414;
  --slate: #5a5a5a;         /* secondary text (6:1 or better on white and gray) */
  --line: #d9d9d9;          /* hairlines */
  --on-dark-soft: #dadada;
  --on-dark-muted: #b4b4b4;
  --line-dark: rgba(255, 255, 255, .22);

  /* Type: a clean geometric sans, bold for headlines */
  --sans: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.375rem, 1.2rem + 7vw, 6.25rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.3vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.625rem);
  --fs-h3: clamp(1.1875rem, 1.12rem + .35vw, 1.375rem);
  --fs-lede: clamp(1.125rem, 1.06rem + .35vw, 1.3125rem);

  /* Space */
  --max: 1160px;
  --gutter: 20px;
  --section: clamp(64px, 9vw, 120px);
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.62 var(--sans); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--sans); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.flow > * + * { margin-top: 1.1em; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Near-Black surfaces */
.on-dark { background: var(--black); color: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.on-dark a:hover { color: #fff; }
.on-dark :focus-visible { outline-color: #fff; }

/* ---------- Type helpers ---------- */
.eyebrow { display: flex; align-items: baseline; gap: 10px; font: 700 .75rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--red); }
.on-dark .eyebrow { color: #fff; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--slate); max-width: 35em; }
.on-dark .lede { color: var(--on-dark-soft); }
.muted { color: var(--slate); }
.on-dark .muted { color: var(--on-dark-muted); }
.assurance { font-size: .9375rem; color: var(--slate); }
.on-dark .assurance { color: var(--on-dark-muted); }

/* What the first call gives you */
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; align-items: baseline; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--red); }
.ticks-label { font: 700 .6875rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.on-dark .ticks-label { color: var(--on-dark-muted); }
.call-gets { display: grid; gap: 12px; margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 35em; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border: 2px solid var(--red); border-radius: 0; background: var(--red); color: #fff; font: 600 1rem/1.2 var(--sans); text-align: center; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover, .btn-outline[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.on-dark .btn-outline { border-color: #fff; color: #fff; }
.on-dark .btn-outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
.arrow-link { display: inline-flex; align-items: baseline; gap: .5em; padding-block: 6px 4px; border-bottom: 2px solid var(--red); font-weight: 600; text-decoration: none; }
.arrow-link span { transition: transform .16s ease; }
.arrow-link:hover span { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
@media (max-width: 479px) { .actions .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-block: 14px; }
.brand img { width: auto; height: 22px; }
@media (min-width: 480px) { .brand img { height: 24px; } }
@media (min-width: 640px) { .brand img { height: 28px; } }
.header-book { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) { display: inline-block; padding: 10px 0; color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--red), var(--red)) no-repeat 0 calc(100% - 3px) / 0 2px; transition: background-size .2s ease; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { background-size: 100% 2px; }
.site-nav .btn { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; background: none; color: var(--ink); font: 600 .9375rem/1 var(--sans); cursor: pointer; }
.nav-toggle-bars { width: 20px; height: 10px; border-block: 2px solid currentColor; transition: height .16s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { height: 2px; border-bottom: 0; }

@media (max-width: 899px) {
  .header-inner { gap: 0 10px; }
  .brand, .nav-toggle { margin-block: 10px; }
  /* The booking button stays in the header on phones, one tap away on every page */
  .header-book { display: inline-flex; margin-left: auto; min-height: 44px; padding: 8px 14px; font-size: .875rem; }
  .nav-toggle { padding-left: 6px; }
  .site-nav { flex-basis: 100%; padding-bottom: 20px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li:not(.nav-cta) { border-top: 1px solid var(--line); }
  .site-nav a:not(.btn) { display: block; padding: 15px 0; font-size: 1.0625rem; background: none; }
  .site-nav a[aria-current="page"]:not(.btn) { color: var(--red); }
  .site-nav .nav-cta { padding-top: 14px; border-top: 1px solid var(--line); }
  .site-nav .btn { width: 100%; min-height: 52px; }
  /* With JavaScript the menu folds behind the Menu button. Without it, it stays open. */
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
}

/* ---------- Home hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 36px 64px; padding-block: clamp(40px, 6.5vw, 84px) clamp(36px, 5vw, 64px); }
.hero-inner > * { min-width: 0; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -.04em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--red); }
.hero .lede { max-width: 30em; }
.hero .actions { margin-top: 8px; }
/* Sprinkler pipework beside the promise: a wide crop under the button on phones, a tall one beside the headline on wide screens */
.hero-photo { display: block; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: var(--gray); }
.hero-offer { display: grid; gap: 16px 48px; padding-block: 24px 30px; border-top: 1px solid var(--line); }
.ticks--row { gap: 12px 32px; }
@media (min-width: 760px) { .ticks--row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: end; }
  /* Sized so "fire protection." always fits on one line beside the photo */
  .hero h1 { font-size: clamp(3.5rem, 14.6vw - 80px, 6.25rem); }
  .hero-photo img { aspect-ratio: 4 / 5; }
  .hero-offer { grid-template-columns: 208px minmax(0, 1fr); align-items: baseline; }
}

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--gray); }
.page-hero .wrap { display: grid; gap: 22px; justify-items: start; padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6.5vw, 88px); }
.page-hero h1 { max-width: 15em; }
.page-hero .actions { margin-top: 10px; }

/* ---------- Full-width photo between sections ---------- */
.photo-band img { width: 100%; height: clamp(200px, 30vw, 440px); object-fit: cover; object-position: 42% 40%; background: var(--gray); }
.photo-band--close img { object-position: 45% 50%; }

/* ---------- Sections and the rail ---------- */
.section { padding-block: var(--section); }
.section--gray { background: var(--gray); }
.section--rule { border-top: 1px solid var(--line); }
.rail { display: grid; gap: 28px 56px; }
.rail > * { min-width: 0; }
.rail-head { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) {
  .rail { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .rail-head { padding-right: 8px; }
}
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 46rem; }
.section-foot { margin-top: clamp(32px, 4vw, 48px); }
.note { margin-top: 24px; color: var(--slate); }

/* Rows: a solid rule on top, hairlines between */
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; gap: 8px 40px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.row p, .row dd { color: var(--slate); }
@media (min-width: 680px) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-block: 30px; }
}
.rows--list .row { display: block; padding-block: 20px; }
.qa dt { font: 600 var(--fs-h3)/1.25 var(--sans); letter-spacing: -.012em; text-wrap: balance; }

/* Numbered steps. Only used where the order is real. */
.steps { display: grid; gap: 36px 40px; counter-reset: step; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); counter-increment: step; }
.step::before { content: "Step " counter(step); font: 700 .75rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.step p { color: var(--slate); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.timeline { counter-reset: step; }
.timeline > li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 20px; padding-bottom: 40px; counter-increment: step; }
.timeline > li::before { content: counter(step); font: 700 2.5rem/1 var(--sans); letter-spacing: -.03em; color: var(--red); }
.timeline > li::after { content: ""; position: absolute; left: 12px; top: 56px; bottom: 10px; width: 1px; background: var(--line); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::after { display: none; }
.timeline div { display: grid; gap: 10px; padding-top: 6px; }
.timeline p { color: var(--slate); max-width: 38em; }
@media (min-width: 680px) {
  .timeline > li { grid-template-columns: 68px minmax(0, 1fr); padding-bottom: 52px; }
  .timeline > li::before { font-size: 3.25rem; }
  .timeline > li::after { left: 16px; top: 70px; }
  .timeline div { padding-top: 12px; }
}

/* Two-up cells and a row of names */
.cells { display: grid; border-top: 2px solid var(--ink); }
.cell { display: grid; gap: 8px; align-content: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cell p { color: var(--slate); }
@media (min-width: 680px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cell { padding: 30px 40px 30px 0; } }

.names { display: grid; border-top: 2px solid var(--ink); }
.names li { padding-block: 16px; border-bottom: 1px solid var(--line); font: 600 var(--fs-h3)/1.25 var(--sans); letter-spacing: -.012em; }
@media (min-width: 680px) {
  .names { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .names li { padding: 20px 24px 20px 0; border-bottom: 0; }
}
.names--grid li { font-size: clamp(1.375rem, 1.2rem + .9vw, 1.875rem); letter-spacing: -.025em; }
@media (min-width: 520px) {
  .names--grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .names--grid li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
}


/* The five paths */
.paths { border-top: 2px solid var(--ink); }
.path { display: grid; gap: 8px 40px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.path h3 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); font-weight: 700; letter-spacing: -.022em; }
.path-result { font-size: 1.125rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.path-for { color: var(--slate); }
@media (min-width: 760px) { .path { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); padding-block: 30px; } }
.aside-note { display: grid; gap: 10px; margin-top: 32px; padding: clamp(22px, 3vw, 32px); background: var(--gray); }
.aside-note p:last-child { max-width: 46em; color: var(--slate); }
.fit-text { max-width: 30em; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--ink); }
.inline-cta p { font-size: var(--fs-lede); line-height: 1.4; max-width: 30em; }

/* A good fit */
.fit { display: grid; gap: 56px; }
.fit > div { display: grid; gap: 16px; align-content: start; }
.fit h2 { margin-bottom: 12px; }
.fit-list { border-top: 2px solid var(--ink); }
.fit-list li { display: grid; gap: 4px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.fit-list p { color: var(--slate); }
@media (min-width: 860px) { .fit { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }

/* Why APX: one large statement with a red rule */
.quote { display: grid; gap: 28px; justify-items: start; padding-left: clamp(20px, 3vw, 36px); border-left: 3px solid var(--red); }
.quote-text { font: 500 clamp(1.3125rem, 1.1rem + 1.2vw, 1.9375rem)/1.34 var(--sans); letter-spacing: -.02em; max-width: 27em; }

/* About */
.about { display: grid; gap: 48px 72px; }
.about > * { min-width: 0; }
.about-card { display: grid; gap: 6px; align-content: start; max-width: 340px; }
.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px; background: var(--gray); }
.about-name { font: 700 1.5rem/1.2 var(--sans); letter-spacing: -.025em; }
.about-role { color: var(--slate); }
.facts { margin-top: 22px; border-top: 2px solid var(--ink); }
.facts div { display: grid; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 .75rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.facts dd { font-size: .9375rem; line-height: 1.5; color: var(--slate); }
.letter { max-width: 40em; }
.letter .lede { color: var(--ink); max-width: none; }
@media (min-width: 860px) { .about { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }

/* Placeholders Luke still has to fill show up yellow */
.todo { background: #fff3c4; color: #3b2f00; padding: 0 .25em; border-radius: 3px; }

/* ---------- Closing band ---------- */
.cta { padding-block: clamp(64px, 8vw, 108px); }
.cta .ticks { margin-top: 1.3em; }
.cta .actions { margin-top: 1.8em; }
.cta .assurance { margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray); color: var(--slate); font-size: .9375rem; }
.site-footer--rule { border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 40px 56px; padding-block: 60px 48px; }
.footer-top > * { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer-brand .brand { margin-block: 0; }
.footer-brand .brand img { height: 26px; }
.footer-brand p { max-width: 25em; }
.footer-top ul { display: grid; gap: 2px; }
.footer-top ul a { display: inline-block; padding-block: 6px; color: var(--ink); text-decoration: none; }
.footer-top ul a:hover { color: var(--red); }
.site-footer .arrow-link { color: var(--ink); }
.footer-bottom { position: relative; display: grid; gap: 10px 48px; padding-block: 22px 36px; font-size: .8125rem; line-height: 1.6; }
.footer-bottom::before { content: ""; position: absolute; inset: 0 var(--gutter) auto; height: 1px; background: #cdcdcd; }
.footer-bottom a { display: inline-block; padding-block: 4px; color: var(--ink); text-decoration-thickness: 1px; }
.footer-top p a { display: inline-block; padding-block: 3px; color: var(--ink); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.footer-legal { max-width: 46em; }
@media (min-width: 820px) {
  .footer-top { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
  .footer-bottom { grid-template-columns: auto minmax(0, 1fr); }
  .footer-legal { justify-self: end; text-align: right; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; background: var(--gray); }
.not-found .page-hero { display: grid; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header { position: static; }
  .nav-toggle { display: none; }
}
