/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1D9E75;
  --green-light: #e8f7f2;
  --orange: #D85A30;
  --orange-light: #FAECE7;
  --text-primary: #111;
  --text-secondary: #555;
  --text-muted: #888;
  --bg: #fff;
  --bg-secondary: #f7f7f6;
  --border: #e5e5e3;
  --border-strong: #d0d0ce;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-w: 860px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.site-logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}
.site-logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 7px 15px;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: opacity 0.15s !important;
}
.nav-cta:hover { opacity: 0.88; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
}

/* ── Sections ── */
.section {
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── Typography ── */
.section-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

h1 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.body-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 1.25rem;
}

/* ── Buttons ── */
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary, .btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--bg-secondary); }

/* ── Hero ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-visual {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Cards ── */
.cards-grid { display: grid; gap: 12px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 1.5rem; }
.cards-2 { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 1.5rem; }

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.card h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.card p { font-size: 12px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }

.card-featured { border-color: var(--green); }

.price { font-size: 13px; font-weight: 500; color: var(--green); }

/* ── Resource cards ── */
.card-resource {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s;
}
.card-resource:hover { border-color: var(--green); }
.card-resource h3 { font-size: 14px; }
.card-resource p { font-size: 12px; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.resource-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  display: block;
  margin-bottom: 6px;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
}
.about-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 500;
  color: var(--green);
}
.avatar-name { font-size: 13px; font-weight: 500; }
.avatar-title { font-size: 11px; color: var(--text-muted); }

/* ── Intake form ── */
.intake-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 560px;
}
.intake-card h2 { margin-bottom: 0.25rem; }
.intake-form { margin-top: 1.25rem; }
.intake-form label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.intake-form input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.intake-form input:focus {
  outline: none;
  border-color: var(--green);
}
.intake-form .btn-primary { margin-top: 4px; }

.form-success {
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 1rem;
}
.form-error {
  background: var(--orange-light);
  border: 1px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 1rem;
}
[hidden] { display: none !important; }
.field-error { font-size: 11px; color: var(--orange); display: block; margin: -8px 0 10px; }

/* ── Article ── */
.article-wrap { max-width: 680px; }
.back-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; display: inline-block; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--text-primary); }
.article-meta { font-size: 12px; color: var(--text-muted); margin: 0.5rem 0 2rem; }
.article-body { font-size: 15px; line-height: 1.8; color: var(--text-primary); }
.article-body h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; color: var(--text-secondary); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; color: var(--text-secondary); }
.article-body li { margin-bottom: 0.4rem; }
.article-body code { font-size: 13px; background: var(--bg-secondary); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; }

/* ── Footer ── */
.site-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ── Mobile ── */
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 16px;
  }
  .nav-toggle { display: block; }

  h1 { font-size: 1.6rem; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
}
