/* ========================================
   SOFT & ORGANIC CSS DESIGN SYSTEM
   Custom Styles for Tailwind Integration
   ======================================== */

/* CSS Variables - Soft & Organic Palette */
:root {
  /* Color Palette */
  --primary-color: #6B8E6B;
  --secondary-color: #8FBC8F;
  --accent-color: #A8D5BA;
  --light-accent: #C8E6C9;
  --background-color: #FAFAFA;
  --footer-background: #2F4F2F;
  --surface-white: #FFFFFF;
  --surface-light: #F5F8F5;
  --text-primary: #2F4F2F;
  --text-secondary: #6B8E6B;
  --text-muted: #8FBC8F;
  
  /* Typography */
  --font-family-base: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Border Radius - Soft & Organic */
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-full: 9999px;
  
  /* Shadows - Soft & Diffused */
  --shadow-soft-sm: 0 4px 20px -8px rgba(107, 142, 107, 0.15);
  --shadow-soft-md: 0 8px 30px -12px rgba(107, 142, 107, 0.2);
  --shadow-soft-lg: 0 12px 40px -16px rgba(107, 142, 107, 0.25);
  --shadow-soft-xl: 0 20px 60px -24px rgba(107, 142, 107, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  --gradient-light: linear-gradient(135deg, #FFFFFF 0%, var(--surface-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--light-accent) 100%);
}

/* Full-Screen Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--background-color);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(168, 213, 186, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(143, 188, 143, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin: 0 0 var(--space-4) 0;
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover {
  color: var(--secondary-color);
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: var(--gradient-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

a:hover::after {
  width: 100%;
}

/* Container Overrides for Full-Screen */
.container,
.container-fluid,
.container-lg,
.container-xl,
.container-xxl,
.container-sm,
.container-md {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Organic Sections */
.organic-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-4);
  position: relative;
}

.organic-section.full-height {
  min-height: 100vh;
}

.organic-section.half-height {
  min-height: 50vh;
}

.organic-section.quarter-height {
  min-height: 25vh;
}

/* Content Containers with Organic Spacing */
.organic-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.organic-container.narrow {
  max-width: 800px;
}

.organic-container.wide {
  max-width: 1400px;
}

/* Organic Cards */
.organic-card {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft-md);
  border: 1px solid rgba(143, 188, 143, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.organic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.organic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft-xl);
  border-color: rgba(143, 188, 143, 0.2);
}

.organic-card.featured {
  background: var(--gradient-light);
  border: 2px solid rgba(107, 142, 107, 0.2);
}

.organic-card.minimal {
  background: var(--surface-white);
  border: 1px solid rgba(168, 213, 186, 0.3);
  box-shadow: var(--shadow-soft-sm);
}

/* Button System - Soft & Organic */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
  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: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-soft-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-md);
  color: white;
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-md);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(107, 142, 107, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(107, 142, 107, 0.2);
}

.btn-ghost:hover {
  background: rgba(107, 142, 107, 0.2);
  color: var(--primary-color);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
}

/* Hero Section */
.hero-organic {
  background: var(--gradient-hero);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-organic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  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-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-16);
}

.feature-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-sm);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-md);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4) auto;
  font-size: var(--text-2xl);
  color: white;
}

/* Content Sections with Alternating Backgrounds */
.section-white {
  background: var(--surface-white);
}

.section-light {
  background: var(--surface-light);
}

.section-alternate {
  background: var(--gradient-light);
}

/* Navigation */
.navbar-organic {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(143, 188, 143, 0.1);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-logo {
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: var(--text-2xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(107, 142, 107, 0.1);
  color: var(--primary-color);
}

/* Forms - Soft & Organic */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid rgba(143, 188, 143, 0.2);
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 142, 107, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer-organic {
  background: var(--footer-background);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-16) 0 var(--space-8) 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
}

.footer-title {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-12 { padding: var(--space-12); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --space-20: 4rem;
    --space-16: 3rem;
  }
  
  .organic-section {
    padding: var(--space-12) var(--space-4);
  }
  
  .organic-container {
    padding: 0 var(--space-4);
  }
  
  .organic-card {
    padding: var(--space-6);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    margin-bottom: var(--space-2);
  }
  
  .organic-section {
    padding: var(--space-8) var(--space-2);
  }
  
  .organic-card {
    padding: var(--space-4);
  }
}

/* Focus States for Accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar-organic,
  .footer-organic {
    display: none;
  }
  
  .organic-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .organic-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* 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;
    }
}