@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playwrite+BR:wght@100..400&display=swap');

:root {
  /* Natural Emerald & Sage Palette from ColorSpace */
  --bg-primary: #F2FCF4;
  --bg-secondary: #FFFFFF;
  --text-primary: #1B2B1F;
  --text-secondary: #3B4A3F;
  --text-muted: #657D6A;
  
  /* Primary Vibrant & Base Greens */
  --accent-green-vibrant: #1EA659;
  --accent-green-sage: #517B5C;
  --accent-green-teal: #2D7D7C;
  --accent-green-ocean: #65B2B1;
  --accent-gold-sand: #DEB887;
  
  /* Standard Token Mappings */
  --accent-gold: #1EA659;
  --accent-gold-light: rgba(30, 166, 89, 0.08);
  --accent-gold-hover: #146B39;
  
  --accent-blue: #1EA659;
  --accent-blue-light: rgba(30, 166, 89, 0.08);
  --accent-blue-hover: #2D7D7C;
  
  --accent-terracotta: #D97736;
  --accent-terracotta-light: rgba(217, 119, 54, 0.1);
  
  --accent-sage: #1EA659;
  --accent-sage-light: rgba(30, 166, 89, 0.12);
  
  --border-color: rgba(30, 166, 89, 0.16);
  --border-focus: #1EA659;

  /* Vibrant Royal Forest Emerald & Jade Luxury Gradients */
  --gradient-primary: linear-gradient(135deg, #0e502c 0%, #15803d 48%, #22c55e 100%);
  --gradient-primary-hover: linear-gradient(135deg, #136337 0%, #16a34a 48%, #34d399 100%);
  --gradient-header: linear-gradient(135deg, rgba(12, 50, 29, 0.96) 0%, rgba(18, 72, 41, 0.94) 48%, rgba(26, 108, 58, 0.91) 100%);
  --gradient-dark: linear-gradient(145deg, #09331b 0%, #0f4a27 48%, #166534 100%);
  --gradient-banner: linear-gradient(90deg, #0a3d21 0%, #135e33 48%, #1ea659 100%);
  --gradient-gold: linear-gradient(135deg, #0d4425 0%, #15803d 45%, #d97706 100%);
  --gradient-cta: linear-gradient(135deg, #0a3a1f 0%, #11532c 45%, #187941 100%);

  /* Typography Scale */
  --font-headings: 'Open Sans', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-playful: 'Playwrite BR', cursive, sans-serif;
  
  /* Balanced Comfortable Spacing Scale */
  --spacing-xs: 4px;
  --spacing-sm: 10px;
  --spacing-md: 18px;
  --spacing-lg: 28px;
  --spacing-xl: 40px;
  --spacing-xxl: 56px;
  --spacing-jumbo: 72px;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadow Elevations */
  --shadow-sm: 0 4px 15px rgba(27, 43, 31, 0.04);
  --shadow-md: 0 8px 30px rgba(27, 43, 31, 0.07);
  --shadow-lg: 0 16px 45px rgba(27, 43, 31, 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-slow: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  
  /* Layout */
  --max-width: 1200px;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility */
*:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Gradient Text Helper */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ----------------------------------------------------
   LUXURY SMOOTH ANIMATION ENGINE & EASING CURVES
---------------------------------------------------- */
:root {
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Global Section & Element Scroll Reveal Animations */
.reveal-on-scroll,
.reveal-fade,
.reveal-scale,
.reveal-left,
.reveal-right {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.85s var(--ease-expo), transform 0.85s var(--ease-expo);
}

.reveal-on-scroll,
.reveal-fade {
  transform: translateY(28px);
}

.reveal-scale {
  transform: scale(0.95) translateY(20px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-on-scroll.active,
.reveal-fade.active,
.reveal-scale.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger delays for child elements in cards & grids */
.stagger-1 { transition-delay: 0.06s !important; }
.stagger-2 { transition-delay: 0.12s !important; }
.stagger-3 { transition-delay: 0.18s !important; }
.stagger-4 { transition-delay: 0.24s !important; }
.stagger-5 { transition-delay: 0.30s !important; }
.stagger-6 { transition-delay: 0.36s !important; }
.stagger-7 { transition-delay: 0.42s !important; }
.stagger-8 { transition-delay: 0.48s !important; }

/* Micro Floating Animations */
@keyframes floatSubtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes shimmerPass {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-float {
  animation: floatSubtle 4.5s ease-in-out infinite;
}

/* Smooth Interactive Card Physics */
.interactive-card,
.product-card,
.category-card,
.milestone-card,
.testimonial-card,
.season-card {
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo), border-color 0.4s ease;
}

.interactive-card:hover,
.product-card:hover,
.category-card:hover,
.milestone-card:hover,
.season-card:hover {
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-fade,
  .reveal-scale,
  .reveal-left,
  .reveal-right,
  .interactive-card,
  .product-card,
  .category-card {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(30, 166, 89, 0.35);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green-vibrant);
}

/* Global Grid Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .container {
    padding: 0 16px;
  }
}

/* Utility Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-green-vibrant);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-block;
}

@media (max-width: 768px) {
  main {
    padding-top: 96px !important;
  }
}
