/* Evigro — subpages shared stylesheet (matches homepage design) */
:root {
  --bg:   #F4F0E6;
  --bg2:  #EDE8DB;
  --sur:  #FFFFFF;
  --g:    #2D4A34;
  --g2:   #3D6447;
  --g3:   #EAF0E8;
  --g4:   #C9D8C9;
  --br:   #1A2E1F;
  --br2:  #5A6B5C;
  --br3:  #8A9B8C;
  --bd:   #E3DDD0;
  --a:    #B8820F;
  --a-l:  #F0C060;
  --a2:   #FBF3DD;
  --red:  #C0502E;
  --red2: #FDEAE4;
  --max:  860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { min-height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px; line-height: 1.65;
  background: var(--bg); color: var(--br);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ─── HEADER (same as homepage) ─── */
.header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px); max-width: 1080px;
  background: rgba(244,240,230,0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(45,74,52,0.13);
  border-radius: 50px;
  padding: 8px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  transition: box-shadow .25s, background .25s, border-color .25s;
}
.header.scrolled {
  background: rgba(250,248,242,0.92);
  border-color: rgba(45,74,52,0.1);
  box-shadow: 0 10px 30px -12px rgba(26,46,31,0.22);
}
.header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; padding-left: 8px; }
.header-brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.header-name { font-size: 15px; font-weight: 600; color: var(--br); letter-spacing: -.3px; }
.header-nav { display: flex; align-items: center; gap: 2px; padding: 3px; background: rgba(45,74,52,0.05); border-radius: 50px; }
.header-nav a {
  font-size: 13px; font-weight: 500; color: var(--br2); text-decoration: none;
  height: 32px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 50px;
  transition: color .15s;
}
.header-nav a:hover { color: var(--br); }
.header-cta { display: flex; align-items: center; gap: 8px; justify-self: end; }
.btn-ghost, .btn-pill {
  height: 38px; font-size: 13px; border-radius: 50px; padding: 0 18px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn-ghost { font-weight: 500; color: var(--br); border: 1px solid rgba(45,74,52,0.12); }
.btn-ghost:hover { background: rgba(45,74,52,0.06); border-color: rgba(45,74,52,0.2); }
.btn-pill { font-weight: 600; color: #fff; background: var(--g); }
.btn-pill:hover { background: var(--g2); transform: translateY(-1px); }
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(45,74,52,0.12); background: transparent; color: var(--br);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.mobile-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #FAF8F2; border: 1px solid rgba(45,74,52,0.12); border-radius: 20px;
  padding: 8px; box-shadow: 0 20px 40px -16px rgba(26,46,31,0.25);
  display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-size: 15px; font-weight: 500; color: var(--br); text-decoration: none;
  padding: 13px 14px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a:hover { background: rgba(45,74,52,0.07); color: var(--g); }
.mobile-menu a .ic { width: 16px; height: 16px; color: var(--br3); }
.mobile-menu hr { border: none; height: 1px; background: rgba(45,74,52,0.1); margin: 6px 8px; }

/* ─── MAIN ─── */
.l-page { max-width: var(--max); margin: 0 auto; padding: 136px 28px 96px; position: relative; }
.l-page::before {
  content: ''; position: absolute; z-index: -1;
  top: 40px; left: 50%; transform: translateX(-50%);
  width: min(900px, 100vw); height: 420px;
  background: radial-gradient(closest-side, rgba(240,192,96,0.16), rgba(240,192,96,0) 70%);
  pointer-events: none;
}

/* ─── HERO ─── */
.l-hero { margin-bottom: 40px; }
.l-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--a); background: rgba(184,130,15,0.1); border: 1px solid rgba(184,130,15,0.2);
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; margin-bottom: 22px;
}
.l-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--a); flex-shrink: 0; }
.l-h1 {
  font-size: clamp(32px, 5.4vw, 52px); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.06;
  color: var(--br); margin-bottom: 16px;
}
.l-intro { font-size: 17px; color: var(--br2); line-height: 1.7; max-width: 62ch; margin-bottom: 16px; }
.l-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--br3); font-weight: 500; }

/* ─── SUMMARY BOX ─── */
.l-summary { border-radius: 20px; padding: 22px 26px; margin-bottom: 20px; font-size: 14.5px; line-height: 1.7; }
.l-summary.green { background: var(--g); color: #fff; }
.l-summary.amber { background: var(--a2); border: 1px solid #EBD9A6; }
.l-summary.red   { background: var(--red2); border: 1px solid #F0B89A; }
.l-summary-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.l-summary.green .l-summary-title { color: var(--a-l); }
.l-summary.amber .l-summary-title { color: #7A5010; }
.l-summary.red   .l-summary-title { color: var(--red); }
.l-summary p { margin-bottom: 0; }
.l-summary.green p { color: rgba(255,255,255,0.82); }
.l-summary.green strong { color: #fff; }
.l-summary.amber p, .l-summary.red p { color: var(--br); }

/* ─── TOC ─── */
.l-toc { background: var(--sur); border: 1px solid var(--bd); border-radius: 20px; padding: 22px 26px; margin-bottom: 28px; }
.l-toc-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br3); margin-bottom: 14px; }
.l-toc ol { list-style: none; padding: 0; columns: 2; column-gap: 28px; }
.l-toc li { break-inside: avoid; margin-bottom: 4px; font-size: 14px; }
.l-toc a {
  color: var(--br2); text-decoration: none; display: flex; gap: 10px; align-items: baseline;
  padding: 5px 8px; margin-left: -8px; border-radius: 8px; transition: background .15s, color .15s;
}
.l-toc a span { color: var(--a); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.l-toc a:hover { color: var(--g); background: rgba(45,74,52,0.05); }

/* ─── SECTIONS ─── */
.l-section { margin-bottom: 14px; scroll-margin-top: 100px; }
.l-card { background: var(--sur); border: 1px solid var(--bd); border-radius: 20px; padding: 28px 32px; }
.l-num { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a); margin-bottom: 10px; }
.l-card-title {
  font-size: 19px; font-weight: 600; color: var(--br); letter-spacing: -.02em;
  margin-bottom: 18px; display: flex; align-items: center; gap: 14px;
}
.l-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(45,74,52,0.08); border: 1px solid rgba(45,74,52,0.1); color: var(--g);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.l-icon .ic { width: 20px; height: 20px; }
.l-body p { color: var(--br2); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.l-body p:last-child { margin-bottom: 0; }
.l-body ul, .l-body ol { padding-left: 22px; margin-bottom: 12px; color: var(--br2); font-size: 15px; line-height: 1.75; }
.l-body li { margin-bottom: 6px; }
.l-body li::marker { color: var(--g); }
.l-body h4 { font-size: 14px; font-weight: 600; color: var(--br); margin: 18px 0 8px; }
.l-body a { color: var(--g); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(45,74,52,0.3); text-underline-offset: 3px; }
.l-body a:hover { text-decoration-color: var(--g); }
.l-body strong { color: var(--br); }

/* Table */
.l-table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--bd); border-radius: 14px; }
.l-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.l-table th {
  text-align: left; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--br3);
  padding: 12px 16px; background: #FAF8F2; border-bottom: 1px solid var(--bd); white-space: nowrap;
}
.l-table td { padding: 12px 16px; border-bottom: 1px solid #EFEBE2; color: var(--br2); vertical-align: top; }
.l-table td strong { color: var(--br); }
.l-table tr:last-child td { border-bottom: none; }
.l-table tbody tr:hover td { background: #FBFAF6; }

/* Info box inside card */
.l-info { border-radius: 14px; padding: 16px 20px; margin: 16px 0; font-size: 14px; line-height: 1.65; }
.l-info.green { background: var(--g3); border: 1px solid var(--g4); }
.l-info.amber { background: var(--a2); border: 1px solid #EBD9A6; }
.l-info-title { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 6px; }
.l-info.green .l-info-title { color: var(--g); }
.l-info.amber .l-info-title { color: #7A5010; }
.l-info p { color: var(--br2); margin: 0; font-size: 14px; }

/* ─── FOOTER (same as homepage) ─── */
.site-footer { background: var(--br); color: rgba(255,255,255,0.6); padding: 56px 24px 32px; margin-top: 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.footer-brand-name { font-size: 15px; font-weight: 600; color: #fff; }
.footer-about { font-size: 13px; line-height: 1.7; max-width: 240px; }
.footer-mail { display: inline-block; font-size: 12px; margin-top: 12px; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-mail:hover { color: rgba(255,255,255,0.85); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: #fff; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 24px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }

/* ─── RESPONSIVE ─── */
@media (min-width: 769px) { .mobile-menu { display: none !important; } }
@media (max-width: 768px) {
  .header { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .header { width: calc(100% - 24px); padding: 6px; top: 12px; gap: 8px; }
  .header-brand { padding-left: 6px; }
  .header-name { font-size: 14px; }
  .header-cta .btn-ghost { display: none; }
  .btn-pill { font-size: 12.5px; padding: 0 14px; height: 36px; }
  .nav-toggle { width: 36px; height: 36px; }
  .l-page { padding: 104px 16px 64px; }
  .l-card { padding: 22px 20px; }
  .l-card-title { font-size: 17px; gap: 12px; }
  .l-icon { width: 36px; height: 36px; }
  .l-toc ol { columns: 1; }
  .l-summary { padding: 20px; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
