/*
Theme Name: The Tree Projects
Theme URI: https://thetreeprojects.org
Author: The Tree Projects
Author URI: https://thetreeprojects.org
Description: A modern, story-driven WordPress theme for The Tree Projects — combining rainforest reforestation, wildlife recovery, and community conservation into a compelling digital experience.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tree-projects
Tags: conservation, environment, nonprofit, reforestation, modern
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --green-dark:    #1B4332;
  --green-mid:     #2D6A4F;
  --green-light:   #40916C;
  --green-pale:    #D8F3DC;
  --green-xpale:   #F0FAF2;
  --gold:          #C8A84B;
  --gold-light:    #E8C96A;
  --cream:         #F7F3EC;
  --cream-dark:    #EDE7DA;
  --text-dark:     #1A1A1A;
  --text-mid:      #4A4A4A;
  --text-light:    #6B7280;
  --white:         #FFFFFF;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.14);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     24px;
  --transition:    0.25s ease;
  --max-width:     1180px;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--green-dark);
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1.2em; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.05rem;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
  color: var(--green-mid);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

.section--cream    { background: var(--cream); }
.section--xpale    { background: var(--green-xpale); }
.section--green    { background: var(--green-dark); color: var(--white); }
.section--green h1,
.section--green h2,
.section--green h3,
.section--green h4 { color: var(--white); }
.section--green p  { color: rgba(255,255,255,0.85); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

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

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold) !important; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--green {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn--green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn--outline-dark:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn--lg { padding: 18px 36px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: 0.82rem; }

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(27,67,50,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.site-logo .logo-tagline {
  font-size: 0.68rem;
  color: var(--text-light);
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Primary Navigation */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a {
  color: var(--green-mid);
  background: var(--green-xpale);
}

/* Dropdown */
.primary-nav ul li { position: relative; }
.primary-nav ul li ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  flex-direction: column;
  gap: 2px;
}

.primary-nav ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav ul li ul li a {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
}

.primary-nav ul li ul li a:hover {
  background: var(--green-xpale);
  color: var(--green-mid);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://thetreeprojects.org/wp-content/uploads/2024/10/WhatsApp-Image-2024-10-09-at-9.31.59-AM.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27,67,50,0.92) 0%,
    rgba(27,67,50,0.75) 50%,
    rgba(27,67,50,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,75,0.2);
  border: 1px solid rgba(200,168,75,0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--green-mid);
  padding: 0;
}

.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 52px;
}

.section-header.text-center {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-xpale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* Initiative Cards (dark) */
.card--dark {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}

.card--dark h3 { color: var(--white); }
.card--dark p  { color: rgba(255,255,255,0.78); }

.card--dark .card-icon {
  background: rgba(200,168,75,0.2);
}

.card--gold-border {
  border-top: 4px solid var(--gold);
}

/* ============================================================
   PROJECT FEATURE BLOCKS
   ============================================================ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-block--reverse { direction: rtl; }
.feature-block--reverse > * { direction: ltr; }

.feature-image {
  position: relative;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-block:hover .feature-image img {
  transform: scale(1.04);
}

.feature-content {
  padding: 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.feature-content h2 {
  margin-bottom: 18px;
}

.feature-content p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.feature-content .btn-group {
  margin-top: 28px;
}

/* ============================================================
   INITIATIVE GRID
   ============================================================ */
.initiative-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.initiative-item:last-child { border-bottom: none; }

.initiative-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,168,75,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.initiative-text h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}

.initiative-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--green-pale);
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 24px;
}

.testimonial-card p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 20px;
  padding-top: 24px;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-mid);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

/* ============================================================
   MACAW SECTION
   ============================================================ */
.macaw-timeline {
  position: relative;
  padding-left: 32px;
}

.macaw-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--green-light));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-item h4 {
  color: var(--white);
  margin-bottom: 6px;
  font-size: 1rem;
}

.timeline-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

/* ============================================================
   STATS GRID (inline)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.stat-box {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
}

.stat-box .number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-mid);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.stat-box .label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* Dark variant */
.stat-box--dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.stat-box--dark .number { color: var(--gold-light); }
.stat-box--dark .label  { color: rgba(255,255,255,0.65); }

/* ============================================================
   FOREST LEGACY SECTION
   ============================================================ */
.forest-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.forest-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--gold);
}

.forest-card-header {
  background: var(--green-dark);
  padding: 32px;
}

.forest-card-header .forest-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.forest-card-header h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.forest-card-header p {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  margin: 0;
}

.forest-card-body {
  padding: 28px;
}

.forest-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.88rem;
}

.forest-detail-row:last-child { border-bottom: none; }

.forest-detail-row .key {
  color: var(--text-light);
  font-weight: 500;
}

.forest-detail-row .value {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}

/* ============================================================
   URBAN TREES SECTION
   ============================================================ */
.urban-stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.urban-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-pale);
}

.urban-stat-card .big-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-mid);
  line-height: 1;
  margin-bottom: 8px;
}

.urban-stat-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.urban-stat-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   CARBON OFFSETS TABLE
   ============================================================ */
.offset-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.offset-table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.offset-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.offset-table tr:nth-child(even) td {
  background: var(--cream);
}

.offset-table tr:last-child td {
  border-bottom: none;
}

.offset-table .price {
  font-weight: 700;
  color: var(--green-mid);
}

.offset-table .match-badge {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
}

/* ============================================================
   PARTNERS / LOGOS BAR
   ============================================================ */
.partners-bar {
  padding: 40px 0;
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}

.partners-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-logo {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  opacity: 0.6;
  transition: opacity var(--transition);
  text-align: center;
  letter-spacing: 0.04em;
}

.partner-logo:hover { opacity: 1; color: var(--green-mid); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0D2B1D 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,168,75,0.08), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 80px 0 72px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 16px; }

.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   CONTENT PAGE
   ============================================================ */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px;
}

.content-page h2 { margin: 40px 0 16px; }
.content-page h3 { margin: 28px 0 12px; }

.content-page p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.4em;
}

.content-page ul, .content-page ol {
  margin: 1em 0 1.4em 1.5em;
  list-style: disc;
}

.content-page li {
  margin-bottom: 0.5em;
  color: var(--text-mid);
  font-size: 1.02rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 20px; }

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--green-xpale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-detail p { margin: 0; font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  background: var(--cream);
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.breadcrumbs ol {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  font-size: 0.82rem;
}

.breadcrumbs ol li { color: var(--text-light); }
.breadcrumbs ol li a { color: var(--green-mid); }
.breadcrumbs ol li + li::before { content: '›'; margin-right: 8px; }

/* ============================================================
   REFERENCE TABLE
   ============================================================ */
.reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.reference-table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reference-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}

.reference-table tr:nth-child(even) td { background: var(--cream); }
.reference-table a { color: var(--green-mid); font-weight: 500; }

.tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  margin: 2px 2px 0 0;
}

/* ============================================================
   NOTICE / ALERT BANNER
   ============================================================ */
.notice-banner {
  background: var(--gold);
  padding: 12px 24px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
}

.notice-banner a { color: var(--green-dark); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-strip-inner { grid-template-columns: repeat(3, 1fr); }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .grid-4            { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .testimonial-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section       { padding: 56px 0; }
  .section--lg   { padding: 72px 0; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.9rem; }

  .primary-nav   { display: none; }
  .nav-toggle    { display: flex; }
  .header-cta .btn { display: none; }

  .hero          { min-height: 70vh; padding: 80px 0; }
  .hero-content  { max-width: 100%; }

  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item     { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }

  .grid-2,
  .grid-3,
  .grid-4,
  .forest-cards,
  .contact-grid  { grid-template-columns: 1fr; }

  .feature-block {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .feature-image { height: 260px; }

  .feature-content { padding: 36px 28px; }

  .testimonial-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-strip-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   MOBILE NAV OPEN STATE
   ============================================================ */
.mobile-nav-open .primary-nav {
  display: block;
  position: fixed;
  inset: 72px 0 0;
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-open .primary-nav ul {
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-open .primary-nav ul li ul {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: var(--green-xpale);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  padding: 4px 8px;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .btn, .cta-section { display: none; }
  body { font-size: 12pt; }
}
