/* ==========================================================================
   Portfolio 11: Botanical Eco-Journal & Delta Climate Resilience (English)
   Aesthetic: Deep Forest Sage, Earthy Linen Parchment, Naturalist Typography,
   Organic Leaf Badges, Reforestation Counters, River Salinity Live Telemetry
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --eco-forest: #163824;
  --eco-forest-dark: #0e2417;
  --eco-sage: #2d5a3c;
  --eco-lime: #84cc16;
  --eco-parchment: #f6f8f2;
  --eco-linen: #eaece4;
  --eco-bark: #44372e;
  --text-dark: #1b261e;
  --text-muted: #526356;
  --border-organic: 1px solid #d4ded6;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--eco-parchment);
  color: var(--text-dark);
  line-height: 1.7;
}

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

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Botanical Top Bar */
.eco-top-bar {
  background: var(--eco-forest-dark);
  color: #d1fae5;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Header */
.eco-header {
  background: var(--eco-parchment);
  border-bottom: var(--border-organic);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner-eco {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eco-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.leaf-crest {
  width: 44px;
  height: 44px;
  background: var(--eco-forest);
  border-radius: 12px 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eco-lime);
  font-size: 1.3rem;
}

.brand-text-eco h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--eco-forest);
}

.brand-text-eco span {
  font-size: 0.78rem;
  color: var(--eco-sage);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-eco-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  font-weight: 600;
  align-items: center;
}

.nav-eco-links a {
  color: var(--eco-forest);
  transition: color 0.2s;
}

.nav-eco-links a:hover {
  color: var(--eco-sage);
}

.btn-eco-action {
  background: var(--eco-forest);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-eco-action:hover {
  background: var(--eco-sage);
  transform: translateY(-2px);
}

/* Eco Hero Section */
.eco-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--eco-parchment) 0%, var(--eco-linen) 100%);
  border-bottom: var(--border-organic);
}

.eco-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-leaf {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcfce7;
  color: #15803d;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.eco-hero-grid h1 {
  font-family: var(--font-serif);
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--eco-forest);
  margin-bottom: 1.25rem;
}

.eco-hero-grid h1 span {
  font-style: italic;
  color: var(--eco-sage);
}

.eco-hero-p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Reforestation Counters */
.reforest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.stat-leaf-card {
  background: #ffffff;
  border: var(--border-organic);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.stat-leaf-val {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--eco-forest);
  display: block;
}

.stat-leaf-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Leader Nature Frame */
.nature-frame {
  background: #ffffff;
  border: var(--border-organic);
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(22, 56, 36, 0.08);
}

.nature-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.nature-caption {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--eco-forest);
}

/* 5-Point Green Climate Treaty */
.section-eco {
  padding: 5rem 0;
  border-bottom: var(--border-organic);
}

.section-head-eco {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-head-eco h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--eco-forest);
  margin-bottom: 0.75rem;
}

.section-head-eco p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.treaty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.treaty-card {
  background: #ffffff;
  border: var(--border-organic);
  border-radius: 12px;
  padding: 2.25rem;
  position: relative;
  transition: all 0.2s ease;
}

.treaty-card:hover {
  transform: translateY(-4px);
  border-color: var(--eco-forest);
  box-shadow: 0 10px 25px rgba(22, 56, 36, 0.08);
}

.treaty-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--eco-sage);
  margin-bottom: 0.75rem;
  display: block;
}

.treaty-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--eco-forest);
  margin-bottom: 0.65rem;
}

.treaty-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Nature Exhibit & Photo Showcase */
.nature-exhibit-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  background: #ffffff;
  border: var(--border-organic);
  border-radius: 14px;
  overflow: hidden;
}

.nature-exhibit-row img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.nature-exhibit-body {
  padding: 2.5rem;
}

.nature-exhibit-body h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--eco-forest);
  margin-bottom: 1rem;
}

.nature-exhibit-body p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Adopt a Tree / Community Registry Form */
.tree-form-box {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: var(--border-organic);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(22, 56, 36, 0.05);
}

.eco-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-eco {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-organic);
  background: var(--eco-parchment);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.input-eco:focus {
  border-color: var(--eco-forest);
  background: #fff;
}

/* Footer */
.eco-footer {
  background: var(--eco-forest-dark);
  color: #fff;
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}

.eco-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.eco-f-col h4 {
  font-family: var(--font-serif);
  color: #d1fae5;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.eco-f-col p {
  color: #9ca3af;
  line-height: 1.7;
}

.eco-f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.eco-f-col ul li a {
  color: #cbd5e1;
  transition: color 0.2s;
}

.eco-f-col ul li a:hover {
  color: var(--eco-lime);
}

.contact-eco-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.contact-eco-row i {
  color: var(--eco-lime);
  margin-top: 0.25rem;
}

.eco-bottom {
  border-top: 1px solid #1f3b28;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #9ca3af;
}

.eco-bottom a {
  color: #d1fae5;
}

.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-organic);
  color: var(--eco-forest);
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-toggle:hover {
  background: var(--eco-forest);
  color: #fff;
}

@media (max-width: 950px) {
  .header-inner-eco { position: relative; }
  .mobile-toggle { display: flex; }

  .nav-eco-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: var(--border-organic);
    border-radius: 10px;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 15px 35px rgba(22, 56, 36, 0.1);
    z-index: 1000;
    margin-top: 0.5rem;
  }

  .nav-eco-links.active {
    display: flex !important;
  }

  .nav-eco-links li {
    width: 100%;
  }

  .nav-eco-links li a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eef2eb;
  }

  .nav-eco-links li a.btn-eco-action {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .eco-hero-grid { grid-template-columns: 1fr; }
  .nature-exhibit-row { grid-template-columns: 1fr; }
  .eco-footer-grid { grid-template-columns: 1fr 1fr; }
  .eco-hero-grid h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
  .reforest-stats { grid-template-columns: 1fr; }
  .eco-footer-grid { grid-template-columns: 1fr; }
}
