/* Content Factory Design System v2.0 — eco-trails.pro */
:root {
  --c-primary: #16A34A;
  --c-primary-dk: #15803D;
  --c-primary-lt: #DCFCE7;
  --c-accent: #0D9488;
  --c-bg: #FFFFFF;
  --c-bg2: #F0FDF4;
  --c-text: #1A2E1A;
  --c-text2: #4B6043;
  --c-border: #D1E7D1;
  --c-hero-grad: linear-gradient(135deg, #064E3B, #065F46, #047857);
  --c-footer-bg: #052E16;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  --f-heading: 'Merriweather', Georgia, serif;
  --f-body: 'Inter', -apple-system, sans-serif;
  --max-w: 1200px;
}

/* ═══ Reset ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--f-body); color: var(--c-text); background: var(--c-bg); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--c-primary-dk); }

/* ═══ Layout ═══ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.lay-sb { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }

/* ═══ Header ═══ */
.hdr { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 100; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.hdr-logo { font-family: var(--f-heading); font-size: 22px; font-weight: 700; color: var(--c-text); display: flex; align-items: center; gap: 8px; }
.hdr-logo:hover { color: var(--c-primary); }
.hdr-nav { display: flex; gap: 28px; align-items: center; }
.nav-link { color: var(--c-text2); font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; }
.nav-link:hover { color: var(--c-primary); }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--c-primary); transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }
.hdr-actions { display: flex; gap: 12px; align-items: center; }
.hdr-search-btn, .hdr-burger { background: none; border: none; font-size: 20px; cursor: pointer; padding: 6px; border-radius: var(--radius); transition: background 0.2s; color: var(--c-text2); }
.hdr-search-btn:hover, .hdr-burger:hover { background: var(--c-primary-lt); }
.hdr-burger { display: none; flex-direction: column; gap: 5px; }
.hdr-burger span { width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: 0.3s; }
.hdr-search { display: none; background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: 16px 0; }
.hdr-search.active { display: block; }
.hdr-search-form { display: flex; gap: 8px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.hdr-search-input { flex: 1; padding: 12px 16px; border: 2px solid var(--c-border); border-radius: var(--radius); font-size: 15px; transition: border-color 0.2s; }
.hdr-search-input:focus { outline: none; border-color: var(--c-primary); }

/* ═══ Hero ═══ */
.hero { background: var(--c-hero-grad); color: white; padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-in { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; padding: 0 24px; }
.hero-h1 { font-family: var(--f-heading); font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero-sub { font-size: 18px; opacity: 0.9; line-height: 1.6; max-width: 640px; margin: 0 auto; }

/* ═══ Content ═══ */
.ct { padding: 56px 0; }
.ct-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.ct h2 { font-family: var(--f-heading); font-size: 28px; font-weight: 700; margin: 48px 0 16px; color: var(--c-text); padding-bottom: 8px; border-bottom: 2px solid var(--c-primary-lt); }
.ct h2:first-child { margin-top: 0; }
.ct h3 { font-family: var(--f-heading); font-size: 22px; font-weight: 600; margin: 36px 0 12px; color: var(--c-text); }
.ct h4 { font-family: var(--f-heading); font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.ct p { margin-bottom: 16px; font-size: 16.5px; line-height: 1.8; color: var(--c-text); }
.ct ul, .ct ol { margin: 0 0 20px 28px; }
.ct li { margin-bottom: 10px; font-size: 16px; line-height: 1.7; }
.ct li::marker { color: var(--c-primary); }
.ct a { color: var(--c-primary); border-bottom: 1px solid rgba(22,163,74,0.3); }
.ct a:hover { border-bottom-color: var(--c-primary); }
.ct blockquote { border-left: 4px solid var(--c-primary); padding: 20px 24px; margin: 28px 0; background: var(--c-bg2); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--c-text2); }
.ct blockquote p:last-child { margin-bottom: 0; }
.ct hr { border: none; height: 1px; background: var(--c-border); margin: 40px 0; }
.ct table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ct th { background: var(--c-primary); color: white; padding: 14px 16px; text-align: left; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; }
.ct td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); }
.ct tr:nth-child(even) { background: var(--c-bg2); }
.ct tr:hover { background: var(--c-primary-lt); }
.ct img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 24px 0; }
.ct strong { color: var(--c-text); font-weight: 600; }
.ct code { background: var(--c-bg2); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

/* ═══ Sidebar ═══ */
.sb { padding-top: 0; }
.sb-block { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.sb-block-title { font-family: var(--f-heading); font-weight: 700; font-size: 16px; margin-bottom: 16px; color: var(--c-text); padding-bottom: 8px; border-bottom: 2px solid var(--c-primary-lt); }
.sb-list { list-style: none; }
.sb-list li { margin-bottom: 10px; }
.sb-list a { color: var(--c-text2); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.sb-list a:hover { color: var(--c-primary); }
.sb-list a::before { content: '→'; color: var(--c-primary); font-size: 12px; }

/* ═══ Author ═══ */
.auth { padding: 48px 0; }
.auth-card { display: flex; gap: 20px; align-items: center; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg2); box-shadow: var(--shadow-sm); }
.auth-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--c-primary); color: white; display: flex; align-items: center; justify-content: center; font-family: var(--f-heading); font-size: 26px; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 8px rgba(22,163,74,0.3); }
.auth-name { font-weight: 700; font-size: 17px; }
.auth-role { color: var(--c-primary); font-size: 14px; margin: 2px 0; font-weight: 500; }
.auth-bio { color: var(--c-text2); font-size: 14px; line-height: 1.6; }

/* ═══ Share ═══ */
.share { padding: 28px 0; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--c-border); margin-top: 16px; }
.share-title { font-weight: 600; font-size: 14px; color: var(--c-text2); white-space: nowrap; }
.share-buttons { display: flex; gap: 8px; }
.share-btn { width: 42px; height: 42px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.share-btn:hover { background: var(--c-primary-lt); border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ═══ CTA ═══ */
.call { background: var(--c-primary-lt); border-radius: var(--radius); padding: 32px; text-align: center; margin: 32px 0; }
.call h3 { margin-top: 0; }
.btn-p { display: inline-block; padding: 12px 28px; background: var(--c-primary); color: white; border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: all 0.2s; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(22,163,74,0.3); }
.btn-p:hover { background: var(--c-primary-dk); color: white; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,163,74,0.4); }
.btn-o { display: inline-block; padding: 12px 28px; background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: all 0.2s; cursor: pointer; }
.btn-o:hover { background: var(--c-primary); color: white; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ═══ Footer ═══ */
.ftr { background: var(--c-footer-bg); color: white; padding: 56px 0 28px; margin-top: 64px; }
.ftr-in { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.ftr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.ftr-col-title { font-family: var(--f-heading); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; color: rgba(255,255,255,0.5); }
.ftr-link { display: block; color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 10px; transition: all 0.2s; }
.ftr-link:hover { color: #4ADE80; transform: translateX(4px); }
.ftr-social { display: flex; gap: 14px; margin-top: 8px; }
.ftr-social-link { font-size: 24px; transition: all 0.2s; opacity: 0.8; }
.ftr-social-link:hover { opacity: 1; transform: scale(1.1); }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.ftr-logo { font-family: var(--f-heading); font-size: 18px; font-weight: 700; color: white; }
.ftr-copy { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .lay-sb { grid-template-columns: 1fr 280px; gap: 32px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .lay-sb { grid-template-columns: 1fr; gap: 24px; }
  .hdr-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); flex-direction: column; padding: 32px 24px; gap: 24px; z-index: 999; }
  .hdr-nav.active { display: flex; }
  .hdr-burger { display: flex; }
  .hero { padding: 48px 0; }
  .hero-h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .ct { padding: 32px 0; }
  .ct h2 { font-size: 24px; margin: 36px 0 12px; }
  .ct h3 { font-size: 20px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .auth-card { flex-direction: column; text-align: center; }
  .share { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 26px; }
  .container, .ct-inner, .hdr-in, .ftr-in { padding: 0 16px; }
}
