/* Soft & Organic Design System - Custom CSS for Tailwind Integration */

/* CSS Variables for Design System */
:root {
  /* Color Palette - Soft & Organic */
  --primary-color: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #7dd3fc;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-footer: #f1f5f9;
  --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  /* Spacing & Sizing */
  --border-radius-sm: 12px;
  --border-radius-md: 16px;
  --border-radius-lg: 20px;
  --border-radius-xl: 24px;
  --border-radius-2xl: 32px;
  
  /* Shadows - Soft & Diffused */
  --shadow-soft-sm: 0 4px 20px -4px rgba(14, 165, 233, 0.15);
  --shadow-soft-md: 0 8px 30px -8px rgba(14, 165, 233, 0.2);
  --shadow-soft-lg: 0 12px 40px -12px rgba(14, 165, 233, 0.25);
  --shadow-soft-xl: 0 20px 60px -20px rgba(14, 165, 233, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Soft & Organic Buttons */
.btn-organic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--border-radius-xl);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 52px;
}

.btn-organic::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 ease;
}

.btn-organic:hover::before {
  left: 100%;
}

/* Primary Button - Soft Blue with Gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-soft-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0369a1 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft-sm);
}

/* Secondary Button - Soft Gray */
.btn-secondary {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text-primary);
  border: 2px solid #e2e8f0;
  box-shadow: var(--shadow-soft-sm);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft-md);
  border-color: var(--primary-light);
}

/* Accent Button - Cyan Gradient */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, #0891b2 100%);
  color: white;
  box-shadow: var(--shadow-soft-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-soft-sm);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft-md);
}

/* Soft & Organic Cards */
.card-organic {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft-sm);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-organic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-organic:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
  border-color: var(--primary-light);
}

.card-organic:hover::before {
  opacity: 1;
}

/* Featured Card with Gradient Border */
.card-featured {
  background: var(--bg-primary);
  border-radius: var(--border-radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft-lg);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-light));
}

.card-featured:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft-xl);
}

/* Hero Section Styling */
.hero-organic {
  background: var(--bg-gradient);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-organic::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Section Styling */
.section-organic {
  padding: 5rem 0;
  position: relative;
}

.section-organic:nth-child(even) {
  background: var(--bg-secondary);
}

/* Navigation Styling */
.nav-organic {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-organic.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft-sm);
}

/* Logo Styling */
.logo-organic {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
}

.logo-organic::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
}

.logo-organic:hover::after {
  width: 100%;
}

/* Form Styling */
.form-organic {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft-md);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  font-family: var(--font-primary);
  background: var(--bg-primary);
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Text Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-soft {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Badge Styling */
.badge-organic {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--primary-light), rgba(14, 165, 233, 0.1));
  color: var(--primary-dark);
  border-radius: var(--border-radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Footer Styling */
.footer-organic {
  background: var(--bg-footer);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.footer-organic h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-organic a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-organic a:hover {
  color: var(--primary-color);
}

/* Loading Animation */
.loading-organic {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(14, 165, 233, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-organic,
  .card-featured {
    padding: 1.5rem;
  }
  
  .hero-organic {
    padding: 4rem 0;
  }
  
  .section-organic {
    padding: 3rem 0;
  }
  
  .btn-organic {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .card-organic,
  .card-featured {
    padding: 1.25rem;
  }
  
  .form-organic {
    padding: 1.5rem;
  }
  
  .btn-organic {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
.btn-organic:focus,
.form-input:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-soft-sm: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-soft-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-soft-lg: 0 12px 24px rgba(0, 0, 0, 0.3);
    --shadow-soft-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
}


/* 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;
    }
}