/* The Carrot Lab theme styles. Generated by tools/build-wp-css.rb from the design prototype
   (prototype/assets/css/styles.css) plus WordPress adaptations at the end of this file. */

:root {
  /* Brand colours */
  --carrot: #FF7E08;        /* primary accent: CTAs, buttons, highlights (charcoal text on it: 6.3:1) */
  --carrot-deep: #A65000;   /* accessible orange for text/links on light bg (5.2:1 on cream) */
  --green: #087B44;         /* secondary: growth icons, eyebrows, CTA bands (white text on it: 5.4:1) */
  --mint: #74E0A0;          /* accent on dark backgrounds only */
  --charcoal: #24211B;      /* primary text, buttons */
  --dark: #3A352F;          /* softer dark surface for sections, cards & footer (cream text: 11:1) */

  /* Neutrals */
  --cream: #FBF7F1;         /* page background */
  --sand: #F3ECE2;          /* alternate section background */
  --line: #E4DBCE;          /* borders, dividers */
  --muted: #5C574E;         /* secondary text (6.7:1 on cream) */
  --white: #FFFFFF;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.8rem + 2.8vw, 4.25rem);
  --step-5: clamp(2.8rem, 1.9rem + 4.4vw, 5.75rem);

  /* Spacing */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* Shape & depth */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(36, 33, 27, 0.06), 0 8px 24px rgba(36, 33, 27, 0.06);
  --shadow-lift: 0 2px 4px rgba(36, 33, 27, 0.08), 0 18px 40px rgba(36, 33, 27, 0.12);

  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* WordPress: the design handles spacing itself */
.wp-site-blocks > *, .is-layout-flow > *, .is-layout-constrained > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
/* WordPress zeroes bottom margins on blocks; restore the design rhythm (components below can still override). */
.is-layout-flow > :is(h1, h2, h3, h4) { margin-block-end: var(--space-s); }
.is-layout-flow > p { margin-block-end: var(--space-s); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--carrot-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--carrot); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; line-height: 1.15; }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 var(--space-s); text-wrap: pretty; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; line-height: 1.5; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--charcoal); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: var(--cream); }
.section--dark .lede, .section--dark .muted { color: #CFC8BC; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
  margin-bottom: var(--space-s);
}
.eyebrow::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--carrot);
}
.section--dark .eyebrow { color: var(--mint); }

.section-head { max-width: 760px; margin-bottom: var(--space-xl); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.muted { color: var(--muted); }

/* Signature element: hand-painted brush underline, echoing the logo lettering */
.mark {
  position: relative; white-space: nowrap; z-index: 0;
}
.mark::after {
  content: ""; position: absolute; z-index: -1;
  left: -0.06em; right: -0.06em; bottom: -0.16em; height: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15c38-7 88-11 140-10 50 1 101 3 152 1 2 0 3 3 1 4-44 5-96 6-148 7-52 1-100 3-143 6-4 0-6-7-2-8z' fill='%23FF7E08'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left center;
}
.section--dark .mark::after { filter: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); line-height: 1.1;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--carrot); color: var(--charcoal); }
.btn--primary:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--ghost:hover { background: var(--charcoal); color: var(--white); }
.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); }
.section--dark .btn--ghost, .cta-band .btn--ghost { border-color: currentColor; color: inherit; }
.section--dark .btn--ghost:hover { background: var(--cream); color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--charcoal); text-decoration: none;
  border-bottom: 2px solid var(--carrot); padding-bottom: 2px;
}
.text-link:hover { color: var(--carrot-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
/* The frosted background sits on a layer behind the header. Putting backdrop-filter on the
   header itself would trap the full-screen mobile menu inside the header bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: 76px; }
.site-logo { display: block; flex: none; }
.site-logo img { width: 200px; margin-block: -8px; }

/* Menu: WordPress Navigation block */
.site-nav { font-family: var(--font-body); font-size: var(--step-0); }
.site-nav .wp-block-navigation__container { gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.site-nav .wp-block-navigation-item__content { color: var(--charcoal); font-weight: 600; text-decoration: none; }
.site-nav .wp-block-navigation__container > .wp-block-navigation-item:not(.nav-cta) > .wp-block-navigation-item__content {
  padding-block: 0.4rem;
  background: linear-gradient(var(--carrot), var(--carrot)) no-repeat left bottom / 0 2px;
  transition: background-size 0.3s var(--ease);
}
.site-nav .wp-block-navigation__container > .wp-block-navigation-item:not(.nav-cta) > .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
.site-nav .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content { background-size: 100% 2px; }
.site-nav .wp-block-navigation__submenu-icon { width: 1.4em; height: 1.4em; margin-left: 0.15em; padding: 0.2em; }
.site-nav .wp-block-navigation__submenu-icon svg { width: 100%; height: 100%; stroke-width: 2; }

/* Contact Us as an orange pill */
.site-nav .nav-cta > .wp-block-navigation-item__content {
  background: var(--carrot); color: var(--charcoal); font-weight: 700;
  padding: 0.7rem 1.3rem; border-radius: var(--radius-pill);
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.site-nav .nav-cta > .wp-block-navigation-item__content:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); }

/* Services dropdown */
.site-nav .wp-block-navigation__submenu-container {
  top: calc(100% + 0.6rem) !important; left: -1rem !important;
  min-width: 320px !important; padding: 0.5rem !important;
  background: var(--white) !important; color: var(--charcoal) !important;
  border: 1px solid var(--line) !important; border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
}
.site-nav .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.7rem; }
.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: grid !important; grid-template-columns: 40px 1fr; column-gap: 0.75rem; align-items: center;
  padding: 0.65rem 0.75rem !important; border-radius: var(--radius-s);
}
.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { background: var(--sand); }
.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label { grid-column: 2; font-weight: 700; line-height: 1.2; }
.site-nav .wp-block-navigation-item__description {
  display: block; grid-column: 2; margin: 0.1rem 0 0;
  color: var(--muted); font-size: 0.85rem; font-weight: 400; line-height: 1.3;
}
.site-nav .nav-icon > .wp-block-navigation-item__content::before {
  content: ""; grid-row: span 2; width: 40px; height: 40px; border-radius: 12px;
  background: #DCF1E5 no-repeat center / 20px;
}
.site-nav .nav-icon--layout > .wp-block-navigation-item__content::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087B44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E"); }
.site-nav .nav-icon--pin > .wp-block-navigation-item__content::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087B44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.site-nav .nav-icon--phone > .wp-block-navigation-item__content::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087B44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }

/* Mobile menu (WordPress switches to it below 600px) */
.site-nav .wp-block-navigation__responsive-container-open {
  width: 48px; height: 48px; border: 2px solid var(--charcoal); border-radius: 50%;
  display: inline-grid; place-items: center; color: var(--charcoal);
}
.site-nav .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; }
@media (min-width: 600px) { .site-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none; } }
.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: var(--space-m) var(--gutter) var(--space-l) !important; }
.site-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: var(--space-xl) !important; align-items: flex-start !important; }
.site-nav .is-menu-open .wp-block-navigation__container { gap: var(--space-m) !important; align-items: stretch !important; width: 100%; }
.site-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.nav-cta) > .wp-block-navigation-item__content {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; background: none;
}
.site-nav .is-menu-open .wp-block-navigation__submenu-container {
  position: static !important; min-width: 0 !important; width: 100%;
  border: 1px solid var(--line) !important; box-shadow: none; margin-top: var(--space-xs);
}
.site-nav .is-menu-open .nav-cta { align-self: flex-start; }

/* Mobile menu: left-align (WordPress carries over the desktop right alignment) and keep the button padded */
.site-nav .wp-block-navigation__responsive-container.is-menu-open {
  --navigation-layout-justification-setting: flex-start;
  --navigation-layout-justify: flex-start;
  --navigation-layout-align: flex-start;
}
.site-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; }
.site-nav .is-menu-open .nav-cta > .wp-block-navigation-item__content { padding: 0.8rem 1.4rem !important; margin-top: var(--space-s); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 7rem) var(--space-section); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-xl); align-items: center; }
.hero h1 { margin-bottom: var(--space-m); }
.hero .lede { margin-bottom: var(--space-l); max-width: 46ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-m); margin-top: var(--space-l); color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__meta svg { width: 18px; height: 18px; color: var(--green); }

/* Hero visual: "lab specimen" stack showing the three services working */
.specimens { position: relative; display: grid; gap: var(--space-s); }
.specimen {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: var(--space-m); box-shadow: var(--shadow-card);
}
.specimen:nth-child(2) { margin-left: 2.5rem; }
.specimen:nth-child(3) { margin-left: 1rem; }
.specimen__label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--space-xs);
}
.specimen__tag { padding: 0.2rem 0.55rem; border-radius: var(--radius-pill); background: #DCF1E5; color: var(--green); letter-spacing: 0.02em; text-transform: none; }
.chat { display: grid; gap: 0.5rem; font-size: var(--step--1); }
.chat__bubble { padding: 0.55rem 0.85rem; border-radius: 14px; max-width: 90%; line-height: 1.4; }
.chat__bubble--in { background: var(--sand); border-bottom-left-radius: 4px; }
.chat__bubble--out { background: var(--dark); color: var(--cream); justify-self: end; border-bottom-right-radius: 4px; }
.gbp { display: flex; gap: var(--space-s); align-items: center; }
.gbp__pin { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--carrot); display: grid; place-items: center; color: var(--charcoal); }
.gbp__pin svg { width: 22px; height: 22px; }
.gbp strong { display: block; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.stars { color: var(--carrot); letter-spacing: 2px; font-size: 0.95rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--sand); }
.bars span:nth-last-child(-n+3) { background: var(--green); }
.bars span:last-child { background: var(--carrot); }

.hero__blob {
  position: absolute; z-index: -1; right: -12vw; top: 8%;
  width: 55vw; max-width: 760px; aspect-ratio: 1; border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  background: radial-gradient(circle at 30% 30%, #FFE7CF, #FBF7F1 70%);
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .specimen:nth-child(2), .specimen:nth-child(3) { margin-left: 0; }
}

/* ---------- Pain points ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
.pain { padding: var(--space-l) var(--space-m); border-top: 3px solid var(--charcoal); }
.pain__num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); color: var(--carrot); line-height: 1; margin-bottom: var(--space-s); }
.pain h3 { font-size: var(--step-1); }
.pain p { color: var(--muted); margin: 0; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: var(--space-l) var(--space-m) var(--space-m);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: #DCF1E5; color: var(--green); margin-bottom: var(--space-m);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: var(--space-xs); }
.service-card p { color: var(--muted); }
.service-card ul { list-style: none; padding: 0; margin: 0 0 var(--space-l); display: grid; gap: 0.5rem; font-size: var(--step--1); font-weight: 600; }
.service-card li { display: flex; gap: 0.5rem; align-items: flex-start; }
.service-card li svg { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.service-card .text-link { margin-top: auto; align-self: flex-start; }
.service-card .text-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card--featured { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.service-card--featured p { color: #CFC8BC; }
.service-card--featured .service-card__icon { background: rgba(116, 224, 160, 0.15); color: var(--mint); }
.service-card--featured li svg { color: var(--mint); }
.service-card--featured .text-link { color: var(--cream); }
.badge {
  position: absolute; top: var(--space-m); right: var(--space-m);
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--carrot); color: var(--charcoal);
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-l); counter-reset: step; position: relative; }
.step { position: relative; }
.step__icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: var(--space-m);
  background: var(--carrot); color: var(--charcoal);
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 800;
}
.step:nth-child(2) .step__icon { background: var(--mint); }
.step:nth-child(3) .step__icon { background: var(--cream); }
.step p { margin: 0; }
@media (min-width: 861px) {
  .process::before {
    content: ""; position: absolute; top: 36px; left: 72px; right: 20%;
    border-top: 2px dashed rgba(251, 247, 241, 0.3);
  }
}

/* ---------- Work / case study cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
.work-card { display: block; text-decoration: none; color: inherit; }
.work-card__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden;
  display: grid; place-items: center; margin-bottom: var(--space-m);
  transition: transform 0.4s var(--ease);
}
.work-card:hover .work-card__media { transform: scale(0.985); }
.work-card__media--a { background: linear-gradient(135deg, #3B2A5C, #FF7E08); }
.work-card__media--b { background: linear-gradient(135deg, #087B44, #74E0A0); }
.work-card__media--c { background: var(--sand); border: 2px dashed var(--line); }
.work-card__placeholder {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-3);
  color: rgba(255, 255, 255, 0.92); text-align: center; padding: var(--space-m); line-height: 1;
}
.work-card__status {
  position: absolute; top: var(--space-s); left: var(--space-s);
  background: rgba(36, 33, 27, 0.75); color: var(--white);
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
}
.work-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-xs); }
.tag { font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); color: var(--charcoal); }
.work-card h3 { margin-bottom: 0.35rem; }
.work-card p { color: var(--muted); margin: 0; }
.section-foot { margin-top: var(--space-l); display: flex; justify-content: center; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-l); }
.filter {
  min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--radius-pill);
  border: 2px solid var(--line); background: var(--white); color: var(--charcoal);
  font: 700 var(--step--1) var(--font-body); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius-l);
  background: var(--sand) repeating-linear-gradient(45deg, transparent 0 14px, rgba(36,33,27,0.04) 14px 28px);
  border: 2px dashed var(--line);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 600; padding: var(--space-m);
}
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
.value { background: var(--white); border-radius: var(--radius-m); padding: var(--space-m); border: 1px solid var(--line); }
.value h4 { display: flex; align-items: center; gap: 0.5rem; }
.value h4 svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.value p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green); color: var(--white);
  border-radius: var(--radius-l); padding: clamp(2.5rem, 2rem + 4vw, 5rem);
  display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-l); align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(116, 224, 160, 0.18);
}
.cta-band h2 { font-size: var(--step-4); margin-bottom: var(--space-xs); }
.cta-band p { margin: 0; font-size: var(--step-1); color: #E7F8EE; max-width: 44ch; }
.cta-band .btn-row { position: relative; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.breadcrumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-m); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Services page detail ---------- */
.service-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-xl); align-items: start; padding-block: var(--space-xl); border-top: 1px solid var(--line); }
.service-detail:first-of-type { border-top: 0; }
.service-detail__intro { position: sticky; top: 110px; }
.service-detail__intro .service-card__icon { margin-bottom: var(--space-m); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-l); box-shadow: var(--shadow-card); }
.panel + .panel { margin-top: var(--space-m); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.6rem; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.for-who { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--space-s); }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.tier { border: 2px solid var(--line); border-radius: var(--radius-m); padding: var(--space-m); background: var(--white); }
.tier--highlight { border-color: var(--carrot); position: relative; }
.tier__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tier h4 { margin: 0.35rem 0 0.5rem; }
.tier__price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; margin-bottom: var(--space-s); }
.tier__price small { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.tier .checklist { font-size: var(--step--1); gap: 0.5rem; }
.tier .checklist svg { width: 18px; height: 18px; }

.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-m) 0;
  display: flex; justify-content: space-between; gap: var(--space-m); align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line);
  font-size: 1.4rem; font-weight: 400; transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--carrot); border-color: var(--carrot); }
.faq details p { padding-bottom: var(--space-m); color: var(--muted); max-width: 65ch; }

/* ---------- Case study template ---------- */
.case-hero__media { aspect-ratio: 16 / 7; border-radius: var(--radius-l); margin-top: var(--space-l); }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-m); padding-block: var(--space-l); border-block: 1px solid var(--line); margin-top: var(--space-l); }
.case-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 0.25rem 0 0; font-weight: 700; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
.result { background: var(--dark); color: var(--cream); border-radius: var(--radius-m); padding: var(--space-l) var(--space-m); }
.result__num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; color: var(--mint); margin-bottom: var(--space-xs); }
.result p { margin: 0; color: #CFC8BC; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-3); margin-top: var(--space-xl); }
.placeholder-note {
  background: #FFF4E5; border: 1px dashed var(--carrot); border-radius: var(--radius-s);
  padding: var(--space-s) var(--space-m); font-size: var(--step--1); color: var(--charcoal);
}

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-xl); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: var(--space-l) 0 0; display: grid; gap: var(--space-m); }
.contact-list li { display: flex; gap: var(--space-s); align-items: flex-start; }
.contact-list svg { flex: none; width: 24px; height: 24px; color: var(--mint); margin-top: 2px; }
.contact-list strong { display: block; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); background: var(--cream); color: var(--charcoal); border-radius: var(--radius-l); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 1rem;
  font: inherit; color: var(--charcoal); background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius-s);
  transition: border-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--carrot); box-shadow: 0 0 0 4px rgba(255, 126, 8, 0.22); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span {
  display: inline-flex; min-height: 44px; align-items: center; padding: 0.5rem 1rem;
  border: 2px solid var(--line); border-radius: var(--radius-pill); background: var(--white);
  font-weight: 600; font-size: var(--step--1); cursor: pointer;
}
.check input:checked + span { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.check input:focus-visible + span { outline: 3px solid var(--carrot); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #CFC8BC; border-top: 1px solid rgba(251, 247, 241, 0.1); padding-block: var(--space-xl) var(--space-l); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-l); padding-bottom: var(--space-l); border-bottom: 1px solid rgba(251, 247, 241, 0.12); }
.footer-grid img { width: 170px; margin-bottom: var(--space-s); }
.footer-grid h4 { color: var(--mint); font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-s); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s); padding-top: var(--space-m); font-size: var(--step--1); }
.site-footer + * { margin-top: 0; }
.no-footer-gap .site-footer { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services, .pains, .process, .results { grid-template-columns: 1fr; }
  .split, .service-detail, .contact { grid-template-columns: 1fr; }
  .service-detail__intro { position: static; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .work-grid, .tiers, .values, .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-logo img { width: 160px; }
  .mark { white-space: normal; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.mark.is-drawn::after, .no-js .mark::after { animation: none; }
.js .hero .mark::after { animation: brush 0.9s 0.35s var(--ease) both; }
@keyframes brush { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Inner-page additions ---------- */
.jump-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-l); }
.jump-links a { text-decoration: none; }
.service-detail h2 { font-size: var(--step-3); }
.panel h3 { font-size: var(--step-1); margin-bottom: var(--space-m); }
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s); margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); }
.price small { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-s); counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-s); align-items: start; }
.flow li::before {
  content: counter(flow); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--carrot); color: var(--charcoal);
  font-family: var(--font-display); font-weight: 800;
}
.flow strong { display: block; }
.flow span { color: var(--muted); font-size: var(--step--1); }

.quote { max-width: 860px; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0 0 var(--space-m); font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.2; letter-spacing: -0.02em; }
.quote figcaption { color: var(--muted); font-weight: 600; }

.work-card--cta .work-card__media { background: var(--dark); }
.work-card--cta .work-card__placeholder { color: var(--cream); }
.work-card--cta .work-card__placeholder em { font-style: normal; color: var(--mint); }
.work-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .work-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid--3 { grid-template-columns: 1fr; } }

/* Process steps on a light background (Contact page) */
.process--light::before { border-top-color: var(--line) !important; }
.process--light .step:nth-child(3) .step__icon { background: var(--white); box-shadow: inset 0 0 0 2px var(--line); }

/* Homepage hero: location line */
.hero__location {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: var(--space-m) 0 0; padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 700; color: var(--charcoal);
}
.hero__location svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Homepage hero: "your new web page" tile (a mini page that draws itself in) */
.mini-page { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--cream); }
.mini-page__bar { display: flex; align-items: center; gap: 5px; padding: 6px 10px; background: var(--sand); }
.mini-page__bar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.mini-page__url { margin-left: 8px; padding: 1px 10px; border-radius: var(--radius-pill); background: var(--white); font-size: 0.7rem; color: var(--muted); }
.mini-page__body { display: grid; grid-template-columns: 1fr 76px; gap: 12px; align-items: center; padding: 12px; }
.mini-page__h { height: 10px; width: 85%; margin-bottom: 7px; border-radius: 4px; background: var(--charcoal); }
.mini-page__line { height: 6px; width: 100%; margin-bottom: 5px; border-radius: 3px; background: var(--line); }
.mini-page__line--short { width: 62%; }
.mini-page__btn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 10px;
  border-radius: var(--radius-pill); background: var(--carrot); color: var(--charcoal);
  font-size: 0.72rem; font-weight: 700;
}
.mini-page__btn svg { width: 11px; height: 11px; }
.mini-page__img { height: 64px; border-radius: 8px; background: linear-gradient(135deg, #FFE7CF, #DCF1E5); }
.js .specimen.is-visible .mini-page__h,
.js .specimen.is-visible .mini-page__line { transform-origin: left; animation: build-in 0.7s var(--ease) both; }
.js .specimen.is-visible .mini-page__line { animation-delay: 0.15s; }
.js .specimen.is-visible .mini-page__line--short { animation-delay: 0.3s; }
.js .specimen.is-visible .mini-page__btn,
.js .specimen.is-visible .mini-page__img { animation: pop-in 0.5s 0.45s var(--ease) both; }
@keyframes build-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

/* "Our recommendation" tip at the end of a How it works list */
.flow-tip {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--space-s);
  margin-top: var(--space-l); padding: var(--space-m);
  border-radius: var(--radius-m); background: #DCF1E5; border: 1px solid #BFE5CF;
}
.flow-tip__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--white); }
.flow-tip__icon svg { width: 22px; height: 22px; }
.flow-tip__label { margin: 0 0 0.2rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.flow-tip strong { display: block; font-size: var(--step-0); margin-bottom: 0.35rem; }
.flow-tip p:not(.flow-tip__label) { font-size: var(--step--1); color: var(--charcoal); }

/* Banner graphics on the service pages */
.specimen__text { margin: 0; font-size: var(--step--1); line-height: 1.5; }
.gbp .muted { font-size: var(--step--1); }

/* Mini Google Maps search (Google Business Profile page) */
.maps-search {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white);
  font-size: 0.8rem; color: var(--muted);
}
.maps-search svg { width: 14px; height: 14px; flex: none; }
.maps-mini {
  position: relative; height: 96px; margin-bottom: 12px; border-radius: var(--radius-s); overflow: hidden;
  background-color: #EAF2E6;
  background-image:
    linear-gradient(90deg, transparent 46%, #fff 46%, #fff 49%, transparent 49%),
    linear-gradient(0deg, transparent 55%, #fff 55%, #fff 59%, transparent 59%),
    linear-gradient(32deg, transparent 72%, #fff 72%, #fff 75%, transparent 75%);
}
.maps-pin {
  position: absolute; width: 14px; height: 14px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #B9B2A6;
}
.maps-pin--you { width: 24px; height: 24px; background: var(--carrot); box-shadow: 0 0 0 7px rgba(255, 126, 8, 0.22); }
.js .specimen.is-visible .maps-pin--you { animation: pin-drop 0.6s 0.3s var(--ease) both; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-14px) rotate(-45deg); } to { opacity: 1; transform: rotate(-45deg); } }
.maps-actions { display: flex; gap: 6px; margin-top: 12px; }
.maps-actions span {
  flex: 1; padding: 5px 0; border: 1px solid var(--line); border-radius: var(--radius-pill);
  text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--green);
}
.maps-actions span:first-child { background: var(--green); border-color: var(--green); color: var(--white); }

/* ==========================================================================
   WordPress adaptations
   Core blocks render slightly different markup to the prototype; these rules
   map them onto the same design.
   ========================================================================== */

/* Buttons block */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
body .wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); line-height: 1.1;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  background: var(--carrot); color: var(--charcoal); text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease);
}
body .wp-block-button:not(.is-style-outline) .wp-block-button__link::after { content: "→"; transition: transform 0.25s var(--ease); }
body .wp-block-button .wp-block-button__link:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
body .wp-block-button .wp-block-button__link:hover::after { transform: translateX(3px); }
body .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border-color: var(--charcoal); color: var(--charcoal); padding: 0.8rem 1.4rem; }
body .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--charcoal); color: var(--white); }
body .wp-block-button.is-style-light > .wp-block-button__link { background: var(--white); color: var(--charcoal); }
body .wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--charcoal); color: var(--white); }
body .section--dark .wp-block-button.is-style-outline > .wp-block-button__link { border-color: var(--cream); color: var(--cream); }
.hero .wp-block-buttons, .page-hero .wp-block-buttons { margin-bottom: 0; }
.page-hero .lede + .wp-block-buttons { margin-top: var(--space-l); }

/* "Explore…" links (paragraph with a link) */
p.more-link { margin: auto 0 0; }
.more-link a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--charcoal); text-decoration: none;
  border-bottom: 2px solid var(--carrot); padding-bottom: 2px;
}
.more-link a:hover { color: var(--carrot-deep); }
.service-card .more-link { align-self: flex-start; }
.service-card .more-link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card--featured .more-link a { color: var(--cream); }

/* Tick lists */
.service-card li, .checklist li, .hero__meta li {
  display: block; position: relative; padding-left: 1.7em;
}
.service-card li::before, .checklist li::before, .hero__meta li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.15em; height: 1.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087B44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.service-card--featured li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374E0A0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.tier .checklist { font-size: var(--step--1); gap: 0.5rem; }

/* Hero extras */
.hero__meta {
  list-style: none; padding: 0; margin: var(--space-l) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-m);
  color: var(--muted); font-size: var(--step--1); font-weight: 600;
}
.hero__meta li { padding-left: 1.5em; }
.hero__location::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087B44' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Numbered "how it works" lists */
.flow { list-style: none; padding: 0; margin: 0; counter-reset: flow; display: grid; gap: var(--space-m); }
.flow li {
  counter-increment: flow; display: block; position: relative;
  padding-left: 56px; min-height: 40px; color: var(--muted); font-size: var(--step--1);
}
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--carrot); color: var(--charcoal);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
.flow strong { display: block; color: var(--charcoal); font-size: var(--step-0); }
.panel--narrow { max-width: 820px; }

/* Service pages */
.h2-small { font-size: var(--step-3); }
.for-who { display: block; margin-top: var(--space-s); color: var(--muted); font-size: var(--step--1); }
.for-who strong { color: var(--charcoal); }
.service-detail { border-top: 0; padding-block: var(--space-xl); }
.panel h3 { font-size: var(--step-1); }
.panel__foot .price { margin: 0; }
.panel__foot .wp-block-buttons { margin: 0; }
.tiers__foot { margin-top: var(--space-m); }
p.tier__label { margin: 0; }
p.tier__price { margin-bottom: var(--space-s); }
p.badge { margin: 0; }

/* Cards & grids */
p.pain__num { margin-bottom: var(--space-s); }
p.step__icon { margin-bottom: var(--space-m); }
.value__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #DCF1E5; color: var(--green); margin-bottom: var(--space-s);
}
.value__icon svg { width: 22px; height: 22px; }
.work-card__media p { margin: 0; }
.work-card__media--cta { background: var(--dark); }
.work-card__media--cta .work-card__placeholder { color: var(--cream); }
p.work-card__meta { margin-bottom: var(--space-xs); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.work-card .more-link { margin-top: var(--space-s); }
.photo-placeholder p { margin: 0; }
.split .wp-block-image img { border-radius: var(--radius-l); }
.section-foot .wp-block-buttons { justify-content: center; }

/* Contact */
.contact-list li { display: block; color: #CFC8BC; }
.contact-list strong { display: block; color: var(--cream); }
.contact-list a { color: var(--cream); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: var(--space-s) var(--space-m); border-radius: var(--radius-s); margin-bottom: var(--space-m); color: var(--charcoal); }
.form-notice--success { background: #DCF1E5; }
.form-notice--error { background: #FDE4DC; }
.form-notice a { color: var(--charcoal); }

/* Case study */
.case-facts > * > p { margin: 0; }
.case-facts__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.case-facts__value { font-weight: 700; margin-top: 0.25rem !important; }
.case-hero__media { display: grid; place-items: center; color: var(--white); font-weight: 600; text-align: center; padding: var(--space-m); }
p.result__num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; color: var(--mint); margin-bottom: var(--space-xs); }
p.quote__text { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: var(--space-m); }
p.quote__cite { color: var(--muted); font-weight: 600; }

/* Section spacing variants */
.section--flush-top { padding-top: 0; }
.section--compact { padding-block: var(--space-xl); }

/* Footer */
.footer-grid p { margin-bottom: 0; }
.footer-bottom p { margin: 0; }
.footer-grid .wp-block-list { margin: 0; }

/* Posts (blog / fallback templates) */
.post-list .wp-block-post { padding-block: var(--space-m); border-bottom: 1px solid var(--line); }
.prose .wp-block-post-title { font-size: var(--step-4); }

/* In the editor, show everything (scroll reveals only run on the live site). */
.editor-styles-wrapper .reveal { opacity: 1; transform: none; }

/* Recommendation box: WordPress wraps the title in a paragraph */
p.flow-tip__label { margin: 0 0 0.2rem; }
p.flow-tip__title { margin-bottom: 0.35rem; }
.flow-tip p.more-link { margin-top: var(--space-xs); }

/* Map pin positions in the stylesheet too, in case the host strips inline styles from page content */
.maps-mini .maps-pin:nth-child(1) { left: 18%; top: 30%; }
.maps-mini .maps-pin:nth-child(2) { left: 72%; top: 62%; }
.maps-mini .maps-pin:nth-child(3) { left: 82%; top: 18%; }
.maps-mini .maps-pin--you { left: 44%; top: 34%; }

/* Legal pages (Privacy Policy, Terms of Use, Client Terms) */
.legal { max-width: 760px; }
.legal h2 { font-size: var(--step-2); margin-top: var(--space-l); }
.legal .is-layout-flow > h2:first-child, .legal > h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--charcoal); }
.legal .wp-block-list { padding-left: 1.25rem; margin: 0 0 var(--space-s); display: grid; gap: 0.4rem; }
.legal a { color: var(--carrot-deep); }
mark.legal-placeholder { background: #FFE7CF; color: var(--charcoal); padding: 0 0.25em; border-radius: 4px; }

/* Footer legal links */
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
