/* CSS Custom Properties - Theme Variables */
:root {
  /* Brand Colors */
  --primary-color: #739072;
  --secondary-color: #F0F2F0;
  --background-color: #FFFFFF;
  --footer-bg-color: #4F634E;
  --button-color: #739072;
  
  /* Section Backgrounds */
  --section-bg-1: #FFFFFF;
  --section-bg-2: #F8F9FA;
  --section-bg-3: #FFFFFF;
  
  /* Soft & Organic Shadows */
  --shadow-soft: 0 10px 30px -10px rgba(115, 144, 114, 0.15);
  --shadow-hover: 0 20px 40px -12px rgba(115, 144, 114, 0.25);
  --shadow-card: 0 8px 25px -8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Transitions */
  --transition-soft: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: #2d3748;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: #1a202c;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  color: #4a5568;
  font-weight: 400;
}

/* Custom Button Styles */
.btn-custom-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8fa987 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 32px;
  font-weight: 600;
  font-size: 16px;
  color: white;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-soft);
  position: relative;
  overflow: hidden;
}

.btn-custom-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.btn-custom-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, #8fa987 0%, var(--primary-color) 100%);
}

.btn-custom-primary:hover::before {
  left: 100%;
}

.btn-custom-primary:active {
  transform: translateY(0);
}

/* Custom Card Styles */
.card-organic {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-soft);
  overflow: hidden;
  background: var(--section-bg-1);
  position: relative;
}

.card-organic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #8fa987, var(--primary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-organic:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.card-organic:hover::before {
  opacity: 1;
}

.card-organic .card-body {
  padding: var(--spacing-xl);
}

/* Header Styles */
.navbar-organic {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(115, 144, 114, 0.1);
  padding: 1rem 0;
  box-shadow: 0 2px 20px -10px rgba(115, 144, 114, 0.1);
}

.navbar-organic .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-organic .nav-link {
  font-weight: 500;
  color: #4a5568;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  transition: var(--transition-soft);
  margin: 0 4px;
}

.navbar-organic .nav-link:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-organic {
  background: linear-gradient(135deg, var(--section-bg-1) 0%, var(--secondary-color) 100%);
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.hero-organic::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(115, 144, 114, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-organic h1 {
  background: linear-gradient(135deg, var(--primary-color), #5a7458);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Styles */
.section-organic {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.section-organic:nth-child(odd) {
  background: var(--section-bg-1);
}

.section-organic:nth-child(even) {
  background: var(--section-bg-2);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #8fa987);
  border-radius: 2px;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-soft);
  border: 1px solid rgba(115, 144, 114, 0.05);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(115, 144, 114, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #8fa987);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

/* Footer Styles */
.footer-organic {
  background: var(--footer-bg-color);
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  position: relative;
}

.footer-organic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-organic h5 {
  color: white;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.footer-organic h5::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-organic a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-soft);
  display: block;
  margin-bottom: 8px;
}

.footer-organic a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Custom Form Styles */
.form-organic .form-control {
  border: 2px solid rgba(115, 144, 114, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  transition: var(--transition-soft);
  background: white;
}

.form-organic .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(115, 144, 114, 0.1);
  outline: none;
}

.form-organic .form-label {
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 8px;
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-organic {
    padding: var(--spacing-xl) 0;
  }
  
  .section-organic {
    padding: var(--spacing-xl) 0;
  }
  
  .card-organic .card-body {
    padding: var(--spacing-md);
  }
  
  .feature-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .navbar-organic .navbar-nav {
    text-align: center;
    margin-top: var(--spacing-sm);
  }
  
  .navbar-organic .nav-link {
    margin: 4px 0;
  }
}

@media (max-width: 576px) {
  .btn-custom-primary {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .card-organic .card-body {
    padding: var(--spacing-sm);
  }
  
  .feature-card {
    padding: var(--spacing-md);
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.border-primary-custom {
  border-color: var(--primary-color) !important;
}

.rounded-organic {
  border-radius: var(--radius-lg) !important;
}

.shadow-organic {
  box-shadow: var(--shadow-card) !important;
}

.shadow-organic-lg {
  box-shadow: var(--shadow-hover) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), #8fa987);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-soft);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Loading Animation */
.loading-organic {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(115, 144, 114, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
.btn-custom-primary:focus,
.nav-link:focus,
.form-control:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}


/* Cookie Banner Additional Styles for Bootstrap */
.cookie-banner-custom {
    z-index: 1060;
    backdrop-filter: blur(10px);
}

.cookie-banner-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}