/* 
   WiTG Revamp Stylesheet
   Design: Modern Eco-Premium
*/

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

:root {
  /* Colors */
  --primary: #0B301D;
  --primary-light: #164C31;
  --secondary: #C5A85A;
  --secondary-hover: #B0924A;
  --accent: #4F775B;
  --bg-light: #FAF9F6;
  --bg-white: #FFFFFF;
  --bg-dark: #121A16;
  --bg-dark-light: #1A2520;
  --text-primary: #1E2621;
  --text-muted: #5C6760;
  --text-light: #EBEBEB;
  --border-color: #E2E1DC;
  
  /* Fonts */
  --font-headings: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* System */
  --header-height: 85px;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 8px rgba(11, 48, 29, 0.05);
  --shadow-md: 0 10px 30px rgba(11, 48, 29, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 48, 29, 0.12);
  --container-width: 1200px;
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  color: var(--primary);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

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

/* Layout Elements */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

.section-bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-bg-dark h2 {
  color: var(--bg-white);
}

.section-bg-dark .text-muted {
  color: #9CA7A0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section-bg-dark .section-header p {
  color: #9CA7A0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

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

.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--primary);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
  background-color: rgba(11, 48, 29, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 75px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bg-white);
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--bg-white);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Header link style overrides when not scrolled and transparent */
header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

header:not(.scrolled) .nav-link:hover, header:not(.scrolled) .nav-link.active {
  color: var(--bg-white);
}

/* Cart Button */
.cart-toggle-btn {
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: var(--transition);
}

.cart-toggle-btn:hover {
  color: var(--secondary);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Button */
.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--bg-white);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 2s ease-in-out, transform 7s ease-in-out;
  transform: scale(1.08);
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.hero-content {
  max-width: 700px;
}

.hero-tagline {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-actions {
  display: flex;
  gap: 15px;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

/* Inner Page Hero */
.page-hero {
  padding: 180px 0 100px;
  background: linear-gradient(rgba(11, 48, 29, 0.85), rgba(11, 48, 29, 0.65)), url('assets/images/reforestation.jpg') no-repeat center center/cover;
  color: var(--bg-white);
  text-align: center;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

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

/* Statistics section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Highlight / Intro Split Section */
.split-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.split-col {
  flex: 1;
}

.split-image-wrap {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-tag {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.split-content h2 {
  margin-bottom: 20px;
}

.split-content p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 1.05rem;
}

/* Projects Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.project-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
}

.project-meta-item strong {
  color: var(--primary);
}

/* E-commerce Shop Styling */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.shop-sidebar {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-family: var(--font-body);
  font-weight: 600;
}

.category-list li {
  margin-bottom: 10px;
}

.category-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.category-btn:hover, .category-btn.active {
  color: var(--primary);
  font-weight: 600;
  padding-left: 5px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.product-img-wrap {
  height: 260px;
  overflow: hidden;
  background-color: #f1f0ea;
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-badge.out-of-stock {
  background-color: #E25C5C;
  color: var(--bg-white);
}

.product-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.add-to-cart-btn {
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: scale(1.1);
}

.add-to-cart-btn.disabled {
  background-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none !important;
}

/* E-commerce Drawer Cart */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary);
  color: var(--bg-white);
}

.cart-header h2 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  margin-bottom: 0;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.cart-close-btn:hover {
  color: var(--secondary);
}

.cart-items-container {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 50px;
}

.cart-item {
  display: flex;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background-color: #f1f0ea;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-btn:hover {
  background-color: var(--border-color);
}

.qty-val {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #E25C5C;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  margin-left: 10px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.checkout-btn {
  width: 100%;
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 48, 29, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
}

.cart-overlay.open {
  display: block;
}

/* Form Styles */
.form-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--bg-light);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(79, 119, 91, 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Success Overlay / Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 48, 29, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 50px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal.open .modal-content {
  transform: scale(1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #E8EFE9;
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
}

.modal-content h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* Gallery filterable styles */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 48, 29, 0.8), rgba(11, 48, 29, 0.1));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.gallery-title {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 48, 29, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  position: relative;
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: var(--bg-white);
  text-align: center;
  margin-top: 15px;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 2.25rem;
  cursor: pointer;
}

/* Partner Slider */
.partner-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  opacity: 0.7;
}

.partner-logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  filter: grayscale(1);
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--primary);
}

.partner-logo i {
  color: var(--secondary);
}

/* News/Blog Grid styling */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.news-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
}

.news-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  margin-top: auto;
}

.news-link:hover {
  color: var(--secondary);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.value-icon {
  font-size: 2.25rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-img-wrap {
  height: 280px;
  overflow: hidden;
  background-color: #f1f0ea;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 25px;
}

.team-name {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 600;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Organizational Structure style */
.org-chart-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 50px 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.chart-node {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 15px 30px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.chart-connector {
  width: 2px;
  height: 30px;
  background-color: var(--border-color);
  margin: 0 auto 20px;
}

.chart-level-2 {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.chart-sub-node {
  background-color: var(--accent);
  color: var(--bg-white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  min-width: 180px;
}

/* Milestones Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-light);
  border: 4px solid var(--secondary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left-item {
  left: 0;
  text-align: right;
}

.right-item {
  left: 50%;
}

.right-item::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--bg-white);
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-size: 1.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Impact Dashboard */
.impact-dashboard {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 50px 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chart-title {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 25px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 15px;
  height: 200px;
  width: 100%;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.chart-bar {
  width: 32px;
  background-color: var(--accent);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.chart-bar:hover {
  background-color: var(--secondary);
}

.chart-bar-val {
  position: absolute;
  top: -24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.chart-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
}

.pie-chart {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) 0% 55%,
    var(--accent) 55% 85%,
    var(--secondary) 85% 100%
  );
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-p1 { background-color: var(--primary); }
.legend-p2 { background-color: var(--accent); }
.legend-p3 { background-color: var(--secondary); }

/* Success Stories Layout */
.stories-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.story-card:nth-child(even) {
  flex-direction: row-reverse;
}

.story-img-wrap {
  flex: 1;
  max-width: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-info {
  flex: 2;
}

.story-quote {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.4;
  position: relative;
}

.story-quote::before {
  content: '“';
  font-size: 4rem;
  position: absolute;
  top: -30px;
  left: -20px;
  opacity: 0.1;
  color: var(--primary);
}

.story-author {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
}

.story-role {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.story-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Membership Categories Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.category-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card.featured {
  border-color: var(--secondary);
  border-width: 2px;
  position: relative;
}

.featured-tag {
  position: absolute;
  top: -15px;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.cat-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.cat-fee {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
}

.cat-fee span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.cat-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  width: 100%;
}

.cat-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cat-features li strong {
  color: var(--text-primary);
}

/* Call to Action Section styling */
.cta-block {
  text-align: center;
  background: linear-gradient(rgba(11, 48, 29, 0.9), rgba(11, 48, 29, 0.9)), url('assets/images/reforestation.jpg') no-repeat center center/cover;
  color: var(--bg-white);
  padding: 80px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.cta-block h2 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-block p {
  max-width: 600px;
  margin: 0 auto 35px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Donation Form Styling */
.donation-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.donation-btn-opt {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 18px 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.donation-btn-opt:hover, .donation-btn-opt.active {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.donation-btn-opt span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 5px;
}

.donation-btn-opt:hover span, .donation-btn-opt.active span {
  color: rgba(255, 255, 255, 0.75);
}

.donation-impact-panel {
  background-color: #E8EFE9;
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--accent);
  color: var(--primary);
}

.donation-impact-panel h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.donation-impact-text {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Contact Info Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-card-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.contact-card-box:last-child {
  margin-bottom: 0;
}

.contact-card-box h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 10px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.25rem;
  color: var(--accent);
  width: 24px;
}

.contact-info-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-text span, .contact-info-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 0.95rem;
}

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

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
}

.map-placeholder {
  height: 250px;
  background-color: #E2E1DC;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 30px;
  border: 1px solid var(--border-color);
}

/* Footer styling */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: var(--bg-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  color: #9CA7A0;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-about-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-about-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

.footer-about-logo span {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-white);
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-dark-light);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9CA7A0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-subscribe-form {
  display: flex;
  gap: 10px;
}

.footer-subscribe-form input {
  flex-grow: 1;
  background-color: var(--bg-dark-light);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--bg-white);
  font-family: var(--font-body);
}

.footer-subscribe-form input:focus {
  outline: none;
  border-color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #7A8780;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: #7A8780;
}

.footer-legal-links a:hover {
  color: var(--secondary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid, .products-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout, .donation-layout, .contact-layout { grid-template-columns: 1fr; }
  .split-section { flex-direction: column; gap: 40px; }
  .story-card { flex-direction: column !important; text-align: center; }
  .story-img-wrap { max-width: 100%; }
}

@media (max-width: 768px) {
  --header-height: 70px;
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--primary);
    flex-direction: column;
    padding: 40px 0;
    gap: 20px;
    transition: var(--transition);
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .menu-toggle-btn {
    display: block;
  }
  
  .hero-content h1 { font-size: 2.5rem; }
  .stats-grid, .projects-grid, .products-grid, .news-grid, .values-grid, .team-grid, .categories-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .timeline::after { left: 40px; }
  .timeline-item { width: 100%; text-align: left; padding-left: 70px; }
  .timeline-item::after { left: 30px; }
  .left-item { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
  .timeline-item { padding-left: 55px; }
  .timeline-item::after { left: 20px; }
  .timeline::after { left: 30px; }
}
