/* ============================================================
   LocalSEO.org — Editorial design system (2026 reskin)
   Shared across all marketing pages. Newspaper / editorial
   sensibility: warm cream paper, single red accent, square
   corners, flat (no shadows). Libre Franklin + Newsreader.
   ============================================================ */

:root {
  --paper:        #f4f0e6;  /* page background */
  --panel:        #efe9db;  /* cream cards / bands */
  --ink:          #1b1815;  /* headlines, dark blocks, heavy rules */
  --body:         #322e27;  /* paragraphs */
  --muted:        #6b6459;  /* deks, captions */
  --faint:        #9c948a;  /* source lines, footer labels */
  --label:        #7a7264;  /* form labels, small eyebrows */
  --red:          #C1121F;  /* primary accent */
  --red-on-dark:  #e8654f;  /* kickers/checks on dark blocks */
  --hair:         #ddd6c5;  /* thin dividers */
  --tick:         #cfc7b5;  /* vertical separators, input borders */
  --track:        #e0d8c4;  /* progress bar bg */
  --on-dark:      #d8d1c2;  /* body text on dark */
  --on-dark-2:    #c9c1b3;
  --sans: 'Libre Franklin', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red); color: var(--paper); }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Container ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

/* ============================================================
   Header + navigation (CSS-only mobile menu via checkbox hack)
   ============================================================ */
.site-header {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 30px 48px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 800; font-size: 23px;
  letter-spacing: -.03em; text-decoration: none; color: var(--ink);
}
.brand-mark { width: 21px; height: 21px; flex: none; color: var(--red); }
.brand .dot { color: var(--red); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  text-decoration: none; color: #3a352e; transition: color .15s ease;
}
.site-nav a:hover { color: var(--red); }
.site-nav a.active { font-weight: 700; color: var(--red); }
.nav-cta {
  font-size: 13px !important; font-weight: 700 !important;
  letter-spacing: .04em; color: #fff !important;
  background: var(--red); padding: 10px 18px; transition: background .15s ease;
}
.nav-cta:hover { background: var(--red-dark, #a30f1a); }

/* checkbox-hack hamburger (hidden on desktop) */
.nav-toggle-cb { display: none; }
.nav-toggle {
  display: none; cursor: pointer; font-size: 24px; line-height: 1;
  color: var(--ink); user-select: none; -webkit-user-select: none;
  background: none; border: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.btn--red  { color: #fff; background: var(--red); }
.btn--red:hover  { background: #a30f1a; }
.btn--dark { color: #fff; background: var(--ink); }
.btn--dark:hover { opacity: .9; }

/* ============================================================
   Shared CTA band (Approach / Services / About)
   ============================================================ */
.cta-band-wrap { max-width: 1240px; margin: 84px auto 0; padding: 0 48px; }
.cta-band {
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  padding: 52px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0; font-family: var(--sans); font-weight: 800; font-size: 40px;
  letter-spacing: -.03em; line-height: 1.05; max-width: 640px;
}
.cta-band .btn { font-size: 15px; letter-spacing: .02em; padding: 16px 30px; white-space: nowrap; }

/* ============================================================
   Eyebrow / kicker
   ============================================================ */
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}

/* ============================================================
   Footer (shared)
   ============================================================ */
.site-footer { margin-top: 84px; border-top: 1px solid var(--hair); }
.footer-grid {
  max-width: 1240px; margin: 0 auto; padding: 54px 48px;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.footer-brand .brand-mark { width: 22px; height: 22px; }
.footer-brand .dot { color: var(--red); }
.footer-tag { margin: 14px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 300px; }
.footer-head { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-links { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-family: var(--serif); font-size: 17px; color: var(--body); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--red); }
.subfooter { border-top: 1px solid var(--hair); }
.subfooter > div { max-width: 1240px; margin: 0 auto; padding: 16px 48px; font-family: var(--sans); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

/* ============================================================
   Responsive — desktop-first; collapse at ≤900 / ≤768 / ≤560
   `.grid-collapse` stacks any multi-column grid to one column.
   Type buckets .t-hero / .t-display / .t-h2 scale big headers.
   ============================================================ */
@media (max-width: 900px) {
  .grid-collapse { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .container,
  .site-header,
  .footer-grid,
  .subfooter > div,
  .cta-band-wrap { padding-left: 24px !important; padding-right: 24px !important; }

  /* mobile nav */
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-top: 1px solid var(--hair);
    border-bottom: 3px solid var(--ink); padding: 8px 24px 16px; z-index: 50;
  }
  .nav-toggle-cb:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 16px; width: 100%; }
  .nav-cta { margin-top: 8px; }

  /* stack everything */
  .grid-collapse { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }

  /* "What's included" feature lists self-space via each item's padding —
     don't add a row-gap on top of it (was over-airy) */
  [style*="grid-template-columns:1fr 1fr;gap:0 40px"] { row-gap: 0 !important; }

  /* Loop Score dimension rows: tighten the stacked number/title/desc/pill,
     and keep the status pill inline rather than stretched full-width */
  [style*="grid-template-columns:auto 1fr 1.4fr auto"] { gap: 8px 0 !important; padding-top: 26px !important; padding-bottom: 26px !important; }
  [style*="grid-template-columns:auto 1fr 1.4fr auto"] > span { justify-self: start !important; margin-top: 6px; }

  /* trim the big section top padding on phones */
  [style*="padding-top:84px"] { padding-top: 52px !important; }

  /* About founder photo: drop the sticky behavior when stacked (it left a
     gap and floated oddly); let it flow normally above the narrative */
  [style*="position:sticky;top:40px"] { position: static !important; }

  /* Newsletter subscribe box: the email input had min-width:auto (its
     intrinsic size) so it refused to shrink and pushed the button past
     the screen edge on narrow phones. Let it shrink; trim block padding. */
  [style*="padding:64px 48px"] { padding-left: 24px !important; padding-right: 24px !important; }
  form[style*="max-width:480px"] { max-width: 100% !important; }
  form[style*="max-width:480px"] input { min-width: 0 !important; }

  /* big type buckets */
  .t-hero    { font-size: clamp(40px, 12vw, 60px) !important; line-height: 1.0 !important; }
  .t-display { font-size: clamp(36px, 10vw, 52px) !important; line-height: 1.02 !important; }
  .t-h2      { font-size: clamp(30px, 7.5vw, 40px) !important; }
  .cta-band h2 { font-size: 30px !important; }

  /* tame oversized display numbers / images */
  .num-xl { font-size: 84px !important; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .as-featured span[style] { font-size: 22px !important; }
}

/* ============================================================
   Home "How We Fix It" tier cards — clickable + animated
   ============================================================ */
.fix-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--hair); padding: 38px 32px;
  position: relative; overflow: hidden;
  transition: transform .24s cubic-bezier(.2,.7,.2,1), border-color .24s ease, background .24s ease;
  will-change: transform;
}
.fix-card::before {            /* red accent bar that grows from the left on hover */
  content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 0;
  background: var(--red); transition: width .28s cubic-bezier(.2,.7,.2,1);
}
.fix-card:hover { transform: translateY(-6px); border-color: var(--red); }
.fix-card:hover::before { width: 100%; }
.fix-card:active { transform: translateY(-2px); transition-duration: .08s; }
.fix-card.fix-card--dark { background: var(--ink); border-color: var(--ink); }
.fix-card.fix-card--dark:hover { border-color: var(--red-on-dark); }
.fix-card.fix-card--dark::before { background: var(--red-on-dark); }
.fix-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: .02em;
  color: var(--red);
}
.fix-card--dark .fix-go { color: var(--red-on-dark); }
.fix-go .arr { transition: transform .24s cubic-bezier(.2,.7,.2,1); }
.fix-card:hover .fix-go .arr { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) {
  .fix-card, .fix-card::before, .fix-go .arr { transition: none; }
  .fix-card:hover { transform: none; }
}

/* ============================================================
   Designed editorial "cover" (article thumbnails / hero)
   Replaces the missing-image hatch with an intentional panel.
   ============================================================ */
.cover {
  position: relative; overflow: hidden; background: var(--ink);
  display: flex; align-items: flex-end;
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(193,18,31,.55), transparent 56%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px);
}
.cover-mark {
  position: absolute; top: 16px; left: 20px; z-index: 1;
  font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: -.02em;
  color: rgba(244,240,230,.82);
}
.cover-mark span { color: var(--red-on-dark); }
.cover-cat {
  position: relative; z-index: 1; padding: 20px 22px;
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 30px);
  line-height: 1.12; color: var(--paper); letter-spacing: -.01em;
}

/* ============================================================
   Article reading template (v2 — editorial long-form)
   ============================================================ */
/* Masthead — centered */
.article-masthead { max-width: 760px; margin: 0 auto; padding: 34px 24px 0; text-align: center; }
.article-kicker { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.article-kicker:hover { text-decoration: underline; }
.article-title { margin: 18px 0 0; font-family: var(--sans); font-weight: 800; font-size: clamp(34px, 5.4vw, 54px); line-height: 1.04; letter-spacing: -.035em; color: var(--ink); }
.article-dek { margin: 20px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.5; font-style: italic; color: var(--muted); }
.article-byline { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 0; padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #3a352e; }
.article-byline strong { font-weight: 700; }
.byline-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.byline-read { color: var(--faint); }

/* Cover — wider than the reading column */
.article-cover { max-width: 1100px; margin: 40px auto 0; padding: 0 24px; }
.article-cover img { width: 100%; height: auto; display: block; }

/* Body — narrow reading measure */
.article-body { max-width: 680px; margin: 0 auto; padding: 48px 24px 0; }
.prose { font-family: var(--serif); color: var(--body); font-size: 20px; line-height: 1.72; }
.prose p { margin: 22px 0 0; }
.prose > p:first-of-type { margin-top: 0; color: var(--ink); }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--sans); font-weight: 800; font-size: 74px; line-height: .72; padding: 9px 14px 0 0; color: var(--red); }
.prose h2 { font-family: var(--sans); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 22px; margin: 48px 0 0; }
.prose h2 + p { margin-top: 18px; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 21px; letter-spacing: -.01em; color: var(--ink); margin: 34px 0 0; }
.prose h3 + p { margin-top: 12px; }
.prose h4 { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--ink); margin: 28px 0 0; }
.prose h4 + p, .prose h4 + ul, .prose h4 + ol { margin-top: 10px; }

.prose ul { margin: 18px 0 0; padding-left: 1.2em; }
.prose li { margin: .4em 0; }
/* ordered lists render as an editorial step list */
.prose ol { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--hair); font-size: 20px; line-height: 1.6; margin: 0; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 13px; font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--red); }
.prose blockquote { margin: 46px 0 0; padding: 8px 0 8px 32px; border-left: 3px solid var(--red); font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--hair); margin: 2.2em 0; }
.prose img { margin: 1.6em 0; width: 100%; }

/* Author note */
.author-note { max-width: 680px; margin: 44px auto 0; padding: 0 24px; }
.author-note-inner { border-top: 1px solid var(--hair); padding-top: 22px; display: flex; gap: 18px; align-items: flex-start; }
.author-avatar { width: 52px; height: 52px; flex: none; background: var(--ink); color: var(--paper); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 800; font-size: 18px; }
.author-name { font-family: var(--sans); font-weight: 700; font-size: 15px; }
.author-bio { margin: 5px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Dark CTA */
.article-cta { max-width: 1100px; margin: 64px auto 0; padding: 0 24px; }
.article-cta-inner { background: var(--ink); padding: 54px 48px; text-align: center; }
.article-cta-inner h2 { margin: 0 auto; max-width: 560px; font-family: var(--sans); font-weight: 800; font-size: 34px; letter-spacing: -.025em; color: var(--paper); line-height: 1.08; }
.article-cta-inner .btn { margin-top: 24px; font-size: 15px; padding: 15px 28px; }

/* Continue reading */
.continue-reading { max-width: 1240px; margin: 80px auto 0; padding: 0 24px; }
.continue-head { border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.continue-head h2 { margin: 0; font-family: var(--sans); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.continue-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 36px; }
.continue-card { text-decoration: none; color: inherit; display: block; }
.continue-card img { width: 100%; height: auto; display: block; }
.continue-cat { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-top: 16px; }
.continue-card h3 { margin: 8px 0 0; font-family: var(--sans); font-weight: 800; font-size: 22px; line-height: 1.12; letter-spacing: -.01em; }

@media (max-width: 768px) {
  .article-title { font-size: clamp(30px, 8vw, 42px); }
  .article-dek { font-size: 19px; }
  .article-body { padding-top: 34px; }
  .prose { font-size: 18px; }
  .prose blockquote { font-size: 22px; }
  .prose > p:first-of-type::first-letter { font-size: 60px; }
  .article-cta-inner { padding: 40px 24px; }
  .article-cta-inner h2 { font-size: 27px; }
  .continue-grid { grid-template-columns: 1fr !important; gap: 28px; }
}

/* Prose tables (e.g. citation priority table) */
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 17px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose thead th { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label); border-bottom: 2px solid var(--ink); }

/* Section header rows (H2 + filter rail / "view all") — stack on mobile */
@media (max-width: 768px) {
  .row-head { flex-direction: column; align-items: flex-start !important; gap: 12px; }
  .row-head > div { flex-wrap: wrap; gap: 10px 18px !important; }
  .prose table { font-size: 15px; }
  .prose th, .prose td { padding: 10px 8px; }
}

@media (max-width: 768px) {
  .as-featured span[style*="width:1px"] { display: none !important; }
}
