/* NutriContext - Main Stylesheet */

:root {
  --accent-color: #5A7D6B;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9F7;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --border-color: #E5E5E5;
  --line-height-body: 1.6;
  --line-height-heading: 1.2;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: var(--line-height-body);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', serif;
  line-height: var(--line-height-heading);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

h4 {
  font-size: 1.4rem;
  font-weight: 600;
}

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

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

a:hover {
  opacity: 0.8;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1.2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.navbar-brand {
  font-family: 'Crimson Text', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.navbar-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav a:hover {
  color: var(--accent-color);
}

/* Main Content */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 3.7rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
  border-bottom: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(90, 125, 107, 0.1) 0%, rgba(90, 125, 107, 0.05) 100%);
  margin-top: 80px;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

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

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

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

.two-column-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Grid for blog teasers */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-secondary);
  padding: 1.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 6px 20px rgba(90, 125, 107, 0.12);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.blog-card h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.read-more {
  color: var(--accent-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* FAQ Section */
.faq-item {
  padding: 1.9rem;
  background: var(--bg-secondary);
  margin-bottom: 1.2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.faq-question {
  font-weight: 600;
  color: var(--accent-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  margin-top: 1rem;
  color: var(--text-secondary);
}

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

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

/* Form Styles */
.contact-form {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 2rem auto;
}

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

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

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Open Sans', 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(--accent-color);
  box-shadow: 0 0 0 3px rgba(90, 125, 107, 0.1);
}

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

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(90, 125, 107, 0.05) 0%, rgba(90, 125, 107, 0.1) 100%);
  padding: 3.7rem 2rem;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: #FFFFFF;
  padding: 3.7rem 2rem 1.9rem;
  margin-top: 3.7rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

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

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

.footer-section a {
  color: #FFFFFF;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.9rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background-color: rgba(90, 125, 107, 0.08);
  border: 1px solid var(--accent-color);
  padding: 1.2rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  text-align: center;
}

.disclaimer-banner p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--accent-color);
}

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

.cookie-consent p {
  margin: 0;
  color: white;
  font-size: 0.95rem;
}

.cookie-consent button {
  padding: 0.6rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-consent button:hover {
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-nav {
    gap: 1rem;
  }

  .navbar-nav a {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

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

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

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

  .cookie-consent {
    flex-direction: column;
    gap: 1rem;
  }

  .hero {
    height: 350px;
    margin-top: 60px;
  }

  main {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
  }

  header {
    padding: 0.8rem 0;
  }

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

  .section {
    padding: 2rem 0;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .hero {
    height: 250px;
  }
}
