.btn-primary,
.btn-secondary,
.btn-outline,
.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: .25s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  background: var(--color-light);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.card:hover .product-img img {
  transform: scale(1.1);
}

.badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
}

.stats-bar {
  background: transparent;
  padding: var(--space-12) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.stat {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  min-height: 160px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
}

.stat:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-primary);
}

.stat i {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.stat:nth-child(even) i {
  color: var(--color-primary);
}

.stat:nth-child(even) {
  border-top-color: var(--color-primary);
}

.stat:nth-child(even):hover {
  border-top-color: var(--color-accent);
}

.stat-number {
  font-size: var(--text-xl);
  /* Reduced from 2xl to fit better */
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: var(--space-2);
  white-space: nowrap;
}

.stat-number .prefix {
  font-size: 0.8em;
  opacity: 0.8;
  margin-right: 4px;
}

.stat p {
  margin: 0;
  color: var(--color-text-mid);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quote-box {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  text-align: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid var(--color-border);
  padding: 12px;
  text-align: left;
}

.table th {
  background: var(--color-primary);
  color: var(--color-white);
}

.site-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 40, 24, 0.55);
  z-index: 1200;
  padding: 16px;
}

.site-modal.open {
  display: flex;
}

.site-modal:target {
  display: flex;
}

.site-modal-dialog {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}

.site-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: 40px;
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: left;
  transition: .3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.testimonial-content p {
  font-style: italic;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.testimonial-author h4 {
  margin: 0;
  font-size: var(--text-md);
  color: var(--color-primary-mid);
}

.testimonial-author span {
  font-size: var(--text-xs);
  color: var(--color-secondary);
}

/* Partners Carousel */
.partners-carousel {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.partners-track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: infiniteScroll 40s linear infinite;
}

.partner-logo {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 140px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.partners-carousel-section {
  background: var(--color-white);
}

/* Animation Stagger */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

.stagger-6 {
  animation-delay: 0.6s;
}

/* Page Specific Card Edge Colors */
/* Farm Operations - Left Edge (Green & Orange shades) */
.page-farm-operations .card {
  border-left: 5px solid var(--color-primary);
}

.page-farm-operations .card:nth-child(3n+1) {
  border-left-color: #1B4332;
}

/* Forest Green */
.page-farm-operations .card:nth-child(3n+2) {
  border-left-color: #2D6A4F;
}

/* Mid Green */
.page-farm-operations .card:nth-child(3n+3) {
  border-left-color: var(--color-accent);
}

/* Warm Orange */

/* Shop & Products - Top Edge (Consistent Warm Orange) */
.page-shop .card,
.page-products .card,
.product-grid .card {
  border-top: 5px solid var(--color-accent);
}

/* Password Toggle */
.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4);
}
.password-toggle-wrapper input {
  padding-right: 48px !important;
  margin-bottom: 0 !important;
}
.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
  user-select: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle-btn:hover {
  opacity: 1;
}

/* Choices.js Customization */
.site-choices.choices {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.site-choices .choices__inner {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md) !important;
  padding: 8px 12px !important;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s;
}
.site-choices.is-focused .choices__inner {
  border-color: var(--color-accent);
}
.site-choices .choices__list--dropdown {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin-top: 4px;
  overflow: hidden;
  z-index: 1001;
}
.site-choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}
.site-choices .choices__placeholder {
  opacity: 0.7;
}
.site-choices::after {
  border-color: var(--color-text-mid) transparent transparent transparent !important;
  border-width: 6px !important;
  right: 16px !important;
}
.site-choices.is-open::after {
  border-color: transparent transparent var(--color-text-mid) transparent !important;
  margin-top: -8px !important;
}