/* GrowthPillar Inc — Forest Consulting visual system */
:root {
  --bg: #f1f5ef;
  --bg-soft: #e6ede2;
  --sage: #c9d8c8;
  --sage-mid: #9fbaa4;
  --text: #20372c;
  --text-soft: #3e5649;
  --accent: #28644b;
  --accent-hover: #1b4332;
  --line: #cfdccb;
  --deep: #20372c;
  --on-deep: #eef3ec;
  --on-deep-soft: #b9cbbd;
  --radius: 6px;
  --serif: Lora, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 248px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1rem; color: var(--text-soft); }
h1, h2, h3, h4 { margin: 0; color: var(--text); }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.005em;
}
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.subhead {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
}
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 .9rem;
}
.lead { font-size: 1.12rem; line-height: 1.6; color: var(--text-soft); max-width: 38rem; }
.caps-label {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Shell: side navigation ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
  padding: 2.4rem 1.6rem 2.4rem 1.9rem;
  display: flex; flex-direction: column;
  background: var(--bg);
  z-index: 20;
  overflow-y: auto;
}
.brand {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .6rem;
}
.brand:hover { color: var(--accent); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.menu-toggle { display: none; }
.site-nav { margin-top: 3.2rem; }
.site-nav ul { list-style: none; display: grid; gap: .55rem; }
.site-nav a {
  display: inline-block;
  padding: .2rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: .97rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--sage-mid); }
.site-nav a[aria-current="page"] { font-weight: 600; color: var(--accent); border-bottom-color: var(--accent); }
.site-nav .sub { margin: .25rem 0 .4rem .9rem; gap: .2rem; }
.site-nav .sub a { font-size: .86rem; color: var(--text-soft); }
.side-mail { margin-top: 2rem; font-size: .85rem; word-break: break-all; }
.side-tagline {
  margin-top: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text);
  max-height: min(22rem, 42vh);
  padding-top: 1.5rem;
  align-self: flex-start;
}

/* ---------- Main ---------- */
.content { min-width: 0; }
main { display: block; }
.wrap { padding-inline: var(--gutter); max-width: 1200px; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: #fff;
  font: 500 .9rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .05em;
  padding: .9rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--accent); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.btn:disabled { background: #c2d0c8; border-color: #c2d0c8; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--bg-soft); color: var(--accent-hover); }
.on-deep .btn { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.on-deep .btn:hover, .on-deep .btn:focus-visible { background: #fff; border-color: #fff; color: var(--accent-hover); outline-color: #fff; }
.on-deep .btn-ghost { background: transparent; color: var(--on-deep); border-color: var(--on-deep-soft); }
.on-deep .btn-ghost:hover, .on-deep .btn-ghost:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.8rem; }
.copy-status { font-size: .85rem; min-height: 1.3em; margin: .6rem 0 0; }

.text-link {
  font-weight: 500; text-decoration: none; color: var(--accent);
  border-bottom: 1px solid var(--sage-mid); padding-bottom: 1px;
}
.text-link:hover { border-bottom-color: var(--accent); }
.text-link::after { content: " \2192"; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-top: clamp(2.5rem, 5vw, 4rem); }
.hero-art { position: relative; aspect-ratio: 1 / 1.08; margin-left: calc(var(--gutter) * -1); max-width: 470px; }
.hero-art svg { width: 100%; height: 100%; }
.hero-copy .display { margin-bottom: 1.5rem; max-width: 15ch; }
.hero-copy .lead { max-width: 33rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text-soft); }
.hero-facts a { color: var(--text); }

/* Page hero (inner pages) */
.page-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: end; padding-top: clamp(2.5rem, 6vw, 5rem); }
.page-hero .display { max-width: 17ch; margin-bottom: 1.4rem; }
.page-hero-art { max-width: 300px; justify-self: end; width: 100%; }
.breadcrumb { font-size: .86rem; margin-bottom: 1.6rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--sage-mid); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Wide / narrow columns ---------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); }
.split.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-head .title { margin-bottom: 1.2rem; }
.sticky-head { position: sticky; top: 2rem; align-self: start; }

/* Goals list */
.goal-list { list-style: none; display: grid; gap: 1.9rem; }
.goal-list h3 { margin-bottom: .35rem; }
.goal-list p { margin: 0; max-width: 34rem; }

/* Method */
.method-band { position: relative; overflow: hidden; }
.method-band .blob-corner { position: absolute; right: -60px; top: 1.5rem; width: 230px; pointer-events: none; }
.method-list { list-style: none; counter-reset: step; display: grid; gap: 1.8rem; max-width: 34rem; position: relative; }
.method-list li { counter-increment: step; padding-left: 3rem; position: relative; }
.method-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .05rem;
  font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.05rem;
}
.method-list h3 { margin-bottom: .3rem; }
.method-list p { margin: 0; font-size: .96rem; }
.method-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 3rem; max-width: none; }

/* Service index */
.service-index { list-style: none; border-top: 1px solid var(--line); }
.service-index li { border-bottom: 1px solid var(--line); }
.service-index a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 2rem; align-items: baseline;
  padding: 1.35rem 0; text-decoration: none; color: var(--text);
  transition: padding .25s, color .2s;
}
.service-index a:hover, .service-index a:focus-visible { color: var(--accent); padding-left: .6rem; }
.service-index .svc-name { font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.2; }
.service-index .svc-more { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.service-index .svc-sum { grid-column: 1 / -1; font-size: .95rem; color: var(--text-soft); max-width: 44rem; }

/* Deep block (contact) */
.on-deep { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; border-radius: var(--radius); }
.on-deep h2, .on-deep h3 { color: var(--on-deep); }
.on-deep p { color: var(--on-deep-soft); }
.on-deep a:not(.btn) { color: #fff; }
.contact-panel { padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
.contact-panel .blob-deep { position: absolute; right: -80px; bottom: -110px; width: 340px; opacity: .55; pointer-events: none; }
.contact-panel > * { position: relative; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; align-content: start; }
.contact-list .k { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--on-deep-soft); margin-bottom: .2rem; }
.contact-list .v { font-size: 1.05rem; font-style: normal; color: var(--on-deep); }

/* Light info cards */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.info-card { background: var(--bg-soft); border-radius: var(--radius); padding: 1.8rem; }
.info-card h3 { margin-bottom: .5rem; }
.info-card p:last-child { margin: 0; }

.prose { max-width: 40rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 2.4rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }

.tick-list { list-style: none; display: grid; gap: .85rem; }
.tick-list li { padding-left: 1.6rem; position: relative; color: var(--text-soft); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: .7rem; height: .7rem;
  background: var(--sage-mid); border-radius: 60% 40% 55% 45%;
}
.on-deep .tick-list li { color: var(--on-deep-soft); }
.on-deep .tick-list li::before { background: var(--accent); }

.benefit {
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; color: var(--text);
  border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1.4rem; margin: 0;
}
.fact-table { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-table > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact-table dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); padding-top: .15rem; }
.fact-table dd { margin: 0; color: var(--text); }
.fact-table address { font-style: normal; }

.pill-links { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-links a { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .92rem; background: var(--bg); }
.pill-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid h2 { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; display: grid; gap: .4rem; }
.footer-grid a { color: var(--text-soft); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-grid p, .footer-grid address { font-size: .92rem; font-style: normal; color: var(--text-soft); }
.footer-base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--text-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-base p { margin: 0; font-size: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; height: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: .9rem var(--gutter);
    border-right: 0; border-bottom: 1px solid var(--line);
    background: rgba(241, 245, 239, .97);
    max-height: 100vh;
  }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); font: 500 .85rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em;
    padding: .65rem .9rem; cursor: pointer;
  }
  .menu-toggle:hover { border-color: var(--accent); }
  .menu-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
  .menu-bars::before, .menu-bars::after, .menu-bars span { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-bars::before { top: 0; } .menu-bars span { top: 5px; } .menu-bars::after { bottom: 0; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(5.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-5.25px) rotate(-45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars span { opacity: 0; }
  .js .site-nav { display: none; }
  .site-nav { flex-basis: 100%; margin-top: 1rem; padding-bottom: .6rem; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { gap: .1rem; }
  .site-nav > ul > li > a { padding: .55rem 0; font-size: 1.05rem; }
  .side-mail { flex-basis: 100%; margin-top: .4rem; }
  .js .side-mail { display: none; }
  .js .sidebar.menu-open .side-mail { display: block; }
  .side-tagline { display: none; }
  .hero-art { margin-left: 0; }
}

@media (max-width: 860px) {
  .hero, .page-hero, .split, .split.reverse { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; order: -1; }
  .page-hero-art { display: none; }
  .sticky-head { position: static; }
  .method-cols { grid-template-columns: 1fr; }
  .method-band .blob-corner { width: 160px; right: -70px; opacity: .6; }
}

@media (max-width: 600px) {
  .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .fact-table > div { grid-template-columns: 1fr; gap: .2rem; }
  .service-index a { grid-template-columns: 1fr; }
  .service-index .svc-more { order: 3; }
  .actions .btn { width: 100%; }
  .contact-panel { padding: 2rem 1.4rem; }
  .hero-facts { flex-direction: column; }
}

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