/* ===================================
   Health & Wellness Supplement CSS
   Complementary to Bootstrap 5
   =================================== */

/* CSS Custom Properties - Theme Colors */
:root {
  /* Primary Color Palette */
  --primary-green: #2D5530;
  --secondary-sage: #8FBC8F;
  --warm-background: #F8F6F0;
  --footer-dark: #1A3320;
  --button-green: #4A7C59;
  
  /* Section Backgrounds */
  --section-bg-1: #F8F6F0;
  --section-bg-2: #F0F4F1;
  --section-bg-3: #E8F0E8;
  --section-bg-4: #F5F2E8;
  --section-bg-5: #E6F0E6;
  
  /* Accent Colors */
  --accent-zinc: #C0C0C0;
  --accent-chromium: #4A4A4A;
  --accent-magnesium: #8B7D6B;
  
  /* Typography Scale */
  --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(45, 85, 48, 0.08);
  --shadow-medium: 0 4px 16px rgba(45, 85, 48, 0.12);
  --shadow-strong: 0 8px 32px rgba(45, 85, 48, 0.16);
  --shadow-hover: 0 12px 40px rgba(45, 85, 48, 0.20);
}

/* ===================================
   Base Styles & Typography
   =================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--warm-background);
  color: var(--accent-chromium);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-green);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--accent-chromium);
}

/* ===================================
   Custom Button Styles
   =================================== */

.btn-wellness-primary {
  background: linear-gradient(135deg, var(--button-green) 0%, var(--primary-green) 100%);
  border: none;
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.btn-wellness-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.5s;
}

.btn-wellness-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: white;
}

.btn-wellness-primary:hover::before {
  left: 100%;
}

.btn-wellness-secondary {
  background: transparent;
  border: 2px solid var(--secondary-sage);
  color: var(--primary-green);
  padding: calc(var(--space-sm) - 2px) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-wellness-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--secondary-sage);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-wellness-secondary:hover {
  color: white;
  border-color: var(--secondary-sage);
  transform: translateY(-1px);
}

.btn-wellness-secondary:hover::after {
  width: 100%;
}

/* ===================================
   Custom Card Components
   =================================== */

.card-wellness {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card-wellness::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-sage), var(--button-green));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-wellness:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.card-wellness:hover::before {
  transform: scaleX(1);
}

.card-wellness .card-body {
  padding: var(--space-xl);
}

.card-wellness .card-title {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.card-wellness .card-text {
  color: var(--accent-chromium);
  line-height: 1.7;
}

.product-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(143, 188, 143, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* ===================================
   Section Styling
   =================================== */

.section-wellness {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-wellness:nth-child(odd) {
  background-color: var(--section-bg-1);
}

.section-wellness:nth-child(even) {
  background-color: var(--section-bg-3);
}

.section-wellness--alt {
  background-color: var(--section-bg-2);
}

.section-wellness--light {
  background-color: var(--section-bg-4);
}

.section-wellness--accent {
  background: linear-gradient(135deg, var(--section-bg-5) 0%, var(--section-bg-3) 100%);
}

/* ===================================
   Hero Section
   =================================== */

.hero-wellness {
  background: linear-gradient(135deg, 
    var(--warm-background) 0%, 
    var(--section-bg-2) 50%, 
    var(--section-bg-5) 100%);
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
}

.hero-wellness::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(143,188,143,0.1)"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.3;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary-green), var(--button-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--accent-chromium);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

/* ===================================
   Navigation Enhancements
   =================================== */

.navbar-wellness {
  background: rgba(248, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(143, 188, 143, 0.2);
  transition: all 0.3s ease;
}

.navbar-wellness.scrolled {
  background: rgba(248, 246, 240, 0.98);
  box-shadow: var(--shadow-subtle);
}

.nav-link-wellness {
  color: var(--primary-green) !important;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md) !important;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-wellness::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-sage);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-wellness:hover {
  background: rgba(143, 188, 143, 0.1);
  color: var(--primary-green) !important;
}

.nav-link-wellness:hover::after {
  width: 80%;
}

/* ===================================
   Feature Components
   =================================== */

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-sage), var(--button-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: white;
  font-size: 2rem;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-hover);
}

.feature-title {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: var(--accent-chromium);
  line-height: 1.6;
}

/* ===================================
   Testimonial Styling
   =================================== */

.testimonial-wellness {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-subtle);
  position: relative;
  margin-bottom: var(--space-lg);
}

.testimonial-wellness::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-md);
  font-size: 4rem;
  color: var(--secondary-sage);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--accent-chromium);
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-green);
}

.testimonial-role {
  color: var(--accent-magnesium);
  font-size: 0.9rem;
}

/* ===================================
   Footer Styling
   =================================== */

.footer-wellness {
  background: var(--footer-dark);
  color: var(--section-bg-1);
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-wellness h5 {
  color: var(--secondary-sage);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-wellness a {
  color: var(--section-bg-1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-wellness a:hover {
  color: var(--secondary-sage);
}

.footer-wellness .social-icon {
  width: 40px;
  height: 40px;
  background: rgba(143, 188, 143, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-sm);
  transition: all 0.3s ease;
}

.footer-wellness .social-icon:hover {
  background: var(--secondary-sage);
  transform: translateY(-2px);
}

/* ===================================
   Form Enhancements
   =================================== */

.form-wellness .form-control {
  border: 2px solid rgba(143, 188, 143, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-wellness .form-control:focus {
  border-color: var(--secondary-sage);
  box-shadow: 0 0 0 0.2rem rgba(143, 188, 143, 0.25);
  outline: none;
}

.form-wellness .form-label {
  color: var(--primary-green);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

/* ===================================
   Utility Classes
   =================================== */

.text-wellness-primary {
  color: var(--primary-green) !important;
}

.text-wellness-secondary {
  color: var(--secondary-sage) !important;
}

.bg-wellness-warm {
  background-color: var(--warm-background);
}

.bg-wellness-section {
  background: linear-gradient(135deg, var(--section-bg-1), var(--section-bg-2));
}

.border-wellness {
  border: 2px solid var(--secondary-sage) !important;
  border-radius: var(--radius-md);
}

.shadow-wellness {
  box-shadow: var(--shadow-medium) !important;
}

.shadow-wellness-hover:hover {
  box-shadow: var(--shadow-hover) !important;
}

/* ===================================
   Animations & Micro-interactions
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-hover:hover {
  animation: pulse 0.6s ease-in-out;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
  :root {
    --space-xxl: 3rem;
    --space-xl: 2rem;
  }
  
  .hero-wellness::before {
    display: none;
  }
  
  .card-wellness .card-body {
    padding: var(--space-md);
  }
  
  .product-card {
    padding: var(--space-md);
  }
  
  .testimonial-wellness {
    padding: var(--space-md);
  }
}

@media (max-width: 576px) {
  .btn-wellness-primary,
  .btn-wellness-secondary {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .btn-wellness-primary,
  .btn-wellness-secondary {
    border: 2px solid var(--primary-green) !important;
    background: transparent !important;
    color: var(--primary-green) !important;
  }
  
  .card-wellness,
  .product-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* ===================================
   Accessibility Enhancements
   =================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.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;
}

/* Focus indicators for better accessibility */
.btn-wellness-primary:focus,
.btn-wellness-secondary:focus,
.nav-link-wellness:focus,
.form-wellness .form-control:focus {
  outline: 2px solid var(--secondary-sage);
  outline-offset: 2px;
}


/* 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);
}