:root {
  --color-forest: #163B2F;
  --color-night: #102033;
  --color-sage: #A8BFA3;
  --color-stone: #F4F1EA;
  --color-earth: #8A6F4D;
  --color-gold: #C8A45D;
  --color-ink: #1F2A24;
  --color-muted: #66736B;
  --color-white: #FFFFFF;
  --shadow: 0 18px 50px rgba(16, 32, 51, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-stone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--color-night);
  color: var(--color-white);
  padding: .7rem 1rem;
  z-index: 10;
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow { max-width: 780px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 42, 36, .09);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 760;
  color: var(--color-forest);
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 68%, var(--color-gold) 0 8%, transparent 9%),
    linear-gradient(135deg, var(--color-sage), #d7dfc5 48%, var(--color-forest) 49%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.38);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-left: auto;
  font-size: .95rem;
  color: var(--color-muted);
}

.nav a:hover { color: var(--color-forest); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-forest);
  background: var(--color-forest);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(22, 59, 47, .18);
}

.button:hover { transform: translateY(-1px); }

.button-ghost {
  background: rgba(255,255,255,.12);
  color: var(--color-forest);
  box-shadow: none;
}

.hero .button-ghost {
  color: var(--color-white);
  border-color: rgba(255,255,255,.55);
}

.button-small {
  min-height: 38px;
  padding: .55rem .8rem;
  font-size: .92rem;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-night);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 32, 51, .86), rgba(16, 32, 51, .52) 46%, rgba(22, 59, 47, .18)),
    url("/images/naturalogic-ecosystem-systems-hero.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  padding: 7.5rem 0 9rem;
  max-width: 860px;
}

.eyebrow, .card-kicker {
  margin: 0 0 .7rem;
  color: var(--color-earth);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #d8c27d; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  color: inherit;
}

h1 { font-size: clamp(2.55rem, 6vw, 5.4rem); max-width: 940px; }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
h3 { font-size: 1.2rem; }

.hero p:not(.eyebrow), .page-hero p, .section-intro p, .lede {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  max-width: 760px;
  color: rgba(255,255,255,.82);
}

.page-hero p, .section-intro p, .lede { color: var(--color-muted); }

.hero-actions, .contact-cta, .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(31, 42, 36, .1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}

.card:hover { box-shadow: var(--shadow); }

.card p { color: var(--color-muted); }

.text-link {
  color: var(--color-forest);
  font-weight: 800;
  border-bottom: 1px solid rgba(22, 59, 47, .28);
}

.split-section {
  background: var(--color-forest);
  color: var(--color-white);
}

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.split p { color: rgba(255,255,255,.8); font-size: 1.18rem; }

.process {
  background:
    linear-gradient(180deg, rgba(168,191,163,.18), rgba(244,241,234,0));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(31, 42, 36, .1);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.72);
}

.steps div { padding: 1.5rem; border-right: 1px solid rgba(31, 42, 36, .1); }
.steps div:last-child { border-right: 0; }
.steps span { color: var(--color-gold); font-weight: 900; }
.steps p { color: var(--color-muted); }

.cta-section {
  padding: 4rem 0;
  background: var(--color-night);
  color: var(--color-white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-inner p { color: rgba(255,255,255,.76); max-width: 680px; }

.lead-magnet {
  margin-top: 2rem;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.5rem;
  align-items: center;
  border-radius: var(--radius);
  background: var(--color-night);
  color: var(--color-white);
}

.lead-magnet p { color: rgba(255,255,255,.76); }

.lead-form label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 800;
}

.input-row { display: flex; gap: .5rem; }

input, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(31, 42, 36, .16);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  font: inherit;
}

textarea { min-height: 140px; resize: vertical; }

.page-hero {
  padding: 5rem 0 3.5rem;
  background:
    linear-gradient(180deg, rgba(168,191,163,.24), rgba(244,241,234,0));
}

.breadcrumb {
  padding-top: 1rem;
  font-size: .88rem;
  color: var(--color-muted);
}

.breadcrumb a { color: var(--color-forest); }
.breadcrumb span { margin-left: .35rem; }

.content {
  font-size: 1.04rem;
}

.content h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); margin-top: 2.2rem; }
.content h3 { margin-top: 1.5rem; }
.content p, .content li { color: #435048; }
.content a { color: var(--color-forest); font-weight: 800; }
.content ul { padding-left: 1.2rem; }

.course-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 850px;
}

.article {
  padding-top: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  padding: 1.3rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid rgba(31, 42, 36, .1);
}

.site-footer {
  padding: 4rem 0 1.5rem;
  background: #0d1a17;
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr .8fr;
  gap: 2rem;
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: .8rem;
}

.footer-grid a {
  display: block;
  margin: .35rem 0;
  color: rgba(255,255,255,.78);
}

.footer-grid p {
  color: rgba(255,255,255,.72);
  max-width: 560px;
}

.footer-grid .quiet {
  color: rgba(255,255,255,.54);
  font-size: .92rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  font-size: .92rem;
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: .8rem 0; }
  .nav { order: 3; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: .65rem 1rem; padding-bottom: .2rem; }
  .three, .two, .steps, .split, .lead-magnet, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps div { border-right: 0; border-bottom: 1px solid rgba(31, 42, 36, .1); }
  .steps div:last-child { border-bottom: 0; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .input-row { flex-direction: column; }
  .hero { min-height: 76svh; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header .button-small { display: none; }
  .hero-content { padding: 5.5rem 0 6.5rem; }
  .section { padding: 3.8rem 0; }
  .page-hero { padding: 3.5rem 0 2rem; }
  .card, .lead-magnet { padding: 1rem; }
}
