/**
 * BALI SALT SEA - Premium CSS Design System
 * Luxury Artisan Sea Salt Brand from Amed, Bali
 * Production-Ready Design System v1.0
 *
 * This file contains the complete design system for balisaltsea.com
 * including typography, colors, components, animations, and utilities.
 */

/* ============================================================================
   1. CSS CUSTOM PROPERTIES & VARIABLES
   ============================================================================ */

:root {
  /* Color Palette */
  --color-primary: #0A1628;
  --color-primary-dark: #051018;
  --color-primary-light: #1a2840;

  --color-secondary: #C9A96E;
  --color-secondary-light: #dfc0a0;
  --color-secondary-dark: #a68a4d;

  --color-accent: #1B6B93;
  --color-accent-light: #2a9ab8;
  --color-accent-dark: #0f4a6a;

  --color-warm: #D4956A;
  --color-warm-light: #e8b89d;
  --color-warm-dark: #b8714a;

  --color-bg-light: #F8F6F0;
  --color-bg-dark: #0F1923;

  --color-text: #2D2D2D;
  --color-text-light: #F8F6F0;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;

  --color-success: #27AE60;
  --color-success-light: #52c081;

  --color-error: #E74C3C;
  --color-warning: #F39C12;
  --color-info: #3498DB;

  --color-border: #E8E6E0;
  --color-border-dark: #1a2a3a;
  --color-overlay: rgba(10, 22, 40, 0.8);

  /* Typography Scale - Fluid with clamp() */
  --font-family-heading: 'Playfair Display', Georgia, serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'Courier New', monospace;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Fluid Typography Scaling */
  --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 2.2vw, 1rem);
  --font-size-base: clamp(1rem, 2.4vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 2.6vw, 1.375rem);
  --font-size-xl: clamp(1.25rem, 3vw, 1.75rem);
  --font-size-2xl: clamp(1.5rem, 4vw, 2.25rem);
  --font-size-3xl: clamp(1.875rem, 5vw, 3rem);
  --font-size-4xl: clamp(2.25rem, 6vw, 4rem);
  --font-size-5xl: clamp(3rem, 8vw, 5.5rem);

  /* Spacing Scale (8px grid) */
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  --spacing-32: 8rem;
  --spacing-40: 10rem;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 10px 30px rgba(201, 169, 110, 0.2);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Transitions & Animations */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slowest: 500ms ease;

  /* Z-Index Scale */
  --z-hide: -1;
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-notification: 700;

  /* Backdrop Blur */
  --backdrop-blur-sm: blur(4px);
  --backdrop-blur-md: blur(10px);
  --backdrop-blur-lg: blur(20px);

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #F8F6F0;
    --color-text-secondary: #D0D0D0;
    --color-text-muted: #888888;
    --color-border: #1a2a3a;
    --color-bg-light: #0F1923;
  }
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

body.dark-mode {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-dark);
}

/* Firefox Scrollbar */
* {
  scrollbar-color: var(--color-secondary) var(--color-bg-light);
  scrollbar-width: thin;
}

body.dark-mode {
  scrollbar-color: var(--color-secondary) var(--color-bg-dark);
}

/* ============================================================================
   3. TYPOGRAPHY SYSTEM
   ============================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-6);
  color: var(--color-primary);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: var(--color-text-light);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--spacing-8);
}

h2 {
  font-size: var(--font-size-4xl);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--spacing-8);
  position: relative;
  display: inline-block;
}

h2.with-accent-line::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--color-secondary), transparent);
  border-radius: var(--radius-full);
}

h3 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-6);
}

h4 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-4);
}

h5 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-4);
}

h6 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-4);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-secondary);
}

p {
  margin-bottom: var(--spacing-4);
  line-height: var(--line-height-relaxed);
}

p.lead {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

p.caption {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

strong,
b {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

body.dark-mode strong,
body.dark-mode b {
  color: var(--color-text-light);
}

em,
i {
  font-style: italic;
  color: var(--color-secondary);
}

code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  background: var(--color-border);
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

pre {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--spacing-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--spacing-6);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

pre code {
  background: none;
  padding: 0;
  color: var(--color-text-light);
}

ul,
ol {
  margin-left: var(--spacing-6);
  margin-bottom: var(--spacing-6);
}

li {
  margin-bottom: var(--spacing-2);
}

blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: var(--spacing-6);
  margin-left: 0;
  margin-bottom: var(--spacing-6);
  font-style: italic;
  color: var(--color-text-secondary);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-light);
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

.text-italic {
  font-style: italic;
}

.text-bold {
  font-weight: var(--font-weight-bold);
}

.font-serif {
  font-family: var(--font-family-heading);
}

/* ============================================================================
   4. BUTTON STYLES
   ============================================================================ */

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-6);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button - Gold */
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(201, 169, 110, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Secondary Button - Outline */
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

body.dark-mode .btn-secondary {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-text-light);
}

/* Accent Button */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover:not(:disabled) {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

body.dark-mode .btn-ghost {
  color: var(--color-text-light);
  border-color: var(--color-border-dark);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-border);
  border-color: var(--color-secondary);
}

body.dark-mode .btn-ghost:hover:not(:disabled) {
  background: var(--color-border-dark);
}

/* CTA Pulsing Button */
.btn-cta {
  background: var(--color-secondary);
  color: var(--color-primary);
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.4);
}

.btn-cta:hover:not(:disabled) {
  animation: none;
  box-shadow: 0 15px 35px rgba(201, 169, 110, 0.35);
  transform: translateY(-2px);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(201, 169, 110, 0.6);
  }
}

/* Button Sizes */
.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--font-size-lg);
  min-height: 56px;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* Icon Button */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

/* ============================================================================
   5. CARD STYLES
   ============================================================================ */

.card {
  background: var(--color-text-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

body.dark-mode .card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border-dark);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-image {
  width: 100%;
  height: 280px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-4);
  overflow: hidden;
  position: relative;
}

body.dark-mode .product-card-image {
  background: var(--color-border-dark);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-badge {
  position: absolute;
  top: var(--spacing-4);
  right: var(--spacing-4);
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

.product-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-2);
}

.product-card-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-4);
  flex-grow: 1;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-4);
}

.product-card-price-current {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
}

.product-card-price-original {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-sm);
}

.product-card-stars {
  color: #FFC107;
  letter-spacing: 1px;
}

/* Testimonial Card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-6);
}

.testimonial-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card-author {
  flex: 1;
}

.testimonial-card-name {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-1);
}

body.dark-mode .testimonial-card-name {
  color: var(--color-text-light);
}

.testimonial-card-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.testimonial-card-quote {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-4);
  color: var(--color-text-secondary);
  font-style: italic;
}

.testimonial-card-rating {
  color: #FFC107;
  font-size: var(--font-size-sm);
}

/* Feature Card */
.feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-6);
  color: var(--color-text-light);
  font-size: var(--font-size-3xl);
}

.feature-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-2);
  color: var(--color-primary);
}

body.dark-mode .feature-card-title {
  color: var(--color-text-light);
}

.feature-card-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Blog Card */
.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  width: 100%;
  height: 240px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-4);
  overflow: hidden;
}

body.dark-mode .blog-card-image {
  background: var(--color-border-dark);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-category {
  font-size: var(--font-size-xs);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-2);
}

.blog-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-2);
  color: var(--color-primary);
  line-height: var(--line-height-normal);
  transition: color var(--transition-base);
}

body.dark-mode .blog-card-title {
  color: var(--color-text-light);
}

.blog-card:hover .blog-card-title {
  color: var(--color-secondary);
}

.blog-card-excerpt {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-4);
  flex-grow: 1;
  line-height: var(--line-height-relaxed);
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-4);
}

body.dark-mode .blog-card-footer {
  border-top-color: var(--color-border-dark);
}

/* ============================================================================
   6. HERO SECTION STYLES
   ============================================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.9),
    rgba(27, 107, 147, 0.7)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-text-light);
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: var(--font-weight-black);
  margin-bottom: var(--spacing-6);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-light);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: var(--spacing-8);
  color: var(--color-secondary);
  font-weight: var(--font-weight-medium);
}

.hero-description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-12);
  color: rgba(248, 246, 240, 0.9);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ============================================================================
   7. NAVIGATION STYLES
   ============================================================================ */

header,
nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

header {
  background: transparent;
  padding: var(--spacing-4) 0;
}

header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: var(--backdrop-blur-md);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-3) 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-6);
  max-width: 1440px;
  margin: 0 auto;
}

.navbar-logo {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.navbar-logo:hover {
  color: var(--color-secondary-light);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-8);
  align-items: center;
}

.navbar-menu a {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base);
}

header.scrolled .navbar-menu a {
  color: var(--color-text-light);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width var(--transition-base);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-menu a.active {
  color: var(--color-secondary);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--spacing-2);
}

header.scrolled .navbar-toggle {
  color: var(--color-text-light);
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
  transition: all var(--transition-base);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-actions {
  display: flex;
  gap: var(--spacing-4);
  align-items: center;
}

.navbar-cart {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.navbar-cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-secondary);
  color: var(--color-primary);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
    flex-direction: column;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .navbar-menu.active {
    max-height: 500px;
  }

  .navbar-menu a {
    display: block;
    padding: var(--spacing-4) var(--spacing-6);
    border-bottom: 1px solid var(--color-border-dark);
  }

  .navbar-menu a::after {
    display: none;
  }
}

/* ============================================================================
   8. GRID LAYOUTS
   ============================================================================ */

.grid {
  display: grid;
  gap: var(--spacing-6);
}

/* Product Grid */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Grid */
.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Team Grid */
.team-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Bento Grid */
.bento-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: auto;
}

.bento-grid-item {
  min-height: 200px;
}

.bento-grid-item.span-2 {
  grid-column: span 2;
}

.bento-grid-item.span-2-rows {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .bento-grid-item.span-2,
  .bento-grid-item.span-2-rows {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-4);
  }
}

/* Sections */
section {
  padding: var(--spacing-20) var(--spacing-0);
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-12) var(--spacing-0);
  }
}

/* ============================================================================
   9. SECTION DIVIDERS
   ============================================================================ */

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--spacing-20) 0;
  position: relative;
}

body.dark-mode .divider {
  background: var(--color-border-dark);
}

.divider.accent {
  background: linear-gradient(
    to right,
    transparent,
    var(--color-secondary),
    transparent
  );
  height: 2px;
}

.divider-text {
  text-align: center;
  position: relative;
  margin: var(--spacing-20) 0;
}

.divider-text::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
  z-index: 1;
}

body.dark-mode .divider-text::before {
  background: var(--color-border-dark);
}

.divider-text span {
  position: relative;
  z-index: 2;
  background: var(--color-bg-light);
  padding: 0 var(--spacing-4);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

body.dark-mode .divider-text span {
  background: var(--color-bg-dark);
}

/* Wave Divider */
.divider-wave {
  position: relative;
  height: 100px;
  background: transparent;
  margin: var(--spacing-20) 0;
  overflow: hidden;
}

.divider-wave svg {
  width: 100%;
  height: 100%;
}

/* Curved Divider */
.divider-curved {
  position: relative;
  height: 120px;
  background: transparent;
  margin: var(--spacing-20) 0;
}

.divider-curved svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Diagonal Divider */
.divider-diagonal {
  position: relative;
  height: 80px;
  background: transparent;
  margin: var(--spacing-20) 0;
  transform: skewY(-2deg);
}

.divider-diagonal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-warm)
  );
  opacity: 0.1;
}

/* ============================================================================
   10. GLASSMORPHISM EFFECTS
   ============================================================================ */

.glass {
  background: rgba(248, 246, 240, 0.7);
  backdrop-filter: var(--backdrop-blur-lg);
  border: 1px solid rgba(248, 246, 240, 0.2);
  border-radius: var(--radius-xl);
}

body.dark-mode .glass {
  background: rgba(10, 22, 40, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: var(--backdrop-blur-lg);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-xl);
}

.glass-primary {
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: var(--backdrop-blur-lg);
  border: 1px solid rgba(201, 169, 110, 0.15);
}

.glass-card {
  background: rgba(248, 246, 240, 0.5);
  backdrop-filter: var(--backdrop-blur-md);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
}

body.dark-mode .glass-card {
  background: rgba(15, 25, 35, 0.5);
  border-color: rgba(201, 169, 110, 0.2);
}

/* ============================================================================
   11. GOLD ACCENT ELEMENTS
   ============================================================================ */

.accent-line {
  position: relative;
  display: inline-block;
}

.accent-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-secondary),
    var(--color-warm),
    transparent
  );
  border-radius: var(--radius-full);
}

.accent-underline {
  text-decoration: underline;
  text-decoration-color: var(--color-secondary);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

.accent-border {
  border-left: 4px solid var(--color-secondary);
  padding-left: var(--spacing-4);
}

.accent-border-top {
  border-top: 4px solid var(--color-secondary);
  padding-top: var(--spacing-4);
}

.accent-border-bottom {
  border-bottom: 4px solid var(--color-secondary);
  padding-bottom: var(--spacing-4);
}

.gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-secondary),
    var(--color-warm)
  );
  margin: var(--spacing-6) 0;
  border-radius: var(--radius-full);
}

.gold-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  margin: 0 var(--spacing-2);
}

/* ============================================================================
   12. ANIMATION CLASSES
   ============================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.6s ease-out;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Stagger Animation */
.stagger-children > * {
  animation: fadeInUp 0.6s ease-out;
}

.stagger-children > *:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-children > *:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-children > *:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-children > *:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-children > *:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-children > *:nth-child(n + 6) {
  animation-delay: calc(0.1s * (var(--item-index, 6)));
}

/* Parallax Animation */
.parallax-element {
  will-change: transform;
}

/* ============================================================================
   13. PRELOADER ANIMATION
   ============================================================================ */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-8);
  animation: fadeIn 0.8s ease-out;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--color-secondary);
  border-top-color: transparent;
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-6);
}

.preloader-text {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wider);
  animation: fadeIn 1s ease-out 0.3s both;
}

/* ============================================================================
   14. READING PROGRESS BAR
   ============================================================================ */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-secondary),
    var(--color-warm),
    var(--color-accent)
  );
  z-index: var(--z-notification);
  width: 0%;
  transition: width 0.1s ease;
}

/* ============================================================================
   15. CUSTOM ELEMENTS
   ============================================================================ */

/* Testimonial Slider */
.testimonial-slider {
  position: relative;
}

.testimonial-slides {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.testimonial-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-controls {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  margin-top: var(--spacing-8);
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
}

body.dark-mode .testimonial-dot {
  background: var(--color-border-dark);
}

.testimonial-dot.active {
  background: var(--color-secondary);
  width: 32px;
  border-radius: var(--radius-full);
}

/* FAQ/Accordion */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

body.dark-mode .accordion {
  border-color: var(--color-border-dark);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

body.dark-mode .accordion-item {
  border-bottom-color: var(--color-border-dark);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: var(--spacing-6);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-light);
  transition: all var(--transition-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

body.dark-mode .accordion-header {
  background: var(--color-primary-light);
  color: var(--color-text-light);
}

.accordion-header:hover {
  background: var(--color-border);
}

body.dark-mode .accordion-header:hover {
  background: var(--color-border-dark);
}

.accordion-header.active {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.accordion-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  font-weight: var(--font-weight-bold);
}

.accordion-header.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  background: var(--color-text-light);
  padding: 0 var(--spacing-6);
}

body.dark-mode .accordion-content {
  background: var(--color-primary-dark);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: var(--spacing-6);
}

.accordion-content p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* ============================================================================
   16. FORM STYLES
   ============================================================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.form-label {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

body.dark-mode .form-label {
  color: var(--color-text-light);
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--spacing-3) var(--spacing-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-text-light);
  transition: all var(--transition-base);
}

body.dark-mode .form-input,
body.dark-mode .form-select,
body.dark-mode .form-textarea {
  background: var(--color-primary-light);
  color: var(--color-text-light);
  border-color: var(--color-border-dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-family-body);
}

.form-checkbox,
.form-radio {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-secondary);
}

.form-helper {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.form-error {
  color: var(--color-error);
  font-size: var(--font-size-sm);
}

.form-success {
  color: var(--color-success);
  font-size: var(--font-size-sm);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-6);
}

/* ============================================================================
   17. FOOTER STYLES
   ============================================================================ */

footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--spacing-20) 0 var(--spacing-8);
  margin-top: var(--spacing-32);
  border-top: 1px solid var(--color-border-dark);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-16);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-6);
}

.footer-section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-6);
  color: var(--color-secondary);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-3);
}

.footer-section a {
  color: rgba(248, 246, 240, 0.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

/* Newsletter Signup */
.newsletter-form {
  display: flex;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-6);
}

.newsletter-input {
  flex: 1;
  padding: var(--spacing-3) var(--spacing-4);
  border: 1px solid rgba(248, 246, 240, 0.3);
  border-radius: var(--radius-md);
  background: rgba(248, 246, 240, 0.1);
  color: var(--color-text-light);
  font-family: var(--font-family-body);
}

.newsletter-input::placeholder {
  color: rgba(248, 246, 240, 0.6);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(248, 246, 240, 0.15);
}

/* Social Icons */
.social-links {
  display: flex;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(248, 246, 240, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.social-link:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding: var(--spacing-6) 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--spacing-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-4);
  color: rgba(248, 246, 240, 0.7);
  font-size: var(--font-size-sm);
}

.footer-links {
  display: flex;
  gap: var(--spacing-6);
  list-style: none;
}

.footer-links a {
  color: rgba(248, 246, 240, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-secondary);
}

/* ============================================================================
   18. STICKY MOBILE CTA BAR
   ============================================================================ */

.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  border-top: 2px solid var(--color-secondary);
  padding: var(--spacing-3) var(--spacing-4);
  display: none;
  gap: var(--spacing-2);
  z-index: var(--z-fixed);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.mobile-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--spacing-3) var(--spacing-4);
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.mobile-cta-button:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.mobile-cta-button.whatsapp {
  background: #25D366;
}

.mobile-cta-button.whatsapp:hover {
  background: #20ba5d;
}

/* ============================================================================
   19. IMAGE EFFECTS
   ============================================================================ */

/* Hover Zoom */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-hover-zoom img {
  transition: transform var(--transition-base);
  display: block;
}

.img-hover-zoom:hover img {
  transform: scale(1.08);
}

/* Image Overlay */
.img-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.6),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

.img-overlay:hover::before {
  opacity: 1;
}

.img-overlay img {
  transition: transform var(--transition-base);
}

.img-overlay:hover img {
  transform: scale(1.05);
}

/* Blur-up LQIP */
.img-lqip {
  position: relative;
  background: var(--color-border);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-lqip-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(10px);
  background-size: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity var(--transition-slow);
}

.img-lqip img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.img-lqip img.loaded {
  opacity: 1;
}

.img-lqip img.loaded ~ .img-lqip-blur {
  opacity: 0;
}

/* ============================================================================
   20. BADGE & TAG STYLES
   ============================================================================ */

.badge {
  display: inline-block;
  padding: var(--spacing-1) var(--spacing-3);
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

.badge.primary {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.badge.accent {
  background: var(--color-accent);
  color: var(--color-text-light);
}

.badge.success {
  background: var(--color-success);
  color: var(--color-text-light);
}

.badge.warning {
  background: var(--color-warning);
  color: var(--color-primary);
}

.badge.outline {
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}

/* Special Badges */
.badge-gi-protected {
  background: linear-gradient(135deg, #E31C23, #FF6B35);
  color: white;
}

.badge-organic {
  background: var(--color-success);
  color: white;
}

.badge-certified {
  background: #4285F4;
  color: white;
}

.badge-new {
  background: #FF6B6B;
  color: white;
}

.badge-sale {
  background: #FF6B35;
  color: white;
}

/* Tags */
.tag {
  display: inline-block;
  padding: var(--spacing-2) var(--spacing-4);
  background: var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  margin-right: var(--spacing-2);
  margin-bottom: var(--spacing-2);
  transition: all var(--transition-base);
  cursor: pointer;
}

body.dark-mode .tag {
  background: var(--color-border-dark);
  color: var(--color-text-light);
}

.tag:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ============================================================================
   21. PRICE DISPLAY STYLES
   ============================================================================ */

.price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
}

.price-current {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
  color: var(--color-secondary);
}

.price-original {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin: 0 var(--spacing-4);
}

.price-discount {
  display: inline-block;
  background: var(--color-warning);
  color: var(--color-primary);
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin-left: var(--spacing-4);
}

.price-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  display: block;
  margin-bottom: var(--spacing-2);
}

/* ============================================================================
   22. TIMELINE & MILESTONE STYLES
   ============================================================================ */

.timeline {
  position: relative;
  padding: var(--spacing-12) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--color-secondary),
    var(--color-accent)
  );
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-item {
  margin-bottom: var(--spacing-12);
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
  padding-right: var(--spacing-8);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 0;
  padding-left: var(--spacing-8);
}

@media (max-width: 768px) {
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 60px;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  border: 4px solid var(--color-bg-light);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

body.dark-mode .timeline-marker {
  border-color: var(--color-bg-dark);
}

@media (max-width: 768px) {
  .timeline-marker {
    left: 20px;
  }
}

.timeline-content {
  width: 45%;
  padding: var(--spacing-6);
  background: var(--color-text-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

body.dark-mode .timeline-content {
  background: var(--color-primary-light);
}

.timeline-date {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-2);
}

.timeline-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-2);
  color: var(--color-primary);
}

body.dark-mode .timeline-title {
  color: var(--color-text-light);
}

.timeline-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ============================================================================
   23. RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Extra Small (375px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  section {
    padding: var(--spacing-12) 0;
  }

  .container {
    padding: 0 var(--spacing-4);
  }
}

/* Small (768px) */
@media (max-width: 768px) {
  .grid {
    gap: var(--spacing-4);
  }

  .navbar-menu {
    gap: var(--spacing-6);
  }

  section {
    padding: var(--spacing-16) 0;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
  }
}

/* Medium (1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-6);
  }

  .hero {
    min-height: 80vh;
  }
}

/* Large (1200px) */
@media (max-width: 1200px) {
  .container {
    max-width: 90%;
  }
}

/* Extra Large (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* ============================================================================
   24. DARK MODE SUPPORT
   ============================================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }

  body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
  }

  .card {
    background: var(--color-primary-light);
    border: 1px solid var(--color-border-dark);
  }

  a {
    color: var(--color-secondary);
  }

  code {
    background: var(--color-primary-dark);
    color: var(--color-secondary);
  }

  pre {
    background: var(--color-primary);
  }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: var(--font-size-lg);
  padding: var(--spacing-2);
  transition: color var(--transition-base);
}

header.scrolled .dark-mode-toggle {
  color: var(--color-text-light);
}

.dark-mode-toggle:hover {
  color: var(--color-secondary);
}

/* ============================================================================
   25. ELEMENTOR-SPECIFIC OVERRIDES
   ============================================================================ */

.elementor-section {
  padding: var(--spacing-20) 0 !important;
}

.elementor-container {
  max-width: 1440px !important;
}

.elementor-widget-heading .elementor-heading-title {
  color: var(--color-primary);
  font-family: var(--font-family-heading);
}

body.dark-mode .elementor-widget-heading .elementor-heading-title {
  color: var(--color-text-light);
}

.elementor-widget-text-editor {
  color: var(--color-text);
}

body.dark-mode .elementor-widget-text-editor {
  color: var(--color-text-light);
}

.elementor-button-link {
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.elementor-button-link:hover {
  background: var(--color-secondary-dark);
  color: var(--color-primary);
  text-decoration: none;
}

.elementor-widget-image img {
  border-radius: var(--radius-lg);
}

.elementor-widget-image:hover img {
  transform: scale(1.02);
}

.elementor-column {
  margin-bottom: var(--spacing-6);
}

/* ============================================================================
   26. NOISE TEXTURE OVERLAY
   ============================================================================ */

.noise-overlay {
  position: relative;
  z-index: 1;
}

.noise-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/* ============================================================================
   27. PAGE TRANSITION EFFECTS
   ============================================================================ */

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  z-index: 9998;
  pointer-events: none;
  animation: slideUp 0.6s ease-in-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-6);
  margin: 0 auto;
}

.margin-auto {
  margin: auto;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 {
  gap: var(--spacing-1);
}

.gap-2 {
  gap: var(--spacing-2);
}

.gap-4 {
  gap: var(--spacing-4);
}

.gap-6 {
  gap: var(--spacing-6);
}

.gap-8 {
  gap: var(--spacing-8);
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.transition-all {
  transition: all var(--transition-base);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.rounded {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* ============================================================================
   JAVASCRIPT HELPERS (Inline in CSS comments)
   ============================================================================ */

/*
 * JAVASCRIPT IMPLEMENTATION GUIDE
 * ================================
 *
 * 1. SCROLL-TRIGGERED ANIMATIONS (IntersectionObserver)
 * 2. PRELOADER FUNCTIONALITY
 * 3. READING PROGRESS BAR
 * 4. NAVIGATION SCROLL EFFECT
 * 5. DARK MODE TOGGLE
 * 6. SMOOTH SCROLL BEHAVIOR
 *
 * Copy the code below into your main JavaScript file or place in a <script> tag
 */

/*
document.addEventListener('DOMContentLoaded', function() {

  // ===== 1. SCROLL-TRIGGERED ANIMATIONS (IntersectionObserver) =====
  const observerOptions = {
    threshold: 0.1,
    rootMargin: '0px 0px -100px 0px'
  };

  const observer = new IntersectionObserver(function(entries) {
    entries.forEach(entry => {
      if (entry.isIntersecting) {
        entry.target.classList.add('animate-fade-in-up');
        observer.unobserve(entry.target);
      }
    });
  }, observerOptions);

  // Observe all elements with animate class
  document.querySelectorAll('[data-animate]').forEach(el => {
    observer.observe(el);
  });

  // ===== 2. PARALLAX EFFECT =====
  window.addEventListener('scroll', function() {
    const scrollTop = window.pageYOffset;
    document.querySelectorAll('.parallax-element').forEach(element => {
      const speed = element.getAttribute('data-speed') || 0.5;
      element.style.transform = 'translateY(' + (scrollTop * speed) + 'px)';
    });
  });

  // ===== 3. PRELOADER =====
  const preloader = document.querySelector('.preloader');
  if (preloader) {
    window.addEventListener('load', function() {
      setTimeout(function() {
        preloader.classList.add('hidden');
      }, 800);
    });
  }

  // ===== 4. READING PROGRESS BAR =====
  const progressBar = document.querySelector('.progress-bar');
  if (progressBar) {
    window.addEventListener('scroll', function() {
      const windowHeight = document.documentElement.scrollHeight - window.innerHeight;
      const scrolled = (window.scrollY / windowHeight) * 100;
      progressBar.style.width = scrolled + '%';
    });
  }

  // ===== 5. NAVIGATION SCROLL EFFECT =====
  const header = document.querySelector('header');
  if (header) {
    window.addEventListener('scroll', function() {
      if (window.scrollY > 100) {
        header.classList.add('scrolled');
      } else {
        header.classList.remove('scrolled');
      }
    });
  }

  // ===== 6. HAMBURGER MENU =====
  const hamburger = document.querySelector('.navbar-toggle');
  const menu = document.querySelector('.navbar-menu');
  if (hamburger && menu) {
    hamburger.addEventListener('click', function() {
      this.classList.toggle('active');
      menu.classList.toggle('active');
    });

    // Close menu when link is clicked
    menu.querySelectorAll('a').forEach(link => {
      link.addEventListener('click', function() {
        hamburger.classList.remove('active');
        menu.classList.remove('active');
      });
    });
  }

  // ===== 7. ACCORDION =====
  document.querySelectorAll('.accordion-header').forEach(header => {
    header.addEventListener('click', function() {
      const item = this.parentElement;
      const isActive = item.classList.contains('active');

      // Close all items
      document.querySelectorAll('.accordion-item').forEach(i => {
        i.classList.remove('active');
      });

      // Open clicked item
      if (!isActive) {
        item.classList.add('active');
      }
    });
  });

  // ===== 8. TESTIMONIAL SLIDER =====
  const testimonialDots = document.querySelectorAll('.testimonial-dot');
  let currentSlide = 0;

  testimonialDots.forEach((dot, index) => {
    dot.addEventListener('click', function() {
      showSlide(index);
    });
  });

  function showSlide(index) {
    currentSlide = index;
    document.querySelectorAll('.testimonial-slide').forEach(slide => {
      slide.classList.remove('active');
    });
    document.querySelectorAll('.testimonial-dot').forEach(dot => {
      dot.classList.remove('active');
    });

    const slides = document.querySelectorAll('.testimonial-slide');
    const dots = document.querySelectorAll('.testimonial-dot');

    if (slides[index]) slides[index].classList.add('active');
    if (dots[index]) dots[index].classList.add('active');
  }

  // ===== 9. DARK MODE TOGGLE =====
  const darkModeToggle = document.querySelector('.dark-mode-toggle');
  const htmlElement = document.documentElement;

  if (darkModeToggle) {
    // Check for saved preference
    const prefersDark = localStorage.getItem('darkMode') === 'true' ||
                       window.matchMedia('(prefers-color-scheme: dark)').matches;

    if (prefersDark) {
      htmlElement.classList.add('dark-mode');
      document.body.classList.add('dark-mode');
    }

    darkModeToggle.addEventListener('click', function() {
      htmlElement.classList.toggle('dark-mode');
      document.body.classList.toggle('dark-mode');
      const isDark = htmlElement.classList.contains('dark-mode');
      localStorage.setItem('darkMode', isDark);
    });
  }

  // ===== 10. SMOOTH SCROLL BEHAVIOR =====
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {
    anchor.addEventListener('click', function(e) {
      const href = this.getAttribute('href');
      if (href === '#') return;

      const target = document.querySelector(href);
      if (target) {
        e.preventDefault();
        target.scrollIntoView({ behavior: 'smooth' });
      }
    });
  });

  // ===== 11. IMAGE LAZY LOADING =====
  if ('IntersectionObserver' in window) {
    const imageObserver = new IntersectionObserver((entries, observer) => {
      entries.forEach(entry => {
        if (entry.isIntersecting) {
          const img = entry.target;
          if (img.dataset.src) {
            img.src = img.dataset.src;
            img.classList.add('loaded');
          }
          observer.unobserve(img);
        }
      });
    });

    document.querySelectorAll('img[data-src]').forEach(img => {
      imageObserver.observe(img);
    });
  }
});
*/
