/* ============================================================
   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;
  --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: 760px;
}

/* ---------- 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; }

.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: 12px 24px; font-size: 14px; min-height: 40px;
  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); }
.btn:focus-visible { outline: 2px solid var(--slate-dark); outline-offset: 3px; }

/* ---------- header — base ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20; padding: 22px 0;
}
.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: 38px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav a {
  text-decoration: none; font-size: 15px; 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, header in flow */
body.page-light .site-header { position: relative; 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.svg");
  background-size: auto, auto, 640px auto;
  background-repeat: no-repeat, no-repeat, 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: 200px 32px 140px;
  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 28px;
  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);
  margin-bottom: 14px;
}
.hero-sub {
  color: var(--slate-light); font-size: clamp(16px, 1.4vw, 18px);
  margin: 0 0 36px; max-width: 36ch;
}

/* ---------- 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; }

.client-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 56px;
}
.client-logos img {
  height: 40px; width: auto; opacity: .7;
  filter: grayscale(100%); transition: opacity .18s ease, filter .18s ease;
}
.client-logos img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- testimonial ---------- */
.testimonial-section { padding: 80px 0 120px; }
.testimonial {
  position: relative; max-width: 800px; margin: 0 auto; text-align: center;
}
.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.svg");
  background-size: auto, 640px auto;
  background-repeat: no-repeat, 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-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; }
.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; }
.prose p { margin: 0 0 22px; color: var(--ink-dark); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; color: var(--ink-dark); }
.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;
}

/* 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-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: .5px; font-size: 12px;
  color: var(--c-muted); margin-bottom: 4px;
}
.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: 26ch;
}
.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.svg");
  background-size: auto, 640px auto;
  background-repeat: no-repeat, 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;
}
.tm-note { flex-basis: 100%; font-size: 11px; max-width: none; opacity: .8; }
/* 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 { background: var(--white); border-bottom: 1px solid var(--c-line); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; }
  .primary-nav .btn-header { margin-top: 8px; align-self: flex-start; }
  .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 { padding: 0 8px; }
  .testimonial .quotes-mark { display: none; }
}
