/* RAJGROW - Custom Theme Styles & Micro-Interactions */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&display=swap');

:root {
  --color-forest: #134426;
  --color-forest-dark: #0e3820;
  --color-forest-deep: #092816;
  --color-leaf: #2e7d32;
  --color-leaf-bright: #16a34a;
  --color-sage-light: #f6f8f5;
  --color-sage-soft: #edf4eb;
  --color-sage-border: #e2ede0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #ffffff;
  color: #27272a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

/* Reference color utility classes */
.bg-forest { background-color: var(--color-forest); }
.bg-forest-dark { background-color: var(--color-forest-dark); }
.bg-forest-deep { background-color: var(--color-forest-deep); }
.bg-sage-light { background-color: var(--color-sage-light); }
.bg-sage-soft { background-color: var(--color-sage-soft); }
.text-forest { color: var(--color-forest); }
.text-forest-dark { color: var(--color-forest-dark); }
.text-leaf { color: var(--color-leaf); }
.border-sage { border-color: var(--color-sage-border); }

/* Buttons matching reference */
.btn-primary-green {
  background-color: #134426;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary-green:hover {
  background-color: #0e3820;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(19, 68, 38, 0.25);
}

.btn-secondary-light {
  background-color: #ffffff;
  color: #134426;
  border: 1px solid #d4ded3;
  transition: all 0.2s ease;
}
.btn-secondary-light:hover {
  background-color: #f6f8f5;
  border-color: #134426;
}

/* Category & Product Cards */
.category-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(19, 68, 38, 0.08);
}
.category-card:hover .cat-arrow-btn {
  background-color: #134426;
  color: #ffffff;
  transform: scale(1.08);
}

.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(19, 68, 38, 0.12);
}

/* Active Nav link underline */
.nav-link.active {
  color: #134426;
  font-weight: 700;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #134426;
  border-radius: 2px;
}

/* Image aspect boxes */
.aspect-card {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f1;
}
::-webkit-scrollbar-thumb {
  background: #a3c4a9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #134426;
}

/* Print Styles for Invoices */
@media print {
  body * {
    visibility: hidden;
  }
  #invoice-printable, #invoice-printable * {
    visibility: visible;
  }
  #invoice-printable {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Section: 60vh Two-Column Layout (Left Content + Right Image Slider)
   ========================================================================== */
.hero-section-wrapper {
  position: relative;
  background-color: #f6f5ef;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section-wrapper {
    /* Height reduced by 20% (60vh -> 48vh) */
    height: 48vh;
    min-height: 400px;
    max-height: 560px;
  }
}

/* Organic curved mask for right slider */
.hero-slider-curved {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-slider-curved {
    /* Smooth organic curve on left edge blending into cream background */
    clip-path: ellipse(95% 100% at 95% 50%);
    -webkit-clip-path: ellipse(95% 100% at 95% 50%);
  }
}

/* Slide Transition Animations */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

/* Hero Content Slide-up entrance */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero-fade {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sticky Header Elevation on Scroll */
.header-scrolled {
  box-shadow: 0 4px 20px -2px rgba(14, 56, 32, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

/* Accordion Smooth Expand/Collapse */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 400px;
  opacity: 1;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

