/* ==========================================================================
   IRA GROW - AUTHENTIC AGRICULTURAL EXPORT DESIGN SYSTEM
   Pure • Natural • Global | Warm Organic Agricultural Aesthetic
   ========================================================================== */

:root {
  /* Natural Agricultural Palette */
  --farm-green-dark: #123321;
  --farm-green: #1b4d33;
  --farm-green-light: #2b704c;
  --leaf-accent: #40916c;
  --leaf-soft: #d8f3dc;
  
  --harvest-gold: #c98a2c;
  --harvest-gold-light: #fef3c7;
  --harvest-amber: #d97706;
  --earth-warm: #8d6e63;
  
  --bg-cream: #fcfbf7;
  --bg-cream-soft: #f5f1e8;
  --bg-card: #ffffff;
  --border-soft: #e5dfd3;
  --border-green: #cbe3d3;
  
  --text-main: #19271e;
  --text-muted: #4e6054;
  --text-light: #738779;
  
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  --shadow-soft: 0 4px 20px -2px rgba(27, 77, 51, 0.08);
  --shadow-hover: 0 12px 32px -4px rgba(27, 77, 51, 0.14);
}

/* ----------------- Reset & Base ----------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ----------------- Typography ----------------- */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* ----------------- Agricultural Cards & Panels ----------------- */
.agri-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.agri-card:hover {
  border-color: var(--farm-green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Product cards display and smooth filtering */
.product-grid-card {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-grid-card.card-hidden {
  display: none !important;
}

/* Compact padding for hero section to eliminate dead empty space */
.hero-wrapper {
  padding-top: 18px !important;
  padding-bottom: 36px !important;
}

.agri-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ebf5ee;
  border: 1px solid #c2e2cc;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--farm-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agri-pill-gold {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

/* ----------------- Buttons ----------------- */
.btn-farm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--farm-green);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 77, 51, 0.25);
  transition: all 0.3s ease;
}

.btn-farm:hover {
  background: var(--farm-green-dark);
  box-shadow: 0 6px 20px rgba(27, 77, 51, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-harvest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: #d97706;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 9999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
  transition: all 0.3s ease;
}

.btn-harvest:hover {
  background: #b45309;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
  transform: translateY(-2px);
}

.btn-farm-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background: transparent;
  color: var(--farm-green);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 9999px;
  border: 1.5px solid var(--farm-green);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-farm-outline:hover {
  background: #ebf5ee;
  transform: translateY(-2px);
}

/* ----------------- Agricultural Product Category Tabs ----------------- */
.category-tab-btn {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-tab-btn.active {
  background: var(--farm-green);
  color: #ffffff;
  border-color: var(--farm-green);
  box-shadow: 0 4px 12px rgba(27, 77, 51, 0.2);
}

.category-tab-btn:hover:not(.active) {
  border-color: var(--farm-green);
  color: var(--farm-green);
}

/* ----------------- Section Containers ----------------- */
.section-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 85px 24px;
}

@media (max-width: 768px) {
  .section-wrapper {
    padding: 60px 18px;
  }
}

/* ----------------- Certificate Cards ----------------- */
.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cert-card:hover {
  border-color: var(--farm-green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.cert-card img {
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cert-card:hover img {
  transform: scale(1.06);
}

/* ----------------- Interactive Lightbox Modal ----------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 51, 33, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
  background: #f4f0e6;
}

::-webkit-scrollbar-thumb {
  background: #2b704c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1b4d33;
}

/* ----------------- Permanent LinkedIn Floating Widget ----------------- */
.linkedin-floating-badge {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(10, 102, 194, 0.22);
  border-radius: 16px;
  box-shadow: 0 14px 38px -6px rgba(10, 102, 194, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 9px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  animation: linkedinFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.linkedin-floating-badge:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #0a66c2;
  box-shadow: 0 18px 45px -6px rgba(10, 102, 194, 0.32), 0 8px 20px rgba(0, 0, 0, 0.1);
}

@keyframes linkedinFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .linkedin-floating-badge {
    right: 12px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 14px;
    gap: 9px;
  }
}

