/* ============================================================================
 * MarketingMoz — Layout & Visual Overhaul v2.1
 * ----------------------------------------------------------------------------
 * Fixes:
 *  - Service pages no longer squeeze body into a 1.4fr right column.
 *    The sticky-header / split layout has been replaced with a full-width
 *    editorial layout: header on top, body flowing below at full container.
 *  - Legal & info pages no longer pin content to a narrow left column.
 *  - Section heads now stack cleanly with proper spacing.
 *  - Improved typography rhythm, hover states, and visual depth.
 *
 * Loaded LAST (after main.css and page-specific css) so all rules win
 * specificity without !important wherever possible.
 * KFR Protocol: production-ready, additive, fully reversible.
 * ============================================================================ */


/* ============================================================================
 * 1. SERVICE PAGES — Full-width editorial layout
 * ----------------------------------------------------------------------------
 * Affects: seo, seo-articles, consulting, content-creation, google-ads,
 *          google-analytics, google-business, google-indexing-webmaster,
 *          social-media, ai-search-geo, cro-landing-pages, email-marketing,
 *          linkedin-b2b, gdpr-compliance.
 * ========================================================================= */

.service { border-top: 1px solid var(--border-soft); }
.service:nth-of-type(even) { background: var(--paper-2); }

/* Kill the 2-column grid and the sticky head.
   The whole inner becomes a single full-width column. */
.service .service__inner {
  display: block;
  grid-template-columns: none;
  gap: 0;
  max-width: none;
}

.service .service__head {
  position: static;
  top: auto;
  max-width: none;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-soft);
}

/* Bigger, more confident page H1 now that it has full container width */
.service .service__title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 22ch;
  margin-top: 1.25rem;
}

.service .service__title em {
  font-style: italic;
  color: var(--brand-text);
  position: relative;
  white-space: nowrap;
}
.service .service__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.08em;
  background: var(--lime);
  z-index: -1;
}

.service .service__tagline {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1.5rem;
  max-width: 72ch;
}

.service .service__body {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 5vw, 4rem);
}

/* Lede paragraph — bigger, calmer, clearly an intro block */
.service .service__lede {
  font-size: clamp(1.18rem, 1.7vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.015em;
  max-width: 75ch;
  border-left: 4px solid var(--brand);
  padding: 0.25rem 0 0.25rem 1.75rem;
}


/* ============================================================================
 * 2. SERVICE-ENRICH BLOCKS — More breathing room, fuller width
 * ========================================================================= */

.service-enrich {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0;
}

.service-enrich__block {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: clamp(16px, 1.5vw, 24px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-enrich__block:not(.service-enrich__block--highlight):hover {
  border-color: var(--ink);
  box-shadow: 0 18px 36px -22px rgba(10,15,31,0.18);
}

.service-enrich__intro {
  max-width: 75ch;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.service-enrich__title {
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 30ch;
}

/* PRE-EXISTING v2.0 BUG FIX — h3 titles inside dark highlight blocks were
   inheriting --ink color from the global h3 rule, making them invisible on
   the --ink background. Restore proper contrast. */
.service-enrich__block--highlight .service-enrich__title,
.section--dark h3,
.section--dark h4,
.info-section--dark h3,
.info-section--dark h4 {
  color: var(--paper);
}
.info-section--dark .info-section__title em,
.section--dark h3 em,
.section--dark h4 em {
  color: var(--lime);
}

/* PRE-EXISTING v2.0 BUG FIX — .steps li::before was a display:block element
   without explicit width inside grid auto-track, causing the "01/02/03"
   counter pill to stretch to nearly full container width as a black bar.
   This was less visible in v2.0 because content lived in a narrow right
   column; now that we have full-width, the bug is glaring. Constrain it,
   and force step body (strong + p) to stay in the content column. */
.steps li {
  grid-template-columns: 64px 1fr;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  padding: clamp(1.25rem, 2vw, 1.5rem) 0;
}
.steps li::before {
  width: fit-content;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
  text-align: center;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: 0.15rem;
}
.steps li > * { grid-column: 2; }
.steps strong { font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 0.4rem; }
.steps p { max-width: 75ch; line-height: 1.65; }


/* ============================================================================
 * 3. INNER GRIDS — Better fill on full-width container
 * ========================================================================= */

/* Personas: 3-up on wide, scale down gracefully */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.5vw, 1.5rem);
}
.persona-card {
  padding: clamp(1.5rem, 2.2vw, 2rem) clamp(1.4rem, 2vw, 1.85rem);
  border-radius: 16px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.persona-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-text);
  box-shadow: 0 14px 28px -16px rgba(10,15,31,0.18);
}
@media (max-width: 1024px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .persona-grid { grid-template-columns: 1fr; } }

/* Signals: 3-up to fill width better — dense list of triggers */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.2vw, 1rem);
}
.signal-item {
  /* Preserve left padding for the absolute-positioned ::before circle */
  padding: clamp(1rem, 1.6vw, 1.25rem) clamp(1.1rem, 1.7vw, 1.4rem) clamp(1rem, 1.6vw, 1.25rem) 3.5rem;
  border-radius: 14px;
  line-height: 1.55;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.signal-item:hover {
  border-color: var(--brand-text);
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(10,15,31,0.18);
}
@media (max-width: 1100px) { .signal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .signal-grid { grid-template-columns: 1fr; } }

/* Deliverables: 2-up at full width */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 1.6vw, 1.4rem);
}
.deliverable-item {
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border-radius: 16px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.deliverable-item:hover {
  transform: translateY(-3px);
  border-color: var(--brand-text);
  box-shadow: 0 14px 28px -16px rgba(10,15,31,0.18);
}
@media (max-width: 720px) { .deliverables-grid { grid-template-columns: 1fr; } }

/* Myth grid (used inside service__body myth-section) — full width */
.myth-section { padding: clamp(2rem, 4vw, 3rem); border-radius: clamp(16px, 1.5vw, 24px); }
.myth-section__head { max-width: 70ch; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.myth-section__title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.025em; line-height: 1.12; }
.myth-section__intro { max-width: 70ch; }
.myth-card { padding: clamp(1.5rem, 2.2vw, 1.85rem); border-radius: 14px; }


/* ============================================================================
 * 4. SECTION HEADS — Cleaner stacked rhythm
 * ----------------------------------------------------------------------------
 * The original 1fr 1fr split made title + intro feel like two columns. We
 * keep the editorial 2-col only on very wide viewports where it reads well,
 * and stack cleanly otherwise.
 * ========================================================================= */

@media (max-width: 1100px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.section-head h2 { max-width: 22ch; }
.section-head__intro { max-width: 60ch; line-height: 1.65; }


/* ============================================================================
 * 5. LEGAL PAGES — Full-width header, comfortable reading body
 * ----------------------------------------------------------------------------
 * Affects: privacy, terms, cookies.
 * ========================================================================= */

.legal {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}

.legal .section-head {
  display: block;
  max-width: none;
  text-align: left;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border-soft);
}

.legal .section-head .page-h1 {
  max-width: 22ch;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.legal .section-head__intro {
  max-width: 75ch;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.legal__body {
  max-width: 75ch;
  font-size: 1.025rem;
  line-height: 1.75;
}

.legal__body h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  margin: clamp(2rem, 3.5vw, 2.75rem) 0 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.legal__body h2:first-of-type { padding-top: 0; border-top: 0; margin-top: 0; }

.legal__body p { margin: 0 0 1rem; }
.legal__body ul { padding-left: 1.5rem; margin: 0.5rem 0 1.25rem; }
.legal__body ul li { margin: 0.4rem 0; line-height: 1.7; }
.legal__body strong { color: var(--ink); font-weight: 700; }
.legal__body a {
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal__body a:hover { color: var(--brand-text-strong); text-decoration-thickness: 2px; }
.legal__body code {
  background: var(--paper-2);
  border: 1px solid var(--border-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.92em;
}

/* Legal list (used in privacy.html) — full readable width */
.legal__list { max-width: 75ch; }


/* ============================================================================
 * 6. INFO SECTIONS (about, faq, testimonials, contact) — Wider heads
 * ========================================================================= */

.info-section__head {
  max-width: 80ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.info-section__title {
  max-width: 24ch;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.info-section__intro {
  max-width: 75ch;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}


/* ============================================================================
 * 7. HERO HEAD — Roomier on wide
 * ========================================================================= */

.hero__head { max-width: 1040px; }
.hero__title { max-width: 18ch; }
.hero__sub { max-width: 70ch; }


/* ============================================================================
 * 8. CONTAINER — Slightly wider for a more confident full-width feel
 * ========================================================================= */

:root {
  --container: 1320px;
}


/* ============================================================================
 * 9. TYPOGRAPHY POLISH — Better paragraph rhythm and link feel
 * ========================================================================= */

main p {
  text-wrap: pretty;
}

main h1, main h2, main h3, main h4 {
  text-wrap: balance;
}

/* Subtle improvement: links inside body text */
main a:not(.btn):not(.svc-card__cta):not(.persona-card *):not(.prev-next-nav__link):not(.footer__col a):not(.nav__link):not(.dropdown__link):hover {
  color: var(--brand-text-strong);
}


/* ============================================================================
 * 10. SERVICE BLOCK INTERNALS — h4/p readable widths, headings rhythm
 * ========================================================================= */

.service__block { max-width: 80ch; }
.service__block h4 {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  margin-bottom: 1rem;
}
.service__block p { line-height: 1.75; max-width: 75ch; }
.service__list { max-width: 75ch; }
.service__list li { line-height: 1.65; }


/* ============================================================================
 * 11. PREV/NEXT NAVIGATION — Full container width, stronger visual weight
 * ========================================================================= */

.prev-next-nav {
  margin: clamp(3rem, 5vw, 4rem) 0 0;
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

.prev-next-nav__link {
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.75rem, 2.8vw, 2.25rem);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.prev-next-nav__link:hover {
  background: var(--paper);
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(10,15,31,0.22);
}

.prev-next-nav__title { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }


/* ============================================================================
 * 12. CTA BANNER — Full width visual punch
 * ========================================================================= */

.cta-banner { padding: clamp(3rem, 5.5vw, 5rem) 0; }
.cta-banner .container { max-width: 1100px; }


/* ============================================================================
 * 13. SERVICE HEAD — Better top eyebrow rhythm (the "09 / SEO" tag)
 * ========================================================================= */

.service .service__num {
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  letter-spacing: 0.18em;
  font-weight: 600;
}


/* ============================================================================
 * 14. MOBILE — Tighten spacing, prevent overflow
 * ========================================================================= */

@media (max-width: 720px) {
  .service .service__title { font-size: clamp(1.85rem, 8vw, 2.6rem); max-width: none; }
  .service .service__tagline { font-size: 1rem; }
  .service .service__lede { font-size: 1.08rem; padding-left: 1.15rem; border-left-width: 3px; }
  .service .service__head {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  .service-enrich__block { padding: 1.4rem 1.25rem; }
  .service-enrich__title { font-size: 1.4rem; max-width: none; }
  .legal .section-head .page-h1 { font-size: clamp(2rem, 8vw, 2.5rem); max-width: none; }
}

@media (max-width: 480px) {
  .signal-grid, .deliverables-grid, .persona-grid { gap: 0.75rem; }
}


/* ============================================================================
 * 15. PRINT — Clean, single-column legal print
 * ========================================================================= */

@media print {
  .service .service__inner { display: block; }
  .service .service__head { position: static; }
  .legal__body { max-width: none; }
  .topbar, .nav, .footer, .prev-next-nav, .cta-banner { display: none !important; }
}


/* ============================================================================
 * END v2.1 OVERRIDES
 * ============================================================================ */
