/* =========================================================
   Northview: 2026-09-11 homepage rebuild.

   Built to Hayden's two mockup screenshots in "New website assets":
   a centred, oversized condensed headline over a dark field, one filled
   accent CTA beside one outlined CTA, and a full-bleed row of search-result
   cards running under it.

   FRONT PAGE ONLY. Enqueued in functions.php behind is_front_page() and
   loaded last, so every rule here wins over styles.css / attio.css without
   either of them being edited. Deleting the enqueue block reverts the page.

   Palette is unchanged: the tokens in styles.css :root are used throughout
   and no new colour is introduced. The mockup's lime is Northview mint.
   ========================================================= */

/* ---------------------------------------------------------
   1. Hero
   --------------------------------------------------------- */

/* The old hero was a centred flex ROW carrying a portrait and a ticker.
   This one is a single centred column. `.hero` stays the positioning
   context for `.hero__bg`, which is untouched: the teal wash is the
   brand background and it still animates in. */
.hero--2026 {
  display: block;
  min-height: auto;
  padding: clamp(96px, 15vh, 190px) var(--pad-x) clamp(52px, 7vw, 96px);
  text-align: center;
  overflow: hidden;
}

/* Faint diagonal hatch in the upper right, as in the mockup. Decorative,
   so it is masked away before it reaches the headline. */
.hero--2026::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 9px
  );
  -webkit-mask-image: radial-gradient(120% 85% at 100% 0%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 85% at 100% 0%, #000 0%, transparent 62%);
  z-index: 0;
}

.hero--2026 .hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

/* The headline. Anton is loaded for this one element: nothing else on the
   site uses it, and Inter has no condensed cut that reads at this size. */
.hero__title--2026 {
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;               /* Anton ships a single weight */
  text-transform: uppercase;
  font-size: clamp(38px, 7.4vw, 104px);
  line-height: 0.92;
  letter-spacing: 0.002em;
  color: var(--text-primary);
  max-width: 1180px;
  margin: 0 auto;
  background: none;               /* kill the gradient fill from .hero__title */
  -webkit-text-fill-color: currentColor;
}

.hero__sub--2026 {
  margin: clamp(20px, 2.4vw, 30px) auto 0;
  max-width: 1060px;
  font-size: clamp(15.5px, 1.35vw, 19px);
  line-height: 1.58;
  color: var(--text-secondary);
}

.hero__cta--2026 {
  margin-top: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Buttons are squared off rather than pills, matching the mockup. Scoped to
   the hero so the pill buttons everywhere else on the site are untouched. */
.hero--2026 .btn--sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  padding: 17px 30px;
  font-size: clamp(15px, 1.1vw, 16.5px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Filled accent. Mint carries DARK text: white on mint fails contrast badly,
   which is the whole reason the site's default CTA is a white pill. */
.hero--2026 .btn--sq-fill {
  background: var(--accent);
  color: #14251a;
  box-shadow: 0 18px 40px -22px var(--accent-glow);
}

.hero--2026 .btn--sq-fill:hover,
.hero--2026 .btn--sq-fill:focus-visible {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.hero--2026 .btn--sq-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-mid);
}

.hero--2026 .btn--sq-ghost:hover,
.hero--2026 .btn--sq-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* The staggered hero reveal is set in styles.css with !important and is keyed
   to the OLD class names, so the new elements need their own delays. */
.hero--2026 .hero__title--2026.reveal { transition-delay: 120ms !important; }
.hero--2026 .hero__sub--2026.reveal   { transition-delay: 300ms !important; }
.hero--2026 .hero__cta--2026.reveal   { transition-delay: 460ms !important; }

/* ---------------------------------------------------------
   2. Search-presence row

   Full-bleed. The cards run off both edges exactly as they do in the
   mockup, so the row reads as continuing rather than as a tidy grid.
   --------------------------------------------------------- */

.serp {
  position: relative;
  padding: clamp(8px, 2vw, 26px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;               /* the marquee must never scroll the page */
  background: var(--bg-base);
}

.serp__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Fade both ends so cards dissolve rather than getting chopped. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* Two identical sets translate by exactly -50% for a seamless loop, the same
   technique the hero ticker used. The second set is aria-hidden so the cards
   are not announced twice. */
.serp__track {
  display: flex;
  width: max-content;
  animation: serp-drift 48s linear infinite;
}

.serp__set {
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  padding-right: clamp(18px, 2vw, 28px);
}

@keyframes serp-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.serp:hover .serp__track { animation-play-state: paused; }

.serp__item {
  flex: 0 0 auto;
  width: clamp(272px, 25vw, 330px);
}

.serp__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.serp__label svg { width: 15px; height: 15px; flex: none; }

.serp__card {
  height: 100%;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.serp__biz {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.serp__rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.serp__stars { color: var(--accent); letter-spacing: 1px; }
.serp__count { color: var(--text-dim); }

.serp__meta {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.serp__url {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--accent);
  word-break: break-word;
}

.serp__desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.serp__eyebrow {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.serp__heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.serp__links {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent-cool-bright);
}

/* Google Guaranteed badge */
.serp__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.serp__badge svg { width: 17px; height: 17px; flex: none; }

.serp__call {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.serp__call svg { width: 15px; height: 15px; flex: none; color: var(--text-muted); }

/* Search field + map */
.serp__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  color: var(--text-muted);
}

.serp__field svg { width: 15px; height: 15px; flex: none; }

.serp__map {
  position: relative;
  margin-top: 12px;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(33, 120, 107, 0.22), transparent 60%),
    var(--bg-deep);
}

.serp__map svg { width: 100%; height: 100%; display: block; }

.serp__listing { margin-top: 14px; }

/* Review card */
.serp__quote {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* Initials stand in for a face on purpose. The reviewer is illustrative, so
   putting a real photograph here would make an invented quote look sourced. */
.serp__avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #14251a;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
}

.serp__quote p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.serp__attrib {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.serp__dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.serp__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-mid);
}

.serp__dots i:first-child { background: var(--accent); }

/* ---------------------------------------------------------
   3. Motion and small screens
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .serp__track { animation: none; }
  .serp__viewport { overflow-x: auto; }
}

/* The headline breaks where the mockup breaks it. Below 760px the line is too
   long to hold, so the break is dropped and the text wraps on its own. */
@media (max-width: 760px) {
  .hero__title--2026 br { display: none; }
}

@media (max-width: 640px) {
  .hero--2026 .hero__cta--2026 { flex-direction: column; align-items: stretch; }
  .hero--2026 .btn--sq { width: 100%; }
  .hero__title--2026 { max-width: none; }
}

/* ---------------------------------------------------------
   3. Process ladder  (#process)

   Replaced the marketplace intro. Structure follows hookagency.com's
   "Our Process" block: centred head, a five-rung accordion on the left that
   auto-advances, a panel on the right that swaps with it.
   --------------------------------------------------------- */

.proc {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--bg-deep);
}

.proc__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.proc__head { text-align: center; }

.proc__title {
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.0;
  letter-spacing: 0.004em;
  color: var(--text-primary);
  max-width: 20ch;
  margin: 14px auto 0;
}

.proc__lead {
  margin: clamp(16px, 2vw, 22px) auto 0;
  max-width: 66ch;
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.6;
  color: var(--text-secondary);
}

.proc__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(38px, 5vw, 68px);
}

/* --- the ladder --- */

.proc__step {
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.proc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(16px, 1.8vw, 22px) 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.proc__step-title {
  font-size: clamp(18px, 1.9vw, 25px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.proc__step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
}

.proc__step.is-active .proc__trigger { color: var(--text-primary); }
.proc__step.is-active .proc__step-num { color: var(--accent); }
.proc__trigger:hover { color: var(--text-secondary); }
.proc__trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The body is collapsed by a grid-row trick rather than max-height, so the
   open height is whatever the paragraph actually needs. */
.proc__step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.proc__step-body > p {
  overflow: hidden;
  font-size: clamp(14px, 1.1vw, 15.5px);
  line-height: 1.6;
  color: var(--text-muted);
}

.proc__step.is-active .proc__step-body { grid-template-rows: 1fr; }
.proc__step.is-active .proc__step-body > p { padding-bottom: clamp(16px, 1.8vw, 22px); }

/* Progress bar. It sits on the bottom border and fills over one dwell, so the
   rung shows how long it has before it advances. */
.proc__bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  overflow: hidden;
}

.proc__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.proc__step.is-active .proc__bar i { animation: proc-fill 7s linear forwards; }
.proc__steps.is-paused .proc__step.is-active .proc__bar i { animation-play-state: paused; }

@keyframes proc-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* --- the swapping panel --- */

.proc__panels { position: relative; }

.proc__panel {
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(33, 120, 107, 0.20), transparent 62%),
    var(--bg-card);
  animation: proc-in 0.4s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes proc-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.proc__panel-num {
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.9;
  color: var(--accent);
  opacity: 0.32;
  display: block;
}

.proc__panel-kicker {
  margin-top: 10px;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  color: var(--text-primary);
}

.proc__panel-list {
  margin-top: clamp(16px, 2vw, 22px);
  list-style: none;
  display: grid;
  gap: 12px;
}

.proc__panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: clamp(14px, 1.1vw, 15.5px);
  line-height: 1.5;
  color: var(--text-secondary);
}

.proc__panel-list svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.proc__cta {
  margin-top: clamp(34px, 4vw, 56px);
  text-align: center;
}

@media (max-width: 900px) {
  .proc__body { grid-template-columns: minmax(0, 1fr); }
  /* The panel repeats what the open rung already says, so on one column it is
     redundant rather than useful. The ladder carries the section on its own. */
  .proc__panels { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .proc__step-body { transition: none; }
  .proc__panel { animation: none; }
  .proc__step.is-active .proc__bar i { animation: none; transform: scaleX(1); }
}

/* ---------------------------------------------------------
   4. Client logo carousel  (.clients)

   Adapted from Hayden's supplied widget, restyled onto the site's tokens: the
   package was a light strip on #fafaf8 with Arial, and this is a dark site.
   The TILES stay white, because these are colour brand logos and a dark or
   mid-grey tile kills most of them. Two white logos get a dark plate instead.
   --------------------------------------------------------- */

.clients {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0 clamp(52px, 6vw, 84px);
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;                 /* the marquee must never scroll the page */
}

.clients__head {
  max-width: var(--container);
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  padding: 0 var(--pad-x);
  text-align: center;
}

.clients__title {
  margin-top: 12px;
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: 0.004em;
  color: var(--text-primary);
}

.clients__viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* Runs left to right, the opposite way to the search row at the top of the page,
   so the two marquees read as separate things rather than one long conveyor. */
.clients__track {
  display: flex;
  width: max-content;
  animation: clients-drift 62s linear infinite;
}

@keyframes clients-drift {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.clients__set {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.4vw, 20px);
  padding-right: clamp(14px, 1.4vw, 20px);
  margin: 0;
  list-style: none;
}

.clients__card {
  flex: 0 0 auto;
  width: clamp(176px, 16vw, 212px);
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clients__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 84px;
  padding: 12px 6px;
  border-radius: 8px;
}

/* White artwork needs something to sit on. */
.clients__plate--dark { background: #20282a; }

/* Circular seals fill their box, so they need almost no padding. */
.clients__plate--seal { padding: 2px; }
.clients__plate--seal img { max-height: 80px; }

.clients__plate img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 168px;
  max-height: 72px;
  object-fit: contain;
}

.clients__name {
  display: block;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
  color: #515e5b;
  min-height: 16px;
}

/* Pause control. An animation that runs longer than five seconds needs a way to
   stop it that is not hover, which touch and keyboard users do not have. */
.clients__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip-path: inset(50%);
}

.clients__control {
  position: absolute;
  top: clamp(56px, 7vw, 92px);
  right: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.clients__control:hover { border-color: var(--accent); color: var(--accent); }
.clients__toggle:focus-visible + .clients__control { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The theme defines no screen-reader-only utility anywhere, so the label text
   inside the pause button would otherwise render as visible text. */
.clients__control .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.clients__icon { width: 13px; height: 13px; }
.clients__icon--play { display: none; }
.clients__toggle:checked + .clients__control .clients__icon--pause { display: none; }
.clients__toggle:checked + .clients__control .clients__icon--play { display: block; }

.clients__toggle:checked ~ .clients__viewport .clients__track { animation-play-state: paused; }

@media (hover: hover) {
  .clients__viewport:hover .clients__track { animation-play-state: paused; }
}

/* Static grid rather than a stopped conveyor: a paused marquee leaves half the
   logos off screen, which is worse than no animation at all. */
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; transform: none; width: 100%; }
  .clients__viewport { -webkit-mask-image: none; mask-image: none; }
  .clients__set {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 var(--pad-x);
  }
  .clients__set[aria-hidden="true"],
  .clients__control,
  .clients__toggle { display: none; }
}

@media (max-width: 600px) {
  .clients__card { width: 158px; }
  .clients__plate { height: 76px; }
  .clients__control { right: 16px; }
}

/* =========================================================
   2026-09-22: doctor repositioning.

   Everything below was added when the homepage moved from "business owners
   generally" to neurology, functional medicine and med spa practices. No token,
   font or animation curve is new: the sections reuse the marquee technique from
   .serp / .clients, the numbered [01] markers from .svc-row, and the same reveal
   timing as the rest of the page.

   Section order on the page: hero (extended) > serp > spec ticker > prob > svc6 >
   app > adreel > res > testimonials > proc > faq > book-cta > clients.
   ========================================================= */

/* ---------------------------------------------------------
   9. Hero additions: the note, the stat row and the terms line
   --------------------------------------------------------- */

.hero__note {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Three claims about how the system behaves. Not client results, so no card
   here carries a source line. */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  margin: clamp(34px, 4vw, 52px) auto 0;
  padding: 0;
  max-width: 1000px;
  list-style: none;
}

.hero__stat {
  flex: 1 1 250px;
  max-width: 320px;
  padding: 20px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  text-align: left;
}

.hero__stat-n {
  display: block;
  font-family: "Schibsted Grotesk", var(--font);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--accent);
}

.hero__stat-l {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.hero__meta {
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* The stagger in styles.css is keyed to the old class names with !important, so
   every new hero element needs its own delay or it arrives with the CTA row. */
.hero--2026 .hero__note.reveal  { transition-delay: 600ms !important; }
.hero--2026 .hero__stats.reveal { transition-delay: 700ms !important; }
.hero--2026 .hero__meta.reveal  { transition-delay: 820ms !important; }

@media (max-width: 720px) {
  .hero__stat { flex: 1 1 100%; max-width: none; text-align: center; }
}

/* ---------------------------------------------------------
   10. The AI answer card in the search row
   --------------------------------------------------------- */

/* This card replaced the Google Guaranteed one: that badge covers home services
   only, so it would have been factually false on a clinic. It is also the point
   of the whole site, so it gets a mint edge the other four cards do not have. */
.serp__card--ai {
  border-color: rgba(136, 220, 127, 0.30);
  background:
    linear-gradient(180deg, rgba(136, 220, 127, 0.07), rgba(136, 220, 127, 0) 58%),
    var(--bg-card);
}

.serp__ask {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text-secondary);
}

.serp__answer {
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.22);
}

.serp__answer p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.serp__answer b { color: var(--text-primary); font-weight: 650; }

.serp__cite {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px !important;
  font-size: 11.5px;
  color: var(--accent);
}

.serp__cite svg { width: 13px; height: 13px; flex: none; }

.serp__aimeta {
  margin: 12px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   11. Specialty ticker
   --------------------------------------------------------- */

/* Same duplicate-set marquee as .serp and .clients. It carries the specialties
   next to the three core niches so the page reads as "doctors" rather than as
   three verticals. */
.spec {
  position: relative;
  padding: clamp(10px, 1.6vw, 18px) 0 clamp(52px, 6vw, 84px);
  overflow: hidden;
  background: var(--bg-base);
}

.spec__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.spec__track {
  display: flex;
  width: max-content;
  animation: spec-drift 42s linear infinite;
}

.spec__set {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec__item {
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 2vw, 30px);
  font-family: "Schibsted Grotesk", var(--font);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-muted);
}

/* The separator is a dot rather than a border so the loop seam is invisible. */
.spec__item::after {
  content: "";
  margin-left: clamp(16px, 2vw, 30px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

@keyframes spec-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.spec:hover .spec__track { animation-play-state: paused; }

/* ---------------------------------------------------------
   12. The real problem
   --------------------------------------------------------- */

.prob {
  padding: clamp(60px, 8vw, 110px) var(--pad-x);
  background: var(--bg-deep);
}

.prob__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.prob__head { max-width: 860px; }

.prob__title {
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: 0.004em;
  margin: 14px 0 0;
  color: var(--text-primary);
}

.prob__lead {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.6;
  color: var(--text-muted);
}

.prob__list {
  margin: clamp(38px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}

.prob__item {
  display: flex;
  gap: clamp(16px, 2.4vw, 40px);
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.prob__n {
  flex: none;
  padding-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.prob__body { min-width: 0; }

.prob__h {
  margin: 0;
  font-family: "Schibsted Grotesk", var(--font);
  font-size: clamp(18px, 1.9vw, 25px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.prob__b {
  margin: 10px 0 0;
  max-width: 740px;
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* The five minute / 8x figure is lead response research, not a Northview
   measurement. The chip is what keeps that honest. */
.prob__tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .prob__item { gap: 12px; }
}

/* ---------------------------------------------------------
   13. The six services
   --------------------------------------------------------- */

.svc6 {
  padding: clamp(60px, 8vw, 110px) var(--pad-x);
  background: var(--bg-base);
}

.svc6__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.svc6__head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.svc6__title {
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.02;
  margin: 14px 0 0;
  color: var(--text-primary);
}

.svc6__lead {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.6;
  color: var(--text-muted);
}

.svc6__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 26px);
  margin-top: clamp(38px, 5vw, 64px);
}

.svc6__card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--bg-card);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.svc6__card:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.svc6__n {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.svc6__h {
  margin: 16px 0 0;
  font-family: "Schibsted Grotesk", var(--font);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.svc6__b {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--text-muted);
}

/* These links are the homepage's only route to the 23 service detail pages now
   that the old .svc-row list is gone. The mega menu covers them site-wide, but
   the highest-authority page should still point at them. */
.svc6__links {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-subtle);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.svc6__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.16s ease, gap 0.16s ease;
}

.svc6__links a:hover,
.svc6__links a:focus-visible { color: var(--accent); gap: 12px; }

.svc6__links svg { width: 14px; height: 14px; flex: none; }

@media (max-width: 1020px) {
  .svc6__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
  .svc6__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   14. Branded patient assistant
   --------------------------------------------------------- */

/* Built entirely from HTML and CSS. No screenshot, so the section costs nothing
   to load and the script stays editable in front-page.php. */
.app {
  padding: clamp(60px, 8vw, 110px) var(--pad-x) clamp(40px, 5vw, 64px);
  background: var(--bg-deep);
}

.app__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.app__title {
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.04;
  margin: 14px 0 0;
  color: var(--text-primary);
}

.app__lead {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--text-muted);
}

.app__points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app__points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.app__points svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--accent); }

.app__copy .btn { margin-top: 30px; }

/* The device. A phone frame with the thread inside it, and a small calendar
   card overlapping the corner. */
.app__device {
  position: relative;
  display: flex;
  justify-content: center;
}

.app__phone {
  width: min(330px, 100%);
  padding: 16px 14px 22px;
  border: 1px solid var(--border-mid);
  border-radius: 30px;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-deep));
  box-shadow: var(--shadow-card);
}

.app__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.app__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #14251a;                 /* accent fills always carry dark text */
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app__who { display: flex; flex-direction: column; min-width: 0; }
.app__who b { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.app__who i { font-style: normal; font-size: 11.5px; color: var(--accent); }

.app__thread {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 6px 0;
  min-height: 330px;
}

.app__msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.42;
  opacity: 0;
  animation: app-pop 14s ease infinite;
}

.app__msg--in {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.app__msg--out {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #14251a;
  font-weight: 500;
}

.app__book {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 9px 15px;
  border: 1px solid rgba(136, 220, 127, 0.4);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  animation: app-pop 14s ease infinite;
}

.app__book svg { width: 14px; height: 14px; }

/* One 14s cycle, six beats. Each bubble holds until the cycle restarts, so the
   thread reads as a conversation rather than six things blinking. */
.app__msg--1 { animation-delay: 0.4s; }
.app__msg--2 { animation-delay: 1.9s; }
.app__msg--3 { animation-delay: 3.6s; }
.app__msg--4 { animation-delay: 5.1s; }
.app__msg--5 { animation-delay: 6.8s; }
.app__msg--6 { animation-delay: 8.2s; }

@keyframes app-pop {
  0%   { opacity: 0; transform: translateY(8px); }
  3%   { opacity: 1; transform: translateY(0); }
  64%  { opacity: 1; transform: translateY(0); }
  70%  { opacity: 0; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

.app__cal {
  position: absolute;
  right: max(0px, calc(50% - 250px));
  bottom: -18px;
  width: 190px;
  padding: 14px 16px;
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.app__cal-h {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.app__cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 11px 0;
}

.app__cal-grid i {
  height: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.app__cal-grid i.is-on {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.app__cal-f {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.app__note {
  max-width: var(--container);
  margin: clamp(30px, 4vw, 46px) auto 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .app__inner { grid-template-columns: 1fr; }
  .app__device { margin-top: 12px; }
  .app__cal { right: 0; bottom: -10px; }
}

/* Below 460px the calendar stops overlapping and stacks under the phone. It has
   to leave the flex ROW as well as lose its absolute position: as a static flex
   item it was stretching to the full height of the phone beside it (measured at
   170x743 on a 390px viewport). */
@media (max-width: 460px) {
  .app__device {
    flex-direction: column;
    align-items: center;
  }

  .app__cal {
    position: static;
    width: min(330px, 100%);
    margin-top: 18px;
  }
}

/* ---------------------------------------------------------
   15. Ad engine
   --------------------------------------------------------- */

.adreel {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 6vw, 80px);
  overflow: hidden;
  background: var(--bg-base);
}

.adreel__head {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}

.adreel__title {
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.04;
  margin: 14px 0 0;
  color: var(--text-primary);
}

.adreel__lead {
  margin: 16px auto 0;
  max-width: 600px;
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  line-height: 1.6;
  color: var(--text-muted);
}

.adreel__viewport {
  position: relative;
  width: 100%;
  margin-top: clamp(32px, 4vw, 52px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.adreel__track {
  display: flex;
  width: max-content;
  animation: adreel-drift 55s linear infinite;
}

.adreel__set {
  display: flex;
  gap: clamp(16px, 1.8vw, 24px);
  padding-right: clamp(16px, 1.8vw, 24px);
  margin: 0;
  list-style: none;
}

@keyframes adreel-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.adreel:hover .adreel__track { animation-play-state: paused; }

.adreel__card {
  flex: 0 0 auto;
  width: clamp(230px, 20vw, 268px);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--bg-card);
}

.adreel__spec {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* The "creative" is a CSS tile, not an image. Three tones so the reel does not
   read as one ad repeated six times. */
.adreel__creative {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  height: 208px;
  margin: 12px 0;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.adreel__creative--tone-a { background: linear-gradient(160deg, var(--accent-cool-deep), var(--bg-deep) 78%); }
.adreel__creative--tone-b { background: linear-gradient(160deg, #2b3a30, var(--bg-deep) 78%); }
.adreel__creative--tone-c { background: linear-gradient(160deg, #22333d, var(--bg-deep) 78%); }

.adreel__creative b {
  font-family: "Schibsted Grotesk", var(--font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary);
}

.adreel__creative i {
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.adreel__creative em {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 13px;
  border-radius: 6px;
  background: var(--accent);
  color: #14251a;                 /* dark text on an accent fill, house rule */
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
}

.adreel__stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 600;
}

.adreel__stats span:first-child { color: var(--accent); }
.adreel__stats span:last-child  { color: var(--text-dim); }

/* Not optional. Lead counts and cost per lead read as client results without
   it, and none of these figures came from a campaign. */
.adreel__note {
  max-width: var(--container);
  margin: clamp(26px, 3vw, 38px) auto 0;
  padding: 0 var(--pad-x);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------------------------------------------------------
   16. Results
   --------------------------------------------------------- */

.res {
  padding: clamp(60px, 8vw, 110px) var(--pad-x);
  background: var(--bg-deep);
}

.res__inner { max-width: var(--container); margin: 0 auto; }

.res__head { text-align: center; }

.res__title {
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.04;
  margin: 14px 0 0;
  color: var(--text-primary);
}

.res__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(34px, 4vw, 54px);
}

.res__card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--bg-card);
}

/* A real client result and an illustration must not look identical. The real
   cards get the mint edge; the examples stay flat and carry a plain chip. */
.res__card--real { border-color: rgba(136, 220, 127, 0.32); }

.res__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.res__spec {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.res__chip {
  flex: none;
  padding: 4px 9px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.res__chip--real {
  border-color: rgba(136, 220, 127, 0.45);
  background: rgba(136, 220, 127, 0.10);
  color: var(--accent);
}

.res__stat {
  margin: 20px 0 0;
  font-family: "Anton", "Schibsted Grotesk", var(--font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  color: var(--accent);
}

.res__unit {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

.res__quote {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.res__who {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.res__note {
  margin: clamp(24px, 3vw, 36px) 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

@media (max-width: 1020px) { .res__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .res__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   17. Two-up testimonials
   --------------------------------------------------------- */

/* The roofing review was removed with the repositioning, leaving two cards in a
   grid built for three. Without this they stretch to half the page each. */
.nv-t-grid--two {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------
   18. Reduced motion
   --------------------------------------------------------- */

/* Every marquee added above becomes a static, wrapped block rather than a
   stopped conveyor: a paused marquee leaves half its content off screen. The
   assistant thread shows its full conversation instead of animating. */
@media (prefers-reduced-motion: reduce) {
  .spec__track,
  .adreel__track {
    animation: none;
    transform: none;
    width: 100%;
  }

  .spec__viewport,
  .adreel__viewport {
    -webkit-mask-image: none;
            mask-image: none;
  }

  .spec__set,
  .adreel__set {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 var(--pad-x);
  }

  .spec__set[aria-hidden="true"],
  .adreel__set[aria-hidden="true"] { display: none; }

  .adreel__set { gap: 16px; }

  .app__msg,
  .app__book {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .svc6__card:hover { transform: none; }
}

/* Four-service layout (2026-09-26): 2x2 on desktop instead of 3 columns. */
@media (min-width: 1021px) {
  .svc6__grid--four { grid-template-columns: repeat(2, 1fr); }
}
