/* Greenbite Design System - Modern Agriculture Theme */

:root {
  /* Color Palette Derived from Logo */
  --primary-green: #16a34a;
  --deep-forest-green: #1b4332;
  --soil-brown: #6b4f2a;
  --soft-beige-bg: #f5f5eb;
  --light-leaf-green: #a7f3d0;
  
  /* Extended Palette */
  --white: #ffffff;
  --text-dark: #1b4332;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
  --shadow-soft: rgba(27, 67, 50, 0.1);
  
  /* Typography */
  --font-heading: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  --font-body: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Layout */
  --container-max: 1200px;
  --nav-height: 70px;
  --section-padding: 80px;
  --section-padding-sm: 40px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--soft-beige-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--deep-forest-green);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-md);
  color: #374151;
  font-size: 16px;
  line-height: 1.6;
}

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

a:hover {
  color: var(--deep-forest-green);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--section-padding);
  }
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  height: 70px;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
  z-index: 1000;
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-sm);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .navbar-container {
    padding: 0 var(--section-padding);
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--deep-forest-green);
  text-decoration: none;
}

.navbar-brand img {
  height: 42px;
  width: auto;
}

.navbar-menu {
  display: none;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
    list-style: none;
    gap: 24px;
  }
}

.navbar-link {
  color: #1b4332;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition-base);
}

.navbar-link:hover {
  background-color: #d1fae5;
  text-decoration: none;
  color: #1b4332;
}

.navbar-link.active {
  background-color: #d1fae5;
  color: #1b4332;
}

.navbar-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--deep-forest-green);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e8f5e9, #d1fae5);
  padding: 140px 0;
  text-align: center;
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  color: #1b4332;
  margin-bottom: 1rem;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 18px;
  color: #374151;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: #16a34a;
  color: var(--white);
}

.btn-primary:hover {
  background-color: #15803d;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.btn-secondary {
  background-color: var(--white);
  color: #16a34a;
  border: 2px solid #16a34a;
}

.btn-secondary:hover {
  background-color: #f0fdf4;
  color: #16a34a;
  text-decoration: none;
}

/* Sections */
.section {
  padding: 80px 40px;
}

.section-beige {
  background-color: #f5f5eb;
}

.section-light-green {
  background-color: #ecfdf5;
}

.section-white {
  background-color: var(--white);
}

/* Text content max-width */
.section-content {
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 2px 8px var(--shadow-soft);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-soft);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow-soft);
  transition: var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-soft);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--primary-green), var(--light-leaf-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

/* Footer */
.footer {
  background-color: #1b4332;
  color: var(--white);
  padding: 60px 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.footer-brand img {
  height: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-base);
}

.footer-link:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
}

.footer-tagline {
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
}

.footer-copyright {
  text-align: center;
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 4px 12px var(--shadow-soft);
  transform: translateY(-100%);
  transition: var(--transition-base);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu-list {
  list-style: none;
  padding: var(--space-lg);
}

.mobile-menu-link {
  display: block;
  padding: var(--space-md) 0;
  color: var(--deep-forest-green);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-base);
}

.mobile-menu-link:hover {
  color: var(--primary-green);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-base);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Utilities */
@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }
  
  .show-mobile {
    display: block;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none;
  }
  
  .show-desktop {
    display: block;
  }
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Form Styles */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--deep-forest-green);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

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