/* Pacha Environmental Solutions — site styles
   Design tokens taken from the original pachasolve.com (Wix) build. */

:root {
  --green: #2F7324;
  --green-dark: #245A1B;
  --green-on-dark: #7CCB6C;
  --green-tint: #EEF5EA;
  --ink: #111111;
  --text: #2C332C;
  --muted: #4A524B;
  --subtle: #7C837D;
  --line: #E4E5E1;
  --bg: #FAFAF9;
  --bg-alt: #F1F2EF;
  --white: #FFFFFF;
  --dark: #111111;
  --dark-line: #2B2F2B;
  --on-dark: #FFFFFF;
  --on-dark-lead: #D2DAD3;
  --on-dark-body: #C3CCC4;
  --on-dark-muted: #98A199;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1160px;
  --gutter: 24px;
  --radius: 4px;
  --header-h: 77px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); }
ul { margin: 0; padding: 0; }
button { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

.container { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
  margin: 0 0 18px;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--green-on-dark); }
.eyebrow.muted { color: var(--subtle); letter-spacing: 0.13em; }

.h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -0.028em;
  color: var(--ink);
}
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.022em;
  color: var(--ink);
}
.h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink);
}
.h4 { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink); }
.lead { font-size: 19px; line-height: 1.6; color: var(--text); }
.body { font-size: 17px; line-height: 1.65; color: var(--muted); }
.small { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tiny { font-size: 13px; line-height: 1.5; color: var(--subtle); }
.green { color: var(--green); }
em { font-style: italic; }

.on-dark { color: var(--on-dark-body); }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h4 { color: var(--on-dark); }
.on-dark .lead { color: var(--on-dark-lead); }
.on-dark .body, .on-dark .small { color: var(--on-dark-body); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.4;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #C9CBC4; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #EDEEEA; }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: #555B55; }
.btn-ghost-dark:hover { border-color: var(--white); }
.btn-sm { font-size: 14px; padding: 10px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 600; color: var(--green); font-size: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 249, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--text); line-height: 30px; }
.nav-links a:hover { color: var(--green); }
.nav-links a[aria-current="page"] { color: var(--green); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }
.nav-cta-mobile { display: none; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.bg-white { background: var(--white); }
.bg-base { background: var(--bg); }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--dark); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .h2 + p { margin-top: 18px; }

/* Page hero (all pages) */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg);
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124, 203, 108, 0.22) 0%, rgba(124, 203, 108, 0.10) 38%, rgba(124, 203, 108, 0) 70%);
}
.hero .container { position: relative; }
.hero-copy { max-width: 640px; }
.hero .h1 + .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }
.hero.home { padding: 104px 0 120px; border-bottom: 0; }
.hero.home .hero-copy { max-width: 640px; }
.hero.home .h1 { max-width: 610px; }

/* Framework strip */
.frameworks { background: var(--white); padding: 56px 0 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.frameworks p { text-align: center; font-size: 15px; letter-spacing: 0.06em; color: var(--subtle); margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.pills li {
  font-size: 14px; font-weight: 500; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; background: var(--white);
}
.pills.left { justify-content: flex-start; }

/* Two-column layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-40 { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-60 { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.stack > * + * { margin-top: 1em; }

/* Cards */
.cards { display: grid; gap: 28px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 34px;
}
.card .num { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.13em; color: var(--green); margin-bottom: 14px; }
.card .h3 + p { margin-top: 14px; }
.card.wide { grid-column: 1 / -1; }
a.card { display: block; transition: border-color .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: #C9CBC4; box-shadow: 0 6px 18px -12px rgba(17, 17, 17, .25); }

/* Joined audience cards (home) */
.joined {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 0 -1px var(--line);
}
.joined > div { padding: 34px 30px 36px; display: flex; flex-direction: column; }
.joined > div + div { border-left: 1px solid var(--line); }
.joined .h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.joined .eyebrow { margin-bottom: 14px; }
.joined p.small { margin-top: 14px; }
.joined .text-link { margin-top: auto; padding-top: 20px; }

/* Feature list on dark (Why Pacha) */
.feature-list { border-top: 1px solid var(--dark-line); }
.feature-list > div { padding: 24px 0 26px; border-bottom: 1px solid var(--dark-line); }
.feature-list .h4 { color: var(--white); margin-bottom: 8px; }
.feature-list p { font-size: 15px; line-height: 1.6; color: var(--on-dark-body); }

/* Insight teaser cards */
.insight-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease; }
.insight-card:hover { border-color: #C9CBC4; }
.insight-card .thumb { height: 132px; }
.insight-card .body-wrap { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.insight-card .eyebrow { margin-bottom: 10px; letter-spacing: 0.1em; }
.insight-card .h3 { font-size: 19px; line-height: 1.25; }
.insight-card p.small { margin-top: 12px; }
.insight-card .tiny { margin-top: auto; padding-top: 18px; }
.thumb-1 { background: #E3EFD9; }
.thumb-2 { background: #D5E8DF; }
.thumb-3 { background: #E5F0D7; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--dark); padding: 88px 0; }
.cta-band::before {
  content: ""; position: absolute; pointer-events: none;
  width: 620px; height: 420px; left: -160px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(77, 160, 60, 0.30) 0%, rgba(77, 160, 60, 0.08) 45%, rgba(77, 160, 60, 0) 70%);
}
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band .copy { max-width: 560px; }
.cta-band .h2 { color: var(--white); }
.cta-band p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--on-dark-lead); }
.cta-band .btn-row { flex-shrink: 0; }

/* Green-bullet lists */
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ticks li + li { margin-top: 14px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.on-dark .ticks li { color: var(--on-dark-body); }
.on-dark .ticks li strong { color: var(--white); }
.on-dark .ticks li::before { background: var(--green-on-dark); }
.ticks.compact li { font-size: 15px; }
.ticks.compact li + li { margin-top: 10px; }

/* Services page rows */
.service { display: grid; grid-template-columns: 4fr 7fr; gap: 72px; padding: 64px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service .h2 { font-size: clamp(26px, 2.6vw, 30px); line-height: 1.2; }
.service .tagline { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.service .for { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--subtle); }
.service .for strong { color: var(--text); font-weight: 600; }
.service .detail > p { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 26px; }
.service .outcome { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--subtle); }
.service .outcome strong { color: var(--text); }

/* Approach: lifecycle bar */
.stagebar { display: grid; grid-template-columns: repeat(6, 1fr); margin: 8px 0 44px; border-radius: var(--radius); overflow: hidden; }
.stagebar div { padding: 18px 18px 20px; min-height: 104px; }
.stagebar .n { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; opacity: .7; margin-bottom: 8px; }
.stagebar .t { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.st1 { background: #E2F2DE; color: var(--ink); }
.st2 { background: #C6E7BE; color: var(--ink); }
.st3 { background: #A0D793; color: var(--ink); }
.st4 { background: #6FC15C; color: var(--ink); }
.st5 { background: #3A8A2C; color: var(--white); }
.st6 { background: #245A1B; color: var(--white); }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.stages .label { font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 10px; display: block; }
.stages .h4 { margin-bottom: 10px; }
.stages p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Approach: evidence stack */
.layers { border-top: 1px solid #D9DBD5; }
.layer { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 28px 0 30px; border-bottom: 1px solid #D9DBD5; }
.layer .label { font-size: 13px; font-weight: 600; color: var(--green); display: block; margin-bottom: 8px; }
.layer .h4 { font-size: 16px; }
.layer p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* About: beliefs */
.beliefs .card .h3 { font-size: 21px; }
.beliefs .card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* About: engagement card */
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 32px; }
.side-card .h4 { margin-bottom: 18px; }
.side-card .note { margin-top: 22px; font-size: 14px; line-height: 1.6; color: var(--subtle); }

/* Mission (centered dark) */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mission { max-width: 760px; }
.mission .h2 + p { margin-top: 22px; }

/* Insights page */
.empty-state { text-align: center; padding: 40px 0 72px; }
.empty-state .h3 { font-size: 30px; }
.empty-state p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.subscribe {
  background: var(--green-tint); border: 1px solid #DCE9D5; border-radius: var(--radius);
  padding: 28px 30px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.subscribe .h3 { font-size: 20px; }
.subscribe p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 620px; }
.subscribe-form { flex-basis: 100%; display: none; margin-top: 4px; }
.subscribe.open .subscribe-form { display: block; }
.subscribe.open .subscribe-toggle { display: none; }
.subscribe-form .row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 36px 40px; }
.form-card .h3 { margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field .req { color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid #CFD2CB; border-radius: var(--radius);
  padding: 11px 13px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232C332C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 115, 36, 0.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--subtle); }
.form-status { display: none; border-radius: var(--radius); padding: 18px 20px; font-size: 15px; line-height: 1.55; }
.form-status.ok { display: block; background: var(--green-tint); border: 1px solid #CFE3C6; color: var(--text); }
.form-status.err { display: block; background: #FBEDEA; border: 1px solid #F0CFC8; color: #6B2A1F; margin-bottom: 18px; }
.form-done form { display: none; }
.contact-side .h4 { margin-bottom: 18px; }
.contact-side .block + .block { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.address { font-size: 14px; line-height: 1.7; letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; }

/* FAQ */
.faq-group + .faq-group { margin-top: 88px; }
.faq-group .intro { margin-top: 12px; font-size: 15px; color: var(--subtle); }
.faq { margin-top: 36px; border-top: 1px solid #D9DBD5; }
.faq .qa { padding: 26px 0 28px; border-bottom: 1px solid #D9DBD5; }
.faq .qa h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--ink); margin-bottom: 10px; }
.faq .qa p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.faq .qa strong { color: var(--text); font-weight: 600; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.012em; color: var(--ink); margin: 44px 0 14px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal ul { list-style: none; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li + li { margin-top: 8px; }
.legal ul li::before { content: ""; position: absolute; left: 3px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.legal a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { font-size: 14px; color: var(--subtle); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid var(--dark-line); }
.footer-top { display: grid; grid-template-columns: 4fr 2fr 3fr 2.2fr; gap: 40px; padding: 72px 0 56px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); max-width: 300px; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--white); margin: 0 0 18px; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col li { font-size: 14px; line-height: 1.5; color: var(--on-dark-body); }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.7; color: var(--on-dark-body); text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0 32px; border-top: 1px solid var(--dark-line); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: var(--on-dark-body); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .nav { gap: 22px; }
  .stagebar .t { font-size: 14px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .nav .btn { display: none; }
  .nav-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    box-shadow: 0 16px 30px -18px rgba(17, 17, 17, .25);
  }
  .nav-links li a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta-mobile { display: block; padding-top: 18px; }
  .nav-links .nav-cta-mobile a { border: 0; color: var(--white); display: flex; padding: 13px 22px; font-size: 15px; }
  .nav-open .nav-links { display: flex; }

  .section { padding: 80px 0; }
  .split, .split-40, .split-60, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .joined { grid-template-columns: 1fr; }
  .joined > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .service { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }
  .stagebar { grid-template-columns: repeat(3, 1fr); }
  .stages { grid-template-columns: 1fr 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero, .hero.home { padding: 64px 0 72px; }
  .hero::before { width: 460px; height: 460px; right: -200px; top: -180px; }
  .lead { font-size: 17px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .stagebar { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr; gap: 32px; }
  .layer { grid-template-columns: 1fr; gap: 10px; }
  .field-row, .subscribe-form .row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px 30px; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-top { grid-template-columns: 1fr; padding: 56px 0 40px; }
  .cta-band { padding: 72px 0; }
}

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