/* ════════════════════════════════════════
   GreenLearn – Shared Stylesheet
   ════════════════════════════════════════ */
:root {
  --forest: #1a3a2a;
  --moss: #2d6a4f;
  --fern: #40916c;
  --sage: #74c69d;
  --mint: #b7e4c7;
  --cream: #f8f5ee;
  --sand: #e9dcc9;
  --clay: #c4a882;
  --bark: #6b4f3a;
  --charcoal: #1e1e1e;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --white: #ffffff;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(248,245,238,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(64,145,108,0.12);
  transition: box-shadow .3s;
}
.nav-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.leaf-icon {
  width: 34px; height: 34px;
  background: var(--moss); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.leaf-icon span { transform: rotate(45deg); font-size: 15px; }
.nav-logo-text { font-family:'Playfair Display',serif; font-size:1.25rem; font-weight:700; color:var(--forest); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  transition: color .2s; position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--moss); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--moss); border-radius: 2px;
}
.nav-cta {
  background: var(--moss); color: var(--white);
  padding: .5rem 1.3rem; border-radius: 50px;
  text-decoration: none; font-size: .87rem; font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--forest); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--forest); border-radius: 2px; transition: .3s; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--moss); color: var(--white);
  padding: .8rem 1.8rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: all .25s; box-shadow: 0 4px 18px rgba(45,106,79,.28);
  display: inline-block;
}
.btn-primary:hover { background: var(--forest); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(45,106,79,.35); }
.btn-secondary {
  background: transparent; color: var(--moss);
  padding: .8rem 1.8rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 2px solid var(--moss); transition: all .25s; display: inline-block;
}
.btn-secondary:hover { background: var(--moss); color: var(--white); }
.btn-ghost {
  background: rgba(255,255,255,.7); color: var(--text);
  padding: .8rem 1.8rem; border-radius: 50px;
  text-decoration: none; font-weight: 500; font-size: .95rem;
  border: 1px solid var(--sand); transition: all .25s; display: inline-block;
}
.btn-ghost:hover { background: var(--white); }

/* ── SECTION HELPERS ── */
section { padding: 5.5rem 5%; }
.section-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(45,106,79,.08); color: var(--moss);
  padding: .28rem .85rem; border-radius: 50px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); color: var(--forest); margin-bottom: .9rem; letter-spacing: -.02em; }
.section-lead { font-size: 1rem; color: var(--text-light); max-width: 600px; line-height: 1.8; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin: 0 auto; }

/* ── ARTICLE CARD ── */
.article-card {
  background: var(--white); border-radius: 18px;
  overflow: hidden; border: 1px solid var(--sand);
  transition: all .28s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.09); }
.ac-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.ac-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ac-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--moss); margin-bottom: .5rem;
}
.ac-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--forest); margin-bottom: .5rem; line-height: 1.35; }
.ac-excerpt { font-size: .86rem; color: var(--text-light); line-height: 1.72; flex: 1; }
.ac-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--sand); }
.ac-date { font-size: .78rem; color: var(--clay); font-weight: 500; }
.ac-read { font-size: .78rem; color: var(--moss); font-weight: 700; text-decoration: none; transition: gap .2s; display: flex; align-items: center; gap: .25rem; }
.ac-read:hover { gap: .45rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--text-light);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--sand);
  background: var(--white);
}
.breadcrumb a { color: var(--moss); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--clay); }

/* ── PAGE HERO ── */
.page-hero {
  padding: 7rem 5% 4rem;
  background: linear-gradient(160deg, #e8f5ee 0%, #f8f5ee 60%, #f0ead8 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -5%; top: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(64,145,108,.1) 0%, transparent 70%);
}
.page-hero-content { max-width: 700px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--forest); margin-bottom: .8rem; letter-spacing: -.02em; }
.page-hero .lead { font-size: 1.08rem; color: var(--text-light); line-height: 1.8; max-width: 560px; }

/* ── ARTICLE PAGE ── */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3.5rem; max-width: 1200px; margin: 0 auto; }
.article-body { min-width: 0; }
.article-content h2 { font-size: 1.5rem; color: var(--forest); margin: 2.2rem 0 .8rem; }
.article-content h3 { font-size: 1.15rem; color: var(--forest); margin: 1.6rem 0 .5rem; }
.article-content p { font-size: .98rem; color: var(--text-light); line-height: 1.9; margin-bottom: 1.1rem; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article-content li { font-size: .97rem; color: var(--text-light); line-height: 1.8; margin-bottom: .3rem; }
.article-content .highlight-box {
  background: rgba(45,106,79,.07); border-left: 4px solid var(--fern);
  border-radius: 0 12px 12px 0; padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}
.article-content .highlight-box p { margin: 0; font-size: .95rem; color: var(--forest); }
.article-content .stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0;
}
.article-content .stat-box {
  background: var(--white); border: 1px solid var(--sand); border-radius: 14px;
  padding: 1.2rem; text-align: center;
}
.stat-box .s-num { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 900; color: var(--moss); display: block; }
.stat-box .s-lbl { font-size: .78rem; color: var(--text-light); font-weight: 600; }
.article-meta-bar {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--sand); margin-bottom: 2rem;
}
.meta-pill {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-light); font-weight: 500;
}

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--white); border-radius: 16px;
  padding: 1.5rem; border: 1px solid var(--sand);
}
.sw-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--forest); margin-bottom: 1rem; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links li a {
  text-decoration: none; color: var(--text-light); font-size: .88rem;
  display: flex; align-items: flex-start; gap: .5rem; line-height: 1.5;
  transition: color .2s;
}
.sidebar-links li a:hover { color: var(--moss); }
.sidebar-links li a::before { content: '→'; color: var(--sage); font-size: .75rem; margin-top: .18rem; flex-shrink: 0; }
.tip-card {
  background: var(--forest); border-radius: 14px;
  padding: 1.3rem; color: var(--white);
}
.tip-card .sw-title { color: var(--mint); }
.tip-card p { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.7; }

/* ── FOOTER ── */
footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 4rem 5% 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand-name { font-family:'Playfair Display',serif; color:var(--white); font-size:1.2rem; display:block; margin-bottom:.7rem; }
.footer-brand p { font-size: .86rem; line-height: 1.75; color: rgba(255,255,255,.45); }
.footer-col h4 { font-family:'Playfair Display',serif; font-size:.93rem; color:var(--white); margin-bottom:1.1rem; font-weight:700; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:.55rem; }
.footer-col ul li a { color:rgba(255,255,255,.45); text-decoration:none; font-size:.86rem; transition:color .2s; }
.footer-col ul li a:hover { color:var(--sage); }
.footer-contact p { font-size:.86rem; line-height:1.7; color:rgba(255,255,255,.45); }
.footer-contact p + p { margin-top:.45rem; }
.footer-contact strong { color:rgba(255,255,255,.7); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:2rem; font-size:.8rem; color:rgba(255,255,255,.28); flex-wrap:wrap; gap:.7rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; } .nav-links { display: none; } .article-content .stat-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } .sidebar { display: flex; } }
