/* All Bergen Locksmiths — site styles
   Layout: one 1200px column; full-width color bands carry their own inner gutter.
   Tokens mirror the "All Bergen Locksmiths" design system (tokens.json v2). Light theme only, by design: the site matches the storefront sign. */

:root {
  color-scheme: light;
  /* color */
  --sign-blue: #2A4AAD;
  --blue-deep: #172B66;
  --sign-yellow: #F3CB3A;
  --blue-tint: #E8EDF8;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --ink: #15181F;
  --steel: #586170;
  --line: #DCE0E8;
  --on-blue: #FFFFFF;
  --on-blue-muted: #C9D3EE;
  --signal-red: #B3261E;
  /* type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* space */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  /* radius, shadow, size */
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(21, 24, 31, 0.08);
  --content-max: 1200px; --measure: 68ch; --rule-w: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 28px; }
img { max-width: 100%; display: block; }
a { color: var(--sign-blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--sign-blue); outline-offset: 2px; }
.on-blue :focus-visible, .site-footer :focus-visible { outline-color: var(--sign-yellow); }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 20; background: var(--sign-yellow); color: var(--ink); padding: var(--space-2) var(--space-4); font-weight: 600; }
.skip-link:focus { top: var(--space-2); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--content-max) + 2 * var(--space-8)); margin-inline: auto; padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: max(var(--space-8), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-8), env(safe-area-inset-right, 0px)); } }
.section { padding-block: var(--space-16); }
@media (min-width: 900px) { .section { padding-block: var(--space-24); } }
.section--white { background: var(--white); }
.section--tight { padding-block: var(--space-12); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.measure { max-width: var(--measure); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Type ---------- */
.label { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sign-blue); }
.on-blue .label { color: var(--sign-yellow); }
.display-xl { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 44px; letter-spacing: -0.01em; color: var(--blue-deep); }
@media (min-width: 640px) { .display-xl { font-size: 56px; line-height: 60px; letter-spacing: -0.015em; } }
.display-lg { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 40px; letter-spacing: -0.01em; color: var(--blue-deep); }
@media (min-width: 640px) { .display-lg { font-size: 40px; line-height: 44px; } }
.heading { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 34px; color: var(--blue-deep); }
.subheading { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.lead { font-size: 20px; line-height: 30px; color: var(--ink); max-width: 56ch; }
.body-sm { font-size: 15px; line-height: 24px; }
.muted { color: var(--steel); }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--space-4); }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--space-2); }

/* Section heading: eyebrow, heading, yellow rule */
.section-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-8); }
.section-head .rule { width: var(--rule-w); height: 4px; background: var(--sign-yellow); border: 0; margin: 0; }
.section-head p.intro { margin-top: var(--space-2); max-width: var(--measure); color: var(--steel); }
.on-blue .section-head .heading { color: var(--on-blue); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; padding: var(--space-3) 20px; border-radius: var(--radius-sm); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--sign-yellow); color: var(--ink); }
.btn--primary:hover { color: var(--ink); filter: brightness(0.94); }
.btn--secondary { background: transparent; color: var(--sign-blue); border-color: var(--sign-blue); }
.btn--secondary:hover { background: var(--sign-blue); color: var(--on-blue); }
.on-blue .btn--secondary { color: var(--on-blue); border-color: var(--on-blue); }
.on-blue .btn--secondary:hover { background: var(--blue-deep); color: var(--on-blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Lucide-style icons */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

/* ---------- Call bar ---------- */
.callbar { background: var(--sign-blue); color: var(--on-blue); font-size: 15px; line-height: 24px; }
.callbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-block: var(--space-2); }
.callbar__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); color: var(--on-blue-muted); }
.callbar__meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.callbar__meta .icon { width: 18px; height: 18px; }
.callbar__hours { display: none !important; }
@media (min-width: 720px) { .callbar__hours { display: inline-flex !important; } }
.phone { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: .02em; color: var(--sign-yellow); text-decoration: none; font-variant-numeric: tabular-nums; }
.phone:hover { color: var(--sign-yellow); text-decoration: underline; }
@media (min-width: 640px) { .phone { font-size: 26px; line-height: 30px; } }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; border: 2px solid var(--blue-deep); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; text-align: center; }
.wordmark__top { padding: 1px var(--space-3) 0; font-size: 16px; line-height: 22px; color: var(--sign-blue); }
.wordmark__band { padding: 0 var(--space-3); background: var(--sign-blue); color: var(--on-blue); font-size: 23px; line-height: 30px; }
.wordmark__foot { display: flex; justify-content: space-between; gap: var(--space-4); padding: 1px var(--space-3) 2px; background: var(--blue-deep); color: var(--sign-yellow); font-family: var(--font-sans); font-size: 10px; line-height: 13px; font-weight: 600; letter-spacing: .08em; }
.wordmark:hover .wordmark__top { color: var(--blue-deep); }

.nav-toggle { display: none; align-items: center; gap: var(--space-2); background: none; border: 2px solid var(--sign-blue); border-radius: var(--radius-sm); color: var(--sign-blue); font: 600 15px/20px var(--font-sans); padding: var(--space-2) var(--space-3); cursor: pointer; }
.nav-toggle .icon { width: 20px; height: 20px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-6); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding-block: var(--space-2); border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--sign-blue); }
.site-nav a[aria-current="page"] { color: var(--sign-blue); border-bottom-color: var(--sign-yellow); }
@media (max-width: 899px) {
  .js-nav .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--sign-yellow); padding-left: var(--space-3); }
  .js-nav .site-nav { display: none; }
  .js-nav .site-nav.is-open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { background: var(--white); }
.hero .wrap { display: grid; gap: var(--space-8); align-items: center; padding-block: var(--space-12) var(--space-12); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-12); padding-block: var(--space-16); } }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 24px; color: var(--steel); }
.hero__facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__facts .icon { width: 18px; height: 18px; color: var(--sign-blue); }

.page-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: var(--space-4); padding-block: var(--space-12); }
.crumbs { font-size: 14px; line-height: 20px; color: var(--steel); }
.crumbs a { color: var(--steel); }

/* Photo slots: replace each with a real photo from the shot list */
.photo-slot { margin: 0; position: relative; aspect-ratio: 4 / 3; max-width: 100%; width: 100%; border-radius: var(--radius-md); background: repeating-linear-gradient(135deg, var(--blue-tint) 0 14px, #DFE6F5 14px 28px); border: 1px solid var(--line); display: flex; align-items: flex-end; overflow: hidden; }
.photo-slot figcaption { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--white); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; color: var(--steel); }
.photo-slot figcaption .icon { width: 18px; height: 18px; color: var(--sign-blue); }
.photo-slot--wide { aspect-ratio: 3 / 2; }

/* ---------- Pillars ---------- */
.pillar { display: flex; flex-direction: column; gap: var(--space-3); }
.pillar__icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--sign-blue); color: var(--on-blue); display: grid; place-items: center; }
.pillar__icon .icon { width: 26px; height: 26px; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.card h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.card p { font-size: 15px; line-height: 24px; color: var(--steel); }
.card .tags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.card .tags li { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--blue-deep); background: var(--blue-tint); padding: 2px var(--space-2); border-radius: var(--radius-sm); }

/* Detail rows (service pages) */
.detail { display: grid; gap: var(--space-4); padding-block: var(--space-8); border-top: 1px solid var(--line); }
.detail:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-12); } }
.detail h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 30px; color: var(--blue-deep); }
.detail .prose { color: var(--ink); }

/* ---------- Shop panel ---------- */
.shop { display: grid; gap: var(--space-8); background: var(--blue-tint); border-radius: var(--radius-lg); padding: var(--space-6); }
@media (min-width: 900px) { .shop { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: var(--space-12); } }
.shop__copy { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.shop__copy .heading { margin-top: var(--space-1); }
.shop__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.shop__list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.shop__list .icon { width: 20px; height: 20px; color: var(--sign-blue); margin-top: 4px; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-6); font-size: 15px; line-height: 24px; align-content: start; }
.hours dt { color: var(--steel); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours .is-closed { color: var(--signal-red); }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.brands li { padding: var(--space-2) var(--space-3); border: 1px solid var(--steel); border-radius: var(--radius-sm); background: var(--white); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.brands li.is-authorized { border-color: var(--sign-blue); background: var(--sign-blue); color: var(--on-blue); }
.brands-note { margin-top: var(--space-4); font-size: 14px; line-height: 20px; color: var(--steel); display: flex; align-items: center; gap: var(--space-2); }
.brands-note i { display: inline-block; width: 14px; height: 14px; border-radius: var(--radius-sm); background: var(--sign-blue); }

/* ---------- Reviews ---------- */
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.review blockquote { margin: 0; font-style: italic; color: var(--ink); }
.review figcaption { margin-top: auto; font-size: 15px; line-height: 24px; color: var(--steel); }
.review figcaption b { color: var(--ink); font-weight: 600; }
.stars { display: flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--sign-yellow); stroke: var(--blue-deep); stroke-width: 1; }
.review--placeholder blockquote { color: var(--steel); }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.timeline li { border-top: 4px solid var(--sign-yellow); padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.timeline b { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 800; color: var(--sign-blue); font-variant-numeric: tabular-nums; }
.timeline span { font-size: 15px; line-height: 24px; }

/* ---------- Callout ---------- */
.callout { background: var(--blue-tint); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .callout { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--space-8); } }
.callout .heading { font-size: 24px; line-height: 30px; }

/* ---------- Call band ---------- */
.callband { background: var(--sign-blue); color: var(--on-blue); }
.callband .wrap { display: grid; gap: var(--space-6); padding-block: var(--space-12); align-items: center; }
@media (min-width: 900px) { .callband .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.callband h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 36px; color: var(--on-blue); }
.callband p { color: var(--on-blue-muted); margin-top: var(--space-2); }
.callband__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.callband .phone { font-size: 32px; line-height: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: var(--on-blue); font-size: 15px; line-height: 24px; }
.site-footer .wrap { padding-block: var(--space-12) var(--space-8); display: grid; gap: var(--space-8); }
.footer-cols { display: grid; gap: var(--space-8); }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { margin: 0 0 var(--space-3); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sign-yellow); }
.site-footer p, .site-footer dd, .site-footer dt { color: var(--on-blue-muted); }
.site-footer a { color: var(--on-blue); }
.site-footer a:hover { color: var(--sign-yellow); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.site-footer .hours dd { color: var(--on-blue); }
.site-footer .hours .is-closed { color: var(--on-blue-muted); }
.site-footer .phone { font-size: 24px; }
.footer-legal { border-top: 1px solid rgba(201, 211, 238, 0.25); padding-top: var(--space-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); font-size: 14px; line-height: 20px; color: var(--on-blue-muted); }
.footer-legal p { color: var(--on-blue-muted); }

/* ---------- Forms ---------- */
.contact-layout { display: grid; gap: var(--space-12); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.contact-facts { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-facts .fact { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-facts .fact .icon { color: var(--sign-blue); margin-top: 2px; }
.contact-facts .fact strong { display: block; font-size: 13px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: var(--space-1); }
.contact-facts .phone { color: var(--blue-deep); }
.contact-facts .phone:hover { color: var(--sign-blue); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-6); }
@media (min-width: 720px) { .form-card { padding: var(--space-8); } }
.form { display: grid; gap: var(--space-6); }
.form-row { display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label, .field legend { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); padding: 0; }
.field .help { font-size: 14px; line-height: 20px; color: var(--steel); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--white); border: 1px solid var(--steel); border-radius: var(--radius-sm); padding: 10px var(--space-3); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--sign-blue); outline-offset: 1px; border-color: var(--sign-blue); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: var(--space-2) var(--space-3); border: 1px solid var(--steel); border-radius: var(--radius-sm); font-size: 15px; line-height: 20px; font-weight: 600; background: var(--white); }
.choice input:checked + span { background: var(--sign-blue); border-color: var(--sign-blue); color: var(--on-blue); }
.choice input:focus-visible + span { outline: 2px solid var(--sign-blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: var(--space-4); border-radius: var(--radius-sm); font-size: 15px; line-height: 24px; }
.form-status.is-ok { background: var(--blue-tint); color: var(--blue-deep); }
.form-status.is-error { background: var(--white); border: 2px solid var(--signal-red); color: var(--ink); }
.form-status.is-error strong { color: var(--signal-red); }
.htmx-request .btn--primary { opacity: .7; cursor: progress; }
.site-footer .wordmark { align-self: flex-start; }

/* ---------- Key divider: a bitted key laid across the seam between two bands ---------- */
.keyrule { display: flex; align-items: center; gap: var(--space-4); height: 64px; padding-inline: max(var(--space-4), env(safe-area-inset-left, 0px)); background: linear-gradient(var(--white) 50%, var(--paper) 50%); overflow: hidden; }
.keyrule__line { flex: 1; height: 4px; background: var(--sign-yellow); border-radius: 2px; }
.keyrule__key { flex: none; width: 200px; height: 54px; overflow: visible; }
.keyrule .key-body { fill: var(--sign-yellow); stroke: var(--blue-deep); stroke-width: 2.5; stroke-linejoin: round; }
.keyrule .key-groove { fill: none; stroke: var(--blue-deep); stroke-width: 2; stroke-linecap: round; opacity: .55; }
@media (min-width: 720px) { .keyrule__key { width: 240px; height: 64px; } }

/* ---------- Locksmith pattern: keyholes, keys and padlocks in faint line art ---------- */
.pattern-keys { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%232A4AAD' stroke-opacity='0.075' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M40 24a9 9 0 0 1 5 16.5L49 60H31l4-19.5A9 9 0 0 1 40 24z'/%3E%3Cg transform='translate%28112 116%29 rotate%28-35%29'%3E%3Ccircle cx='-24' cy='0' r='10'/%3E%3Ccircle cx='-27' cy='0' r='3.5'/%3E%3Cpath d='M-14 -4H26L32 0L28 4H22L19 9H15L12 4H8L5 10H1L-2 4H-14z'/%3E%3C/g%3E%3Cg transform='translate%28120 38%29'%3E%3Cpath d='M-8 -2v-7a8 8 0 0 1 16 0v7'/%3E%3Crect x='-13' y='-2' width='26' height='21' rx='2'/%3E%3Ccircle cx='0' cy='7' r='2.5'/%3E%3Cpath d='M0 9.5v4'/%3E%3C/g%3E%3Cg transform='translate%2838 118%29 rotate%2820%29'%3E%3Crect x='-7' y='-12' width='14' height='24' rx='7'/%3E%3Cpath d='M0 -4a2.5 2.5 0 1 1 0 .1M0 -2v7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); background-size: 160px 160px; }
.pattern-keys--on-blue { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.1' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M40 24a9 9 0 0 1 5 16.5L49 60H31l4-19.5A9 9 0 0 1 40 24z'/%3E%3Cg transform='translate%28112 116%29 rotate%28-35%29'%3E%3Ccircle cx='-24' cy='0' r='10'/%3E%3Ccircle cx='-27' cy='0' r='3.5'/%3E%3Cpath d='M-14 -4H26L32 0L28 4H22L19 9H15L12 4H8L5 10H1L-2 4H-14z'/%3E%3C/g%3E%3Cg transform='translate%28120 38%29'%3E%3Cpath d='M-8 -2v-7a8 8 0 0 1 16 0v7'/%3E%3Crect x='-13' y='-2' width='26' height='21' rx='2'/%3E%3Ccircle cx='0' cy='7' r='2.5'/%3E%3Cpath d='M0 9.5v4'/%3E%3C/g%3E%3Cg transform='translate%2838 118%29 rotate%2820%29'%3E%3Crect x='-7' y='-12' width='14' height='24' rx='7'/%3E%3Cpath d='M0 -4a2.5 2.5 0 1 1 0 .1M0 -2v7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

/* ---------- Service cards: icon chip, lift on hover, whole card clickable ---------- */
.card__icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--blue-tint); color: var(--sign-blue); display: grid; place-items: center; margin-bottom: var(--space-2); transition: background-color .2s ease, color .2s ease; }
.card__icon .icon { width: 26px; height: 26px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.card__link { margin-top: auto; padding-top: var(--space-2); display: inline-flex; align-items: center; gap: var(--space-1); font-size: 15px; line-height: 24px; font-weight: 600; }
.card__link .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.card--link { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card--link:hover, .card--link:focus-within { transform: translateY(-4px); border-color: var(--sign-blue); box-shadow: 0 10px 24px rgba(23, 43, 102, 0.14); }
.card--link:hover .card__icon, .card--link:focus-within .card__icon { background: var(--sign-blue); color: var(--on-blue); }
.card--link:hover .card__icon .icon, .card--link:focus-within .card__icon .icon { transform: rotate(-18deg) scale(1.08); }
.card--link:hover .card__link .icon, .card--link:focus-within .card__link .icon { transform: translateX(4px); }
.card--link:active { transform: translateY(-1px); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--sign-blue); outline-offset: 2px; }

/* Cards rise into place as they scroll into view (browsers with scroll-driven animations; others show them static) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card, .pillar, .review { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes rise-in { from { opacity: .2; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .card--link:hover, .card--link:focus-within { transform: none; } .card__icon .icon, .card__link .icon { transition: none; } }

/* Granite build: inline field errors from the shared contact form. */
.field .field__error { color: var(--signal-red); font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--signal-red); }
