/*
Theme Name: Verdana
Theme URI: https://verdana-ecology.org
Author: Verdana Ecology
Author URI: https://verdana-ecology.org
Description: A nature and ecology WordPress theme featuring forest greens, editorial typography, and conservation-focused design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verdana
Tags: nature, ecology, one-page, conservation, green, custom-menu, featured-images, sticky-post, translation-ready
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --moss:   #2d4a1e;
  --forest: #3b6b2a;
  --leaf:   #5a8f3c;
  --sage:   #8fb878;
  --fern:   #c5ddb3;
  --cream:  #f5f0e8;
  --bark:   #6b4f2a;
  --earth:  #3d2b1f;
  --sky:    #d6eadf;
  --gold:   #c9a84c;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--earth);
  overflow-x: hidden;
}

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

/* =============================================
   NAVIGATION
   ============================================= */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(45,74,30,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(197,221,179,0.15);
}

.site-branding .site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--fern);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0.5rem;
}
.site-branding .site-title span { color: var(--gold); font-style: italic; }

/* Primary Navigation */
#primary-navigation ul {
  display: flex; gap: 2.2rem;
}
#primary-navigation ul li a {
  color: var(--fern);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
#primary-navigation ul li a:hover,
#primary-navigation ul li a:focus {
  opacity: 1; color: var(--gold);
}

.header-cta {
  background: var(--leaf);
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.2s;
}
.header-cta:hover { background: var(--gold); transform: translateY(-1px); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: 2px solid rgba(197,221,179,0.4);
  color: var(--fern); padding: 0.4rem 0.8rem; border-radius: 6px;
  cursor: pointer; font-size: 1.2rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--moss);
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(90,143,60,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(45,74,30,0.5) 0%, transparent 60%),
    linear-gradient(160deg, #1a3210 0%, #2d4a1e 45%, #3b6b2a 100%);
}

.hero-trees {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 55%; opacity: 0.18;
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 4rem;
  max-width: 700px;
  animation: fadeUp 1.2s ease both;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 2px; background: var(--gold);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--fern);
  margin-bottom: 1.5rem;
}
.hero-content h1 em { color: var(--sage); font-style: italic; }

.hero-content .hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(197,221,179,0.75);
  max-width: 520px;
  margin-bottom: 2.4rem;
  font-weight: 300;
}

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

.btn-primary {
  background: var(--leaf); color: #fff;
  padding: 0.9rem 2rem; border-radius: 40px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(90,143,60,0.35);
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.35); }

.btn-outline {
  border: 2px solid rgba(197,221,179,0.4); color: var(--fern);
  padding: 0.9rem 2rem; border-radius: 40px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--sage); color: var(--sage); }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(197,221,179,0.5);
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: bounce 2s ease infinite;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(197,221,179,0.5), transparent); }

/* =============================================
   STATS STRIP
   ============================================= */
#stats {
  background: var(--forest);
  padding: 2.5rem 4rem;
  display: grid; grid-template-columns: repeat(4,1fr);
  border-bottom: 3px solid var(--gold);
}

.stat {
  text-align: center; padding: 0.5rem 1rem;
  border-right: 1px solid rgba(197,221,179,0.15);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage); font-weight: 700;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.about-visual {
  background:
    linear-gradient(to bottom right, rgba(45,74,30,0.6), rgba(59,107,42,0.3)),
    var(--moss);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem; position: relative; overflow: hidden;
}
.about-visual.has-image { background-size: cover; background-position: center; }

.leaf-decoration {
  position: absolute; font-size: 8rem; opacity: 0.06; user-select: none;
}
.leaf-decoration:nth-child(1) { top: 10%; left: 5%; transform: rotate(-30deg); }
.leaf-decoration:nth-child(2) { bottom: 10%; right: 5%; transform: rotate(20deg); font-size: 12rem; }

.about-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--fern); font-style: italic;
  line-height: 1.5; text-align: center; position: relative; z-index: 1;
}
.about-quote::before {
  content: '"'; font-size: 6rem; color: var(--leaf); opacity: 0.4;
  display: block; line-height: 0.5; margin-bottom: 1rem;
}

.about-text {
  padding: 5rem 4rem; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
}

.section-tag {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--leaf); font-weight: 700;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.7rem;
}
.section-tag::after { content: ''; flex: 1; height: 1px; background: var(--fern); max-width: 40px; }

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; line-height: 1.2; color: var(--moss); margin-bottom: 1.2rem;
}
.about-text .entry-content p {
  color: #5a4a3a; line-height: 1.9; font-size: 1rem; font-weight: 300; margin-bottom: 1rem;
}
.learn-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--leaf); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.5rem;
  transition: gap 0.2s;
}
.learn-more:hover { gap: 1rem; }
.learn-more::after { content: '→'; }

/* =============================================
   PROGRAMS SECTION
   ============================================= */
#programs {
  background: var(--sky); padding: 6rem 4rem;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--moss); margin-bottom: 0.8rem; }
.section-header p { color: #5a7040; font-size: 1rem; font-weight: 300; max-width: 520px; margin: 0 auto; }
.section-header .section-tag { justify-content: center; }

.programs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; }

.program-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 16px rgba(45,74,30,0.08);
}
.program-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(45,74,30,0.15); }

.card-img {
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 4.5rem;
}
.card-img.green { background: linear-gradient(135deg, #2d4a1e, #5a8f3c); }
.card-img.brown { background: linear-gradient(135deg, #6b4f2a, #8f6a3c); }
.card-img.blue  { background: linear-gradient(135deg, #1e4a4a, #3c8f8f); }
.card-img img   { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 1.6rem; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--moss); margin-bottom: 0.6rem; }
.card-body p  { font-size: 0.9rem; color: #6a5a4a; line-height: 1.7; font-weight: 300; margin-bottom: 1rem; }
.card-tag {
  display: inline-block; background: var(--sky); color: var(--forest);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 20px;
}

/* =============================================
   IMPACT SECTION
   ============================================= */
#impact {
  padding: 7rem 4rem; background: var(--moss);
  position: relative; overflow: hidden; text-align: center;
}
#impact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(90,143,60,0.2) 0%, transparent 70%);
}

#impact h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--fern); margin-bottom: 1rem; position: relative; }
#impact > p { color: rgba(197,221,179,0.7); font-size: 1rem; font-weight: 300; max-width: 560px; margin: 0 auto 3.5rem; position: relative; }

.impact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; max-width: 860px; margin: 0 auto; position: relative; }

.impact-item {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(197,221,179,0.12);
  border-radius: 12px; padding: 2.5rem 1.5rem; transition: background 0.3s;
}
.impact-item:hover { background: rgba(255,255,255,0.1); }
.impact-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.impact-item h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--fern); margin-bottom: 0.6rem; }
.impact-item p  { font-size: 0.88rem; color: rgba(197,221,179,0.6); line-height: 1.7; }

/* =============================================
   BLOG / POSTS SECTION
   ============================================= */
#blog { padding: 6rem 4rem; background: var(--cream); }

.blog-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.8rem; margin-top: 3rem; }

.blog-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(45,74,30,0.07);
  transition: box-shadow 0.3s; cursor: pointer;
}
.blog-card:hover { box-shadow: 0 8px 28px rgba(45,74,30,0.14); }

.blog-thumb { height: 220px; overflow: hidden; }
.blog-card:not(.featured) .blog-thumb { height: 140px; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }

.blog-thumb-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.blog-card:not(.featured) .blog-thumb-placeholder { font-size: 3.5rem; }
.blog-thumb-placeholder.v1 { background: linear-gradient(135deg, #3b6b2a, #8fb878); }
.blog-thumb-placeholder.v2 { background: linear-gradient(135deg, #1e4a3a, #5a8f7a); }
.blog-thumb-placeholder.v3 { background: linear-gradient(135deg, #4a3b1e, #8f7a3c); }

.blog-body { padding: 1.4rem; }
.blog-cat { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--leaf); font-weight: 700; margin-bottom: 0.5rem; }
.blog-body h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--moss); line-height: 1.35; margin-bottom: 0.5rem; }
.blog-card.featured .blog-body h3 { font-size: 1.4rem; }
.blog-body .excerpt { font-size: 0.88rem; color: #7a6a5a; line-height: 1.6; font-weight: 300; }
.blog-card:not(.featured) .excerpt { display: none; }
.blog-meta { font-size: 0.78rem; color: #aaa; margin-top: 1rem; }

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
#newsletter {
  background: var(--forest); padding: 5rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; border-top: 4px solid var(--gold);
}

.newsletter-text h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--fern); margin-bottom: 0.5rem; }
.newsletter-text p  { color: rgba(197,221,179,0.7); font-size: 0.95rem; font-weight: 300; }

.newsletter-form { display: flex; gap: 0.8rem; flex-shrink: 0; }
.newsletter-form input[type="email"] {
  padding: 0.85rem 1.4rem; border-radius: 40px;
  border: 1px solid rgba(197,221,179,0.3);
  background: rgba(255,255,255,0.07);
  color: var(--fern); font-size: 0.9rem; width: 280px;
  outline: none; font-family: 'Lato', sans-serif; transition: border-color 0.2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(197,221,179,0.35); }
.newsletter-form input[type="email"]:focus { border-color: var(--sage); }
.newsletter-form input[type="submit"] {
  background: var(--gold); color: var(--moss);
  border: none; padding: 0.85rem 1.8rem; border-radius: 40px;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.06em;
  cursor: pointer; transition: transform 0.2s, opacity 0.2s;
  font-family: 'Lato', sans-serif;
}
.newsletter-form input[type="submit"]:hover { transform: translateY(-2px); opacity: 0.9; }

/* =============================================
   FOOTER
   ============================================= */
#colophon {
  background: var(--earth); padding: 4rem 4rem 2rem;
  color: rgba(197,221,179,0.6);
}

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(197,221,179,0.1); margin-bottom: 2rem;
}

.footer-brand .site-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--fern); margin-bottom: 1rem; }
.footer-brand .site-title span { color: var(--gold); font-style: italic; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; font-weight: 300; }

.footer-col h4 { color: var(--fern); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: rgba(197,221,179,0.6); font-size: 0.88rem; font-weight: 300; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--sage); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.footer-bottom a { color: var(--gold); }

/* =============================================
   WORDPRESS CORE CLASSES
   ============================================= */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { margin: 0 auto 1rem; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: #888; margin-top: 0.3rem; }
.sticky { border-left: 3px solid var(--gold); padding-left: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  #site-header { padding: 1rem 1.5rem; }
  #primary-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(45,74,30,0.98); padding: 1.5rem 2rem; }
  #primary-navigation.open { display: block; }
  #primary-navigation ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: block; }
  .hero-content { padding: 0 1.5rem; }
  #stats { grid-template-columns: repeat(2,1fr); padding: 2rem 1.5rem; }
  #about { grid-template-columns: 1fr; }
  .about-visual { min-height: 300px; }
  .about-text { padding: 3rem 1.5rem; }
  .programs-grid, .impact-grid, .blog-grid { grid-template-columns: 1fr; }
  #programs, #blog, #impact { padding: 4rem 1.5rem; }
  #newsletter { flex-direction: column; padding: 3rem 1.5rem; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input[type="email"] { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 2rem 1.5rem 2rem; }
  #colophon { padding: 3rem 1.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
