/* ═══════════════════════════════════════════════════════════
   Green Kauri — shared stylesheet
   Palette carried over from the original site; type and spacing
   rebuilt for a multi-page structure.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* visually hidden but read aloud — used to announce links that open a new tab */
.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;
}
/* keyboard users shouldn't have to tab through the whole nav on every page */
.skip-link {
  position: absolute; left: var(--s2); top: -64px; z-index: 200;
  background: var(--green-dark); color: var(--white);
  padding: 12px 22px; border-radius: 0 0 8px 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }
main:focus { outline: none; }   /* programmatic target only, never a visible stop */

:root {
  /* ── colour: original palette, plus one deeper green for hero ground ── */
  --green-deep:   #0f2419;
  --green-dark:   #1a3a2e;
  --green-mid:    #2d6b4f;
  --green-light:  #3d8b65;
  --green-accent: #4caf82;
  --text-dark:    #111;
  --text-mid:     #444;
  --text-light:   #5f6360;   /* was #777 — failed 4.5:1 on the tinted grounds */
  --bg-light:     #f5f5f3;
  --bg-tint:      #f1f3f2;
  --line:         #e4e7e6;
  --white:        #ffffff;

  /* ── type ── */
  --font-display: "Inter", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  /* ── spacing scale ── */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px;
  --s5: 64px; --s6: 96px; --s7: 120px;

  --wrap: 1180px;
  --nav-h: 92px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* keyboard users must always see where they are */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }

/* ── shared type ── */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;   /* sans headlines need far tighter tracking than a serif */
}
h1.display { font-size: clamp(34px, 4.4vw, 60px); }
h2.display { font-size: clamp(29px, 3.9vw, 50px); }
h3.display { font-size: clamp(22px, 2.4vw, 31px); }

.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-light);
}
.eyebrow.on-dark { color: rgba(255,255,255,0.55); }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--text-mid); }
.lede.on-dark { color: rgba(255,255,255,0.8); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border: 1px solid transparent; border-radius: 6px;
  text-decoration: none; cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-solid  { background: var(--green-dark); color: var(--white); }
.btn-solid:hover { background: var(--green-mid); }
.btn-light  { background: var(--white); color: var(--green-dark); }
.btn-light:hover { background: var(--bg-light); }
.btn-ghost  { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-sm { padding: 12px 18px; font-size: 14px; }

.button-row {
  display: flex; flex-wrap: wrap; gap: var(--s2);
}

/* text link with a moving arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 0;                 /* 24px of text -> a 44px touch target */
  font-size: 15px; font-weight: 600; color: var(--green-mid); text-decoration: none;
}
.arrow-link span { transition: transform 0.18s; }
.arrow-link:hover span { transform: translateX(4px); }

/* ═══════════ NAV ═══════════ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4);
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 68px; width: auto; }
.logo-name {
  font-size: 15px; font-weight: 700; color: var(--green-dark);
  letter-spacing: 0.09em; line-height: 1.15;
}
.nav-links { display: flex; align-items: stretch; gap: clamp(12px, 1.35vw, 22px); }
.nav-links > a {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 1px;
  text-decoration: none; padding: 5px 0;
  border-bottom: 2px solid transparent; transition: border-color 0.18s;
}
.nav-svc {
  font-size: 14.5px; font-weight: 600; color: var(--green-dark);
  white-space: nowrap; transition: color 0.18s;
}
.nav-sub { font-size: 11.5px; color: var(--text-light); white-space: nowrap; }
.nav-links > a:hover { border-bottom-color: var(--green-accent); }
.nav-links > a:hover .nav-svc { color: var(--green-mid); }
.nav-links > a[aria-current="page"] { border-bottom-color: var(--green-dark); }

/* ═══════════ HOME HERO ═══════════ */
.hero-home { background: var(--green-deep); color: var(--white); overflow: hidden; }
/* full-bleed grid: the photo runs to the right edge of the viewport, while the
   copy column keeps its left edge on the same line as every .wrap below it */
.hero-home-inner {
  display: grid; grid-template-columns: 1.12fr 1fr; align-items: center;
  min-height: min(78vh, 720px);
}
.hero-copy {
  padding: var(--s6) var(--s4) var(--s6)
           max(var(--s4), calc((100vw - var(--wrap)) / 2 + var(--s4)));
}
.hero-copy .lede { max-width: 46ch; }
.hero-copy h1 { margin: var(--s3) 0 var(--s3); }
.hero-copy .lede { margin-bottom: var(--s4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

.hero-figure { position: relative; align-self: stretch; display: flex; align-items: center; min-width: 0; }
.hero-home-inner > * { min-width: 0; }
.hero-figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
/* soften the join between photo and the green ground */
.hero-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--green-deep) 0%, rgba(15,36,25,0.35) 7%, rgba(15,36,25,0) 20%);
}
/* ── HERO DIAGRAM ── a glass panel over the photo, so it stays legible
   whatever the photograph behind it happens to be ── */
.hero-figure::after { z-index: 1; }
.loop {
  position: absolute; z-index: 2;
  left: var(--s4); bottom: var(--s4);
  width: min(440px, 68%);
  padding: var(--s3) var(--s3) var(--s2);
  background: rgba(15, 36, 25, 0.74);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}
.loop-cap {
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--green-accent);
  margin-bottom: var(--s2);
}
.loop svg { width: 100%; height: auto; display: block; }
.loop-wires { color: var(--green-accent); opacity: 0.7; }
.loop-node rect {
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.28); stroke-width: 1;
}
.loop-node text {
  fill: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  text-anchor: middle;
}
.loop-source rect { fill: var(--green-accent); stroke: none; }
.loop-source text { fill: var(--green-deep); font-weight: 700; }

/* data moving along the wires — one restrained effect, off when asked */
.loop-wires path {
  stroke-dasharray: 5 7;
  animation: flow 2.6s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -24; } }

.hero-figure .missing {
  width: 100%; aspect-ratio: 1/1;
  display: grid; place-content: center; text-align: center;
  padding: var(--s4); font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.25);
}
.hero-figure .missing code { overflow-wrap: anywhere; font-size: 13px; }

/* ═══════════ SIGNATURE: START-POINT TRIAGE ═══════════ */
.start { padding: var(--s7) 0; }
.start-head { max-width: 730px; margin-bottom: var(--s6); }
.start-head h2 { margin: var(--s2) 0 var(--s3); }
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }

.start-card {
  display: flex; flex-direction: column;
  border-top: 2px solid var(--green-dark);
  padding-top: var(--s3);
}
/* the visitor's own words — the thing that tells them which door is theirs */
.start-quote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3;
  color: var(--green-dark); letter-spacing: -0.02em;
  margin-bottom: var(--s3); min-height: 2.6em;
}
.start-name {
  font-size: 12px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 6px;
}
.start-price { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: var(--s2); }
/* class-targeted, not `.start-card p` — a descendant type selector here would
   outrank .start-quote and silently flatten it back to body size */
.start-body { font-size: 15px; color: var(--text-mid); margin-bottom: var(--s3); }
.start-card .arrow-link { margin-top: auto; align-self: flex-start; }

/* ═══════════ xEO STRIP ═══════════ */
.strip { background: var(--green-dark); color: var(--white); padding: var(--s6) 0; }
.strip-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s5); align-items: start; }
.strip h2 { margin: var(--s2) 0 0; }
.strip-defs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); }
.def { border-top: 1px solid rgba(255,255,255,0.22); padding-top: var(--s2); }
.def dt, .abbr-sm {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--green-accent); margin-bottom: 8px; line-height: 1;
}
.def dd { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.78); }
.def dd b { color: var(--white); font-weight: 600; }

/* ═══════════ INNER PAGE HEADER ═══════════ */
.page-head { background: var(--bg-light); border-bottom: 1px solid var(--line); padding: var(--s6) 0 var(--s5); }
.page-head .inner { max-width: 720px; }
.page-head h1 { margin: var(--s2) 0 var(--s3); }

/* ═══════════ GENERIC SECTIONS ═══════════ */
.section { padding: var(--s7) 0; }
.section.tint { background: var(--bg-tint); }
.section.dark { background: var(--green-dark); color: var(--white); }
.section-head { max-width: 640px; margin-bottom: var(--s5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: var(--s2) 0 var(--s2); }

/* steps / feature / card grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }

.icon-disc {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s2);
}
.icon-disc svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 2; }
.step-n {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 8px;
}
/* the four xEO abbreviations carry the section on their own */
.abbr {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  line-height: 1; letter-spacing: -0.01em;
  color: var(--green-mid); margin-bottom: var(--s2);
  padding-bottom: var(--s2); border-bottom: 1px solid var(--line);
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 7px; line-height: 1.35; }
/* a link that *is* the card heading is a navigation target, so give it real size */
.card-title a { display: inline-block; padding: 12px 0; text-decoration: none; }
.card-title a:hover { color: var(--green-mid); text-decoration: underline; }
.card-body { font-size: 14.5px; color: var(--text-mid); }
.section.dark .card-body { color: rgba(255,255,255,0.75); }

/* video */
.video-frame {
  max-width: 840px; margin: 0 auto; aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}
.video-frame iframe { width: 100%; height: 100%; border: none; display: block; }

/* checklist */
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1) var(--s4); }
.checks li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 15.5px; }
.checks svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; stroke: var(--green-mid); fill: none; stroke-width: 2.5; }
.section.dark .checks svg { stroke: var(--green-accent); }

/* ═══════════ PRICE PANEL ═══════════ */
.price-panel {
  background: var(--green-dark); color: var(--white);
  border-radius: 16px; padding: var(--s5) var(--s4);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: center;
}
.price-panel .amount {
  font-family: var(--font-display); font-size: clamp(46px, 5.6vw, 66px);
  font-weight: 700; line-height: 1; letter-spacing: -0.04em;
}
.price-panel .amount sup { font-size: 0.45em; vertical-align: super; }
.price-panel .amount .per { font-size: 0.3em; font-family: var(--font-body); font-weight: 500; opacity: 0.7; }
.price-panel .note { color: rgba(255,255,255,0.72); font-size: 15px; margin-top: var(--s1); }

/* ═══════════ BLOG ═══════════ */
.blog-empty {
  max-width: 560px; padding: var(--s4);
  background: var(--bg-light); border: 1px solid var(--line); border-radius: 14px;
}
.blog-empty a { color: var(--green-mid); font-weight: 600; }
.post-row { max-width: 720px; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.post-date { font-size: 13px; color: var(--text-light); margin-bottom: var(--s1); }
.post-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s1); }
.post-title a { text-decoration: none; }
.post-title a:hover { color: var(--green-mid); }
.post-excerpt { font-size: 16px; color: var(--text-mid); margin-bottom: var(--s2); }

/* article pages */
.article-head { background: var(--bg-light); border-bottom: 1px solid var(--line); padding: var(--s6) 0 var(--s5); }
.article-head .inner { max-width: 820px; }
.article-head h1 { margin: var(--s2) 0 var(--s3); }
.article-meta { font-size: 14px; color: var(--text-light); margin-top: var(--s3); }
.article-body { max-width: 780px; }
.article-body > * + * { margin-top: var(--s3); }
.article-body h2 {
  font-family: var(--font-display); font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12; letter-spacing: -0.03em; margin-top: var(--s5);
}
.article-body h3 {
  font-size: 20px; line-height: 1.3; margin-top: var(--s4);
}
.article-body p, .article-body li { font-size: 18px; line-height: 1.75; color: var(--text-mid); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 10px; }
.article-body a { color: var(--green-mid); font-weight: 600; }
.article-callout {
  padding: var(--s4); background: var(--bg-light);
  border-left: 4px solid var(--green-mid); border-radius: 8px;
}
.article-callout p { font-size: 17px; }
.article-figure {
  margin: var(--s5) 0; border-radius: 14px; overflow: hidden;
  background: var(--green-deep);
}
.article-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-figure figcaption {
  padding: var(--s2) var(--s3); font-size: 13px; color: rgba(255,255,255,0.72);
}
.article-faq {
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.article-faq details {
  border-bottom: 1px solid var(--line); padding: var(--s2) 0;
}
.article-faq summary {
  cursor: pointer; font-weight: 700; color: var(--green-dark);
  font-size: 17px;
}
.article-faq details p { margin-top: var(--s1); font-size: 16px; }

/* ═══════════ CONTACT FORM ═══════════ */
.form-wrap { max-width: 620px; }
.form-wrap form { display: grid; gap: var(--s2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.form-wrap label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-wrap input, .form-wrap select, .form-wrap textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-body); font-size: 15px; color: var(--text-dark);
  background: var(--white); border: 1px solid #dcdfde; border-radius: 8px;
}
.form-wrap textarea { min-height: 130px; resize: vertical; }
.form-wrap input:focus, .form-wrap select:focus, .form-wrap textarea:focus {
  outline: none; border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(76,175,130,0.18);
}
.form-wrap button { justify-self: start; margin-top: var(--s1); }
.form-status { font-size: 14.5px; line-height: 1.6; min-height: 22px; }
.form-status.error { color: #b3261e; }
.form-status.success { color: var(--green-mid); font-weight: 600; }

/* ═══════════ CLOSING CTA + FOOTER ═══════════ */
.closer { background: var(--bg-light); padding: var(--s6) 0; text-align: center; }
.closer h2 { margin-bottom: var(--s2); }
.closer p { color: var(--text-mid); margin-bottom: var(--s4); max-width: 62ch; margin-inline: auto; }
.closer .row { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }

.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.6); padding: var(--s5) 0 var(--s4); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s4); margin-bottom: var(--s5); }
.footer-brand img {
  height: 54px; width: auto; margin-bottom: var(--s2);
  filter: brightness(0) invert(1); opacity: 0.85;   /* dark logo -> white silhouette */
}
.footer-brand p { max-width: 300px; line-height: 1.65; }
.footer-head {
  font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.68);   /* was 0.4 — measured 3.73:1 */
  margin-bottom: var(--s2); font-weight: 700;
}
.footer-col a { display: block; color: rgba(255,255,255,0.78); text-decoration: none; padding: 11px 0; }
.footer-col a:hover { color: var(--white); }
.footer-base { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--s3); font-size: 13px; }

/* ═══════════ MOTION ═══════════ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.rise-2 { animation-delay: 0.1s; }
.rise-3 { animation-delay: 0.2s; }
.rise-4 { animation-delay: 0.3s; }

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

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1000px) {
  .hero-home-inner { grid-template-columns: 1fr; gap: 0; padding-left: 0; min-height: 0; }
  .hero-copy { padding: var(--s5) var(--s4) var(--s5); max-width: none; order: 2; }
  .hero-figure { order: 1; max-height: 42vh; overflow: hidden; }
  .loop { display: none; }
  .hero-figure::after { background: linear-gradient(0deg, var(--green-deep) 0%, rgba(15,36,25,0) 28%); }
  .strip-inner { grid-template-columns: 1fr; gap: var(--s4); }
  .start-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .start-quote { min-height: 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-panel { grid-template-columns: 1fr; text-align: left; }
}

/* below 1100px the nav drops to a scrollable row under the logo,
   so narrower screens still show every top-level page. */
@media (max-width: 1100px) {
  :root { --nav-h: auto; --s6: 64px; --s7: 72px; }
  .site-nav-inner { flex-wrap: wrap; padding: 10px var(--s3) 0; }
  .logo img { height: 46px; }
  .nav-links {
    order: 3; width: 100%; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    width: calc(100% + var(--s3) * 2);
    padding: 4px var(--s3) 10px; margin: 0 calc(var(--s3) * -1);
    /* five chips no longer fit — fade the right edge so it reads as scrollable */
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links > a {
    flex: 0 0 auto; background: var(--bg-light);
    border: 1px solid var(--line); border-bottom-width: 1px; border-radius: 999px;
    padding: 8px 15px;
  }
  .nav-links > a[aria-current="page"] { background: var(--green-dark); border-color: var(--green-dark); }
  .nav-links > a[aria-current="page"] .nav-svc { color: var(--white); }
  .nav-sub { display: none; }
  .nav-svc { font-size: 13px; }
  .wrap { padding: 0 var(--s3); }
  .hero-copy { padding-left: var(--s3); padding-right: var(--s3); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .checks, .field-row, .strip-defs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .hero-actions .btn { flex: 1 1 100%; }
}
