/* ============================================================
   NearMe Marketing — shared stylesheet
   Design system from the v2 mockups (Jun 2026).
   Served at /styles.css; asset URLs below resolve from root.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Aeonik";
  src: url("fonts/aeonik-light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("fonts/aeonik-regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("fonts/aeonik-bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink-dark: #171820;
  --ink: #1D273A;
  --ink-light: #27384C;
  --slate-dark: #8CA0BC;
  --slate: #A8AFC3;
  --slate-light: #BBC5D8;
  --berry: #CB1542;
  /* berry lightened to clear WCAG AA 4.5:1 on --ink (4.76:1). Use anywhere the
     accent sits on a dark ground; --berry itself only clears 2.65:1 there. */
  --berry-on-dark: #F0607E;
  /* faint UI text that must still clear 4.5:1 on white (4.56:1) */
  --slate-deep: #6E7688;
  --frost: #F6F6F6;
  --frost-dark: #EEEEEE;
  --dune-light: #F2E6DD;
  --white: #FFFFFF;
  --c-muted: #5a6273;
  --c-line: rgba(23, 24, 32, .08);
  --font-sans: "Aeonik", "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --w-container: 1240px;
  --w-narrow: 880px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400; color: var(--ink-dark);
  background: var(--white); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- focus ----------
   Every interactive element gets a visible ring that clears 3:1 against the
   surface behind it (WCAG 1.4.11). Ink on light grounds, white on dark ones. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero a:focus-visible,
.hero button:focus-visible,
.cta-banner a:focus-visible,
.services a:focus-visible,
body:not(.page-light) .site-header a:focus-visible,
body:not(.page-light) .site-header button:focus-visible {
  outline-color: var(--white);
}

/* ---------- skip link (WCAG 2.4.1) ---------- */
/* `fixed`, not `absolute`: absolute anchors it to the document, so a page
   restored mid-scroll would focus a link sitting off-screen above the fold. */
/* White rule around the dark pill so it reads as a distinct element on the dark
   hero as well as on the light inner pages. */
.skip-link {
  position: fixed; left: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 22px; border-radius: 0 0 10px 10px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: top .15s ease;
}
.skip-link:focus { top: 0; outline: none; }
main:focus { outline: none; }

.container {
  max-width: var(--w-container);
  margin: 0 auto; padding: 0 32px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  letter-spacing: .2px; text-decoration: none; border: 0; cursor: pointer;
  padding: 18px 32px; border-radius: 999px; min-height: 56px;
  transition: background-color .18s ease, transform .12s ease; white-space: nowrap;
}
.btn-sm {
  padding: 13px 26px; font-size: 15px; min-height: 44px;
  letter-spacing: .3px;
}
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--dune-light); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-light); transform: translateY(-1px); }
.btn-berry { background: var(--berry); color: var(--white); }
.btn-berry:hover { background: #b91646; transform: translateY(-1px); }

/* ---------- header — base (floats on every page) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20; padding: 22px 0;
  transition: background-color .18s ease, padding .18s ease, box-shadow .18s ease;
}
/* scrolled state: solid white bar, dark logo and nav, on every page */
.site-header.is-scrolled {
  background: var(--white); padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 6px 20px rgba(23, 24, 32, .06);
}
.site-header.is-scrolled .brand-logo-light { display: none; }
.site-header.is-scrolled .brand-logo { display: inline-block; }
.site-header.is-scrolled .primary-nav a { color: var(--ink-dark); }
.site-header.is-scrolled .primary-nav .btn-header { background: var(--ink); color: var(--white); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
/* anchors land below the floating bar */
html { scroll-padding-top: 96px; }
[id] { scroll-margin-top: 96px; }

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  border: 2px solid rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background-color .18s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--berry); }
.back-to-top:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .back-to-top { transition: none; }
}
.header-inner {
  max-width: var(--w-container); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo, .brand-logo-light { height: 48px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav a {
  text-decoration: none; font-size: 17px; font-weight: 400;
  transition: opacity .15s ease;
}
.primary-nav a:not(.btn):hover { opacity: .75; }

/* dark hero pages (default) — white logo, white nav */
.brand-logo { display: none; }
.primary-nav a { color: var(--white); }
.primary-nav .btn-header { background: var(--white); color: var(--ink); }

/* light pages — dark logo, dark nav, sticky bar that stays in flow */
body.page-light .site-header { position: sticky; top: 0; background: var(--white); border-bottom: 1px solid var(--c-line); }
body.page-light .brand-logo-light { display: none; }
body.page-light .brand-logo { display: inline-block; }
body.page-light .primary-nav a { color: var(--ink-dark); }
body.page-light .primary-nav .btn-header { background: var(--ink); color: var(--white); }

/* mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); }
body.page-light .nav-toggle span { background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  color: var(--white); background-color: var(--ink);
  background-image:
    linear-gradient(rgba(29, 39, 58, .94), rgba(29, 39, 58, .12)),
    linear-gradient(115deg, var(--ink) 46%, rgba(29, 39, 58, 0) 158%),
    url("assets/pattern-ink-wide.svg");
  /* One 4x tile (same pin scale as the old 640px repeat) sized to at least the viewport, so no tile seams. */
  background-size: auto, auto, max(2560px, 100%) auto;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, top right;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 180px; z-index: 1;
  background: linear-gradient(to bottom, rgba(17, 18, 26, .85) 0%, rgba(23, 24, 32, .4) 60%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 168px 32px 96px;
  max-width: var(--w-container); margin: 0 auto;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-eyebrow {
  font-size: 15px; font-weight: 400; color: var(--slate-light);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
.hero h1 {
  color: var(--white); font-family: var(--font-sans);
  font-weight: 700; font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.0; max-width: 16ch; margin: 0 0 36px;
  letter-spacing: -.005em;
}
.hero h1 .hero-kicker {
  display: block; font-size: clamp(15px, 1.4vw, 18px); font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; color: var(--berry-on-dark);
  margin-bottom: 14px;
}
.hero-sub {
  color: var(--slate-light); font-size: clamp(16px, 1.4vw, 18px);
  margin: 0 0 36px; max-width: 36ch;
}

/* ---------- logo wall (homepage, under hero) ----------
   HeyReach pattern: fixed logo boxes, a proof pill under linked logos, and a hover/focus card
   anchored above the logo with the testimonial or case-study summary. Cards are display:none
   under 720px (no hover on touch); the cell link still reaches the proof. */
.logo-wall { background: var(--white); padding: 48px 0 44px; border-bottom: 1px solid var(--frost-dark); }
.logo-wall-label {
  text-align: center; text-transform: uppercase; letter-spacing: .8px;
  font-size: 14px; font-weight: 600; color: var(--ink-dark); margin: 0 0 26px;
}
.logo-wall-grid {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 22px 12px;
}
.logo-wall-grid li { display: flex; position: relative; }
.logo-cell {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 156px; text-decoration: none; color: inherit;
}
.logo-box {
  display: flex; align-items: center; justify-content: center;
  width: 140px; height: 44px;
}
.logo-box img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  opacity: .7; filter: grayscale(100%);
  transition: opacity .18s ease, filter .18s ease;
}
.logo-box img[src*="solimano"] { max-height: 24px; } /* 161x23 source; keep it near 1x */
.logo-box img[src*="client-dml"] { max-height: 36px; }
.logo-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--berry); border: 1px solid var(--berry); border-radius: 999px;
  padding: 3px 9px; line-height: 1.2; white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.logo-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
a.logo-cell:hover img, a.logo-cell:focus-visible img { opacity: 1; filter: grayscale(0); }
a.logo-cell:hover > .logo-pill, a.logo-cell:focus-visible > .logo-pill { background: var(--berry); color: var(--white); }
.logo-cell:not(a):hover img { opacity: 1; filter: grayscale(0); }

/* hover card */
.logo-pop {
  position: absolute; left: 50%; bottom: 100%; z-index: 30;
  width: 340px; padding-bottom: 10px; /* the gap stays hoverable so the pointer can travel into the card */
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
a.logo-cell:hover .logo-pop, a.logo-cell:focus-within .logo-pop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0); transition-delay: 0s;
}
.logo-wall-grid li:first-child .logo-pop, .logo-wall-grid li:nth-child(2) .logo-pop { left: 0; transform: translate(0, 6px); }
.logo-wall-grid li:first-child a.logo-cell:hover .logo-pop, .logo-wall-grid li:nth-child(2) a.logo-cell:hover .logo-pop,
.logo-wall-grid li:first-child a.logo-cell:focus-within .logo-pop, .logo-wall-grid li:nth-child(2) a.logo-cell:focus-within .logo-pop { transform: translate(0, 0); }
.logo-wall-grid li:last-child .logo-pop, .logo-wall-grid li:nth-last-child(2) .logo-pop { left: auto; right: 0; transform: translate(0, 6px); }
.logo-wall-grid li:last-child a.logo-cell:hover .logo-pop, .logo-wall-grid li:nth-last-child(2) a.logo-cell:hover .logo-pop,
.logo-wall-grid li:last-child a.logo-cell:focus-within .logo-pop, .logo-wall-grid li:nth-last-child(2) a.logo-cell:focus-within .logo-pop { transform: translate(0, 0); }
.logo-pop-card {
  display: flex; flex-direction: column; gap: 14px; text-align: left;
  background: var(--white); color: var(--ink-dark);
  border: 1px solid var(--c-line); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(23, 24, 32, .16), 0 2px 6px rgba(23, 24, 32, .06);
}
.logo-pop-card::after { /* caret */
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 12px; height: 12px;
  background: var(--white); border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  transform: translateX(-50%) rotate(45deg);
}
.logo-wall-grid li:first-child .logo-pop-card::after, .logo-wall-grid li:nth-child(2) .logo-pop-card::after { left: 78px; }
.logo-wall-grid li:last-child .logo-pop-card::after, .logo-wall-grid li:nth-last-child(2) .logo-pop-card::after { left: auto; right: 72px; transform: rotate(45deg); }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pop-head img { height: 26px; width: auto; max-width: 150px; object-fit: contain; }
.pop-head img[src*="solimano"] { height: 20px; }
.pop-head .logo-pill { font-size: 10px; padding: 2px 8px; }
.pop-quote { font-size: 15px; line-height: 1.55; color: var(--ink-dark); }
.pop-author { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.4; }
.pop-author strong { font-weight: 700; color: var(--ink-dark); }
.pop-author span { color: var(--c-muted); }
.pop-stats { display: flex; gap: 10px; }
.pop-stats > span {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 2px;
  background: var(--frost); border-radius: 10px; padding: 10px 12px;
  font-size: 12px; line-height: 1.35; color: var(--c-muted);
}
.pop-stats b { font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--ink-dark); letter-spacing: -.01em; }
.pop-link { font-size: 13.5px; font-weight: 700; color: var(--berry); }
@media (max-width: 720px) {
  .logo-wall { padding: 34px 0 30px; }
  .logo-wall-grid { gap: 18px 4px; }
  .logo-cell { width: 108px; gap: 6px; }
  .logo-box { width: 100px; height: 34px; }
  .logo-box img[src*="solimano"] { max-height: 20px; }
  .logo-box img[src*="client-dml"] { max-height: 30px; }
  .logo-pill { font-size: 10px; padding: 2px 7px; }
  .logo-pop { display: none; }
}

/* ---------- proof / stats ---------- */
.proof { padding: 120px 0 100px; }
.proof .section-title {
  text-align: center; font-size: clamp(34px, 4vw, 52px);
  font-weight: 700; line-height: 1.1; max-width: 22ch;
  margin: 0 auto 56px;
}
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 56px;
}
.stat-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; text-align: center;
  padding: 48px 32px; background: var(--frost); border-radius: 12px;
  min-height: 240px;
}
.stat-num {
  font-weight: 700; font-size: clamp(44px, 4.2vw, 56px);
  line-height: 1.1; color: var(--ink-dark); letter-spacing: -.01em;
}
.stat-label { color: var(--c-muted); font-size: 15px; max-width: 22ch; line-height: 1.5; }
.stat-logo {
  margin-top: 10px; height: 34px; width: auto; opacity: .7;
  filter: grayscale(100%); transition: opacity .18s ease, filter .18s ease;
}
.stat-card:hover .stat-logo { opacity: 1; filter: grayscale(0); }

/* ---------- testimonial ---------- */
.testimonial-section { padding: 80px 0 120px; }
.testimonial {
  position: relative; max-width: 800px; margin: 0 auto; text-align: center;
  scroll-margin-top: 110px; /* sticky header clearance for #testimonial-* anchors */
}
.testimonial + .testimonial { margin-top: 72px; }
.testimonial .quotes-mark {
  width: 36px; height: auto; position: absolute; top: 0; opacity: .85;
}
.testimonial .quotes-open, .testimonial .quotes-left { left: -8px; }
.testimonial .quotes-close, .testimonial .quotes-right { right: -8px; transform: scaleX(-1); }
.testimonial blockquote { margin: 0; padding: 0 56px; }
.testimonial blockquote p {
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55;
  color: var(--ink-dark); margin: 0 0 28px;
}
.testimonial blockquote p strong { font-weight: 700; }
.testimonial blockquote footer {
  font-size: 14px; color: var(--c-muted); line-height: 1.5;
}
.testimonial blockquote footer span { color: var(--ink-dark); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(29, 39, 58, .88), rgba(29, 39, 58, .88)),
    url("assets/pattern-ink-wide.svg");
  background-size: auto, max(2560px, 100%) auto;
  background-repeat: no-repeat, no-repeat;
  background-position: center, top right;
  padding: 110px 2rem; text-align: center;
}
.cta-banner .cta-lead { color: var(--slate-light); font-size: 15px; margin-bottom: 12px; }
.cta-banner h2 {
  color: var(--white); font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.1; margin: 0 auto 2rem;
  max-width: 22ch;
}

/* ---------- work cards ---------- */
.work { padding: 120px 0; }
.work .section-title {
  text-align: center; font-size: clamp(34px, 4vw, 52px);
  font-weight: 700; line-height: 1.1; margin: 0 auto 64px;
}
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card {
  background: var(--white); border: 1px solid var(--c-line);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(23, 24, 32, .08);
}
.work-card-image {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--dune-light);
}
.work-card-image img { width: 100%; height: 100%; object-fit: cover; }
.work-card-body {
  padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1;
}
.work-card-date {
  display: block; font-size: 13px; color: var(--c-muted);
  letter-spacing: .3px; text-transform: uppercase;
}
.work-card-body h3 {
  margin: 0; font-size: 20px; font-weight: 700;
  color: var(--ink-dark); line-height: 1.2;
}
.work-card-body p {
  color: var(--c-muted); font-size: 15px; margin: 0; flex: 1; line-height: 1.5;
}
.work-card-body .btn {
  align-self: flex-start; margin-top: 6px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  padding: 8px 16px; min-height: 32px;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--c-line); padding: 40px 0 32px; }
.footer-inner {
  max-width: var(--w-container); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: inline-flex; align-items: center; text-decoration: none; }
.footer-logo { height: 36px; width: auto; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { text-decoration: none; color: var(--ink-dark); font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: var(--berry); }
.footer-meta { font-size: 13px; color: var(--c-muted); display: flex; align-items: center; gap: 22px; }
.footer-meta a { text-decoration: none; color: var(--c-muted); }
.footer-meta a:hover { color: var(--ink-dark); }

/* ============================================================
   Inner-page primitives (light pages)
   ============================================================ */

/* page-hero: compact intro band for light inner pages */
.page-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--c-line); }
.page-hero .container { max-width: var(--w-narrow); }
.page-hero .eyebrow {
  text-transform: uppercase; letter-spacing: .5px; font-size: 14px;
  color: var(--berry); font-weight: 700; margin: 0 0 14px;
}
.page-hero h1 {
  font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; line-height: 1.05;
  letter-spacing: -.01em; margin: 0 0 18px; color: var(--ink-dark);
}
.page-hero .lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--c-muted); margin: 0; }

/* prose: article / long-form body */
.prose { max-width: var(--w-narrow); margin: 0 auto; padding: 64px 32px 96px; font-size: 18px; line-height: 1.65; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.15; margin: 56px 0 18px; letter-spacing: -.005em; }
.prose h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; margin: 40px 0 14px; }
/* `inherit`, not a hard colour: these resolve to --ink-dark from <body> as before,
   but no longer override a light-on-dark card that wraps them. */
.prose p { margin: 0 0 22px; color: inherit; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; color: inherit; }
.prose li { margin: 0 0 10px; }
.prose a { color: var(--berry); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 700; }
.prose img { border-radius: 12px; margin: 32px auto; }
.prose figure { margin: 36px 0; }
.prose figcaption { font-size: 13px; color: var(--c-muted); text-align: center; margin-top: 12px; }
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--berry);
  font-size: 19px; color: var(--ink); font-style: italic;
}
/* testimonial blockquotes inside articles keep the testimonial layout, not the pull-quote style */
.prose .testimonial blockquote {
  margin: 0; padding: 0 56px; border-left: 0; font-style: normal;
}

/* article meta line */
.article-meta { font-size: 14px; color: var(--c-muted); margin: 0 0 8px; }

/* simple content block (about / generic light section) */
.content-block { padding: 80px 0; }
.content-block .container { max-width: var(--w-narrow); }
.content-block h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; margin: 0 0 22px; line-height: 1.15; }
.content-block p { color: var(--ink-dark); margin: 0 0 22px; }
.content-block p:last-child { margin-bottom: 0; }

/* ---------- featured-in strip (logo row) ---------- */
.featured { background: var(--white); padding: 44px 0 48px; border-bottom: 1px solid var(--frost-dark); }
.featured .featured-strip { margin-top: 0; }
.featured-strip {
  margin-top: 52px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 14px 36px;
}
.featured-strip .featured-label {
  flex-basis: 100%; text-align: center;
  text-transform: uppercase; letter-spacing: .8px; font-size: 14px; font-weight: 600;
  color: var(--ink-dark); margin-bottom: 8px;
}
.featured-strip img {
  height: 40px; width: auto; opacity: .7;
  filter: grayscale(100%); transition: opacity .18s ease, filter .18s ease;
}
.featured-strip img[src*="cba-bc"] { height: 50px; }
.featured-strip img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- two engines: paid + organic (homepage) ---------- */
.engines { background: var(--frost); padding: 110px 0 120px; }
.engines .section-title {
  text-align: center; font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700; line-height: 1.1; max-width: 20ch; margin: 0 auto 16px;
}
.engines-sub {
  text-align: center; color: var(--c-muted); font-size: 17px;
  line-height: 1.6; max-width: 66ch; margin: 0 auto 56px;
}
.engines-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.engine-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border-radius: 12px; padding: 38px 34px 30px;
  box-shadow: 0 18px 44px rgba(15, 16, 24, .08);
}
.engine-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--white);
  border-radius: 999px; padding: 4px 14px;
  text-transform: uppercase; letter-spacing: .6px;
}
.engine-tag-paid { background: var(--berry); }
.engine-tag-organic { background: var(--ink); }
.engine-card h3 {
  margin: 4px 0 0; font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700; line-height: 1.15; color: var(--ink-dark);
}
.engine-headline { margin: 0; font-size: 15px; font-weight: 700; color: var(--berry); }
.engine-list {
  list-style: none; margin: 8px 0 0; padding: 0; flex: 1;
  display: flex; flex-direction: column; gap: 16px;
}
.engine-list li {
  position: relative; padding-left: 26px;
  color: var(--c-muted); font-size: 15px; line-height: 1.55;
}
.engine-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--berry);
}
.engine-list li strong { color: var(--ink-dark); font-weight: 700; }
.engine-cred {
  display: flex; align-items: center; gap: 16px;
  margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--c-line);
}
.engine-cred p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--c-muted); }
.engine-cred p strong { color: var(--ink-dark); font-weight: 700; }
.engine-cred-mark {
  flex: none; width: 72px; height: 69px; border-radius: 8px;
  border: 1px solid var(--c-line); background: var(--frost);
  display: flex; align-items: center; justify-content: center; color: var(--slate-dark);
}
.engine-cred-mark svg { width: 30px; height: 30px; }

/* hero credential (homepage, above the fold) */
.hero-cred { display: flex; align-items: center; gap: 18px; margin-top: 38px; }
.hero-cred-note {
  margin: 0; font-size: 14.5px; line-height: 1.45;
  color: var(--slate-light); max-width: 34ch;
}
.gp-footnote-ref { color: var(--slate-light); text-decoration: none; font-size: 13px; line-height: 1; padding: 0 3px; }
.gp-footnote-ref:hover { color: var(--white); }
.gp-footnote-ref-inline { color: var(--c-muted); font-size: 13px; margin-left: 2px; }
.gp-footnote-dark { color: var(--c-muted); }
.gp-footnote-dark:hover { color: var(--ink-dark); }

/* ---------- services (dark sequence band) ---------- */
.services {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(29, 39, 58, .92), rgba(29, 39, 58, .92)),
    url("assets/pattern-ink-wide.svg");
  background-size: auto, max(2560px, 100%) auto;
  background-repeat: no-repeat, no-repeat;
  background-position: center, top right;
  padding: 100px 0 110px;
}
.services .section-title {
  color: var(--white); text-align: center;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700; line-height: 1.1; margin: 0 auto 56px;
}
.services-flow { display: flex; align-items: stretch; gap: 10px; }
.service-card {
  flex: 1; display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  background: var(--white); border-radius: 12px;
  padding: 30px 26px 24px;
  box-shadow: 0 22px 48px rgba(15, 16, 24, .35);
  transition: transform .18s ease;
}
.service-card:hover { transform: translateY(-4px); }
.service-card .service-step {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--white);
  background: var(--berry); border-radius: 999px; padding: 4px 14px;
  text-transform: uppercase; letter-spacing: .6px;
}
.service-card h3 { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: var(--ink-dark); line-height: 1.2; }
.service-card p { margin: 0; color: var(--c-muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.service-card .service-link { font-size: 13.5px; font-weight: 700; color: var(--ink-dark); }
.service-card:hover .service-link { color: var(--berry); }
.service-arrow { display: flex; align-items: center; flex: none; color: var(--berry); }
.service-arrow svg { width: 24px; height: 24px; }

/* ---------- footer credentials (Google Partner) ---------- */
.footer-credentials {
  flex-basis: 100%; display: flex; align-items: center; gap: 20px;
  padding: 20px 0; margin-top: 4px; border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
}
/* No opacity here: --c-muted is 6.12:1 on white, but at .8 it drops to 3.9:1. */
.tm-note { flex-basis: 100%; font-size: 11px; max-width: none; }
/* Official Google Partner badge asset (served from gstatic per Partners ToS).
   The asset is a self-contained white card with its own border; never restyle,
   recolour, or crop it. Size only. */
.gp-badge-official {
  display: inline-block; flex: none; line-height: 0; text-decoration: none;
  transition: opacity .18s ease;
}
.gp-badge-official:hover { opacity: .85; }
/* The asset carries a viewBox but no intrinsic width/height, so it must be sized
   in CSS; `width: auto` collapses it. Aspect ratio 152:145.5 is preserved. */
.gp-badge-official img { display: block; width: 72px; height: auto; }
.hero-cred .gp-badge-official img { width: 88px; }
.gp-disclaimer { margin: 0; font-size: 12px; color: var(--c-muted); line-height: 1.5; max-width: 62ch; }
.gp-disclaimer a { color: var(--c-muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .engines-grid { grid-template-columns: 1fr; }
  .services-flow { flex-direction: column; align-items: stretch; gap: 6px; }
  .service-arrow { justify-content: center; transform: rotate(90deg); padding: 4px 0; }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 12px 22px 20px;
  }
  body.page-light .primary-nav,
  .site-header.is-scrolled .primary-nav { background: var(--white); border-bottom: 1px solid var(--c-line); }
  .primary-nav.is-open { display: flex; }
  .back-to-top { right: 14px; bottom: 14px; }
  .primary-nav a { padding: 12px 0; }
  .primary-nav .btn-header { margin-top: 8px; align-self: flex-start; padding: 10px 20px; }
  .hero-inner { padding: 140px 22px 80px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-credentials { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; }
  .engines { padding: 72px 0 80px; }
  .engine-card { padding: 30px 24px 26px; }
  .hero-cred { flex-wrap: wrap; gap: 14px; }
  .hero-cred-note { max-width: none; }
  .prose { padding: 48px 22px 72px; }
  .testimonial blockquote, .prose .testimonial blockquote { padding: 0 8px; }
  .testimonial .quotes-mark { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
