/* Ferment It - Custom CSS */

/* Custom Font Import */
@font-face {
  font-family: 'MontserratCustom';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MontserratCustom';
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Variables */
:root {
  --primary-color: #2e7d32;
  --secondary-color: #8bc34a;
  --accent-color: #ff6f00;
  --dark-color: #263238;
  --light-color: #f5f5f5;
  --white-color: #ffffff;
  --gray-color: #757575;
  --light-gray: #e0e0e0;
}

/* Global Styles */
body {
  font-family: 'Lato', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  background-color: var(--white-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'MontserratCustom', sans-serif;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.btn {
  border-radius: 30px;
  padding: 10px 25px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(38, 50, 56, 0.95);
  color: var(--white-color);
  padding: 1rem 0;
  z-index: 1000;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-content p {
  margin: 0;
}

.cookie-content a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Navbar */
.navbar {
  background-color: transparent;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Page-specific navbar styles */
.navbar-home {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
  border-bottom: 2px solid var(--primary-color);
}

.navbar-products {
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
  border-bottom: 2px solid var(--accent-color);
}

.navbar-about {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
  border-bottom: 2px solid #2196F3;
}

.navbar-contact {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
  border-bottom: 2px solid #9C27B0;
}

.navbar-cart {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(205, 220, 57, 0.1) 100%);
  border-bottom: 2px solid #4CAF50;
}

.navbar.scrolled {
  background-color: var(--white-color);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 2rem;
  font-weight: bold;
}

.brand-text {
  font-family: 'MontserratCustom', sans-serif;
  color: var(--primary-color);
}

.highlight {
  color: var(--accent-color);
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 600;
  margin: 0 10px;
  position: relative;
  padding: 8px 0;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link.active::after {
  width: 100%;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--accent-color);
  color: var(--white-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 195, 74, 0.1) 0%, rgba(46, 125, 50, 0.1) 100%);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.hero-image img {
  transition: all 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

/* Featured Products */
.featured-products {
  padding: 5rem 0;
  background-color: var(--white-color);
}

.product-card {
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.price {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin: 1rem 0;
}

/* Benefits Section */
.benefits-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
  position: relative;
}

.benefits-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/pattern.png') repeat;
  opacity: 0.05;
  z-index: 0;
}

.benefits-section .container {
  position: relative;
  z-index: 1;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--white-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background-color: var(--white-color);
}

.testimonial-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.customer-info h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--accent-color);
}

/* Newsletter */
.newsletter {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: var(--white-color);
}

.newsletter-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-content h2 {
  color: var(--white-color);
  margin-bottom: 1rem;
}

.newsletter-form {
  margin-top: 2rem;
}

.newsletter-form .form-control {
  border-radius: 30px 0 0 30px;
  padding: 12px 20px;
  height: auto;
}

.newsletter-form .btn {
  border-radius: 0 30px 30px 0;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.newsletter-form .form-text {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 5rem 0 2rem;
}

footer h3 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: var(--white-color);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--white-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .section-title {
    margin-bottom: 2rem;
  }
  
  .newsletter-form .btn {
    border-radius: 30px;
    margin-top: 1rem;
    width: 100%;
  }
  
  .newsletter-form .form-control {
    border-radius: 30px;
  }
  
  .newsletter-form .input-group {
    flex-direction: column;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    margin-top: 1rem;
  }
}

/* About Page */
.about-hero {
  background-color: var(--light-color);
  padding: 5rem 0;
  position: relative;
}

.about-content {
  padding: 5rem 0;
}

.team-section {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.team-card {
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-info h3 {
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

.contact-info {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
}

.contact-info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 40px;
  text-align: center;
}

.contact-form {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control {
  padding: 12px 15px;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

/* Products Page */
.products-hero {
  background-color: var(--light-color);
  padding: 5rem 0;
  text-align: center;
}

.products-grid {
  padding: 5rem 0;
}

.products-filter {
  margin-bottom: 3rem;
}

.filter-button {
  margin: 5px;
  padding: 8px 20px;
  background-color: transparent;
  border: 1px solid var(--light-gray);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button.active, .filter-button:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

/* Policy Pages */
.policy-section {
  padding: 5rem 0;
}

.policy-content {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-bottom: 1.5rem;
} 