/* ==============================
   ECOBLOCK.AI — SHARED STYLESHEET
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg-deep:      #080f0a;
  --bg-dark:      #0d1a0f;
  --bg-card:      #111e14;
  --bg-card2:     #162019;
  --green-dark:   #1a3d28;
  --green-mid:    #2a6644;
  --green-bright: #3ab26e;
  --green-glow:   #4fd483;
  --gold:         #c9a84c;
  --gold-light:   #e8c97a;
  --cream:        #f2ede4;
  --cream-dim:    #b8b3aa;
  --white:        #ffffff;
  --border:       rgba(58, 178, 110, 0.18);
  --border-gold:  rgba(201, 168, 76, 0.25);
  --shadow:       0 0 60px rgba(58, 178, 110, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  height: 72px;
  background: rgba(8,15,10,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--green-glow); }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green-glow); }

.nav-cta {
  background: var(--green-bright);
  color: var(--bg-deep) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-glow) !important; color: var(--bg-deep) !important; }

/* ---- LAYOUT ---- */
.page-wrap { padding-top: 72px; }

section { padding: 6rem 4rem; }

.container { max-width: 1160px; margin: 0 auto; }

/* ---- TYPOGRAPHY ---- */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 600;
}
h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-glow);
}

.text-gold  { color: var(--gold); }
.text-green { color: var(--green-glow); }
.text-dim   { color: var(--cream-dim); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-bright);
  color: var(--bg-deep);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--green-glow); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--green-bright); color: var(--green-glow); }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(58,178,110,0.4);
  box-shadow: 0 0 30px rgba(58,178,110,0.08);
}

/* ---- LABEL BADGE ---- */
.label {
  display: inline-block;
  background: rgba(58,178,110,0.12);
  border: 1px solid var(--border);
  color: var(--green-glow);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 3px;
  margin-bottom: 1.2rem;
}

/* ---- DIVIDER LINE ---- */
.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--green-bright), transparent);
  margin: 1rem 0 1.5rem;
}

/* ---- GRID HELPERS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--cream);
  text-decoration: none;
}
.footer-logo span { color: var(--green-glow); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--cream-dim); text-decoration: none; font-size: 0.82rem; }
.footer-links a:hover { color: var(--green-glow); }
.footer-note { color: var(--cream-dim); font-size: 0.78rem; width: 100%; padding-top: 1.5rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }

/* ---- SECTION HEADER ---- */
.section-header { margin-bottom: 3.5rem; }
.section-header p { color: var(--cream-dim); max-width: 560px; margin-top: 0.8rem; font-size: 1.05rem; }

/* ---- STAT BLOCK ---- */
.stat-block { padding: 1.5rem 0; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 900;
  color: var(--green-glow); line-height: 1;
}
.stat-label { color: var(--cream-dim); font-size: 0.85rem; margin-top: 0.3rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  section { padding: 4rem 1.5rem; }
  nav { padding: 0 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  footer { padding: 2rem 1.5rem; }
  .nav-links { display: none; }
}
