/*
Theme Name: The People's Ecosystem
Theme URI: https://peoplesecosystem.com
Author: The People's Ecosystem
Author URI: https://peoplesecosystem.com
Description: Official website theme for The People's Ecosystem — Plant Therapeutics & Clinical Research. White on black with deep green accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tpe-theme
Tags: one-page, dark, custom-colors, custom-logo, custom-menu, featured-images, full-width-template
*/

/* ─── BRAND FONTS ─── */
@font-face {
  font-family: 'DarknessRising';
  src: url('fonts/DarknessRising-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DarknessRising';
  src: url('fonts/DarknessRising-Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DarknessRising';
  src: url('fonts/DarknessRising-ExtraItalic.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ─── CSS VARIABLES ─── */
:root {
  --black:       #000000;
  --near-black:  #0a0a0a;
  --gray-900:    #111111;
  --gray-800:    #1c1c1c;
  --gray-700:    #2e2e2e;
  --gray-600:    #444444;
  --gray-500:    #6b6b6b;
  --gray-400:    #999999;
  --gray-300:    #c4c4c4;
  --gray-200:    #e0e0e0;
  --gray-100:    #f0f0f0;
  --gray-50:     #f8f8f8;
  --white:       #ffffff;
  --green:       #1a3d2b;
  --green-mid:   #2a5c40;
  --green-light: #3d7a56;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--near-black);
  color: var(--white);
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

/* H1 only uses Darkness Rising */
h1 {
  font-family: 'DarknessRising', sans-serif;
  font-style: italic;
  font-weight: 700;
}

h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── NAVIGATION ─── */
#tpe-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5rem;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--gray-800);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
#tpe-nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.6); }

.tpe-logo img { height: 42px; width: auto; display: block; }

.tpe-nav-menu {
  display: flex; gap: 2.5rem; align-items: center;
}
.tpe-nav-menu a {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.2s;
}
.tpe-nav-menu a:hover { color: var(--white); }
.tpe-nav-menu .btn-nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--green-mid);
  font-size: 0.72rem !important;
  transition: background 0.2s !important;
}
.tpe-nav-menu .btn-nav-cta:hover { background: var(--green-mid) !important; }

/* Mobile hamburger */
.tpe-menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.tpe-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: all 0.3s;
}

/* ─── HERO ─── */
#tpe-hero {
  min-height: 100vh;
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  position: relative; overflow: hidden;
}
#tpe-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
#tpe-hero::before {
  content: '';
  position: absolute; bottom: -10%; left: -5%; z-index: 0;
  width: 40%; padding-bottom: 40%;
  background: radial-gradient(circle, rgba(26,61,43,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 4rem 6rem 5rem;
  position: relative; z-index: 2;
}

.hero-eyebrow {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 2.5rem; height: 1px; background: var(--green-mid);
}

.hero-h1 {
  font-size: clamp(4rem, 7vw, 8.5rem);
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}
.hero-h1 .dim { color: var(--gray-700); }
.hero-h1 .green-text { color: var(--green-light); }
.hero-h1 .outline {
  -webkit-text-stroke: 1.5px var(--gray-700);
  color: transparent;
}

.hero-sub {
  font-size: 0.97rem; line-height: 1.85;
  color: var(--gray-500);
  max-width: 420px; margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-green {
  background: var(--green); color: var(--white);
  padding: 0.9rem 2.5rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--green-mid);
  transition: all 0.2s; display: inline-block;
  cursor: pointer;
}
.btn-green:hover { background: var(--green-mid); color: var(--white); }

.btn-ghost {
  background: transparent; color: var(--gray-400);
  padding: 0.9rem 2.5rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--gray-800);
  transition: all 0.2s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--gray-600); color: var(--white); }

.hero-right {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 4rem 4rem 2rem;
  border-left: 1px solid var(--gray-900);
}

.hero-logo-wrap {
  width: 100%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 2.5rem;
}
.hero-logo-wrap img { width: 90%; max-width: 480px; height: auto; }

.hero-rule { width: 100%; height: 1px; background: var(--gray-800); margin-bottom: 2rem; }

.hero-quote {
  border-left: 2px solid var(--green);
  padding-left: 1.5rem; width: 100%;
}
.hero-quote p {
  font-family: 'Georgia', serif;
  font-style: italic; font-size: 1.1rem;
  color: var(--gray-500); line-height: 1.6; margin-bottom: 0.6rem;
}
.hero-quote cite {
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gray-600); font-style: normal;
}

/* ─── MARQUEE STRIP ─── */
#tpe-marquee {
  background: var(--green);
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--green-mid);
  border-bottom: 1px solid var(--green-mid);
}
.marquee-inner {
  display: inline-flex;
  animation: tpe-marquee 26s linear infinite;
  padding: 0.8rem 0;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 1.5rem;
  padding: 0 2.5rem;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.marquee-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.25); flex-shrink: 0; }
@keyframes tpe-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── STATS BAR ─── */
#tpe-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}
.stat-item {
  background: var(--gray-900);
  padding: 2.5rem 2rem; text-align: center;
  transition: background 0.2s;
}
.stat-item:hover { background: var(--gray-800); }
.stat-number {
  font-size: 3.5rem; font-weight: 300; line-height: 1;
  color: var(--white); margin-bottom: 0.5rem;
}
.stat-accent { color: var(--green-light); }
.stat-label {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-600); line-height: 1.4;
}

/* ─── SECTION COMMONS ─── */
.tpe-section { padding: 7rem 5rem; }

.section-label {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::after { content: ''; width: 2rem; height: 1px; background: var(--green-mid); }
.section-label.dim { color: var(--gray-600); }
.section-label.dim::after { background: var(--gray-700); }

.section-h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--white);
}
.section-h2 .accent { color: var(--green-light); font-style: italic; }
.section-h2 .dim { color: var(--gray-700); }

/* ─── MISSION ─── */
#tpe-mission {
  background: var(--near-black);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 7rem; align-items: start;
  border-bottom: 1px solid var(--gray-800);
}
.mission-text p {
  font-size: 0.97rem; line-height: 1.88;
  color: var(--gray-500); margin-bottom: 1.2rem;
}
.mission-text p strong { color: var(--white); font-weight: 500; }

.pillars { display: flex; flex-direction: column; }
.pillar {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--gray-800);
  transition: padding-left 0.25s;
}
.pillar:first-child { border-top: 1px solid var(--gray-800); }
.pillar:hover { padding-left: 0.5rem; }
.pillar-num {
  font-size: 1.8rem; font-weight: 300;
  color: var(--green-mid); line-height: 1;
  flex-shrink: 0; width: 2.2rem;
}
.pillar h4 { font-size: 0.9rem; font-weight: 500; color: var(--white); margin-bottom: 0.35rem; letter-spacing: 0.04em; }
.pillar p { font-size: 0.85rem; line-height: 1.7; color: var(--gray-500); }

/* ─── SCIENCE ─── */
#tpe-science { background: var(--black); }
.science-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end; margin-bottom: 4rem;
}
.science-intro { font-size: 0.97rem; line-height: 1.8; color: var(--gray-500); }

.science-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--gray-800);
  border: 1px solid var(--gray-800);
}
.science-card {
  background: var(--near-black);
  padding: 2.8rem 2.2rem;
  transition: background 0.25s; position: relative;
}
.science-card:hover { background: var(--gray-900); }
.science-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--green-mid);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.science-card:hover::before { transform: scaleX(1); }
.sc-num {
  font-size: 4rem; font-weight: 300;
  color: var(--gray-800); line-height: 1; margin-bottom: 0.5rem;
}
.sc-title {
  font-size: 1rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-300); margin-bottom: 0.8rem;
}
.sc-body { font-size: 0.83rem; line-height: 1.72; color: var(--gray-600); }

/* ─── PARTICIPATE ─── */
#tpe-participate { background: var(--gray-900); }
.part-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end; margin-bottom: 4rem;
  border-bottom: 1px solid var(--gray-800); padding-bottom: 3rem;
}
.part-header p { font-size: 0.97rem; line-height: 1.8; color: var(--gray-500); }

.cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--gray-800);
  border: 1px solid var(--gray-800);
}
.part-card {
  background: var(--near-black); padding: 2.8rem;
  transition: background 0.2s;
}
.part-card:hover { background: var(--gray-900); }

.part-tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  background: var(--green); color: var(--white);
  border: 1px solid var(--green-mid);
  margin-bottom: 1.5rem;
}
.part-tag.outline {
  background: transparent; color: var(--gray-500);
  border: 1px solid var(--gray-700);
}
.part-card h3 {
  font-size: 1.6rem; font-weight: 300;
  color: var(--white); margin-bottom: 0.8rem; line-height: 1.1;
  letter-spacing: -0.01em;
}
.part-card p { font-size: 0.88rem; line-height: 1.75; color: var(--gray-500); margin-bottom: 2rem; }

.card-link {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-light);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.2s, color 0.2s;
}
.card-link:hover { gap: 1rem; color: var(--white); }
.card-link::after { content: '→'; }

.part-card.featured {
  background: var(--green); grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  border: 1px solid var(--green-mid);
}
.part-card.featured:hover { background: var(--green-mid); }
.part-card.featured h3 { color: var(--white); font-size: 2.2rem; }
.part-card.featured p { color: rgba(255,255,255,0.65); }
.part-card.featured .card-link { color: rgba(255,255,255,0.75); }
.part-card.featured .card-link:hover { color: var(--white); }
.part-card.featured .part-tag { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.15); }
.featured-logo-watermark { display: flex; align-items: center; justify-content: center; opacity: 0.15; }
.featured-logo-watermark img { width: 180px; height: auto; }

/* ─── STORY ─── */
#tpe-story {
  display: grid; grid-template-columns: 5fr 7fr;
  align-items: stretch; padding: 0;
  background: var(--near-black);
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}
.story-visual {
  background: var(--green);
  padding: 5rem 3rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.story-visual img { width: 80%; max-width: 320px; height: auto; margin-bottom: 3rem; }
.story-divider { width: 3rem; height: 1px; background: rgba(255,255,255,0.2); margin-bottom: 2rem; }
.story-visual blockquote {
  font-family: 'Georgia', serif;
  font-style: italic; font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5; text-align: center; margin-bottom: 0.8rem;
  border: none; padding: 0;
}
.story-visual cite {
  font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  display: block; text-align: center; font-style: normal;
}
.story-content { padding: 7rem 5rem; }
.story-content p { font-size: 0.97rem; line-height: 1.88; color: var(--gray-500); margin-bottom: 1.2rem; }
.story-content p strong { color: var(--white); font-weight: 500; }

.story-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.story-tag {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gray-800);
  color: var(--gray-500); background: var(--gray-900);
  display: inline-block;
}

/* ─── CONTACT ─── */
#tpe-contact {
  background: var(--black);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.contact-info p { font-size: 0.95rem; line-height: 1.8; color: var(--gray-500); margin-bottom: 1rem; }
.contact-channels { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2px; }
.contact-channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.4rem; background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-left: 2px solid var(--green-mid);
  color: var(--gray-400);
  font-size: 0.85rem; transition: all 0.2s;
}
.contact-channel:hover { background: var(--gray-800); color: var(--white); border-left-color: var(--green-light); }
.contact-icon {
  width: 1.8rem; height: 1.8rem; background: var(--green);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 0.8rem;
  border: 1px solid var(--green-mid);
}

/* ─── CONTACT FORM ─── */
.tpe-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-light);
}
.form-group input,
.form-group select,
.form-group textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
  background: var(--gray-900); border: 1px solid var(--gray-800);
  border-radius: 0; padding: 0.85rem 1rem;
  color: var(--white); font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 300;
  outline: none; transition: border-color 0.2s;
  width: 100%; -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-700); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-mid); }
.form-group select option { background: var(--gray-900); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit,
.wpcf7 input[type="submit"] {
  margin-top: 0.5rem;
  background: var(--green); color: var(--white);
  border: 1px solid var(--green-mid); padding: 1rem 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; width: 100%;
}
.form-submit:hover,
.wpcf7 input[type="submit"]:hover { background: var(--green-mid); }

/* ─── FOOTER ─── */
#tpe-footer {
  background: var(--black); padding: 2.5rem 5rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--gray-900);
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo img { height: 32px; width: auto; }
.footer-note { font-size: 0.72rem; color: var(--gray-700); text-align: center; line-height: 1.6; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-700); transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-light); }

/* ─── WORDPRESS SPECIFIC ─── */
.wp-block-image img { border-radius: 0; }
.aligncenter { margin: 0 auto; display: block; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption-text { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.5rem; }

/* Gutenberg editor */
.wp-block-separator { border-color: var(--gray-800); }
.has-text-color { }
.editor-styles-wrapper { background: var(--near-black); color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  #tpe-nav { padding: 1rem 2rem; }
  .tpe-nav-menu { display: none; }
  .tpe-menu-toggle { display: flex; }
  .tpe-nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 5rem; left: 0; right: 0;
    background: var(--near-black);
    padding: 2rem;
    border-bottom: 1px solid var(--gray-800);
    gap: 1.5rem;
  }
}

@media (max-width: 960px) {
  .tpe-section { padding: 5rem 2rem; }
  #tpe-hero { grid-template-columns: 1fr; }
  .hero-left { padding: 5rem 2rem 3rem; }
  .hero-right { padding: 2rem; border-left: none; border-top: 1px solid var(--gray-900); }
  #tpe-stats { grid-template-columns: repeat(2, 1fr); }
  #tpe-mission { grid-template-columns: 1fr; gap: 3rem; }
  .science-header { grid-template-columns: 1fr; gap: 2rem; }
  .science-grid { grid-template-columns: 1fr; }
  .part-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .part-card.featured { grid-column: 1; grid-template-columns: 1fr; }
  .featured-logo-watermark { display: none; }
  #tpe-story { grid-template-columns: 1fr; }
  .story-content { padding: 4rem 2rem; }
  #tpe-contact { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  #tpe-footer { padding: 2rem; flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 3.5rem; }
  .section-h2 { font-size: 2.2rem; }
  .stat-number { font-size: 2.5rem; }
}

/* ─── SCROLL ANIMATIONS ─── */
.tpe-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.tpe-visible {
  opacity: 1;
  transform: translateY(0);
}
