/* NutrientFocus - Main Stylesheet */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4F6F52;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #F9F8F6;
  --bg-white: #FFFFFF;
  --border-color: #E5E5E5;
  --accent-subtle: #F5F3F0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-top: 2rem;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

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

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

a:hover {
  color: #3d5340;
  text-decoration: underline;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.logo a {
  color: var(--primary-color);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

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

/* Main Content */
main {
  margin-top: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
}

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

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
}

/* Sections */
section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--accent-subtle);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

section h2 {
  margin-top: 0;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.two-column img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.two-column.image-right {
  direction: rtl;
}

.two-column.image-right > * {
  direction: ltr;
}

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

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

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

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

.blog-teaser {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-teaser:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

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

.blog-teaser h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.blog-teaser p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* CTA Buttons */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 0.95rem;
}

.cta-button:hover {
  background-color: #3d5340;
  text-decoration: none;
}

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

.faq-question {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  padding: 1rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--accent-subtle);
}

.faq-answer {
  display: none;
  padding: 1rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 4px 4px;
  color: var(--text-light);
  line-height: 1.8;
}

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

.faq-toggle {
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 111, 82, 0.1);
}

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

.form-submit {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #3d5340;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

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

.footer-section h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Disclaimer Box */
.disclaimer {
  background-color: #FFF9E6;
  border-left: 4px solid #FFB81C;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.disclaimer h3 {
  margin-top: 0;
  color: #333;
}

.disclaimer p {
  color: var(--text-light);
  margin-bottom: 0;
}

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

.cookie-banner.active {
  display: flex;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.9rem;
}

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

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

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

.cookie-accept:hover {
  background-color: #3d5340;
}

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

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

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  main {
    margin-top: 70px;
    padding: 1rem;
  }

  .hero {
    height: 300px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .two-column.image-right {
    direction: ltr;
  }

  section {
    padding: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .cookie-buttons {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}

/* Blog Article Styles */
.article-content {
  line-height: 1.9;
  max-width: 900px;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-intro {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Accent styling for emphasis */
.accent-text {
  color: var(--primary-color);
  font-weight: 500;
}

/* Link styling */
.read-more {
  font-weight: 500;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  gap: 1rem;
}
