/* ==========================================================================
   NUTRAPLANET STYLE: VIBRANT
   Scope: .np-scope.np-style-vibrant
   ========================================================================== */

/* --- VARIABLES (Scoped from :root) --- */
.np-scope.np-style-vibrant {
  /* Color Palette */
  --color-white: #FFFFFF;
  --color-ivory: #FDFBF7;
  --color-cream: #FAF8F5;
  --color-light-gray: #F1F0ED;
  --color-medium-gray: #D1CFC9;
  --color-charcoal: #2D2D2D;
  --color-deep-charcoal: #1A1A1A;
  
  /* Brand Colors */
  --color-navy: #1E3A5F;
  --color-navy-dark: #152B45;
  --color-navy-light: #2A4A6F;
  --color-emerald: #059669;
  --color-emerald-dark: #047857;
  --color-emerald-light: #10B981;
  --color-sage: #6B8E7F;
  --color-sage-light: #8FA89E;
  
  /* Accents */
  --color-carrot: #F97316;
  --color-beet: #BE185D;
  --color-kale: #15803D;
  --color-sunshine: #FBBF24;
  
  /* Semantic */
  --color-text-primary: var(--color-deep-charcoal);
  --color-text-secondary: var(--color-charcoal);
  --color-text-tertiary: #6B6B6B;
  --color-bg-primary: var(--color-white);
  --color-bg-secondary: var(--color-cream);
  --color-bg-tertiary: var(--color-light-gray);
  --color-border-light: #E5E4E0;
  --color-border-medium: #C9C7C0;
  
  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Literata', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Fluid Typography (Scoped) */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --font-size-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);
  --font-size-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3.5rem);
  --font-size-5xl: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);
  
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  
  /* Spacing */
  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
  --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
  --space-3xl: 4rem; --space-4xl: 6rem; --space-5xl: 8rem;
  
  /* Layout */
  --container-max-width: 1440px;
  --content-max-width: 720px;
  --content-wide-width: 900px;
  
  /* Borders & Shadows */
  --radius-sm: 0.25rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --radius-xl: 1rem; --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-editorial-sm: 0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-editorial-md: 0 4px 16px rgba(30, 58, 95, 0.12);
  --shadow-editorial-lg: 0 8px 32px rgba(30, 58, 95, 0.15);
  
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  
  /* Z-Index (Scoped relative to WP) */
  --z-sticky: 200;
  --z-modal: 500;
  --z-tooltip: 700;

  /* Base Reset for Scope */
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  text-align: left; /* Ensure alignment doesn't inherit from center-aligned themes */
}

/* --- TYPOGRAPHY RESET --- */
.np-scope.np-style-vibrant h1, 
.np-scope.np-style-vibrant h2, 
.np-scope.np-style-vibrant h3, 
.np-scope.np-style-vibrant h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.np-scope.np-style-vibrant h1 { font-family: var(--font-display); font-size: var(--font-size-4xl); }
.np-scope.np-style-vibrant h2 { font-size: var(--font-size-3xl); }
.np-scope.np-style-vibrant h3 { font-size: var(--font-size-2xl); }
.np-scope.np-style-vibrant p { margin-bottom: var(--space-lg); max-width: 75ch; }
.np-scope.np-style-vibrant img { max-width: 100%; height: auto; }

/* --- COMPONENTS (Scoped) --- */

/* Hero */
.np-scope.np-style-vibrant .hero {
  position: relative;
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
  overflow: hidden;
  border-radius: var(--radius-xl); /* Added for safe embedding */
}

.np-scope.np-style-vibrant .hero__title {
  animation: npFadeUp 0.8s var(--ease-out) forwards;
  opacity: 0;
}

/* Animations (Renamed keyframes to avoid conflicts) */
@keyframes npFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes npScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.np-scope.np-style-vibrant .glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-editorial-sm);
}

/* FAQ */
.np-scope.np-style-vibrant .faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.np-scope.np-style-vibrant .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.np-scope.np-style-vibrant .faq-item.is-open .faq-answer {
  max-height: 1000px;
}

/* Callouts */
.np-scope.np-style-vibrant .callout {
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-emerald);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.np-scope.np-style-vibrant .callout--research {
  border-left-color: var(--color-navy);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, transparent 100%);
}

/* Buttons */
.np-scope.np-style-vibrant .gradient-button,
.np-scope.np-style-vibrant .button--primary {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-emerald);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.np-scope.np-style-vibrant .gradient-button:hover {
  transform: translateY(-2px);
}

/* --- HELPERS --- */
.np-scope.np-style-vibrant .fade-up { opacity: 0; transform: translateY(20px); transition: 0.5s; }
.np-scope.np-style-vibrant .fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .np-scope.np-style-vibrant .hero { padding: var(--space-xl) var(--space-md); }
  .np-scope.np-style-vibrant .glass-grid { grid-template-columns: 1fr; }
}