/* 
Forest Formulations - Main Stylesheet
*/

/* ===== GENERAL STYLES ===== */
:root {
  --primary-color: #6a8d32; /* Main green from logo */
  --secondary-color: #a4c639; /* Lighter green from logo */
  --accent-color: #4d6614; /* Darker green from logo */
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #5a7829; /* Dark green from logo circle */
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --section-padding: 60px 0; /* Reduced from 80px 0 */
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.btn {
  border-radius: 4px;
  padding: 10px 24px;
  font-weight: 500;
  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 {
  color: var(--primary-color);
  background-color: transparent;
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  color: white;
  background-color: var(--primary-color);
}

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  color: var(--primary-color);
}

.section-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.section-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  margin: 40px 0;
}

/* Reduce the margin for section dividers when they're between sections */
section + .section-divider,
.section-divider + section {
  margin-top: 0;
  margin-bottom: 0;
}

/* ===== HEADER STYLES ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 8px 0;
  font-size: 0.9rem;
}

.contact-info span {
  margin-right: 20px;
}

.contact-info i {
  margin-right: 5px;
}

.social-links {
  text-align: right;
}

.social-links a {
  color: var(--light-text);
  margin-left: 15px;
  font-size: 1rem;
}

.social-links a:hover {
  color: var(--secondary-color);
}

.navbar {
  padding: 15px 0;
}

.logo {
  max-height: 60px;
}

.navbar-nav .nav-item {
  margin: 0 5px;
}

.navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 15px;
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--card-shadow);
  border-radius: 4px;
}

.dropdown-item {
  padding: 8px 20px;
  color: var(--text-color);
}

.dropdown-item:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 500px; /* Reduced from 600px if needed */
  background-image: url("../images/hero-bg.png");
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(90, 120, 41, 0.8), rgba(90, 120, 41, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  background-color: white;
}

.welcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PRODUCT CARDS ===== */
.product-card,
.category-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image,
.category-image {
  height: 200px;
  overflow: hidden;
}

.product-image img,
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img,
.category-card:hover .category-image img {
  transform: scale(1.05);
}

.product-content,
.category-content {
  padding: 20px;
}

.product-content h3,
.category-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 10px;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* ===== AYURVEDIC PRODUCTS SECTION ===== */
.ayurvedic-products-section {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.testimonial-icon {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 15px;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0;
}

.author-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* ===== BLOG CARDS ===== */
.blog-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* ===== CERTIFICATION CARDS ===== */
.certification-card {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: transform 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-5px);
}

.certification-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.certification-image img {
  max-height: 100%;
  max-width: 100%;
}

.certification-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-card a {
  color: var(--text-color);
}

.contact-card a:hover {
  color: var(--primary-color);
}

/* ===== CONTACT FORM ===== */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-form .form-control {
  border-radius: 4px;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(106, 141, 50, 0.25);
}

.map-container {
  height: 300px;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.product-detail-content h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.product-description {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.product-info-section {
  margin-bottom: 25px;
}

.product-info-section h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.benefits-list {
  padding-left: 20px;
}

.benefits-list li {
  margin-bottom: 8px;
}

.product-info-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  height: 100%;
}

.product-info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.product-tabs {
  margin-top: 50px;
}

.nav-tabs {
  border-bottom: 2px solid var(--secondary-color);
}

.nav-tabs .nav-link {
  border: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 12px 20px;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  padding: 30px 0;
}

.gallery-image {
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== BLOG DETAIL ===== */
.blog-detail-image {
  border-radius: 8px;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 1.2rem;
  color: #555;
}

.blog-content h2 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.blog-content h3 {
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.blog-content p {
  margin-bottom: 20px;
}

.author-bio {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
}

.author-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.related-post-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.related-post-image {
  height: 100%;
  min-height: 120px;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content {
  padding: 15px;
}

.related-post-content h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.related-post-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.footer-top {
  padding: 70px 0 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 60px;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  color: var(--light-text);
  margin-right: 15px;
  font-size: 1.2rem;
}

.footer-social a:hover {
  color: var(--secondary-color);
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-widget h4 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-text);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  margin-bottom: 15px;
}

.footer-contact i {
  color: var(--secondary-color);
  margin-right: 10px;
  margin-top: 5px;
}

.footer-contact a {
  color: var(--light-text);
}

.footer-contact a:hover {
  color: var(--secondary-color);
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--light-text);
  padding: 10px 15px;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-color);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
  .hero-section {
    height: 500px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-padding {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .contact-info,
  .social-links {
    text-align: center;
  }

  .social-links {
    margin-top: 10px;
  }

  .social-links a {
    margin: 0 8px;
  }
}

@media (max-width: 575px) {
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}
