/* Reset and Base Styles */
:root {
  /* Core Colors */
  --primary-color: #4a7c59;
  --primary-dark: #3a6248;
  --primary-light: #6a9c79;
  --secondary-color: #a9c5a0;
  --accent-color: #8b5fbf;
  --dark-color: #333333;
  --light-color: #f5f5f5;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Typography */
  --heading-font: 'Archivo Black', sans-serif;
  --body-font: 'Roboto', sans-serif;
  --base-font-size: 16px;
  --h1-size: 3.5rem;
  --h2-size: 2.5rem;
  --h3-size: 1.75rem;
  --h4-size: 1.25rem;
  --h5-size: 1rem;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Border Radius */
  --border-radius-sm: 3px;
  --border-radius-md: 6px;
  --border-radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--dark-color);
}

h1 {
  font-size: var(--h1-size);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

h5 {
  font-size: var(--h5-size);
}

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

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

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

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Section Styles */
.section {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: var(--space-sm) auto var(--space-lg);
}

/* Header & Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-item {
  font-weight: 500;
  margin: 0 var(--space-sm);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.navbar-item:hover::after {
  width: 100%;
}

.navbar-burger {
  color: var(--gray-800);
}

.navbar-burger:hover {
  background-color: transparent;
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
  }
  
  .navbar-item {
    padding: var(--space-md);
    margin: 0;
  }
  
  .navbar-item::after {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 0;
}

.hero-body {
  position: relative;
  z-index: 1;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.button {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-normal);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.button:hover, .button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary:hover, .button.is-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.is-light {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--gray-300);
}

.button.is-light:hover, .button.is-light:focus {
  background-color: var(--gray-100);
  color: var(--primary-dark);
}

.button.is-outlined {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.button.is-outlined:hover, .button.is-outlined:focus {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Card Styles */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card .title {
  margin-bottom: var(--space-md);
}

.card .tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius-sm);
}

.card .tag.is-primary {
  background-color: var(--primary-light);
  color: var(--white);
}

.card .tag.is-info {
  background-color: #3e8ed0;
  color: var(--white);
}

.card .tag.is-success {
  background-color: #48c78e;
  color: var(--white);
}

/* About Section */
#about {
  background-color: var(--white);
}

/* Features/Services Section */
#features {
  background-color: var(--gray-100);
}

.service-card .card-image {
  height: 200px;
}

/* Accolades Section */
#accolades {
  background-color: var(--white);
}

.media {
  display: flex;
  align-items: flex-start;
}

.media-left {
  margin-right: var(--space-md);
}

.media-content {
  flex-grow: 1;
}

/* Statistics Section */
#statistics {
  background-color: var(--white);
}

.stat-card {
  background-color: var(--gray-100);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
}

.stat-card .title {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.progress-container {
  margin-top: var(--space-md);
}

.progress {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress.is-primary::-webkit-progress-value {
  background-color: var(--primary-color);
}

.progress.is-primary::-moz-progress-bar {
  background-color: var(--primary-color);
}

.progress.is-primary::-ms-fill {
  background-color: var(--primary-color);
}

/* Events Calendar Section */
#events {
  background-color: var(--gray-100);
}

.event-card .card-image {
  height: 200px;
}

.event-card .subtitle {
  margin-bottom: var(--space-sm);
}

.event-card i {
  color: var(--primary-color);
}

/* Sustainability Section */
#sustainability {
  background-color: var(--white);
}

/* News Section */
#news {
  background-color: var(--gray-100);
}

.news-card .card-image {
  height: 200px;
}

.news-card .button {
  margin-top: auto;
}

/* Read More Links */
a.button.is-outlined {
  margin-top: var(--space-md);
  align-self: flex-start;
}

/* Contact Section */
#contact {
  background-color: var(--white);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

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

/* Form Styles */
.field {
  margin-bottom: var(--space-md);
}

.label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-xs);
}

.input, .textarea, .select select {
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  padding: var(--space-sm);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.2);
}

.select::after {
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--gray-800);
  color: var(--gray-300);
  padding: var(--space-xl) 0;
}

.footer .title {
  color: var(--white);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: var(--space-sm);
}

.footer a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--white);
}

/* Social Media Links */
.footer a[href*="facebook.com"],
.footer a[href*="twitter.com"],
.footer a[href*="instagram.com"],
.footer a[href*="linkedin.com"] {
  font-weight: 500;
  display: inline-block;
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-fast);
}

.footer a[href*="facebook.com"]:hover,
.footer a[href*="twitter.com"]:hover,
.footer a[href*="instagram.com"]:hover,
.footer a[href*="linkedin.com"]:hover {
  transform: translateX(5px);
}

/* External Resources Section */
#resources {
  background-color: var(--gray-100);
}

.resource-card .card-image {
  height: 200px;
}

/* Cookie Consent */
#cookie-consent {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--white);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 9999;
  text-align: center;
}

#accept-cookies {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  margin-top: var(--space-sm);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

#accept-cookies:hover {
  background-color: var(--primary-dark);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
}

/* Privacy and Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

.privacy-page .container,
.terms-page .container {
  max-width: 800px;
  margin: 0 auto;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

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

/* Responsive Styles */
@media screen and (max-width: 768px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .columns {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  
  .column {
    padding: 0.75rem;
  }
  
  .footer .column {
    margin-bottom: var(--space-lg);
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .container {
    max-width: 960px;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    max-width: 1152px;
  }
}

@media screen and (min-width: 1216px) {
  .container {
    max-width: 1344px;
  }
}