/* ==========================================================================
   Success AI Mart - Custom Stylesheet
   Brand Palette:
   - Primary Green:   #125B32
   - Dark Green:      #073B23
   - Secondary Green: #3B8B45
   - Golden:          #D6A52C
   - Light Gold:      #F6E8B7
   - White:           #FFFFFF
   - Light BG:        #F7FAF5
   - Text:            #252B27
   ========================================================================== */

:root {
  --sam-green: #125B32;
  --sam-dark: #073B23;
  --sam-secondary: #3B8B45;
  --sam-gold: #D6A52C;
  --sam-gold-hover: #C2921E;
  --sam-light-gold: #F6E8B7;
  --sam-white: #FFFFFF;
  --sam-light-bg: #F7FAF5;
  --sam-text: #252B27;
  --sam-border: #E2ECE4;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--sam-text);
  background-color: var(--sam-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif-heading {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--sam-light-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--sam-green);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sam-dark);
}

/* Sticky Header Transition */
.site-header {
  transition: box-shadow 0.28s ease, background-color 0.28s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -10px rgba(7, 59, 35, 0.16);
}

/* Nav link underline hover */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sam-gold), var(--sam-green));
  border-radius: 999px;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--sam-green);
  font-weight: 700;
}

/* Premium Gradient Accents */
.bg-brand-gradient {
  background: linear-gradient(135deg, #073B23 0%, #125B32 55%, #1E6E3E 100%);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #D6A52C 0%, #E7BE53 50%, #C6931E 100%);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #D6A52C 0%, #B8861B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 165, 44, 0.75), transparent);
}

/* Hero Swiper Controls */
.hero-swiper .swiper-slide {
  background-color: var(--sam-light-bg);
}

.hero-swiper .hero-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(7, 59, 35, 0.72);
  color: #FFFFFF;
  border: 1px solid rgba(214, 165, 44, 0.6);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}
.hero-swiper .hero-nav-btn::after {
  font-size: 16px;
  font-weight: 700;
}
.hero-swiper .hero-nav-btn:hover {
  background: var(--sam-gold);
  color: var(--sam-dark);
  border-color: var(--sam-gold);
  transform: scale(1.06);
}

.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
  border: 1px solid rgba(7, 59, 35, 0.35);
  transition: all 0.25s ease;
}
.hero-swiper .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 999px;
  background: var(--sam-gold);
  border-color: var(--sam-dark);
}

/* Featured & Testimonial Swipers */
.sam-swiper-btn {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: var(--sam-green);
  border: 1px solid var(--sam-border);
  box-shadow: 0 6px 18px rgba(7, 59, 35, 0.1);
  transition: all 0.25s ease;
}
.sam-swiper-btn::after {
  font-size: 15px;
  font-weight: 700;
}
.sam-swiper-btn:hover {
  background: var(--sam-green);
  color: #FFFFFF;
  border-color: var(--sam-green);
}

.sam-pagination .swiper-pagination-bullet {
  background: #C7D8CB;
  opacity: 1;
  transition: all 0.25s ease;
}
.sam-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: var(--sam-gold);
}

/* Product Cards */
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--sam-border);
  border-radius: 1rem;
  box-shadow: 0 6px 24px -8px rgba(7, 59, 35, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--sam-gold);
  box-shadow: 0 16px 34px -12px rgba(7, 59, 35, 0.18), 0 0 0 1px rgba(214, 165, 44, 0.35);
}

.product-img-wrap {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAF5 100%);
  border-bottom: 1px solid #EEF4EE;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

/* Category Filter Pills */
.filter-btn {
  border: 1px solid var(--sam-border);
  background: #FFFFFF;
  color: var(--sam-text);
  transition: all 0.22s ease;
}
.filter-btn:hover {
  border-color: var(--sam-green);
  color: var(--sam-green);
  background: var(--sam-light-bg);
}
.filter-btn.active {
  background: var(--sam-green);
  color: #FFFFFF;
  border-color: var(--sam-green);
  box-shadow: 0 6px 16px -4px rgba(18, 91, 50, 0.35);
}

/* Feature / Category Hover Cards */
.hover-lift-card {
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.hover-lift-card:hover {
  transform: translateY(-4px);
  border-color: var(--sam-gold);
  box-shadow: 0 14px 30px -12px rgba(7, 59, 35, 0.16);
}

/* Floating Action Buttons */
.floating-whatsapp {
  animation: gentle-pulse 3s infinite;
}
@keyframes gentle-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.58);
  }
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Subtle Reveal Animation */
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-whatsapp {
    animation: none;
  }
}

/* Responsive PDF Embed Container */
.pdf-viewer-frame {
  width: 100%;
  height: 680px;
  border: 0;
}
@media (max-width: 768px) {
  .pdf-viewer-frame {
    height: 460px;
  }
}

/* Line Clamp Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
