/* ==========================================================================
   Sidewalk Repairs Bronx — Design System
   Vanilla CSS. No framework. Mobile-first. Optimised for Core Web Vitals.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --ink:            #0d1520;
  --ink-soft:       #1a2432;
  --ink-line:       #24303f;
  /* Brand blue sampled straight from the logo artwork (#28abe3).
     It is a light blue, so it carries DARK text (7.0:1) — never white (2.6:1).
     --brand-ink is the shade to use when the brand colour IS the text on a
     light surface (5.6:1 on white); --brand itself would fail there. */
  --brand:          #28abe3;
  --brand-dark:     #1583b4;
  --brand-ink:      #0f6f9c;
  --brand-soft:     #e8f6fd;
  --accent:         #0a5c84;

  /* Neutrals */
  --white:          #ffffff;
  --paper:          #f6f7f9;
  --paper-2:        #eef1f5;
  --line:           #e2e6ec;
  --text:           #1d2733;
  --text-muted:     #5b6779;
  --text-invert:    #ffffff;
  --text-invert-mut:#a8b3c2;

  /* Type */
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-lg:   1.0625rem;

  /* Fluid headings — no media queries needed, no CLS on resize */
  --h1: clamp(2.1rem, 1.35rem + 3.2vw, 3.75rem);
  --h2: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem);
  --h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --h4: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);

  /* Space */
  --gap:      1.25rem;
  --section:  clamp(3.25rem, 2rem + 5vw, 6rem);
  --shell:    1200px;
  --shell-pad: clamp(1rem, 0.5rem + 2vw, 2rem);

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(13,21,32,.06), 0 2px 8px rgba(13,21,32,.05);
  --sh-2: 0 2px 6px rgba(13,21,32,.06), 0 12px 28px rgba(13,21,32,.08);
  --sh-3: 0 8px 20px rgba(13,21,32,.10), 0 24px 56px rgba(13,21,32,.12);
  --sh-brand: 0 8px 22px rgba(40,171,227,.34);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 72px;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* The off-canvas drawer sits at translateX(100%), which otherwise widens the
   document. `clip` contains it WITHOUT making body a scroll container, so the
   sticky header keeps working; `hidden` is the fallback for older Safari. */
html, body { overflow-x: hidden; overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; display: block; }
/* Inline icons ship without width/height attrs — this is their default box.
   Every component rule below overrides it; without it an unstyled/failed-CSS
   state would blow one icon up to full viewport width. */
svg { width: 20px; height: 20px; flex: none; }
img { height: auto; border: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .6em; font-weight: 800; line-height: 1.18; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 700; }
h4 { font-size: var(--h4); font-weight: 700; }
p  { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-ink); }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: .5rem; }
b, strong { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--ink); }

/* ---------- 3. Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--shell-pad); }
.shell--wide { max-width: 1400px; }
.shell--narrow { max-width: 860px; }
.shell--article { max-width: 1100px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--text-invert-mut); }
.section--ink h1,.section--ink h2,.section--ink h3,.section--ink h4 { color: var(--white); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}

/* ---------- 4. Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-ink); border-radius: 2px; }
.section--ink .eyebrow::before { background: var(--brand); }
.section--ink .eyebrow { color: var(--brand); }

.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head p { color: var(--text-muted); font-size: var(--fs-lg); margin-bottom: 0; }
.section--ink .sec-head p { color: var(--text-invert-mut); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: var(--r-pill); border: 2px solid transparent;
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--brand); color: var(--ink); box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-dark); color: var(--ink); box-shadow: 0 12px 30px rgba(40,171,227,.44); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-soft); color: var(--white); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }

.btn--ghost-light { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* ---------- 6. Header / nav ---------- */
.topbar {
  background: var(--ink-soft); color: var(--text-invert-mut);
  font-size: var(--fs-xs); border-bottom: 1px solid var(--ink-line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar__list { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.topbar__list li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a { color: var(--text-invert-mut); }
.topbar a:hover { color: var(--brand); }
.topbar svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
.topbar__social { display: flex; gap: .75rem; align-items: center; }
.topbar__social img { width: 18px; height: 18px; object-fit: contain; opacity: .75; transition: opacity .18s var(--ease); }
.topbar__social a:hover img { opacity: 1; }

.site-header { position: sticky; top: 0; z-index: 90; background: var(--ink); transition: box-shadow .25s var(--ease); }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.nav__brand { display: flex; align-items: center; flex: none; }
.nav__brand img { width: 190px; height: 52px; object-fit: contain; }

.nav__menu { display: none; }
.nav__list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: block; padding: .6rem .9rem; border-radius: var(--r-pill);
  color: rgba(255,255,255,.82); font-weight: 600; font-size: var(--fs-sm);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav__link.is-active { color: var(--brand); }
.nav__cta { display: none; flex: none; }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 42px; padding: 0 11px; border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-sm); background: transparent; flex: none;
}
.nav__toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop mega-menu for Our Services */
.nav__has-menu { position: static; }
.nav__caret { width: 13px; height: 13px; margin-left: .3rem; vertical-align: -1px; transition: transform .2s var(--ease); }
.nav__has-menu > .nav__link { display: inline-flex; align-items: center; }
.megamenu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 95;
  background: var(--white); border-top: 3px solid var(--brand);
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__has-menu:hover .megamenu,
.nav__has-menu:focus-within .megamenu,
.nav__has-menu.is-open .megamenu { opacity: 1; visibility: visible; transform: none; }
.nav__has-menu:hover .nav__caret,
.nav__has-menu.is-open .nav__caret { transform: rotate(180deg); }
.megamenu__in {
  width: 100%; max-width: var(--shell); margin-inline: auto;
  padding: 2rem var(--shell-pad);
  display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 15rem;
}
/* Five groups flow across three columns; the CTA keeps its own fixed column. */
.megamenu__groups { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.megamenu__col h3 {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand-ink); margin-bottom: .85rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.megamenu__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.megamenu__col li { margin: 0; }
.megamenu__col a {
  display: block; padding: .4rem .5rem; margin-left: -.5rem; border-radius: var(--r-sm);
  color: var(--text); font-size: var(--fs-sm); font-weight: 600;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.megamenu__col a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.megamenu__cta { background: var(--paper); border-radius: var(--r); padding: 1.25rem; align-self: start; }
.megamenu__cta strong { display: block; color: var(--ink); margin-bottom: .35rem; }
.megamenu__cta p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1rem; }
.megamenu__cta .btn { width: 100%; }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 340px); z-index: 100;
  background: var(--ink); border-left: 1px solid var(--ink-line);
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; padding: 1.25rem; overflow-y: auto;
  visibility: hidden;
}
.nav__drawer.is-open { transform: translateX(0); visibility: visible; }
.nav__drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.nav__drawer-head img { width: 160px; height: 44px; object-fit: contain; }
.nav__close { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-sm); background: transparent; color: var(--white); font-size: 22px; line-height: 1; display: grid; place-items: center; }
.nav__drawer ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.nav__drawer li { margin: 0; border-bottom: 1px solid var(--ink-line); }
.nav__drawer a.nav__link { padding: .95rem .25rem; border-radius: 0; font-size: 1.05rem; }
.nav__sub summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.nav__sub summary::-webkit-details-marker { display: none; }
.nav__sub summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease);
}
.nav__sub[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.nav__sublist { list-style: none; margin: 0 0 .75rem; padding: 0 0 0 .25rem; }
.nav__sublist li { border-bottom: 0; margin: 0; }
.nav__sublist a {
  display: block; padding: .55rem .25rem; font-size: var(--fs-sm);
  color: rgba(255,255,255,.68); font-weight: 500;
}
.nav__sublist a:hover { color: var(--brand); }
.nav__drawer-foot { margin-top: auto; display: grid; gap: .6rem; }
.nav__scrim { position: fixed; inset: 0; background: rgba(4,8,14,.55); backdrop-filter: blur(2px); z-index: 99; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.nav__scrim.is-open { opacity: 1; visibility: visible; }

@media (min-width: 992px) {
  .nav__menu { display: block; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(9,14,21,.94) 0%, rgba(9,14,21,.88) 42%, rgba(9,14,21,.62) 72%, rgba(9,14,21,.5) 100%);
}
.hero__in { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3rem); padding-block: clamp(2rem, 1.4rem + 2vw, 3rem); align-items: center; }
.hero__copy { max-width: 640px; }
.hero__badge svg { width: 15px; height: 15px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem;
  background: rgba(40,171,227,.16); border: 1px solid rgba(40,171,227,.40);
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.1rem;
}
.hero h1 { color: var(--white); margin-bottom: .85rem; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { color: rgba(255,255,255,.82); font-size: var(--fs-lg); margin-bottom: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.35rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero__proof-item { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); color: rgba(255,255,255,.86); font-weight: 600; }
.hero__proof-item svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

@media (min-width: 992px) {
  .hero__in { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- 8. Quote form card ---------- */
.quote-card {
  background: var(--white); color: var(--text); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: clamp(1.25rem, 1rem + 1vw, 1.6rem); border-top: 5px solid var(--brand);
}
.quote-card__head { margin-bottom: .85rem; }
.quote-card__head h2 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.5rem); margin-bottom: .2rem; }
.quote-card__head p { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 520px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .22rem; }
.field--full { grid-column: 1 / -1; }
.field > label { font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); }

.control {
  width: 100%; padding: .65rem .9rem; font: inherit; font-size: var(--fs-sm); color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.control::placeholder { color: #8d97a6; }
.control:focus { outline: none; border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 4px rgba(40,171,227,.18); }
textarea.control { min-height: 74px; resize: vertical; }
select.control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 16px; padding-right: 2.4rem;
}
.control.is-invalid { border-color: #dc3545; background: #fff6f6; }
.field-error { font-size: var(--fs-xs); color: #c62828; font-weight: 600; }
.form-note { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; margin: .35rem 0 0; }

.alert { padding: .85rem 1.1rem; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 1rem; }
.alert--success { background: #e8f6ec; color: #1b5e20; border: 1px solid #b6e0c1; }

/* ---------- 9. Trust strip ----------
   The badge artwork is JPG with a hard white background, so this strip stays
   white — on any tinted surface each badge would read as a pasted white box. */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.trust-strip__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; align-items: center; }
@media (min-width: 768px) { .trust-strip__grid { grid-template-columns: repeat(4, 1fr); } }
.trust-badge { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.trust-badge img { height: 78px; width: auto; object-fit: contain; }
.trust-badge span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- 10. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); padding: clamp(1.25rem, 1rem + 1vw, 2rem) 1rem; text-align: center; }
/* Whole value in the accent colour, suffix (+ / star) included. */
.stat__num { display: block; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); font-weight: 800; color: var(--brand-ink); line-height: 1; letter-spacing: -.03em; }
.stat__num span { color: inherit; }
.stat__label { display: block; margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }

/* ---------- 11. Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 0; }
.card__icon {
  width: 54px; height: 54px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card__list { list-style: none; padding: 0; margin: 1rem 0 0; }
.card__list li { position: relative; padding-left: 1.55rem; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: .5rem; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand-ink);
}

/* Service card w/ media */
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.svc-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.svc-card__body p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1rem; }
.svc-card__link { margin-top: auto; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.svc-card__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.svc-card:hover .svc-card__link { color: var(--brand-ink); }
.svc-card:hover .svc-card__link svg { transform: translateX(4px); }

/* Service hub groups */
.svc-group { margin-bottom: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }
.svc-group:last-child { margin-bottom: 0; }
.svc-group__title {
  font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand-ink); margin-bottom: 1.25rem; padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}
.svc-group .card h4 { font-size: 1.1rem; margin-bottom: .5rem; }

/* ---------- 12. Split feature (text + image) ---------- */
.split { display: grid; gap: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .split--wide-text { grid-template-columns: 1.25fr .75fr; }
}
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__badge {
  position: absolute; bottom: -18px; left: 18px; background: var(--brand); color: var(--ink);
  padding: .8rem 1.25rem; border-radius: var(--r); font-weight: 800; font-size: var(--fs-sm);
  box-shadow: var(--sh-2); line-height: 1.3; max-width: 70%;
}
.split__body h3 { margin-top: 1.5rem; }
.split__body h3:first-of-type { margin-top: 1rem; }
.split__body p { color: var(--text-muted); }

/* Inline note list (bold term + text) */
.note-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .85rem; }
.note-list li {
  position: relative; padding: .9rem 1.1rem .9rem 1.1rem; margin: 0;
  background: var(--paper); border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm); color: var(--text-muted);
}
.note-list li b { display: block; color: var(--ink); margin-bottom: .15rem; }
.section--paper .note-list li { background: var(--white); }

/* ---------- 13. Process steps ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem 1.35rem 1.35rem; counter-increment: step; }
.step::before {
  content: "0" counter(step); position: absolute; top: -18px; left: 1.35rem;
  width: 44px; height: 36px; display: grid; place-items: center;
  background: var(--ink); color: var(--brand); font-weight: 800; font-size: var(--fs-sm);
  border-radius: var(--r-sm); letter-spacing: .04em;
}
.step h3 { font-size: 1.05rem; margin: .5rem 0 .4rem; }
.step p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.section--paper .step { border-color: transparent; box-shadow: var(--sh-1); }

/* ---------- 14. Feature list (why choose) ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(40,171,227,.16); color: var(--brand-ink); }
.section--ink .feature__icon { color: var(--brand); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature p { font-size: var(--fs-sm); margin: 0; }
.section--ink .feature p { color: var(--text-invert-mut); }

/* ---------- 15. Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  position: relative; display: block; overflow: hidden; border-radius: var(--r);
  background: var(--paper-2); aspect-ratio: 1 / 1; cursor: zoom-in;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover, .gallery__item:focus-visible { transform: translateY(-4px); box-shadow: var(--sh-2); }
.gallery__item:hover img { transform: scale(1.07); }

.gallery__veil {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .75rem; text-align: center; padding: 1rem;
  background: linear-gradient(to top, rgba(13,21,32,.86), rgba(13,21,32,.45));
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery__item:hover .gallery__veil,
.gallery__item:focus-visible .gallery__veil { opacity: 1; }
.gallery__zoom {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--ink);
  transform: translateY(8px); transition: transform .3s var(--ease);
}
.gallery__item:hover .gallery__zoom { transform: translateY(0); }
.gallery__zoom svg { width: 20px; height: 20px; }
.gallery__caption { color: var(--white); font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; }

/* ---------- 15b. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(6,10,16,.94); padding: clamp(1rem, 3vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; display: grid; gap: .9rem; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox__img {
  max-width: min(1100px, 100%); max-height: 78vh; width: auto; height: auto;
  border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.55); background: var(--ink-soft);
}
.lightbox__cap { color: rgba(255,255,255,.86); font-size: var(--fs-sm); font-weight: 600; text-align: center; }
.lightbox__count { color: rgba(255,255,255,.45); font-size: var(--fs-xs); }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox__btn:hover { background: var(--brand); color: var(--ink); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); }
.lightbox__prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 600px) {
  .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }
  .lightbox__btn { width: 42px; height: 42px; }
}

/* Projects page: a denser grid than the home strip, since there is more to show */
@media (min-width: 640px)  { .gallery--page { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .gallery--page { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .gallery--page { grid-template-columns: repeat(4, 1fr); } }
.gallery--page .gallery__item { aspect-ratio: 4 / 3; }

/* ---------- 16. Testimonials ---------- */
.tslider { position: relative; }
.tslider__track {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 1rem; margin-bottom: .25rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tslider__track::-webkit-scrollbar { display: none; }
.tslide { flex: 0 0 100%; scroll-snap-align: center; }
@media (min-width: 700px)  { .tslide { flex-basis: calc(50% - .625rem); } }
@media (min-width: 1040px) { .tslide { flex-basis: calc(33.333% - .834rem); } }

.tcard { background: var(--white); border-radius: var(--r); padding: 1.75rem; height: 100%; display: flex; flex-direction: column; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.section--paper .tcard, .section--ink .tcard { border-color: transparent; }
.tcard__stars { display: flex; gap: 3px; margin-bottom: .9rem; color: var(--brand-ink); }
.tcard__stars svg { width: 18px; height: 18px; }
.tcard__quote { font-size: var(--fs-base); color: var(--text); margin-bottom: 1.25rem; flex: 1; }
.tcard__meta { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tcard__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; font-size: var(--fs-sm); }
.tcard__name { font-weight: 700; color: var(--ink); line-height: 1.3; font-size: var(--fs-sm); }
.tcard__role { font-size: var(--fs-xs); color: var(--text-muted); }

.tslider__nav { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.tslider__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; transition: all .18s var(--ease); }
.tslider__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tslider__btn svg { width: 18px; height: 18px; }
.tslider__dots { display: flex; gap: .4rem; }
.tslider__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line); padding: 0; transition: all .2s var(--ease); }
.tslider__dot.is-active { background: var(--brand-ink); width: 26px; border-radius: var(--r-pill); }
.section--ink .tslider__btn { background: transparent; border-color: rgba(255,255,255,.25); color: var(--white); }
.section--ink .tslider__btn:hover { background: var(--white); color: var(--ink); }
.section--ink .tslider__dot { background: rgba(255,255,255,.25); }
.section--ink .tslider__dot.is-active { background: var(--brand); }

/* Google rating badge above the reviews */
.review-badge {
  display: inline-flex; align-items: center; gap: .9rem;
  margin: 0 auto clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  padding: .8rem 1.35rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.section--paper .review-badge { border-color: transparent; box-shadow: var(--sh-1); }
.review-badge:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); color: var(--ink); }
.review-badge__stars { display: inline-flex; gap: 2px; color: var(--brand-ink); }
.review-badge__stars svg { width: 17px; height: 17px; }
.review-badge__text { display: grid; line-height: 1.25; text-align: left; }
.review-badge__text strong { font-size: var(--fs-sm); color: var(--ink); }
.review-badge__text small { font-size: var(--fs-xs); color: var(--text-muted); }
.review-badge > svg:last-child { width: 16px; height: 16px; color: var(--text-muted); transition: transform .2s var(--ease); }
.review-badge:hover > svg:last-child { transform: translateX(3px); color: var(--brand-ink); }
/* The badge is inline-flex, so it needs a block wrapper to centre. */
.sec-head--center + .review-badge { display: flex; width: fit-content; }
@media (max-width: 420px) {
  .review-badge { gap: .6rem; padding: .7rem 1rem; }
  .review-badge__stars svg { width: 14px; height: 14px; }
}

/* ---------- 16b. Pricing ---------- */
.pricing { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.pricing__card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pricing__card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }

/* Middle card carries the emphasis: brand border, lift and a badge. */
.pricing__card.is-featured {
  border-color: var(--brand); box-shadow: var(--sh-3); padding-top: 2.25rem;
}
@media (min-width: 900px) { .pricing__card.is-featured { transform: scale(1.03); } }
@media (min-width: 900px) { .pricing__card.is-featured:hover { transform: scale(1.03) translateY(-4px); } }

.pricing__badge {
  position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--ink); white-space: nowrap;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: var(--r-pill); box-shadow: var(--sh-brand);
}

.pricing__name { font-size: 1.2rem; margin-bottom: .4rem; }
.pricing__for { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.15rem; min-height: 3.4em; }

.pricing__price {
  display: flex; flex-direction: column; gap: .1rem;
  padding: 1rem 0; margin-bottom: 1.15rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pricing__price strong {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); font-weight: 800;
  color: var(--brand-ink); line-height: 1.1; letter-spacing: -.02em;
}
.pricing__price span { font-size: var(--fs-sm); color: var(--text-muted); }

.pricing__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; align-content: start; }
.pricing__list li {
  display: flex; align-items: flex-start; gap: .55rem; margin: 0;
  font-size: var(--fs-sm); color: var(--text);
}
.pricing__list svg { width: 16px; height: 16px; flex: none; margin-top: .25em; color: var(--brand-ink); stroke-width: 3; }

.pricing__cta { margin-top: auto; width: 100%; }

@media (max-width: 640px) {
  .pricing__card { padding: 1.5rem 1.25rem 1.25rem; }
  .pricing__for { min-height: 0; }
}

/* ---------- 16c. Services slider (home page) ---------- */
.tslide--service { display: flex; }
@media (min-width: 700px)  { .tslide--service { flex-basis: calc(50% - .625rem); } }
@media (min-width: 1040px) { .tslide--service { flex-basis: calc(33.333% - .834rem); } }

.svc-slide {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-slide:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; color: var(--text); }

.svc-slide__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.svc-slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-slide:hover .svc-slide__media img { transform: scale(1.06); }
.svc-slide__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,21,32,.5), transparent 55%);
}
.svc-slide__icon {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--brand); color: var(--ink);
  display: grid; place-items: center;
}
.svc-slide__icon svg { width: 21px; height: 21px; }

.svc-slide__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.svc-slide__tag {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: .5rem;
}
.svc-slide h3 { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.3; }
.svc-slide p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 1.15rem; }
.svc-slide__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: var(--fs-sm); color: var(--ink);
}
.svc-slide__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.svc-slide:hover .svc-slide__link { color: var(--brand-ink); }
.svc-slide:hover .svc-slide__link svg { transform: translateX(4px); }

/* ---------- 17. FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 900px; margin-inline: auto; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.faq__item[open] { box-shadow: var(--sh-1); border-color: rgba(40,171,227,.55); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem; font-weight: 700; color: var(--ink); cursor: pointer;
  list-style: none; font-size: var(--fs-base); transition: background-color .18s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--paper); }
.faq__q::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6f9c' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(135deg); }
.faq__a { padding: 0 1.35rem 1.25rem; color: var(--text-muted); font-size: var(--fs-sm); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- 18. CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background: radial-gradient(600px circle at 15% 25%, var(--brand), transparent 60%),
              radial-gradient(500px circle at 85% 75%, var(--accent), transparent 60%);
}
.cta-band__in { display: grid; gap: 1.75rem; align-items: center; text-align: center; }
@media (min-width: 900px) { .cta-band__in { grid-template-columns: 1.4fr auto; text-align: left; } }
.cta-band h2 { color: var(--white); margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 620px; }
@media (max-width: 899px) { .cta-band p { margin-inline: auto; } }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- 18b. Mid-page CTA (service pages) ---------- */
.midcta {
  position: relative; background: var(--ink); color: var(--white);
  overflow: hidden; isolation: isolate;
  padding-block: clamp(2rem, 1.6rem + 2vw, 3rem);
}
.midcta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2;
  background: radial-gradient(520px circle at 12% 30%, var(--brand), transparent 62%),
              radial-gradient(520px circle at 88% 70%, var(--accent), transparent 62%);
}
.midcta__in { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .midcta__in { grid-template-columns: 1.25fr auto; } }
.midcta__copy h2 { color: var(--white); font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem); margin-bottom: .4rem; }
.midcta__copy p { color: rgba(255,255,255,.78); margin: 0; max-width: 56ch; font-size: var(--fs-sm); }
.midcta .eyebrow { color: var(--brand); }
.midcta .eyebrow::before { background: var(--brand); }

.midcta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.midcta__phone {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--white); font-weight: 800; font-size: 1.3rem; line-height: 1.1;
  white-space: nowrap;
}
.midcta__phone:hover { color: var(--brand); }
.midcta__phone svg {
  width: 42px; height: 42px; flex: none; padding: 11px; border-radius: 50%;
  background: rgba(40,171,227,.18); color: var(--brand);
}
.midcta__phone small {
  display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .15rem;
}
@media (max-width: 560px) {
  .midcta__actions { flex-direction: column; align-items: stretch; }
  .midcta__phone { justify-content: center; }
  .midcta__actions .btn { width: 100%; }
}

/* ---------- 19. Page header (inner pages) ---------- */
.page-head { position: relative; background: var(--ink); color: var(--white); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: hidden; isolation: isolate; text-align: center; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22;
  background: radial-gradient(700px circle at 25% 0%, var(--brand), transparent 55%),
              radial-gradient(700px circle at 80% 100%, var(--accent), transparent 55%);
}
.page-head h1 { color: var(--white); margin-bottom: .6rem; }
.page-head p { color: rgba(255,255,255,.78); max-width: 720px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; font-size: var(--fs-sm); }
.crumbs li { margin: 0; color: rgba(255,255,255,.65); display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,.35); }
.crumbs a { color: rgba(255,255,255,.85); font-weight: 600; }
.crumbs a:hover { color: var(--brand); }

/* ---------- 20. Prose (rich text: blog body, legal pages) ---------- */
.prose { font-size: 1.075rem; line-height: 1.78; color: var(--text); }
.article-body .prose > p,
.article-body .prose > ul,
.article-body .prose > ol { max-width: 68rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.25rem; margin-bottom: .75rem; }
.prose h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); margin-top: 1.75rem; margin-bottom: .6rem; }
.prose h4 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: .6rem; }
.prose li::marker { color: var(--brand-ink); }
.prose img { border-radius: var(--r); margin-block: 1.5rem; box-shadow: var(--sh-1); }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(10,92,132,.35); text-underline-offset: 3px; }
.prose blockquote { margin: 1.75rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--brand); background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.prose th { background: var(--paper); font-weight: 700; color: var(--ink); }

/* ---------- 21. Blog ---------- */
.post-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.35; }
.post-card__body h3 a { color: var(--ink); }
.post-card__body h3 a:hover { color: var(--brand-ink); }
.post-card__excerpt { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.15rem; }
.post-card__link { margin-top: auto; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.post-card__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.post-card__link:hover { color: var(--brand-ink); }
.post-card__link:hover svg { transform: translateX(4px); }

.post-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); }

/* ---------- 21b. Article (blog detail) ---------- */
.page-head--article { text-align: left; padding-block: clamp(2.25rem, 1.8rem + 2.5vw, 3.75rem); }
.page-head--article h1 { max-width: 26ch; }
.crumbs--top { justify-content: flex-start; margin: 0 0 1rem; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  font-size: var(--fs-sm); color: rgba(255,255,255,.72);
}
.article-meta li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.article-meta svg { width: 16px; height: 16px; color: var(--brand); }

.article-body { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.article-hero { margin: 0 0 clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.article-hero img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--sh-2); background: var(--paper-2);
}

.article-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.article-share { display: flex; align-items: center; gap: .6rem; }
.article-share span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-right: .15rem; }
.article-share a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.article-share a:hover { background: var(--brand); color: var(--ink); transform: translateY(-2px); }
.article-share svg { width: 17px; height: 17px; }

/* ---------- 21d. Pagination ---------- */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem; margin-top: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
}
.pager__btn, .pager__page, .pager__gap {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 44px; height: 44px; padding: 0 .95rem;
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 700; line-height: 1;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.pager__pages { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.pager__pages li { margin: 0; }
.pager__page { padding: 0 .6rem; }

a.pager__btn:hover, a.pager__page:hover {
  border-color: var(--brand); background: var(--brand-soft);
  color: var(--brand-ink); transform: translateY(-2px);
}
.pager__page.is-current {
  background: var(--brand); border-color: var(--brand); color: var(--ink);
  box-shadow: var(--sh-brand);
}
.pager__gap { border-color: transparent; background: none; color: var(--text-muted); min-width: 24px; padding: 0; }
.pager__btn.is-disabled { opacity: .4; cursor: not-allowed; background: var(--paper); }
.pager svg { width: 16px; height: 16px; }

.pager__count {
  margin: 1rem 0 0; text-align: center;
  font-size: var(--fs-sm); color: var(--text-muted);
}

/* On narrow phones drop the Prev/Next words and keep just the arrows,
   so the whole control still fits on one row. */
@media (max-width: 480px) {
  .pager__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pager__btn { padding: 0; min-width: 44px; }
  .pager__page { min-width: 40px; height: 40px; }
}

/* ---------- 22. Map embed (iframe is lazy-loaded, so it costs nothing until scrolled to) ---------- */
/* No min-height here: paired with aspect-ratio it forces the box WIDER than the
   viewport on phones (320px x 16/9 = 569px). Ratio alone scales cleanly. */
.map-embed { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); background: var(--paper-2); aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .map-embed { aspect-ratio: 16 / 9; } }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 23. Contact info cards ---------- */
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.info-card__icon { width: 46px; height: 46px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .35rem; font-weight: 700; }
.info-card p, .info-card a { font-size: var(--fs-sm); color: var(--text); margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.info-card a:hover { color: var(--brand-ink); }

/* ---------- 24. Areas served ---------- */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; }
.area-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.05rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  transition: all .18s var(--ease);
}
.area-chip svg { width: 15px; height: 15px; color: var(--brand-ink); flex: none; }
.area-chip:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.section--ink .area-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--white); }
.section--ink .area-chip:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.section--ink .area-chip:hover svg { color: var(--ink); }

/* ---------- 25. Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-invert-mut); padding-top: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.site-footer h3 { color: var(--white); font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.15rem; position: relative; padding-bottom: .6rem; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--brand); border-radius: 2px; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .65rem; font-size: var(--fs-sm); }
.site-footer a { color: var(--text-invert-mut); }
.site-footer a:hover { color: var(--brand); }
.footer-about img { width: 200px; height: 56px; object-fit: contain; margin-bottom: 1.1rem; }
.footer-about p { font-size: var(--fs-sm); margin-bottom: 1.15rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: .3rem; }
.footer-contact b { display: block; color: var(--white); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .1rem; }
/* Social — inline SVG brand marks, one shape per variant. */
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: var(--text-invert-mut);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social a:hover { background: var(--brand); color: var(--ink); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* bare: the slim utility bar — no chip, just the mark */
.social--bare { gap: .9rem; }
.social--bare a { width: auto; height: auto; background: none; border-radius: 0; color: var(--text-invert-mut); }
.social--bare a:hover { background: none; color: var(--brand); transform: none; }
.social--bare svg { width: 16px; height: 16px; }

/* light: on white sections */
.social--light a, .social--light-lg a { background: var(--paper-2); color: var(--ink); }
.social--light a:hover, .social--light-lg a:hover { background: var(--brand); color: var(--ink); }
.social--light-lg a { width: 54px; height: 54px; }
.social--light-lg svg { width: 22px; height: 22px; }

.certified { border-top: 1px solid var(--ink-line); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-block: 1.75rem; }
.certified h4 { color: var(--text-invert-mut); text-align: center; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 1.25rem; }
.certified ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.certified li { margin: 0; }
/* Accreditation logos keep their own colours on a light chip — inverting them
   flattens any logo whose artwork is a filled shape into a solid block. */
.certified a {
  display: grid; place-items: center;
  width: 132px; height: 64px; padding: .6rem .9rem;
  background: var(--white); border-radius: var(--r-sm);
  opacity: .82; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.certified a:hover { opacity: 1; transform: translateY(-2px); }
.certified img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }

.footer-bottom { border-top: 1px solid var(--ink-line); padding-block: 1.25rem; }
.footer-bottom__in { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--white); font-weight: 600; }

/* The global `b, strong { color: var(--ink) }` rule turns bold text near-black,
   which is invisible on the dark surfaces. Inherit the surface colour instead. */
.site-footer a b,
.section--ink b, .section--ink strong,
.midcta b, .midcta strong,
.cta-band b, .cta-band strong,
.page-head b, .page-head strong { color: inherit; }

/* ---------- 26. Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--ink-line); border-top: 1px solid var(--ink-line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .75rem; font-weight: 700; font-size: var(--fs-sm);
}
.callbar__call { background: var(--brand); color: var(--ink); }
.callbar__call:hover { color: var(--ink); }
.callbar__quote { background: var(--ink); color: var(--white); }
.callbar__quote:hover { color: var(--brand); }
.callbar svg { width: 18px; height: 18px; }
@media (min-width: 992px) { .callbar { display: none; } }
@media (max-width: 991px) { body { padding-bottom: 58px; } }

/* ---------- 27. Reveal on scroll (CLS-safe: no layout shift) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 21c. Service pages ---------- */
/* `.page-head p` (class + element) outranks a lone class, so this has to be
   scoped the same way or the paragraph spacing is zeroed out. */
.page-head p.page-head__lead { font-size: var(--fs-base); color: rgba(255,255,255,.8); max-width: 78ch; margin: 0 0 1.15rem; line-height: 1.7; }
.page-head p.page-head__lead:last-of-type { margin-bottom: 1.5rem; }
.page-head--article .page-head__lead { margin-left: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Key-facts panel — the "what NYC actually requires" summary near the top */
.keyfacts {
  display: grid; gap: 0; margin: 0 0 2rem;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white);
}
.keyfacts__head {
  display: flex; align-items: center; gap: .6rem;
  background: var(--ink); color: var(--white); padding: .85rem 1.25rem;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.keyfacts__head svg { width: 18px; height: 18px; color: var(--brand); }
.keyfacts dl { margin: 0; display: grid; }
.keyfacts dl > div {
  display: grid; grid-template-columns: 1fr; gap: .15rem;
  padding: .9rem 1.25rem; border-top: 1px solid var(--line);
}
.keyfacts dl > div:first-child { border-top: 0; }
@media (min-width: 640px) { .keyfacts dl > div { grid-template-columns: 15rem 1fr; gap: 1.25rem; align-items: baseline; } }
.keyfacts dt { font-weight: 700; color: var(--ink); font-size: var(--fs-sm); margin: 0; }
.keyfacts dd { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

/* Callout — used for the "what the rule actually says" notes */
.callout {
  display: grid; gap: .35rem; margin: 1.75rem 0; padding: 1.15rem 1.35rem;
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.callout strong:first-child { display: block; color: var(--ink); font-size: var(--fs-sm); letter-spacing: .02em; }
.callout p { margin: 0; color: var(--text); font-size: var(--fs-sm); }
.callout--warn { background: #fff5f5; border-left-color: #d9534f; }
.callout--warn strong:first-child { color: #a5322e; }

/* Spec table */
.prose .spec-table { display: block; overflow-x: auto; }
.spec-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 30rem; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--ink); color: var(--white); font-weight: 700; border-color: var(--ink); }
.spec-table tbody th { background: var(--paper); font-weight: 700; color: var(--ink); }

/* Official sources block */
.sources { margin: 2.5rem 0 0; padding: 1.35rem 1.5rem; background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); }
.sources h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .85rem; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sources li { margin: 0; font-size: var(--fs-sm); }
.sources a { font-weight: 600; }

/* Process steps inside prose */
.prose ol.process { counter-reset: pstep; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .85rem; }
.prose ol.process > li {
  counter-increment: pstep; position: relative; padding: .95rem 1.15rem .95rem 3.35rem;
  background: var(--paper); border-radius: var(--r-sm); margin: 0; color: var(--text-muted); font-size: var(--fs-sm);
}
.prose ol.process > li::before {
  content: counter(pstep); position: absolute; left: 1.1rem; top: .95rem;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.prose ol.process > li b { display: block; color: var(--ink); margin-bottom: .1rem; }

/* ---------- 27b. Mobile refinements ----------
   Measured on a real 390px viewport: the utility bar alone was eating 100px
   above the fold, and the desktop-scaled logo, hero copy and card padding left
   very little room for the actual offer. --------------------------------- */

@media (max-width: 991px) {
  /* Address, hours and socials all repeat in the footer, and the sticky call
     bar already covers the two actions a phone visitor wants. */
  .topbar { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }

  .nav { min-height: 62px; }
  .nav__brand img { width: 148px; height: 40px; }
  .nav__toggle { width: 42px; height: 38px; }

  /* Hero: same words, tighter frame */
  .hero__in { padding-block: 1.4rem; gap: 1.25rem; }
  .hero__badge { font-size: 11px; padding: .4rem .8rem; letter-spacing: .04em; }
  .hero__lead { font-size: var(--fs-sm); margin-bottom: 1.25rem; }
  .hero__actions { gap: .6rem; margin-bottom: 1.5rem; }
  .hero__actions .btn { width: 100%; }
  .hero__proof { gap: .7rem 1.25rem; padding-top: 1.25rem; }
  .hero__proof-item { font-size: var(--fs-xs); }

  /* Quote form: less air between fields so the CTA is reachable sooner */
  .quote-card { padding: 1.1rem; }
  .quote-card__head { margin-bottom: .8rem; }
  .form-grid { gap: .55rem; }
  .field { gap: .25rem; }
  .field > label { font-size: 11px; }
  .control { padding: .6rem .85rem; }
  textarea.control { min-height: 70px; }

  /* Trust badges: labels were wrapping to two lines and knocking the two
     grid rows out of alignment */
  .trust-strip__grid { align-items: start; gap: 1.25rem .75rem; }
  .trust-badge img { height: 62px; }
  .trust-badge span { font-size: 10.5px; letter-spacing: .04em; }

  .card, .step { padding: 1.15rem; }
  .card__icon { width: 44px; height: 44px; margin-bottom: .75rem; }
  .card__icon svg { width: 22px; height: 22px; }
  .step { padding-top: 1.6rem; }

  .sec-head { margin-bottom: 1.75rem; }
  .sec-head p { font-size: var(--fs-base); }

  .split { gap: 1.5rem; }
  .split__badge { position: static; display: inline-block; margin-top: .75rem; max-width: none; }

  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 100%; }

  .tcard { padding: 1.35rem; }
  .faq__q { padding: .95rem 1.1rem; font-size: var(--fs-sm); }
  .faq__a { padding: 0 1.1rem 1.1rem; }

  .article-foot { flex-direction: column; align-items: flex-start; }
}

/* Narrow phones (iPhone SE and down): the full phone number wrapped to two
   lines inside the sticky bar, which made the two halves different heights. */
@media (max-width: 380px) {
  .callbar a { font-size: 12.5px; gap: .35rem; padding: .9rem .5rem; white-space: nowrap; }
  .callbar svg { width: 16px; height: 16px; }
  .hero__badge { font-size: 10px; letter-spacing: .02em; }
}

/* ---------- 28. Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; left: 1rem; z-index: 200; background: var(--brand); color: var(--ink); padding: .7rem 1.25rem; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700; transition: top .2s var(--ease); }
.skip-link:focus { top: 0; color: var(--ink); }
