/* RealFoodRoots - Educational Content Only */
@import url('https://fonts.googleapis.com/css2?family=Georgia:ital@0;1&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --earth-brown: #6B4E31;
  --light-bg: #FDFBF7;
  --text-dark: #2C2C2C;
  --text-light: #6B6B6B;
  --border-light: #E8E0D5;
  --white: #FFFFFF;
  --accent: #8B6F47;
}

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

html, body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--earth-brown);
}

h1 {
  font-size: 2.5rem;
  font-family: 'Georgia', serif;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  font-family: 'Georgia', serif;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.8rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.8;
}

a {
  color: var(--earth-brown);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Header */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--earth-brown);
  font-family: 'Georgia', serif;
}

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

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

nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

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

/* Main content with header offset */
main {
  margin-top: 80px;
  padding: 2rem 0;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
  border-radius: 8px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(107, 78, 49, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 3rem;
}

.hero p {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0;
}

/* Content Sections */
.content-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--earth-brown);
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.section-content.text-only {
  grid-template-columns: 1fr;
}

.section-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-image.left {
  grid-column: 1;
}

.section-image.right {
  grid-column: 2;
  order: 2;
}

.section-text {
  flex: 1;
}

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(107, 78, 49, 0.15);
}

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

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  background-color: var(--light-bg);
  padding: 1rem;
  border-radius: 6px;
  font-weight: 600;
  color: var(--earth-brown);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #F5EFE5;
}

.faq-answer {
  padding: 1rem;
  background-color: var(--white);
  border-left: 3px solid var(--earth-brown);
  display: none;
  margin-top: 0.5rem;
}

.faq-answer.active {
  display: block;
}

/* Links Section */
.links-section {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
}

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

.link-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-card:hover {
  border-color: var(--earth-brown);
  box-shadow: 0 4px 12px rgba(107, 78, 49, 0.15);
}

.link-card h3 {
  color: var(--earth-brown);
  margin-bottom: 0.5rem;
}

.link-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Blog */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

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

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h3 {
  margin-bottom: 0.5rem;
}

.blog-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.read-more {
  color: var(--earth-brown);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* CTA Buttons */
.cta-button {
  display: inline-block;
  background-color: var(--earth-brown);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: var(--accent);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--earth-brown);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--earth-brown);
  box-shadow: 0 0 0 3px rgba(107, 78, 49, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 2px solid var(--earth-brown);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

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

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

.footer-section a {
  color: #D4C5B9;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #D4C5B9;
  font-size: 0.9rem;
}

.footer-disclaimer {
  background-color: rgba(107, 78, 49, 0.1);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 0.9rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: var(--white);
  padding: 1.5rem;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-text p {
  margin: 0;
  color: var(--white);
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-accept {
  background-color: var(--earth-brown);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cookie-accept:hover {
  background-color: var(--accent);
}

.cookie-decline {
  background-color: transparent;
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: #FFF8E7;
  border: 2px solid var(--earth-brown);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.disclaimer-box h3 {
  color: var(--earth-brown);
  margin-top: 0;
}

.disclaimer-box p {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info strong {
  color: var(--earth-brown);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero {
    height: 300px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .section-content {
    grid-template-columns: 1fr;
  }

  .section-image.right {
    grid-column: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-accept,
  .cookie-decline {
    flex: 1;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem 0;
  }

  .header-container {
    padding: 0 1rem;
  }

  nav ul {
    gap: 0.8rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero {
    height: 200px;
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .section-content {
    padding: 0;
  }

  .content-section {
    padding: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}
