/* Global overrides loaded last to ensure visibility */

/* Global layout: widen containers and balance spacing */
:root {
  --site-max: 1320px;
  --primary: #2e7d32;
  --secondary: #f57c00;
  --light-green-accent: #e8f5e9;
  --dark-accent: #1b5e20;
  --text-body: #333333;
  --text-heading: #1a1a1a;
  --background: #FFFFFF;
}

p { margin-bottom: 18px; line-height: 1.7; }

body {
  font-size: 15px;
  color: var(--text-body);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
}

.section {
  padding: 80px 0 !important;
}

@media (max-width: 767.98px) {
  .section {
    padding: 48px 0 !important;
  }
}

/* =========================================
   HEADER & NAVBAR FIXES
   ========================================= */

/* Top Header Styling */
.top-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding-top: 10px;
    padding-bottom: 10px;
}

.header-brand {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.top-header img {
    max-height: 56px;
    width: auto;
}

/* Navbar Styling to match FarmFresh Theme */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.navbar-dark .navbar-nav .nav-link {
    padding: 25px 15px;
    color: #FFFFFF !important;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    background: transparent; /* Clean hover */
}

/* Mobile Navbar adjustments */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px;
        color: #333 !important; /* Dark text on mobile white menu */
    }
    .navbar-collapse {
        background-color: #ffffff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
}

/* Search Bar in Top Header */
.search-input {
    border: 2px solid var(--primary) !important;
    border-right: none !important;
}
.search-input:focus {
    box-shadow: none !important;
}
.input-group .btn-primary {
    border: 2px solid var(--primary) !important;
    border-left: none !important;
}

/* Hero (Home) */
.home-hero.video-hero {
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.home-hero.video-hero video {
  height: 600px !important;
  width: 100%;
  object-fit: cover;
}

.home-hero.video-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4) !important; /* Reduced opacity */
  z-index: 1;
}

.home-hero.video-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
}

.home-hero .hero-content {
  max-width: 800px;
  text-align: left; /* Left align */
}

.home-hero .hero-title {
  font-size: 44px !important;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.home-hero .hero-desc {
  font-size: 20px !important;
  font-weight: 500;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  max-width: 600px;
}

.home-hero .btn-primary {
  padding: 15px 40px !important;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 767.98px) {
  .home-hero.video-hero video {
    height: 360px !important;
  }
  .home-hero .hero-title {
    font-size: 30px !important;
  }
  .home-hero .hero-desc {
    font-size: 16px !important;
    max-width: 100%;
  }
  .home-hero .btn-primary {
    padding: 12px 28px !important;
    font-size: 15px;
  }
}

/* Product Cards (Global) */
.product-card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card .card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.product-card .product-image {
  height: 250px;
  width: 100%;
  object-fit: cover;
  background-color: #f9f9f9;
}

.product-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
  line-height: 1.4;
}

.product-card .card-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2; /* Reduce to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .product-card .card-body {
    padding: 16px;
  }
  .product-card .card-title {
    font-size: 16px;
  }
  .product-card .card-text {
    font-size: 13px;
  }
}

/* Trust Badge */
.trust-badge {
  background: #f8fff8;
  border: 1px solid #d0ebd0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Utility */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 991.98px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991.98px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575.98px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(6,61,45,.1);
  color: var(--primary);
  margin-bottom: .75rem;
}
.bullet-list {
  margin: 0;
  padding-left: 1rem;
}
.bullet-list li {
  margin-bottom: .5rem;
}
.about-section-title {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .2px;
}

/* Contact: highlight response, improve spacing */
.contact-card .form-control {
  padding: .65rem 1rem !important;
}
.contact-card .btn {
  padding: .75rem 1.25rem !important;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25) !important;
}
.alert-success {
  border-left: 4px solid #2e7d32 !important;
  font-weight: 600 !important;
}
.contact-intro {
  display: none !important;
}

/* Responsive product grid spacing */
.products-grid .col-md-4, .products-grid .col-lg-3 {
  display: flex !important;
}
.products-grid .product-item {
  width: 100% !important;
}

/* My Inquiries: clear borders and status difference */
.inquiries-list .list-group-item {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.status-sent {
  background: #eceff1 !important;
  color: #455a64 !important;
}
.status-replied {
  background: #e8f5e9 !important;
  color: #1b5e20 !important;
}

/* Inquiry bubbles: align with green palette */
.bubble-user {
  background: var(--green-light) !important;
  color: var(--green-dark) !important;
}
.bubble-admin {
  background: #dcedc8 !important; /* slightly stronger green */
  color: var(--green-dark) !important;
}

.blog-farmer-section {
  position: relative;
}
.blog-farmer-section h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.06);
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.blog-farmer-section h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-primary);
}
.blog-farmer-card {
  border-radius: 16px;
  border: 1px solid rgba(46, 125, 50, 0.12) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #f6fbf6 0%, #ffffff 65%);
}
.blog-farmer-card .card-body {
  padding: 1.25rem 1.5rem;
}
@media (max-width: 767.98px) {
  .blog-farmer-card .card-body {
    padding: 1rem 1.1rem;
  }
}
.blog-farmer-video-frame video,
.blog-farmer-video-frame iframe {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.blog-farmer-meta {
  font-size: 0.9rem;
  color: #546e7a;
}

/* =============================================
   Production Theme: Global UI/UX Improvements
   ============================================= */

/* Global color system */
:root {
  --green-primary: #2E7D32;
  --green-dark: #1B5E20;
  --green-light: #E8F5E9;
  --green-accent: #43A047;
  --text-dark: #263238;
  --border-light: #C8E6C9;
}

.text-primary { color: var(--green-primary) !important; }
.bg-primary { background-color: var(--green-primary) !important; }
.bg-dark { background-color: var(--green-dark) !important; }
.bg-light { background-color: var(--green-light) !important; }
.border-light { border-color: var(--border-light) !important; }
.bg-mint { background-color: var(--green-light) !important; }
.bg-mint-gradient { background: linear-gradient(180deg, var(--green-light), #ffffff) !important; }

/* Global container fix */
.container,
.main-container,
.page-wrapper {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
}

/* Hero overlay refinement */
.hero-overlay {
  background: linear-gradient(rgba(27, 94, 32, 0.45), rgba(27, 94, 32, 0.65)) !important;
}

/* Footer */
footer,
.footer-bar {
  padding: 32px 24px !important;
  background: var(--green-dark) !important;
  color: var(--green-light) !important;
}
.footer-bar .container {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

/* Premium Site Footer */
.site-footer {
  background: #0e3a24;
  color: #e7ede7;
  padding: 60px 0;
}
.site-footer .footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #cfe7cf;
}
.site-footer .footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}
.site-footer .footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a {
  color: #e7ede7;
  text-decoration: none;
}
.site-footer .footer-links a:hover {
  color: #bfe3bf;
  text-decoration: underline;
}
.site-footer .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
.site-footer .footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.site-footer .footer-hours {
  font-size: 13px;
  color: #c8d9c8;
}
.site-footer .badge-img {
  height: 28px;
}
.site-footer .iso-badge {
  background: rgba(255,255,255,.12);
  color: #e7ede7;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.site-footer .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  color: #e7ede7;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.site-footer .social-icon:hover {
  transform: scale(1.06);
  background: rgba(255,255,255,.25);
  color: #ffffff;
}
.site-footer .footer-bottom {
  background: #0b2d1b;
  color: rgba(255,255,255,.8);
  padding: 12px 0;
  margin-top: 40px;
}
.site-footer .footer-bottom a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.site-footer .footer-bottom a:hover {
  text-decoration: underline;
}
@media (max-width: 575.98px) {
  .site-footer {
    padding: 40px 0;
    text-align: center;
  }
  .site-footer .social-wrap {
    justify-content: center !important;
  }
}
/* Wide product layout overrides */
.site-wrapper {
  width: 100%;
  background: #f4f8f4;
}
.section-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* SEO Content Article Styles */
.content-article {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}
.content-article h2, .content-article h3 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.content-article h2 { font-size: 1.75rem; }
.content-article h3 { font-size: 1.4rem; }

.content-article p {
    margin-bottom: 1.25rem;
}
.content-article ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.content-article li {
    margin-bottom: 0.75rem;
}
.content-article strong {
    color: #03261C;
}
.product-card img {
  height: 260px;
  object-fit: contain;
}

