/* ============================================================
   WILLOWFORD CREATIVE — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --background:      hsl(195, 37%, 19%);
  --background-deep: hsl(195, 37%, 12%);
  --foreground:      hsl(0, 0%, 95%);
  --card:            hsl(195, 37%, 16%);
  --primary:         hsl(135, 100%, 50%);
  --primary-fg:      hsl(195, 37%, 10%);
  --secondary:       hsl(194, 11%, 43%);
  --muted:           hsl(195, 25%, 22%);
  --muted-fg:        hsl(194, 10%, 60%);
  --border:          hsl(194, 11%, 43%);
  --destructive:     hsl(0, 84%, 60%);
  --electric:        hsl(135, 100%, 50%);
  --max-w:           1400px;
  --px:              1.5rem;
  --nav-h:           64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-weight: 300;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── Typography ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
}
.eyebrow.electric { color: var(--primary); border-color: hsl(135 100% 50% / 0.3); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.08; }
h1 { font-size: clamp(2rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); line-height: 1.2; }
h3 { font-size: 1rem; font-weight: 700; }
p  { color: var(--muted-fg); font-weight: 300; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(160, 80%, 60%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-green { color: var(--primary); }
.text-red   { color: var(--destructive); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  font-weight: 600;
}
.btn-primary:hover { background: hsl(135, 100%, 42%); border-color: hsl(135, 100%, 42%); color: var(--primary-fg); }

/* ── Cards ── */
.glass-card {
  background: hsl(195 37% 16% / 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.25s;
}
.glass-card:hover { border-color: hsl(135 100% 50% / 0.3); }
.glass-card.red-accent { border-color: hsl(0 84% 60% / 0.2); }
.glass-card.red-accent:hover { border-color: hsl(0 84% 60% / 0.45); }

/* ── Section layout ── */
section { padding: 5rem 0; }
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}
.section-header p { margin-top: 0.6rem; font-size: 0.9rem; }

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Tag pills ── */
.tag {
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid hsl(135 100% 50% / 0.3);
  color: var(--primary);
}
.tag.muted { border-color: var(--border); color: var(--muted-fg); }
.tag.red { border-color: hsl(0 84% 60% / 0.3); color: var(--destructive); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: hsl(195 37% 19% / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--foreground); }
.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: border-color 0.2s, color 0.2s;
}
.nav-cta:hover { border-color: var(--primary); color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.25rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--background);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted-fg);
  transform: translateX(-16px);
  opacity: 0;
  transition: transform 0.35s, opacity 0.35s, color 0.2s;
}
.mobile-nav.open a { transform: translateX(0); opacity: 1; }
.mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .btn { font-size: 1rem; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--background-deep);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo img { height: 26px; width: auto; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--foreground); }
.footer-copy { font-size: 0.75rem; color: var(--muted-fg); }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(135 100% 50% / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsl(135 100% 50% / 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 520px; }
.hero h1 { margin-bottom: 1rem; }
.hero p { font-size: 0.9375rem; line-height: 1.65; margin-bottom: 1.75rem; max-width: 400px; }

/* Fade-up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s ease forwards; }
.fade-up-delay-1 { animation: fadeUp 0.8s 0.15s ease both; }
.fade-up-delay-2 { animation: fadeUp 0.8s 0.3s ease both; }
.fade-up-delay-3 { animation: fadeUp 0.8s 0.45s ease both; }

/* Scroll-triggered fade */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   HERO — SUBPAGES
   ============================================================ */
.sub-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
}
.sub-hero h1 { font-size: clamp(1.75rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }
.sub-hero p  { font-size: 1rem; max-width: 520px; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { padding: 2.5rem 0; }
.trust-bar .glass-card { padding: 2.5rem; max-width: 820px; margin: 0 auto; }
.trust-bar h2 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); line-height: 1.4; margin-bottom: 1rem; font-weight: 700; }

/* ============================================================
   POSITIONING DIAGRAM
   ============================================================ */
.diagram-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.75rem;
}
.scatter-svg { width: 100%; height: auto; }

/* ============================================================
   MARGIN LEAKING — RED THEME
   ============================================================ */
.margin-section { background: hsl(195 37% 15%); }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps { display: flex; flex-direction: column; gap: 0.75rem; }
.step-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: hsl(135 100% 50% / 0.3);
  min-width: 2.25rem;
  line-height: 1;
  padding-top: 0.2rem;
}

/* ============================================================
   DIAGNOSTIC TOOL
   ============================================================ */
.diagnostic {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.diagnostic h2 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.diagnostic-q {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(194 11% 43% / 0.3);
  cursor: pointer;
}
.diagnostic-q:last-of-type { border-bottom: none; }
.diagnostic-q input[type="checkbox"] { display: none; }
.check-circle {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.check-circle svg { display: none; }
.diagnostic-q.checked .check-circle {
  border-color: var(--primary);
  background: var(--primary);
}
.diagnostic-q.checked .check-circle svg { display: block; }
.diagnostic-q span { font-size: 0.85rem; color: var(--muted-fg); font-weight: 300; line-height: 1.5; }
.diagnostic-q.checked span { color: var(--foreground); }
.diagnostic-footer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid hsl(194 11% 43% / 0.3); }
.diagnostic-result { display: none; animation: fadeUp 0.4s ease; }
.diagnostic-result.show { display: block; }
.verdict { padding: 0.875rem 1rem; border-radius: 0.4rem; margin-bottom: 0.875rem; }
.verdict.critical { background: hsl(0 84% 60% / 0.1); border: 1px solid hsl(0 84% 60% / 0.3); }
.verdict.good { background: hsl(135 100% 50% / 0.08); border: 1px solid hsl(135 100% 50% / 0.3); }

/* ============================================================
   HIGHLIGHTS PILLS
   ============================================================ */
.highlight-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.875rem 0; }

/* ============================================================
   CHECKLIST
   ============================================================ */
.check-list { display: flex; flex-direction: column; gap: 0.625rem; max-width: 560px; }
.check-item { display: flex; align-items: flex-start; gap: 0.625rem; }
.check-item .icon { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.check-item span { font-size: 0.875rem; color: var(--muted-fg); }

/* ============================================================
   COMPARISON
   ============================================================ */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; max-width: 680px; }
@media (max-width: 600px) { .comparison-grid { grid-template-columns: 1fr; } }
.comparison-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 0.5rem; }
.comparison-card h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.comparison-card p { font-size: 0.85rem; }

/* ============================================================
   INSIGHT CARDS
   ============================================================ */
.insight-card { padding: 1.5rem; display: flex; flex-direction: column; }
.insight-card .tag { margin-bottom: 0.875rem; align-self: flex-start; }
.insight-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.45; color: var(--foreground); }
.insight-card p { font-size: 0.825rem; flex: 1; line-height: 1.6; }
.insight-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid hsl(194 11% 43% / 0.3);
}
.insight-card .date { font-size: 0.7rem; color: var(--muted-fg); }
.insight-card .read-more { font-size: 0.75rem; font-weight: 500; color: var(--primary); display: flex; align-items: center; gap: 0.25rem; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-wrap { max-width: 500px; margin: 0 auto; text-align: center; padding: 2.5rem; }
.newsletter-wrap h2 { font-size: 1.25rem; }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.newsletter-form input {
  flex: 1;
  background: hsl(195 37% 12%);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.65rem 0.875rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.8125rem;
}
.newsletter-form input::placeholder { color: var(--muted-fg); }
.newsletter-form input:focus { outline: none; border-color: var(--primary); }
.newsletter-form button {
  padding: 0.65rem 1.1rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: hsl(135, 100%, 42%); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-actions button {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  font-family: inherit;
  transition: all 0.2s;
}
.cookie-actions button.accept-all { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.cookie-actions button:hover { border-color: var(--primary); color: var(--primary); }
.cookie-actions button.accept-all:hover { background: hsl(135, 100%, 42%); }

/* ============================================================
   BOOKING FORM
   ============================================================ */
.booking-form { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.875rem; }
.form-group label { font-size: 0.775rem; font-weight: 500; color: var(--muted-fg); }
.form-group input {
  background: hsl(195 37% 12%);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.65rem 0.875rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.8125rem;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-group input.error { border-color: var(--destructive); }
.form-error { font-size: 0.7rem; color: var(--destructive); }
.form-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.8125rem;
  font-family: inherit;
  transition: background 0.2s;
}
.form-submit:hover { background: hsl(135, 100%, 42%); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   CONFIRMATION PAGE
   ============================================================ */
.confirmation {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.confirmation .icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: hsl(135 100% 50% / 0.1);
  border: 2px solid hsl(135 100% 50% / 0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.75rem;
  color: var(--primary);
}

/* ============================================================
   INSIGHTS PAGE
   ============================================================ */
.insights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* ============================================================
   NOT AN AGENCY
   ============================================================ */
.not-card { padding: 1.75rem; }
.not-card h3 { margin-bottom: 0.4rem; }
.are-card { padding: 1.75rem; }
.are-card .tag { margin-bottom: 0.875rem; }
.are-card h3 { margin-bottom: 0.4rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 1.25rem; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--background-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* ============================================================
   FIXES — alignment, logo, footer, diagnostic, form width
   ============================================================ */

/* ── Logo: no black background ── */
.nav-logo img,
.footer-logo img {
  background: transparent !important;
  display: block;
}

/* ── Footer: match page background, not darker ── */
footer {
  background: var(--background) !important;
  border-top: 1px solid var(--border) !important;
}

/* ── Standardised container max-width and consistent horizontal margins ── */
/* Trust bar: contained card with breathing room */
.trust-bar .glass-card {
  padding: 2rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Why Willowford: taller cards matching Lovable (equal height columns) ── */
.why-grid {
  align-items: stretch;
}
.why-grid article {
  display: flex;
  flex-direction: column;
  padding: 2rem !important;
}
.why-grid article p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Margin Leaking: same bg as page, tighter subtitle ── */
.margin-section {
  background: var(--background) !important;
}
.section-header p {
  line-height: 1.45;
  margin-top: 0.3rem;
}

/* ── Diagnostic: fix click area and check circle ── */
.diagnostic-q {
  user-select: none;
  -webkit-user-select: none;
}
.diagnostic-q:hover .check-circle {
  border-color: hsl(135 100% 50% / 0.5);
}

/* ── Booking form: wider layout ── */
.booking-form {
  max-width: 680px !important;
  margin: 0 auto;
}

/* ── Scatter plot label: subtle, not bright green ── */
/* (handled in SVG directly) */

/* Section padding: handled by .container globally */

/* ── Insight cards: ensure consistent height ── */
.grid-3 article.glass-card.insight-card {
  display: flex;
  flex-direction: column;
}

/* ── Newsletter section: matching background ── */
section:has(.newsletter-wrap) {
  background: var(--background);
}

/* ============================================================
   LOGO — knock out black background via blend mode
   ============================================================ */
.nav-logo img,
.footer-logo img {
  mix-blend-mode: screen;
  /* Ensures black pixels become transparent against any dark background */
}

/* ============================================================
   TRUST CARD — constrained width, centred
   ============================================================ */
.trust-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
}
.trust-h2 {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
}

/* ============================================================
   FOOTER — same background as body, not deeper
   ============================================================ */
footer {
  background: var(--background) !important;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

/* ============================================================
   SECTION MAX-WIDTH — standardised content column
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}

/* ============================================================
   WHY WILLOWFORD — equal height columns
   ============================================================ */
.why-grid {
  align-items: stretch;
}
.why-grid .glass-card {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   DIAGNOSTIC — div-based questions (no label/checkbox conflict)
   ============================================================ */
.diagnostic-q {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(194 11% 43% / 0.25);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  border-radius: 4px;
}
.diagnostic-q:last-of-type { border-bottom: none; }
.diagnostic-q span:last-child {
  font-size: 0.8375rem;
  color: var(--muted-fg);
  font-weight: 300;
  line-height: 1.55;
  padding-top: 1px;
}
.diagnostic-q.checked span:last-child { color: var(--foreground); }

/* ── Diagnostic: ensure pointer events work ── */
.diagnostic-q {
  cursor: pointer;
  pointer-events: all;
}
.diagnostic-q * {
  pointer-events: none;
}

/* ============================================================
   TARGETED FIXES — v3
   ============================================================ */

/* ── Global: pointer cursor on all links ── */
a { cursor: pointer; }
a:hover { cursor: pointer; }

/* ── Hero: control h1 text wrap properly ── */
.hero h1 {
  max-width: 520px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.hero h1 .text-gradient {
  display: inline;
  white-space: nowrap;
}

/* ── Three Pillars: push CTA to bottom of each card ── */
section[aria-label="Our services"] .glass-card {
  display: flex;
  flex-direction: column;
}
section[aria-label="Our services"] .glass-card p {
  flex: 1;
}
section[aria-label="Our services"] .glass-card .highlight-pills {
  margin-top: auto;
  padding-top: 1rem;
}
section[aria-label="Our services"] .glass-card .btn {
  margin-top: 1rem !important;
  width: 100%;
  justify-content: center;
}

/* ── Diagnostic result — matching willowfordcreative.co.uk style ── */
.diag-result-inner {
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: hsl(195 37% 13% / 0.5);
  margin-bottom: 1rem;
}
.diag-score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.diag-score {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1;
}
.diag-label {
  font-size: 0.875rem;
  font-weight: 600;
}
.diag-label-critical { color: var(--destructive); }
.diag-label-under    { color: var(--primary); }
.diag-label-strong   { color: var(--primary); }
.diag-message {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.diag-cta {
  display: inline-flex !important;
  width: auto !important;
}

/* ── Diagnostic check: square checkbox matching willowford.co.uk ── */
.check-circle {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 3px !important;
  border: 1.5px solid hsl(194 11% 40%);
}
.diagnostic-q.checked .check-circle {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ── Newsletter: full-width single-line layout matching willowford.co.uk ── */
.newsletter-wrap {
  max-width: 580px !important;
  padding: 2rem 2.5rem !important;
  text-align: center;
}
.newsletter-wrap h2 {
  font-size: 1.5rem !important;
  margin-bottom: 0.25rem;
}
.newsletter-wrap > p {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.newsletter-form {
  display: flex;
  background: hsl(195 37% 12%);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  overflow: hidden;
  gap: 0;
}
.newsletter-form input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 0 !important;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  border-radius: 0 !important;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  border-left: 1px solid var(--border);
}

/* ── Diagram wrap: no extra bottom padding ── */
.diagram-wrap {
  padding: 1.5rem;
}


/* ============================================================
   FIXES v4
   ============================================================ */

/* ── Nav CTA: pill/lozenge style matching other buttons ── */
.nav-cta.btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
}
.nav-cta.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Mid-breakpoint fix: stops layout crushing at ~800–1050px ── */
/* At this width nav links crowd then hero text wraps badly */
@media (max-width: 1050px) and (min-width: 769px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.75rem; }
  .nav-cta.btn { padding: 0.45rem 0.875rem; font-size: 0.75rem; }
}

@media (max-width: 900px) and (min-width: 769px) {
  .hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
  .hero-content { max-width: 480px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > *:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
}

@media (max-width: 840px) and (min-width: 769px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .nav-cta { display: none; }
}

/* ============================================================
   FIXES v5 — Logo bg + Nav CTA
   ============================================================ */

/* ── Navbar: fully opaque so no bleed-through behind logo ── */
.navbar {
  background: hsl(195, 37%, 19%) !important;
}

/* ── Logo: strip any possible background from img element ── */
.nav-logo,
.nav-logo img,
.footer-logo,
.footer-logo img {
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: normal;
  display: block;
}

/* ── Nav CTA: match hero 'Start a Conversation' button exactly ── */
.nav-cta,
a.nav-cta,
a.btn.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent !important;
  color: var(--foreground);
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.nav-cta:hover,
a.nav-cta:hover,
a.btn.nav-cta:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent !important;
}

/* ============================================================
   INNER PAGES — CLEAN LAYOUT SYSTEM
   All inner page content sits in a 760px left-aligned column.
   The "The Process" section is the visual reference:
   eyebrow tag → h2 → cards, all sharing the same left edge.
   ============================================================ */

:root { --content-w: 760px; }

/* ── Shared left-aligned content column ── */
.page-col {
  max-width: var(--content-w);
}

/* ── Sub-hero (all inner pages) — accounts for fixed 64px navbar ── */
body:not(.home) main > .sub-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 0;
}

.page-hero-content {
  max-width: var(--content-w);
  padding-bottom: 1.5rem;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.875rem;
  line-height: 1.1;
}
.page-hero-content p {
  color: var(--muted-fg);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}
.page-hero-content .btn {
  margin-top: 1.5rem;
  display: inline-flex;
}

/* ── Section rhythm on inner pages ── */
body:not(.home) main > section {
  padding: 3rem 0;
}
body:not(.home) main > .cta-section {
  padding: 4rem 0;
}

/* ── Centre the content column on inner pages ── */
body:not(.home) .inner-section,
body:not(.home) .inner-grid-header,
body:not(.home) .step-list,
body:not(.home) .inner-grid-2,
body:not(.home) .inner-grid-3 {
  max-width: var(--content-w);
}

/* ── Inner page section block: eyebrow + heading + body text ──
   Used on all narrative sections (philosophy, what-it-is, output etc)
   Matches the visual style of "The Process" section exactly.        */
.inner-section {
  max-width: var(--content-w);
}
.inner-section .eyebrow {
  margin-bottom: 0.75rem;
}
.inner-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.inner-section p {
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Grid container on inner pages: same left edge ── */
.inner-grid-header {
  max-width: var(--content-w);
  margin-bottom: 2rem;
}
.inner-grid-header .eyebrow { margin-bottom: 0.75rem; }
.inner-grid-header h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ── Stacked step cards (How We Work) ── */
.step-list {
  max-width: var(--content-w);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 1.75rem 2rem;
}
.step-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.55;
  flex-shrink: 0;
  min-width: 2.5rem;
  line-height: 1;
  padding-top: 0.15rem;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-card p  { color: var(--muted-fg); line-height: 1.7; font-size: 0.9375rem; }

/* ── 2-col grid on inner pages ── */
.inner-grid-2 {
  max-width: var(--content-w);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.inner-grid-3 {
  max-width: var(--content-w);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ── CTA section on inner pages — left-aligned, matches content column ── */
body:not(.home) .cta-section .reveal {
  max-width: var(--content-w);
  text-align: left;
}
body:not(.home) .cta-section h2 {
  max-width: 460px;
  line-height: 1.2;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
body:not(.home) .cta-section .btn {
  display: inline-flex;
}

/* ── Comparison grid (HWW) ── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.compare-grid h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.4rem; }
.compare-grid p  { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.7; }

/* ── Check list (Growth Review) ── */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; }
.check-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; color: var(--muted-fg); line-height: 1.6; }
.check-item .icon { color: var(--primary); flex-shrink: 0; margin-top: 0.1rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .inner-grid-2,
  .inner-grid-3,
  .compare-grid { grid-template-columns: 1fr; }
  .step-card { flex-direction: column; gap: 0.5rem; }
  .page-hero-content { padding: 2rem 0 1rem; }
}

/* ============================================================
   HOMEPAGE — LAYOUT (left-aligned hero, centred sections)
   ============================================================ */

/* Hero stays left-aligned */
.hero-content {
  max-width: 520px;
  /* inherits left alignment from existing rules */
}

/* Homepage section headers: centred */
body.home .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}
body.home .section-header p {
  margin-left: auto;
  margin-right: auto;
}

/* Homepage grids: 3-col, centred */
body.home .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
body.home .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Trust bar centred */
.trust-card { text-align: left; } /* keep trust bar left-aligned internally */

/* Diagram centred */
.diagram-wrap { display: flex; justify-content: center; }

/* CTA section on homepage: centred */
body.home .cta-section .reveal {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
body.home .cta-section h2 {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Homepage responsive */
@media (max-width: 900px) {
  body.home .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body.home .grid-3,
  body.home .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 3rem + 60px));
  z-index: 9999;
  width: calc(100% - 2.5rem);
  max-width: 640px;
  background: hsl(195 37% 14% / 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.cookie-banner p { font-size: 0.775rem; color: var(--muted-fg); flex: 1; min-width: 180px; }
.cookie-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
