/* Base Styles */
:root {
  --primary-color: #4a8f43;
  --primary-dark: #3a7035;
  --secondary-color: #6c757d;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --footer-bg: #2c3e50;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --header-height: 80px;
  --border-radius: 4px;
  --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
}

.text-center {
  text-align: center;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

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

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

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

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 2px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* Banner Section */
.banner {
  padding-top: var(--header-height);
  background-color: #f9f9f9;
  padding-bottom: 50px;
}

.banner-content {
  display: flex;
  align-items: center;
  min-height: 500px;
}

.banner-text {
  flex: 1;
  padding-right: 30px;
}

.banner-text h1 {
  margin-bottom: 20px;
  font-size: 2.8rem;
  line-height: 1.2;
}

.banner-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-muted);
}

.banner-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.banner-image img {
  max-width: 100%;
  max-height: 400px;
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background-color: white;
}

.services h2 {
  text-align: center;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item img {
  height: 60px;
  margin: 0 auto 20px;
}

.service-item h3 {
  margin-bottom: 15px;
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: #f9f9f9;
}

.about-content {
  display: flex;
  align-items: center;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 80%;
  max-height: 400px;
}

.about-text {
  flex: 1;
  padding-left: 30px;
}

/* Reviews Section */
.reviews {
  padding: var(--section-padding);
  background-color: white;
}

.reviews h2 {
  text-align: center;
  margin-bottom: 50px;
}

.reviews-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}

.reviews-slider::-webkit-scrollbar {
  height: 8px;
}

.reviews-slider::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.reviews-slider::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.review-item {
  flex: 0 0 calc(33.33% - 20px);
  scroll-snap-align: start;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: white;
  min-width: 300px;
}

.review-icon {
  width: 40px;
  margin: 0 auto 20px;
}

.review-text {
  font-style: italic;
  margin-bottom: 20px;
}

.review-author {
  font-weight: 600;
  color: var(--primary-color);
  text-align: right;
}

/* Blog Preview Section */
.blog-preview {
  padding: var(--section-padding);
  background-color: #f9f9f9;
}

.blog-preview h2 {
  text-align: center;
  margin-bottom: 50px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.blog-item {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: white;
  overflow: hidden;
  transition: var(--transition);
}

.blog-item:hover {
  transform: translateY(-5px);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-item h3 {
  padding: 20px 20px 10px;
}

.blog-item p {
  padding: 0 20px 20px;
}

.blog-item .read-more {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.blog-cta {
  text-align: center;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background-color: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-icon {
  width: 50px;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
}

.social-links {
  margin-top: 30px;
}

.social-links h3 {
  margin-bottom: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  margin-right: 10px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
}

.subscription-form {
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: #f9f9f9;
}

.subscription-form h2 {
  margin-bottom: 15px;
}

.subscription-form p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  margin-bottom: 8px;
  gap: 10px;
}

.checkbox-label input {
  margin-top: 4px;
  width: auto;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 70px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: white;
  font-weight: 600;
}

.footer-links h3, .footer-legal h3 {
  color: white;
  margin-bottom: 20px;
}

.footer-links ul li, .footer-legal ul li {
  margin-bottom: 10px;
}

.footer-links ul li a, .footer-legal ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blog Page Styles */
.blog-header {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 50px;
  background-color: #f9f9f9;
  text-align: center;
}

.blog-articles {
  padding: var(--section-padding);
  background-color: white;
}

.blog-articles .blog-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  height: 240px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.blog-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.blog-content h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.blog-content p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-content .btn-secondary {
  align-self: flex-start;
}

/* Blog Subscribe */
.blog-subscribe {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.subscribe-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-content h2 {
  margin-bottom: 15px;
}

.subscribe-content p {
  margin-bottom: 30px;
  color: var(--text-muted);
}

.subscribe-content .form-group {
  margin-bottom: 15px;
}

.subscribe-content input {
  text-align: center;
}

/* Article Page Styles */
.article {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 50px;
}

.article-header {
  margin-bottom: 40px;
}

.back-to-blog {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-weight: 600;
}

.article-date {
  display: block;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.article-image {
  margin: 30px 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  max-height: 500px;
  margin: 0 auto;
  border-radius: var(--border-radius);
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-content ul li, .article-content ol li {
  margin-bottom: 10px;
  list-style-position: outside;
}

.article-content ul li {
  list-style-type: disc;
}

.article-content ol li {
  list-style-type: decimal;
}

.article-cta {
  margin-top: 50px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  text-align: center;
}

.article-cta h3 {
  margin-bottom: 15px;
}

.article-cta p {
  margin-bottom: 20px;
}

.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-share {
  display: flex;
  align-items: center;
}

.article-share span {
  margin-right: 15px;
  color: var(--text-muted);
}

/* Related Articles */
.related-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.related-articles h2 {
  text-align: center;
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.related-card {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card img {
  width: 60%;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 15px;
}

.related-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Thank You Page */
.thank-you {
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 70px;
  background-color: #f9f9f9;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 30px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.thank-you-icon {
  width: 70px;
  margin: 0 auto 20px;
}

.thank-you-content h1 {
  margin-bottom: 20px;
}

.thank-you-content p {
  margin-bottom: 30px;
}

/* Legal Pages */
.legal-content {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 70px;
}

.legal-content h1 {
  margin-bottom: 10px;
}

.last-updated {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.legal-section h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.legal-section p {
  margin-bottom: 15px;
}

.legal-section ul, .legal-section ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-section ul li, .legal-section ol li {
  margin-bottom: 8px;
  list-style-position: outside;
}

.legal-section ul li {
  list-style-type: disc;
}

.legal-section ol li {
  list-style-type: decimal;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .banner-content, .about-content {
    flex-direction: column;
  }
  
  .banner-text, .about-text {
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 10px 0;
    margin-left: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .banner-content {
    min-height: auto;
    padding: 50px 0;
  }
  
  .services-grid, .blog-grid, .footer-content, .blog-articles .blog-grid, .related-grid {
    grid-template-columns: 1fr;
  }
  
  .review-item {
    flex: 0 0 100%;
    min-width: 250px;
  }
  
  .footer-content {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .logo img {
    height: 30px;
  }
  
  .logo span {
    font-size: 1rem;
  }
  
  .banner-text h1 {
    font-size: 1.8rem;
  }
  
  .article-footer {
    flex-direction: column;
    gap: 20px;
  }
  
  .article-share {
    margin-bottom: 20px;
  }
}
