@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap");

/* Spacing and radius defaults, so every page gets them even if its own :root leaves them out */
:where(:root) { --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 112px; --radius-sm: 12px; --radius-md: 20px; --radius-lg: 28px; --radius-pill: 999px; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 26px; background: var(--surface); color: var(--text); -webkit-font-smoothing: antialiased; }
.ap-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-5); }
.ap-stack { display: grid; gap: var(--space-3); padding: var(--space-5); max-width: 620px; }
.ap-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ap-icon.solid { fill: currentColor; stroke: none; }
:where(.ap-btn, .ap-ibtn, .ap-row-link, .ap-tile, .ap-acc summary, .ap-field input, .ap-field select):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* Button */
.ap-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; background: linear-gradient(90deg, var(--ap-sweep) 0 50%, var(--ap-base, transparent) 50% 100%) right center / 210% 100% no-repeat; transition: color 320ms ease-out, background-position 480ms cubic-bezier(0.22, 0.61, 0.36, 1); }
/* Hover: a fill sweeps in from the left. It is one painted background (sweep and base side by side), so no base colour can show round the rounded edge. The label colour is locked so page link styles can't recolour it */
.ap-btn:hover, .ap-btn:focus-visible { background-position: left center; }
.ap-btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.ap-btn.ap-btn-primary, .ap-btn.ap-btn-primary:visited, .ap-btn.ap-btn-primary:hover, .ap-btn.ap-btn-primary:focus-visible { --ap-base: var(--ink); color: var(--on-ink); --ap-sweep: var(--pulse); }
.ap-btn.ap-btn-secondary, .ap-btn.ap-btn-secondary:visited { --ap-base: var(--surface-soft); color: var(--ink); --ap-sweep: var(--ink); }
.ap-btn.ap-btn-light, .ap-btn.ap-btn-light:visited { --ap-base: var(--surface); color: var(--ink); --ap-sweep: var(--ink); }
.ap-btn.ap-btn-secondary:hover, .ap-btn.ap-btn-secondary:focus-visible, .ap-btn.ap-btn-light:hover, .ap-btn.ap-btn-light:focus-visible { color: var(--on-ink); }
/* Ghost: for dark photos and video only. White outline, fills white with ink text on hover */
.ap-btn.ap-btn-ghost, .ap-btn.ap-btn-ghost:visited { --ap-base: transparent; color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); --ap-sweep: #ffffff; }
.ap-btn.ap-btn-ghost:hover, .ap-btn.ap-btn-ghost:focus-visible { color: var(--ink); }

/* IconButton */
.ap-ibtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); border: 0; cursor: pointer; flex: none; transition: background-color 150ms ease-out; text-decoration: none; }
.ap-ibtn-sm { width: 32px; height: 32px; }
.ap-ibtn-light { background: var(--surface); color: var(--ink); }
.ap-ibtn-soft { background: var(--surface-soft); color: var(--ink); }
.ap-ibtn-ink { background: var(--ink); color: var(--on-ink); }
.ap-ibtn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ap-ibtn:hover { background: var(--pulse-soft); color: var(--ink); }
.ap-ibtn .ap-icon { transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1); }
a:hover .ap-ibtn .ap-icon, .ap-ibtn:hover .ap-icon { transform: translateX(2px); }

/* Chip */
.ap-chip { width: fit-content; display: inline-flex; align-items: center; gap: var(--space-1); height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 12.5px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.ap-chip-outline { box-shadow: inset 0 0 0 1px var(--line); color: var(--text-muted); }
.ap-chip-soft { background: var(--surface-soft); color: var(--ink); }
.ap-chip-blue { background: var(--pulse-soft); color: var(--ink); }

/* ServiceRow */
.ap-rows { border-top: 1px solid var(--line); max-width: 560px; }
.ap-row-link { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 40px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.ap-row-thumb { width: 52px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-sunk); object-fit: cover; }
.ap-row-title { display: block; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.ap-row-sub { display: block; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ap-row-link:hover .ap-ibtn { background: var(--pulse-soft); }
@media (max-width: 520px) { .ap-row-link { grid-template-columns: 44px minmax(0, 1fr) 40px; } .ap-row-link .ap-chip { display: none; } }

/* Tile */
.ap-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); padding: var(--space-5); }
.ap-tile { position: relative; box-sizing: border-box; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); min-height: 200px; padding: 18px; border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: var(--text); background: var(--surface-sunk); transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 380ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.ap-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1); }
/* Linked tiles float up on hover */
a.ap-tile:hover { color: var(--text); transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(4, 45, 98, 0.34); }
a.ap-tile:hover .ap-tile-img { transform: scale(1.04); }
/* Photo tiles: ink wash from the top so the title reads over any photo */
.ap-tile-photo:has(> .ap-tile-img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,45,98,0.88) 0%, rgba(4,45,98,0.55) 38%, rgba(4,45,98,0.12) 75%, rgba(4,45,98,0) 100%); }
.ap-tile-photo:has(> .ap-tile-img) > :not(img) { z-index: 2; }
.ap-tile-photo:has(> .ap-tile-img) .ap-tile-title { color: #ffffff; }
.ap-tile-photo:has(> .ap-tile-img) .ap-tile-sub { color: rgba(255,255,255,0.88); }
.ap-tile-wash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(110% 80% at 85% 10%, rgba(255,255,255,0.55), transparent 60%); }
.ap-tile > :not(img) { position: relative; }
.ap-tile-title { display: block; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); }
.ap-tile-sub { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--text-muted); max-width: 24em; }
.ap-tile .ap-ibtn { align-self: flex-end; }
.ap-tile:hover .ap-ibtn { background: var(--pulse-soft); }
.ap-tile-ink { background: var(--ink); }
.ap-tile-ink .ap-tile-title, .ap-tile-ink .ap-tile-sub { color: var(--on-ink); }
.ap-tile-ink .ap-tile-sub { opacity: 0.8; }
.ap-tile-plain { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ap-tile-plain .ap-ibtn { background: var(--pulse-soft); }

/* PhotoFrame */
.ap-photo { position: relative; box-sizing: border-box; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-sunk); max-width: 100%; }
.ap-photo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 25% 15%, rgba(255,255,255,0.5), transparent 60%); pointer-events: none; }
.ap-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-photo-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70%; text-align: center; font-size: 13px; line-height: 19px; color: var(--text-muted); }
.ap-float { position: absolute; z-index: 1; }
.ap-float-tl { left: 16px; top: 16px; } .ap-float-tr { right: 16px; top: 16px; } .ap-float-bl { left: 16px; bottom: 16px; } .ap-float-br { right: 16px; bottom: 16px; }
.ap-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-family: var(--font-sans); font-size: 13px; line-height: 17px; border: 0; text-align: left; }
.ap-pill-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--surface-soft); color: var(--ink); flex: none; }
.ap-pill-icon.ink { background: var(--ink); color: var(--on-ink); }
.ap-pill b { display: block; font-weight: 700; color: var(--ink); }
.ap-pill span.sub { color: var(--text-muted); }

/* StepList */
.ap-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 560px; }
.ap-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ap-step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); }
.ap-step-title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.ap-step-text { margin: 4px 0 0; font-size: 15px; line-height: 24px; color: var(--text-muted); }

/* Accordion */
.ap-acc { border-top: 1px solid var(--line); max-width: 640px; }
.ap-acc details { border-bottom: 1px solid var(--line); }
.ap-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.ap-acc summary::-webkit-details-marker { display: none; }
.ap-acc summary .ap-ibtn { transition: transform 200ms ease-out, background-color 150ms ease-out; }
.ap-acc details[open] summary .ap-ibtn { transform: rotate(90deg); background: var(--pulse-soft); }
.ap-acc-body { margin: 0; padding: 0 52px 20px 0; font-size: 16px; line-height: 26px; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .ap-acc summary .ap-ibtn, .ap-btn, .ap-tile, .ap-tile-img, .ap-ibtn .ap-icon { transition: none; } a.ap-tile:hover, a.ap-tile:hover .ap-tile-img { transform: none; } }

/* Field */
.ap-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: var(--space-5); max-width: 560px; }
.ap-field { display: grid; gap: 6px; min-width: 0; }
.ap-field-wide { grid-column: 1 / -1; }
.ap-field label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.ap-field input, .ap-field select { font: inherit; font-size: 16px; height: 50px; width: 100%; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-sizing: border-box; }
.ap-field-hint { font-size: 13px; line-height: 18px; color: var(--text-muted); }
@media (max-width: 520px) { .ap-form { grid-template-columns: minmax(0, 1fr); } }

/* Video with an obvious play button. The page script hides the button and starts the video with controls */
.ap-video { position: relative; overflow: hidden; background: #000000; }
.ap-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-video-play { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; padding: 0; border: 0; background: linear-gradient(180deg, rgba(4, 45, 98, 0) 35%, rgba(4, 45, 98, 0.5) 100%); color: #ffffff; font: inherit; cursor: pointer; }
.ap-play-disc { position: relative; display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 999px; background: #ffffff; color: var(--ink); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55); flex: none; transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.ap-play-disc svg { width: 28px; height: 28px; margin-left: 4px; }
.ap-video-play .ap-play-disc::after { content: ""; position: absolute; inset: -10px; border-radius: inherit; border: 2px solid rgba(255, 255, 255, 0.7); animation: ap-play-ring 2.4s ease-out infinite; }
.ap-video-play:hover .ap-play-disc, .ap-video-play:focus-visible .ap-play-disc { transform: scale(1.07); }
.ap-video-play:focus-visible { outline: 3px solid #ffffff; outline-offset: -6px; }
.ap-play-label { padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; line-height: 20px; font-weight: 600; }
.ap-play-disc.is-xs { width: 40px; height: 40px; background: var(--ink); color: #ffffff; box-shadow: none; }
.ap-play-disc.is-xs svg { width: 16px; height: 16px; margin-left: 2px; }
.ap-video.is-playing .ap-video-play { display: none; }
@keyframes ap-play-ring { 0% { transform: scale(0.88); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 640px) { .ap-play-disc { width: 68px; height: 68px; } .ap-play-disc svg { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { .ap-video-play .ap-play-disc::after { animation: none; opacity: 0.6; } .ap-play-disc { transition: none; } }

/* Standalone buttons sit at their natural width, even inside a column */
.ap-btn.ap-solo { align-self: flex-start; }

/* Info chip: hover or tap for a short note, nothing to close */
.ap-tip { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); cursor: help; text-decoration: underline dotted rgba(4, 45, 98, 0.45); text-underline-offset: 4px; outline: none; }
.ap-tip > svg { width: 16px; height: 16px; flex: none; color: var(--pulse); }
.ap-tip-pop { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 30; width: 300px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #ffffff; font-size: 14px; line-height: 21px; font-weight: 400; text-align: left; text-decoration: none; white-space: normal; box-shadow: 0 18px 40px -16px rgba(4, 45, 98, 0.55); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms; pointer-events: none; }
.ap-tip-pop b { display: block; margin-bottom: 4px; font-weight: 600; }
.ap-tip-pop em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; line-height: 16px; opacity: 0.7; }
.ap-tip:hover .ap-tip-pop, .ap-tip:focus .ap-tip-pop { opacity: 1; visibility: visible; transform: none; }
.ap-tip.is-right .ap-tip-pop { left: auto; right: 0; }
.ap-tip.is-below .ap-tip-pop { bottom: auto; top: calc(100% + 10px); }
.ap-tip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .ap-tip-pop { transition: none; } }

/* A card for a page that isn't built yet: no lift, shows a short note on hover or tap */
.soon-card { position: relative; cursor: help; outline: none; }
.soon-card:hover { transform: none !important; box-shadow: none !important; }
.soon-card .ap-tip-pop { left: 16px; right: 16px; width: auto; bottom: calc(100% - 12px); }
.soon-card:hover .ap-tip-pop, .soon-card:focus .ap-tip-pop { opacity: 1; visibility: visible; transform: none; }
.soon-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* ---------- Site-wide fixes from the mobile audit (20 Nov 2026) ---------- */
/* The hidden attribute always wins, even over a component's own display rule (the cart relied on this). */
[hidden] { display: none !important; }

/* Some sections set their column split inline; on tablets and phones everything stacks to one column. */
@media (max-width: 900px) {
  .s-split, .split, .split-wide, .split-l, .s-hero, .close-grid, .band { grid-template-columns: minmax(0, 1fr) !important; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .foot { grid-template-columns: minmax(0, 1fr) !important; }
  /* Footer links: at least 40px tall so they're easy to tap */
  footer .foot a, footer a[href^="/"] { display: inline-flex; align-items: center; min-height: 40px; }
  footer .foot ul, footer .foot li { line-height: 1.2; }
  /* Phone numbers, email and short standalone links: a bigger tap area without moving the text */
  a[href^="tel:"], a[href^="mailto:"] { padding-block: 10px; margin-block: -10px; }
  .tap-pad { display: inline-flex; align-items: center; min-height: 44px; }
}
