/* ========== ROOT VARIABLES ========== */
:root {
  --primary-color: #2a7f3f;
  --primary-dark: #1e5e2d;
  --secondary-color: #f9a825;
  --dark-color: #1e3b29;
  --light-color: #f8f9fa;
  --text-color: #333;
  --white: #ffffff;
}

/* ========== GLOBAL RESETS & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: #f5f8f5;
  line-height: 1.6;
  padding-top: 80px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

blockquote {
  color: var(--text-color) !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: #e69500;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo .sitename {
  font-family: 'Marcellus', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin: 0 8px;
}

.nav-menu a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  width: calc(100% - 30px);
  height: 2px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 36px;
  color: var(--dark-color);
  cursor: pointer;
  padding: 0 10px;
  z-index: 1000;
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  z-index: 999;
}

.mobile-nav.active {
  max-height: 390px;
}

.mobile-nav ul {
  list-style: none;
  padding: 20px;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  display: block;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background-color: rgba(42, 127, 63, 0.1);
  color: var(--primary-color);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  color: white;
  padding: 120px 0 80px;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 14px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin: 10px;
}

.cta-button:hover {
  background: #e69500;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.cta-button.secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ========== SERVICE ITEMS ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-item-icon {
  background: var(--primary-color);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item-icon i {
  font-size: 2.5rem;
  color: var(--white);
}

.service-item-content {
  padding: 25px;
  color: var(--text-color);;
}

.service-heading {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.text-primary {
  color: white !important;
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  background: var(--white);
}

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

.product-img {
  height: 200px;
  overflow: hidden;
}

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

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

.product-info {
  padding: 20px;
  color: var(--text-color);;
}

.product-title {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.product-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.client-name {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 20px;
}

.rating {
  color: var(--secondary-color);
  margin: 10px 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid var(--primary-color);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== BLOG STYLES ========== */
.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-img {
  height: 250px;
  overflow: hidden;
}

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

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.blog-meta i {
  margin-right: 5px;
  color: var(--primary-color);
}

.blog-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.blog-title {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.blog-excerpt {
  margin-bottom: 20px;
  color: #555;
}

/* ========== CONTACT PAGE STYLES ========== */
.page-title {
  background: linear-gradient(rgba(30, 59, 41, 0.85), rgba(30, 59, 41, 0.85)), url('https://images.unsplash.com/photo-1472289065668-ce650ac443d2?q=80&w=2069&auto=format&fit=crop') center/cover;
  color: white;
  padding: 100px 0 50px;
  text-align: center;
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.breadcrumbs li {
  margin: 0 10px;
}

.breadcrumbs li:not(:last-child):after {
  content: "/";
  margin-left: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: white;
}

.breadcrumbs .current {
  color: var(--secondary-color);
}

.contact-info {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  padding: 40px;
  height: 100%;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  position: relative;
}

.contact-info h3:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary-color);
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.info-icon i {
  color: var(--white);
  font-size: 1.2rem;
}

.info-content h4 {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.contact-form {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-control {
  height: 50px;
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  font-size: 1rem;
  transition: border-color 0.3s;
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(42, 127, 63, 0.25);
}

textarea.form-control {
  height: auto;
  min-height: 150px;
  resize: vertical;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  height: 400px;
  margin-top: 50px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.business-hours {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-top: 40px;
}

.business-hours h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.hours-list {
  list-style: none;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list .day {
  font-weight: 600;
}

.hours-list .time {
  color: #666;
}

/* ========== ABOUT PAGE STYLES ========== */
.history-timeline {
  position: relative;
  padding: 40px 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 70px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 70px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}

.stats-box {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s;
}

.stats-box:hover {
  transform: translateY(-5px);
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stats-label {
  font-size: 1.1rem;
  color: var(--dark-color);
}

.client-logos {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
  max-height: 60px;
  margin: 15px;
}

.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ========== SIDEBAR WIDGETS ========== */
.sidebar-widget {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
}

.widget-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}

.search-form {
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.search-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  justify-content: space-between;
}

.category-list a:hover {
  color: var(--primary-color);
}

.category-list span {
  background: #f0f7f1;
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.recent-post {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-post-img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.recent-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content h5 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.recent-post-content a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s;
}

.recent-post-content a:hover {
  color: var(--primary-color);
}

.recent-post-content .post-date {
  font-size: 0.8rem;
  color: #666;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a {
  background: #f0f7f1;
  color: var(--dark-color);
  padding: 5px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tag-list a:hover {
  background: var(--primary-color);
  color: white;
}

.newsletter-form input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.newsletter-form button {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #1e5e2d;
}

.pagination {
  justify-content: center;
  margin-top: 40px;
}

.page-item .page-link {
  color: var(--primary-color);
  margin: 0 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.page-item.active .page-link {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-item .page-link:hover {
  background: #f0f7f1;
  color: var(--primary-color);
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--white);
}

.footer h4 {
  color: var(--white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 10px;
  transition: all 0.3s;
}

.footer .social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 60px;
  text-align: center;
}

.payment-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.payment-icon {
  background: var(--white);
  border-radius: 4px;
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #555;
  font-size: 0.8rem;
}

/* ========== UTILITY CLASSES ========== */
.dark-background {
  background-color: var(--dark-color);
  color: white;
}

.dark-background .section-title h2 {
  color: white;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  img, table, iframe {
    max-width: 100%;
  }
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
    position: relative;
  }
  
  .hero {
    padding: 100px 0;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .history-timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) {
    text-align: left;
    padding-right: 20px;
    padding-left: 70px;
  }
  
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 20px;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }
  
  .contact-info, .contact-form {
    padding: 25px;
  }
  
  .info-item {
    flex-direction: column;
  }
  
  .info-icon {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .logo .sitename {
    font-size: 24px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .cta-button {
    display: block;
    margin: 10px auto;
    max-width: 300px;
  }
  
  .page-title {
    padding: 80px 0 40px;
  }
  
  .page-title h1 {
    font-size: 2.2rem;
  }
}