/* Main Stylesheet for SoGoodGrocer.com */
:root {
  --primary-color: #2e7d32;
  --secondary-color: #fbc02d;
  --accent-color: #f57c00;
  --text-color: #212121;
  --light-text: #ffffff;
  --background-light: #f5f5f5;
  --card-shadow: 0 4px 8px rgba(0,0,0,0.1);
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-light);
}

/* Preload fonts */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459Wlhzg.ttf) format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gnD-w.ttf) format('truetype');
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--light-text);
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

nav a:hover {
  color: var(--secondary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero-image.svg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color var(--transition-speed);
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--light-text);
}

/* Features Section */
.features {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed);
}

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

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* Products Section */
.products {
  background-color: white;
  padding: 4rem 1rem;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed);
}

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

.product-image {
  height: 200px;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
}

.product-info {
  padding: 1rem;
}

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

/* News & Updates Section */
.news-updates {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.news-image {
  height: 180px;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

.read-more:hover {
  color: var(--accent-color);
}

/* Newsletter */
.newsletter {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 4rem 1rem;
  text-align: center;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin: 0 auto;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
}

.newsletter-form button {
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.newsletter-form button:hover {
  background-color: var(--accent-color);
  color: var(--light-text);
}

/* Footer */
footer {
  background-color: #1b5e20;
  color: var(--light-text);
  padding: 4rem 1rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

.footer-links h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #a5d6a7;
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: var(--light-text);
  text-decoration: none;
  transition: background-color var(--transition-speed);
}

.footer-social a:hover {
  background-color: var(--secondary-color);
}

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

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 2rem;
    transition: right var(--transition-speed);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .feature-card, .product-card, .news-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* External links section - this is the area for the links you requested */
.external-links {
  padding: 2rem 1rem;
  background-color: #f5f5f5;
}

.external-links-container {
  max-width: 1200px;
  margin: 0 auto;
}

.external-links h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.external-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.external-link-item {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.external-link-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.external-link-item a:hover {
  color: var(--accent-color);
}

.external-link-item p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}
