/* ========================================
   SOFT & ORGANIC CORPORATE DESIGN
   Custom CSS for Clean Corporate with Nature Elements
   ======================================== */

:root {
  /* Color System - Natural Green Palette */
  --color-primary: #2D5016;
  --color-secondary: #87A96B;
  --color-accent: #D4A574;
  --color-background: #FAFAFA;
  --color-footer: #3D2914;
  --color-surface-white: #FFFFFF;
  --color-surface-light: #F5F5F0;
  --color-surface-alt: #FAFAFA;
  
  /* Semantic Colors */
  --color-success: #68B684;
  --color-warning: #F4D03F;
  --color-error: #E74C3C;
  --color-info: #5DADE2;
  
  /* Gradients */
  --gradient-organic: linear-gradient(135deg, #87A96B 0%, #D4A574 100%);
  --gradient-nature: linear-gradient(45deg, #2D5016 0%, #87A96B 50%, #D4A574 100%);
  --gradient-subtle: linear-gradient(to bottom, #FFFFFF 0%, #F5F5F0 100%);
  
  /* Typography */
  --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Quicksand', Georgia, serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius - Generous & Soft */
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows - Soft & Diffused */
  --shadow-soft: 0 10px 30px -10px rgba(45, 80, 22, 0.1);
  --shadow-medium: 0 15px 35px -12px rgba(45, 80, 22, 0.15);
  --shadow-strong: 0 20px 40px -15px rgba(45, 80, 22, 0.2);
  --shadow-hover: 0 25px 50px -15px rgba(45, 80, 22, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-smooth: 0.3s ease-out;
  --transition-slow: 0.4s ease-out;
}

/* ========================================
   BASE STYLES & RESET
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(135, 169, 107, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(45, 80, 22, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--color-primary);
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-md);
  color: rgba(45, 80, 22, 0.8);
  font-size: 1.05rem;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  border-radius: var(--radius-sm);
}

a:hover, a:focus {
  color: var(--color-primary);
  background-color: rgba(135, 169, 107, 0.1);
  padding: 2px 4px;
  margin: -2px -4px;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-light {
  background-color: var(--color-surface-light);
  background-image: var(--gradient-subtle);
}

.section-white {
  background-color: var(--color-surface-white);
}

.section-alt {
  background-color: var(--color-surface-alt);
}

/* ========================================
   CARDS - Soft & Organic Style
   ======================================== */

.card {
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(135, 169, 107, 0.1);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-organic);
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(135, 169, 107, 0.1);
  background: linear-gradient(135deg, rgba(135, 169, 107, 0.02) 0%, rgba(212, 165, 116, 0.02) 100%);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-lg);
  background-color: rgba(245, 245, 240, 0.5);
  border-top: 1px solid rgba(135, 169, 107, 0.1);
}

/* ========================================
   BUTTONS - Natural & Organic
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::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: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-organic);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: white;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.btn-accent:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.9rem;
}

/* ========================================
   FORMS - Soft & Clean
   ======================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid rgba(135, 169, 107, 0.2);
  border-radius: var(--radius-lg);
  background: var(--color-surface-white);
  font-size: 1rem;
  transition: var(--transition-smooth);
  font-family: var(--font-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(135, 169, 107, 0.1);
  background: var(--color-surface-alt);
}

.form-control::placeholder {
  color: rgba(45, 80, 22, 0.4);
}

/* ========================================
   HEADER - Natural & Clean
   ======================================== */

header {
  background: var(--color-surface-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  padding: var(--space-md) 0;
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--color-primary);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background: rgba(135, 169, 107, 0.1);
  color: var(--color-primary);
}

/* ========================================
   FOOTER - Earth Tones
   ======================================== */

footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-organic);
  opacity: 0.3;
}

.footer-content {
  margin-bottom: var(--space-xl);
}

.footer-title {
  color: white;
  font-family: var(--font-secondary);
  margin-bottom: var(--space-md);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-xs);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-accent);
  padding-left: var(--space-xs);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   UTILITIES & HELPERS
   ======================================== */

.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: var(--color-secondary) !important;
}

.text-accent {
  color: var(--color-accent) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-secondary {
  background-color: var(--color-secondary) !important;
}

.bg-accent {
  background-color: var(--color-accent) !important;
}

.bg-surface {
  background-color: var(--color-surface-white) !important;
}

.bg-light {
  background-color: var(--color-surface-light) !important;
}

/* ========================================
   FEATURED ELEMENTS
   ======================================== */

.hero-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--color-surface-white) 0%, var(--color-surface-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(135, 169, 107, 0.05) 0%, transparent 70%);
  transform: rotate(15deg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-organic);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-soft);
}

/* ========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================================== */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-gentle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-gentle {
  animation: pulse-gentle 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  :root {
    --space-3xl: 2.5rem;
    --space-2xl: 2rem;
    --space-xl: 1.5rem;
  }
  
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .btn-lg {
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
  }
  
  .card {
    margin-bottom: var(--space-lg);
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
}

/* ========================================
   ACCESSIBILITY & FOCUS STATES
   ======================================== */

*:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .btn,
  header,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-organic);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}