/* NutriScope - Main Stylesheet */
/* Educational website about eating behaviour and lifestyle patterns */

:root {
  --primary-green: #7cb083;
  --primary-green-light: #a8d5ae;
  --primary-green-dark: #5a8a61;
  --bg-light: #f8faf8;
  --bg-white: #ffffff;
  --text-dark: #2c3e2f;
  --text-muted: #5a6b5c;
  --border-light: #e2e8e3;
  --gradient-soft: linear-gradient(135deg, #f0f7f1 0%, #e8f2e9 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  padding-top: 76px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.35;
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

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

/* Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green-dark) !important;
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  color: var(--primary-green) !important;
  text-decoration: none;
}

.nav-link {
  color: var(--text-dark) !important;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-soft);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-light);
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-light);
}

.content-section:nth-child(even) {
  background-color: var(--bg-white);
}

.content-section:nth-child(odd) {
  background: var(--gradient-soft);
}

.section-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
}

.section-text h2 {
  margin-bottom: 1.25rem;
}

.section-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Cards */
.info-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

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

.info-card h3 {
  color: var(--primary-green-dark);
  margin-bottom: 1rem;
}

/* Limitations Block */
.limitations-block {
  background: var(--gradient-soft);
  border-radius: 12px;
  padding: 2.5rem;
  border-left: 4px solid var(--primary-green);
}

.limitations-block h3 {
  color: var(--primary-green-dark);
  margin-bottom: 1.25rem;
}

.limitations-block ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.limitations-block li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-white);
  padding: 4rem 0;
}

.faq-item {
  background: var(--gradient-soft);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.faq-question {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.faq-answer {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: var(--gradient-soft);
}

.contact-info {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.contact-info h3 {
  color: var(--primary-green-dark);
  margin-bottom: 1.5rem;
}

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

.contact-form {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.contact-form h3 {
  color: var(--primary-green-dark);
  margin-bottom: 1.5rem;
}

.form-control {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(124, 176, 131, 0.15);
  outline: none;
}

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

/* Buttons */
.btn-primary {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: #ffffff;
  text-decoration: none;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-soft);
  padding: 3rem 0;
  text-align: center;
}

.cta-section h3 {
  margin-bottom: 1rem;
}

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

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: #ffffff;
  padding: 3rem 0 1.5rem;
}

.site-footer h5 {
  color: var(--primary-green-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--primary-green-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.footer-disclaimer {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.footer-disclaimer p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: #ffffff;
  padding: 1rem;
  z-index: 1001;
  display: none;
}

.cookie-banner.show {
  display: block;
}

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

.cookie-banner .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Page Headers */
.page-header {
  background: var(--gradient-soft);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
  background-color: var(--bg-white);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* About Page */
.about-section {
  padding: 4rem 0;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Page */
.contact-page-section {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

/* Utility Classes */
.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

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

.text-muted {
  color: var(--text-muted) !important;
}

/* Responsive */
@media (max-width: 991px) {
  body {
    padding-top: 70px;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .content-section {
    padding: 3rem 0;
  }
  
  .section-image {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 1.625rem;
  }
  
  h2 {
    font-size: 1.375rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .content-section {
    padding: 2.5rem 0;
  }
  
  .info-card {
    padding: 1.5rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
  
  .limitations-block {
    padding: 1.5rem;
  }
}
