/* =====================================================================
   Google Profile Care page (/google-business-profile-management/).
   1. The film: a neglected business-profile card gets cared for, scrubbed
      by scroll (10k-websites scrub pipeline, js/gbp.js). Desktop: the film
      fills the screen, the card sits right, captions anchor left in the
      empty dark half. Stacked (under 1024px wide or a tall window): the film
      plays in a clear top window, the copy sits below it.
      Static (reduced motion, ?still=1, no JS, short landscape phones): the
      finished card poster with the h1 band only.
   2. Short sections below: includes, owner + review rules, why it matters,
      the plan note and CTA, FAQ.
   ===================================================================== */

/* ---------- 1. Film ---------- */
.gf {
  position: relative;
  /* one design px of the 1920x1080 film, as shown with object-fit: cover */
  --s: max(calc(100vw / 1920), calc(100vh / 1080));
  --gut: clamp(24px, 2.6vw, 56px);
  --cap-w: min(640px, calc(50vw - 160 * var(--s) - var(--gut) - 48px));
}
.gf-track { position: relative; }
.gf-scrub .gf-track { height: 900vh; }
.gf-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #14100d;
}
.gf-scrub .gf-stage { position: sticky; top: 0; }
.gf-win { position: absolute; inset: 0; overflow: hidden; background: #14100d; }
.gf-poster, .gf-poster img, .gf-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.gf-poster img { display: block; }
.gf-video { opacity: 0; transition: opacity 500ms var(--ease-out); transform: translateZ(0); }
.gf.video-ready .gf-video { opacity: 1; }
html.rm .gf-video, .gf-static .gf-video { display: none; }
.gf-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 16, 13, 0.55) 0%, rgba(20, 16, 13, 0) 18%),
    linear-gradient(90deg, rgba(20, 16, 13, 0.55) 0%, rgba(20, 16, 13, 0.2) 34%, rgba(20, 16, 13, 0) 48%);
}
.gf-ring {
  position: absolute;
  right: var(--gut);
  top: calc(var(--nav-offset) + 4px);
  width: 28px;
  height: 28px;
  color: var(--c-paper);
  transform: rotate(-90deg);
  transition: opacity 400ms var(--ease-out);
}
.gf-ring-fill { stroke-dashoffset: var(--ld, 126); transition: stroke-dashoffset 120ms linear; }
.gf.video-ready .gf-ring, .gf.video-failed .gf-ring, .gf-static .gf-ring, html.no-js .gf-ring { opacity: 0; }
.gf-line { display: none; }

/* captions: stacked in one grid cell, JS writes each band's opacity and --k */
.gf-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  width: var(--content-w);
  margin-inline: auto;
  display: grid;
  padding: calc(var(--nav-offset) + 8px) 0 120px;
}
.gf-cap {
  grid-area: 1 / 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: var(--cap-w);
  max-width: 100%;
}
.gf-eye {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-brass);
}
.gf-eye b { font-weight: var(--fw-medium); color: var(--c-fg); padding-right: 0.75em; border-right: 1px solid var(--c-brass-dim); }
.gf-h1, .gf-h {
  font-family: var(--font-serif);
  font-weight: var(--fw-head);
  font-variation-settings: "opsz" 120;
  letter-spacing: var(--tracking-head);
  line-height: 1.04;
  color: var(--c-fg);
  text-wrap: balance;
}
.gf-h1 { font-size: clamp(2.6rem, 3.9vw, 4.6rem); }
.gf-h { font-size: clamp(2.3rem, 3.3vw, 4rem); }
.gf-p { max-width: 34em; font-size: var(--fs-lg); line-height: 1.55; color: var(--c-fg-2); text-wrap: pretty; }
.gf-btns { margin-top: 6px; }

/* word rise, scrubbed by the band's --k (0..1) */
.gf-cap [data-split] .w { display: inline-block; }
.gf-scrub .gf-cap [data-split] .w {
  --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 3.2, 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * 0.4em));
}
.gf-scrub .gf-eye { opacity: clamp(0, var(--k, 1) * 2.4, 1); }
.gf-scrub .gf-p { --ks: clamp(0, (var(--k, 1) - 0.45) * 3, 1); opacity: var(--ks); transform: translateY(calc((1 - var(--ks)) * 10px)); }
.gf-scrub .gf-btns { --kb: clamp(0, (var(--k, 1) - 0.6) * 3.2, 1); opacity: var(--kb); transform: translateY(calc((1 - var(--kb)) * 12px)); }
.gf-scrub .gf-cap { opacity: 0; visibility: hidden; }
.gf-scrub .gf-cap.is-on { visibility: visible; }

/* static: the finished card and the h1 band, nothing else */
.gf-static .gf-cap:not(.gf-cap--open), html.no-js .gf-cap:not(.gf-cap--open) { display: none; }
.gf-static .gf-rail, html.no-js .gf-rail { display: none; }

/* the rail: progress line + chapters, under the captions (never over the card) */
.gf-rail {
  position: absolute;
  z-index: 3;
  left: var(--gut);
  bottom: 30px;
  width: var(--cap-w);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  align-items: center;
  color: var(--c-fg-3);
}
.gf-pole { grid-column: 1 / -1; position: relative; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(244, 236, 223, 0.14); }
.gf-pole-fill, .gf-line-fill {
  position: absolute;
  inset: 0;
  background: var(--c-brass);
  transform-origin: 0 50%;
  transform: scaleX(var(--prog, 0));
}
.gf-chapters { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gf-chapters li { font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; opacity: 0.6; transition: opacity 400ms var(--ease-out), color 400ms var(--ease-out); }
.gf-chapters li.is-on { opacity: 1; color: var(--c-fg); }
.gf-cue { font-size: var(--fs-2xs); letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; transition: opacity 400ms var(--ease-out); }
.gf-cue::after { content: ""; width: 1px; height: 16px; background: currentColor; }
html.js:not(.rm) .gf-cue::after { animation: gf-cue 1.8s var(--ease-std) infinite; transform-origin: 50% 0; }
@keyframes gf-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
.gf.is-moving .gf-cue { opacity: 0; }

@media (max-height: 620px) and (min-width: 1024px) {
  .gf-chapters, .gf-cue { display: none; }
  .gf-copy { padding-bottom: 56px; }
  .gf-p { font-size: var(--fs-base); }
}

/* ---------- Stacked: film in a clear top window, copy below ---------- */
@media (max-width: 1023px), (max-aspect-ratio: 5/4) {
  .gf { --cap-w: 100%; }
  .gf-stage { display: flex; flex-direction: column; min-height: 0; }
  .gf-win {
    position: relative;
    inset: auto;
    flex: none;
    margin-top: calc(var(--nav-top) + var(--nav-h) + 10px);
    height: min(48svh, 112vw);
    border-radius: 0;
  }
  .gf-poster img, .gf-video { object-position: 88% 50%; }
  .gf-scrim { background: linear-gradient(0deg, rgba(20, 16, 13, 0.5) 0%, rgba(20, 16, 13, 0) 14%); }
  .gf-ring { top: 12px; right: 14px; width: 24px; height: 24px; }
  .gf-line { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(244, 236, 223, 0.12); }
  .gf-copy { flex: 1 1 auto; height: auto; padding: 22px 0 calc(84px + env(safe-area-inset-bottom, 0px)); }
  .gf-cap { align-self: start; gap: 10px; }
  .gf-h1 { font-size: clamp(2rem, 7.6vw, 3.2rem); line-height: 1.04; }
  .gf-h { font-size: clamp(1.9rem, 7vw, 3rem); }
  .gf-p { font-size: var(--fs-base); line-height: 1.5; }
  .gf-rail { display: none; }
  .gf-static .gf-copy { padding-bottom: 40px; }
}
@media (max-width: 767px) {
  .gf-poster img, .gf-video { object-position: 50% 50%; }
  /* the phone quick bar already carries Call, Text and Book a visit */
  .gf-scrub .gf-btns { display: none; }
  .gf-btns .btn { flex: 1 1 auto; }
  .gf-eye { font-size: 12px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .gf-win { height: min(42svh, 100vw); }
  .gf-p { font-size: 15.5px; }
}
/* static stacked: let the page grow instead of clipping */
.gf-static .gf-stage { height: auto; min-height: 100svh; }
@media (max-width: 1023px), (max-aspect-ratio: 5/4) { .gf-static .gf-stage { min-height: 0; } }

/* ---------- 2. Sections ---------- */
.gb-sec { padding-block: var(--sec-y); }
.gb-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--head-gap); max-width: 50rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }

.gb-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--c-hair);
}
.gb-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  row-gap: 8px;
  padding: clamp(1.5rem, 2.4vw, 2.25rem) clamp(1.25rem, 2.4vw, 2.5rem) clamp(1.75rem, 2.6vw, 2.5rem) 0;
  border-bottom: 1px solid var(--c-hair);
}
.gb-list li:not(:nth-child(3n + 1)) { padding-left: clamp(1.25rem, 2.4vw, 2.5rem); border-left: 1px solid var(--c-hair); }
.gb-n { grid-row: 1 / 3; font-size: var(--fs-sm); letter-spacing: 0.08em; color: var(--c-brass); padding-top: 0.4em; }
.gb-list h3 { font-family: var(--font-serif); font-variation-settings: "opsz" 72; font-weight: var(--fw-head); font-size: var(--fs-3xl); line-height: 1.15; letter-spacing: -0.01em; }
.gb-list p { color: var(--c-fg-2); max-width: 30em; text-wrap: pretty; }
.gb-fine { margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--c-fg-3); }

.gb-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 7rem); }
.gb-split-col { display: flex; flex-direction: column; gap: var(--sp-5); padding-top: var(--sp-6); border-top: 1px solid var(--c-brass-dim); }
.gb-split-col p { color: var(--c-fg-2); max-width: 36em; text-wrap: pretty; }
.gb-h { font-family: var(--font-serif); font-variation-settings: "opsz" 96; font-weight: var(--fw-head); font-size: var(--fs-4xl); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.gb-rules { display: flex; flex-direction: column; }
.gb-rules li { display: flex; gap: 14px; align-items: baseline; padding: 0.85em 0; border-bottom: 1px solid var(--c-hair); color: var(--c-fg); }
.gb-rules li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--c-brass); transform: translateY(-0.3em); }

.gb-why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.gb-why-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--head-gap); position: sticky; top: var(--nav-offset); }
.gb-why-body { display: flex; flex-direction: column; gap: var(--sp-8); }
.gb-lede { font-size: var(--fs-xl); line-height: var(--lh-snug); color: var(--c-fg); max-width: 34em; text-wrap: pretty; }
.gb-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) clamp(1.5rem, 3vw, 3rem); margin: 0; }
.gb-points > div { display: flex; flex-direction: column; gap: 6px; padding-top: var(--sp-4); border-top: 1px solid var(--c-hair); }
.gb-points dt { font-family: var(--font-serif); font-variation-settings: "opsz" 48; font-size: var(--fs-2xl); line-height: 1.2; }
.gb-points dd { margin: 0; color: var(--c-fg-2); text-wrap: pretty; }
.gb-honest { padding-left: var(--sp-5); border-left: 2px solid var(--c-brass); color: var(--c-fg); max-width: 38em; text-wrap: pretty; }

.gb-plan {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: var(--r-paper);
  color: var(--c-ink);
}
.gb-plan-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.gb-plan-tag { font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-2); }
.gb-plan-h { font-family: var(--font-serif); font-variation-settings: "opsz" 120; font-weight: var(--fw-head); font-size: var(--fs-6xl); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; max-width: 14em; }
.gb-plan-copy > p { color: var(--c-ink-2); max-width: 36em; text-wrap: pretty; }
.gb-plan-list { display: flex; flex-direction: column; width: 100%; max-width: 36em; }
.gb-plan-list li { padding: 0.7em 0; border-bottom: 1px solid var(--c-hair-ink); color: var(--c-ink); }
.gb-plan-fine { font-size: var(--fs-xs); color: var(--c-ink-3); }
.gb-plan-cta { display: flex; flex-direction: column; gap: var(--sp-3); }
.gb-plan-cta .btn { width: 100%; justify-content: center; }

.gb-faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }

@media (max-width: 1023px) {
  .gb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gb-list li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .gb-list li:nth-child(2n) { padding-left: clamp(1.25rem, 2.4vw, 2.5rem); border-left: 1px solid var(--c-hair); }
  .gb-why, .gb-faq-grid { grid-template-columns: 1fr; }
  .gb-why-head { position: static; }
  .gb-plan { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 767px) {
  .gb-list { grid-template-columns: 1fr; }
  .gb-list li, .gb-list li:nth-child(2n) { padding-left: 0; padding-right: 0; border-left: 0; }
  .gb-split { grid-template-columns: 1fr; }
  .gb-points { grid-template-columns: 1fr; gap: var(--sp-5); }
  .gb-plan { padding: 1.75rem 1.25rem; }
}
/* Phones only: no sticky bottom bar any more, so no room reserved for it under the hero copy. */
@media (max-width: 768px) {
  .gf-copy { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
