/* Custom Styles for BM Farms Website */

:root {
  --primary-color: #1F5E3B; /* Deep Green */
  --primary-light: #2b7c4f;
  --secondary-color: #8B5E3C; /* Earth Brown */
  --accent-color: #C9A227; /* Warm Gold */
  --bg-light: #F8F9FA;
  --bg-dark: #121212;
  --text-dark: #333333;
  --text-muted: #666666;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

body > section:not(#home) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}

/* Base custom font configurations */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Glow & Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 94, 59, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Hover Lift Card */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -10px rgba(31, 94, 59, 0.2);
}

/* Flowchart Connections */
.flowchart-arrow {
  position: relative;
}

@media (min-width: 1024px) {
  .flowchart-arrow::after {
    content: "➔";
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 20px;
    z-index: 10;
    animation: flow-right 2s infinite ease-in-out;
  }
  .flowchart-arrow:last-child::after {
    display: none;
  }
}

@keyframes flow-right {
  0%, 100% { transform: translate(0, -50%); opacity: 0.6; }
  50% { transform: translate(6px, -50%); opacity: 1; }
}

/* Lightbox Modal */
.lightbox-modal {
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.9);
}

/* Print Styles for the Image Catalog */
@media print {
  body * {
    visibility: hidden;
  }
  #catalog-print-section, #catalog-print-section * {
    visibility: visible;
  }
  #catalog-print-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000;
  }
  .no-print {
    display: none !important;
  }
  table {
    border-collapse: collapse;
    width: 100%;
  }
  th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
  }
  th {
    background-color: #f2f2f2;
  }
}

/* Custom background patterns */
.bg-pattern {
  background-color: #ffffff;
  background-image: radial-gradient(var(--primary-color) 0.5px, transparent 0.5px), radial-gradient(var(--primary-color) 0.5px, #ffffff 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.03;
}

/* Pulse animation for CTA & biosecurity badges */
.badge-pulse {
  box-shadow: 0 0 0 0 rgba(31, 94, 59, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(31, 94, 59, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(31, 94, 59, 0);
  }
  100% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(31, 94, 59, 0);
  }
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  opacity: 0.3;
}
@media (max-width: 768px) {
  .timeline-line::before {
    left: 20px;
    transform: none;
  }
}
