/* ============================================================
   Greenshields Studio — agency site
   Hand-crafted CSS. No framework, no build step.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --paper:    #FAFAF6;
  --paper-2:  #F2F2EC;
  --ink:      #0E1411;
  --ink-2:    #1E2421;
  --muted:    #6B7563;
  --border:   #D8DAD2;
  --accent:   #1F6B3A;
  --accent-2: #163E25;

  /* Type */
  --font-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Layout */
  --container: 1200px;
  --gutter:    24px;
  --radius:    4px;
  --radius-lg: 12px;

  /* Type scale (fluid) */
  --fs-hero:    clamp(3rem,   8vw,   6rem);    /* 48–96 */
  --fs-h1:      clamp(2.25rem,6vw,   4rem);    /* 36–64 */
  --fs-h2:      clamp(1.75rem,4.5vw, 3rem);    /* 28–48 */
  --fs-h3:      clamp(1.25rem,2.5vw, 1.75rem); /* 20–28 */
  --fs-body:    1.0625rem;                     /* 17 */
  --fs-lead:    1.25rem;                       /* 20 */
  --fs-small:   0.875rem;                      /* 14 */
  --fs-micro:   0.75rem;                       /* 12 */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Clear space for the permanently fixed header (.nav height = 64px) */
  padding-top: 64px;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 600;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

.eyebrow {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

p { max-width: 64ch; }
p + p { margin-top: 1em; }

a.inline {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}
a.inline:hover { color: var(--accent-2); }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: 0; }
.section--tight  { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.section--hero   { padding-top: var(--space-8); padding-bottom: var(--space-10); border-top: 0; }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: var(--space-5); }
.stack-lg > * + * { margin-top: var(--space-7); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
          backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brandmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.brandmark .dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  transform: translateY(-1px);
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-2);
  transition: color 120ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--paper);
  padding: var(--space-7) var(--gutter);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 40;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 22px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease, border-color 120ms ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent-2); }
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--secondary:hover { border-color: var(--ink); }

/* Accent fill — inverts to paper-with-green-text on hover */
.btn--accent {
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn--accent:hover {
  background: var(--paper);
  color: var(--accent);
  border-color: var(--accent);
}
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(2px); }

.btn-group { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- Cards & tiles ---------- */
/* All tier cards use the same top-right accent gradient. .alt and .deep
   classes are kept as no-ops so existing HTML doesn't break — every card
   renders identically for uniform visual rhythm across the site. */
.tier,
.tier.alt,
.tier.deep {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease, background 200ms ease;
}
.tier:hover { border-color: var(--ink); }
.tier__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.tier__price {
  margin-top: var(--space-2);
  font-size: 1rem;
  color: var(--muted);
}
.tier__price strong { color: var(--ink); font-weight: 600; }
.tier__rule { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }
.tier__list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.tier__list li {
  font-size: var(--fs-small);
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.tier__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.tier__cta { margin-top: auto; padding-top: var(--space-6); }

.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background:
    radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--paper);
  transition: border-color 160ms ease, background 200ms ease;
}
.tile:hover { border-color: var(--ink); }
.tile__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}
.tile__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.tile__body {
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.55;
}

/* Portfolio placeholder card */
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  background: var(--paper-2);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.case__meta {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: var(--space-3);
}
.case__placeholder {
  font-size: var(--fs-small);
  color: var(--muted);
  font-style: italic;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}
.hero__eyebrow { margin-bottom: var(--space-5); }
.hero__sub { margin-top: var(--space-6); }
.hero__cta { margin-top: var(--space-7); }
.hero__meta {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  font-size: var(--fs-small);
  color: var(--muted);
}
.hero__meta strong { color: var(--ink); font-weight: 500; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); max-width: 560px; }
.field { display: grid; gap: var(--space-2); }
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-2);
}
.field input,
.field textarea,
.field select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: var(--fs-body);
  transition: border-color 120ms ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-7);
  color: var(--muted);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand { color: var(--ink); }
.footer-brand p { margin-top: var(--space-4); color: var(--muted); max-width: 36ch; }
.footer-logo {
  display: inline-block;
  line-height: 0;
  /* Logo PNG background is colour-matched to --paper, so no blend mode needed. */
  transition: opacity 160ms ease;
}
.footer-logo:hover { opacity: 0.8; }
.footer-logo img {
  display: block;
  width: 100%;
  max-width: 275px;
  height: auto;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.footer-col a { color: var(--ink-2); transition: color 120ms ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--fs-micro);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }
.no-wrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Page-intro block reused on inner pages */
.page-intro { padding-top: var(--space-8); padding-bottom: var(--space-7); }
.page-intro .eyebrow { margin-bottom: var(--space-4); }
.page-intro p.lead { margin-top: var(--space-5); }

/* Long-form prose (about page) */
.prose { max-width: 64ch; }
.prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.prose p { font-size: var(--fs-body); color: var(--ink-2); line-height: 1.7; }
.prose ul { padding-left: 1.2em; }
.prose ul li { font-size: var(--fs-body); color: var(--ink-2); line-height: 1.7; }
.prose ul li + li { margin-top: 0.4em; }

/* ============================================================
   Visual components added in v2 — stat strip, process,
   gradient cards, icons, star rater, reviews, marquee.
   ============================================================ */

/* ---------- Page texture (subtle warm grain) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .site-footer { position: relative; z-index: 2; }
/* .site-header excluded — it needs position:fixed (set above) to stay permanently glued to the top */

/* ---------- Hero visual mark ---------- */
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.hero-mark__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}
.hero-mark__dot svg { width: 12px; height: 12px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-7) 0;
  margin-top: var(--space-8);
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper-2) 50%, transparent) 100%);
}
.stat-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (min-width: 880px) {
  .stat-strip__grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 879px) {
  .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); padding-right: var(--space-4); }
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat__value .accent { color: var(--accent); }
.stat__label {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 0; }
}
.step {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-6) 0;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (max-width: 1039px) {
  .step { border-top: 1px solid var(--border); padding-right: 0; }
  .step:first-child { border-top: 2px solid var(--ink); }
}
.step__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.step__body {
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 28ch;
}
.step__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Tier card icons ---------- */
.tier__icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: var(--space-5);
  background: var(--paper);
}
.tier__icon svg { width: 20px; height: 20px; }
.tier:hover .tier__icon { border-color: var(--accent); color: var(--accent); }

/* ---------- Tile icons (line SVG) ---------- */
.tile__icon {
  width: 32px; height: 32px;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.tile__icon svg { width: 100%; height: 100%; }
.tile:hover .tile__icon { color: var(--accent); }

/* ---------- Gradient case cards (portfolio placeholders) ---------- */
/* All case cards use the same top-right gradient and 135deg stripe pattern.
   .alt, .warm, .deep classes kept as no-ops so existing HTML doesn't break. */
.case--gradient,
.case--gradient.alt,
.case--gradient.warm,
.case--gradient.deep {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  color: var(--ink);
  isolation: isolate;
}
.case--gradient::before,
.case--gradient.alt::before,
.case--gradient.warm::before,
.case--gradient.deep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--ink) 4%, transparent) 14px 15px),
    var(--paper-2);
}
.case__meta { z-index: 1; position: relative; }
.case__title { z-index: 1; position: relative; }
.case__placeholder { z-index: 1; position: relative; }

/* ---------- Live case card (real project with screenshot) ---------- */
.case--live {
  padding: 0;
  overflow: hidden;
}
.case__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--paper-2);
}
.case__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 400ms ease;
}
.case--live:hover .case__thumb img { transform: scale(1.03); }
.case__body {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.case--live .case__placeholder { font-style: normal; color: var(--muted); }
.case--live .btn { align-self: flex-start; margin-top: var(--space-2); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}
.marquee__track {
  display: flex;
  gap: var(--space-7);
  white-space: nowrap;
  animation: marquee 19s linear infinite;
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.marquee__item .dotmark {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 var(--space-6);
  transform: translateY(-4px);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Star rater (review page) ---------- */
.rater {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.rater__star {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 120ms ease, border-color 120ms ease, transform 120ms ease, background 120ms ease;
}
.rater__star svg { width: 28px; height: 28px; fill: currentColor; }
.rater__star:hover { transform: translateY(-2px); border-color: var(--ink); }
.rater__star.is-hovered,
.rater__star.is-selected { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--paper)); }

.rater-help {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.review-branch { display: none; }
.review-branch.is-active {
  display: block;
  animation: fadeUp 240ms ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-success {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  background: color-mix(in srgb, var(--accent) 5%, var(--paper));
  display: none;
}
.review-success.is-active { display: block; }
.review-success h2 { margin-bottom: var(--space-3); }

/* ---------- Reviews display section (curated Google reviews) ---------- */
.reviews-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  /* Top-right radial to match all other cards site-wide */
  background:
    radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--paper);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color 160ms ease, background 200ms ease;
}
.review:hover { border-color: var(--ink); }
.review__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent);
}
.review__stars svg { width: 16px; height: 16px; fill: currentColor; }
.review__quote {
  font-size: var(--fs-body);
  color: var(--ink);
  line-height: 1.55;
}
.review__quote::before { content: "“"; margin-right: 1px; }
.review__quote::after  { content: "”"; margin-left: 1px; }
.review__author {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: auto;
}
.review__author strong { color: var(--ink-2); font-weight: 500; }
.review__source {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.review__source .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block;
}

/* Placeholder card used until real reviews land — keeps soft gradient but desaturates */
.review--placeholder {
  background:
    radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%),
    var(--paper-2);
  color: var(--muted);
  font-style: italic;
}
.review--placeholder .review__quote { color: var(--muted); }
.review--placeholder .review__quote::before,
.review--placeholder .review__quote::after { content: ""; }

/* ---------- Inline tile (used in services add-ons row) ---------- */
.tile__price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--space-2);
}
.tile__price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 6px;
}

/* ============================================================
   Dark section variant
   Used to make a section render edge-to-edge in the deep
   accent green, with all child text/buttons inverted.
   Apply by adding `section--dark` alongside `section`.
   ============================================================ */

.section--dark {
  background: var(--accent-2);
  color: var(--paper);
  border-top: 0;
}
/* When a dark section follows a white one (or vice versa), drop the border —
   the colour change itself is the divider. */
.section--dark + .section:not(.section--dark) { border-top: 0; }
/* But when two dark sections sit back-to-back, draw a hairline so they read
   as distinct parts of the page rather than one merged block. */
.section--dark + .section--dark {
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
}

/* Headings + body text inversion */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark .hero-title { color: var(--paper); }
.section--dark p { color: color-mix(in srgb, var(--paper) 90%, transparent); }
.section--dark .lead { color: color-mix(in srgb, var(--paper) 88%, transparent); }
.section--dark .eyebrow { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.section--dark .muted { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.section--dark .eyebrow.accent { color: color-mix(in srgb, var(--paper) 85%, var(--accent)); }

/* Hero pill */
.section--dark .hero-mark {
  background: color-mix(in srgb, var(--paper) 8%, transparent);
  border-color: color-mix(in srgb, var(--paper) 22%, transparent);
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}
.section--dark .hero-mark__dot {
  background: var(--paper);
  color: var(--accent-2);
}

/* Stat strip on dark */
.section--dark .stat-strip {
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}
.section--dark .stat { border-left: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.section--dark .stat:first-child { border-left: 0; }
@media (max-width: 879px) {
  .section--dark .stat:nth-child(odd) { border-right: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
}
.section--dark .stat__value { color: var(--paper); }
.section--dark .stat__value .accent { color: color-mix(in srgb, var(--paper) 55%, var(--accent)); }
.section--dark .stat__label { color: color-mix(in srgb, var(--paper) 60%, transparent); }

/* Hero meta strip (if used) */
.section--dark .hero__meta { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.section--dark .hero__meta strong { color: var(--paper); }

/* Buttons — invert primary, restyle secondary */
.section--dark .btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.section--dark .btn--primary:hover {
  background: color-mix(in srgb, var(--paper) 88%, var(--accent));
}
.section--dark .btn--secondary {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 30%, transparent);
}
.section--dark .btn--secondary:hover { border-color: var(--paper); }

/* Inline links */
.section--dark a.inline {
  color: var(--paper);
  text-decoration-color: color-mix(in srgb, var(--paper) 50%, transparent);
}
.section--dark a.inline:hover {
  color: var(--paper);
  text-decoration-color: var(--paper);
}

/* Selection on dark */
.section--dark ::selection { background: var(--paper); color: var(--accent-2); }

/* ============================================================
   Scroll-reveal animations
   Apply [data-reveal] on any element to make it animate in when
   it enters the viewport. Optional direction modifier:
     data-reveal="left"   slide in from the left
     data-reveal="right"  slide in from the right
     data-reveal="up"     stronger fade-up
     data-reveal="scale"  subtle scale-up
   Wrap siblings in [data-reveal-stagger] for cascading delays.
   Honours prefers-reduced-motion.
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1100ms cubic-bezier(.22,.61,.36,1),
    transform 1300ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="up"]    { transform: translateY(60px); }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal].is-in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

[data-reveal-stagger] > * { transition-delay: 0ms; }
[data-reveal-stagger] > *:nth-child(2) { transition-delay: 140ms; }
[data-reveal-stagger] > *:nth-child(3) { transition-delay: 280ms; }
[data-reveal-stagger] > *:nth-child(4) { transition-delay: 420ms; }
[data-reveal-stagger] > *:nth-child(5) { transition-delay: 560ms; }
[data-reveal-stagger] > *:nth-child(6) { transition-delay: 700ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Lift on hover for the card-style components */
.tier, .tile, .review, .case--gradient {
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform 300ms cubic-bezier(.22,.61,.36,1);
}
.tier:hover, .tile:hover, .review:hover, .case--gradient:hover {
  transform: translateY(-3px);
}

/* ============================================================
   Book-a-call modal
   Injected into every page by script.js. Opens when any button
   with [data-open-modal="call"] is clicked. Closes on backdrop
   click, the X button, or Escape.
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.modal[hidden] { display: none !important; }
.modal.is-open { pointer-events: auto; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 17, 0.65);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px 28px;
  box-shadow: 0 28px 80px -24px rgba(0,0,0,0.35);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(.22,.61,.36,1),
    opacity 240ms ease;
}
@media (min-width: 600px) {
  .modal__panel { padding: 48px 36px 36px; }
}
.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 160ms ease, transform 160ms ease;
}
.modal__close:hover { border-color: var(--ink); transform: scale(1.06); }
.modal__close svg { width: 16px; height: 16px; }

.modal h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  margin-bottom: 8px;
  line-height: 1.15;
}
.modal__intro {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal .form { display: grid; gap: 14px; }
.modal .field { display: grid; gap: 6px; }
.modal .field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-2);
}
.modal .field input,
.modal .field select,
.modal .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: var(--fs-body);
  font-family: var(--font-body);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.modal .field input:focus,
.modal .field select:focus,
.modal .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.modal .field textarea { resize: vertical; min-height: 80px; }

.modal__disclaimer {
  font-size: var(--fs-micro);
  color: var(--muted);
  margin-top: var(--space-4);
  line-height: 1.5;
}

.modal__success {
  display: none;
  text-align: center;
  padding: var(--space-5) 0;
}
.modal__success.is-active { display: block; }
.modal__success h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
  .modal__backdrop,
  .modal__panel {
    transition: none;
  }
}

