/* NutriScope - Main Stylesheet */
/* Educational Website - January 2026 */

:root {
  --soft-green: #7CB382;
  --soft-green-light: #E8F5E9;
  --soft-green-dark: #5A9A61;
  --text-primary: #2D3436;
  --text-secondary: #636E72;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --border-color: #E0E0E0;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  color: var(--text-primary);
  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.25rem;
  line-height: 1.4;
}

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

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

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

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

.site-header .navbar {
  padding: 0.75rem 0;
}

.site-header .navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--soft-green-dark);
}

.site-header .navbar-brand:hover {
  color: var(--soft-green);
  text-decoration: none;
}

.site-header .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.site-header .nav-link:hover {
  color: var(--soft-green);
}

.navbar-toggler {
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232D3436' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content Spacing */
main {
  padding-top: 80px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--soft-green-light) 0%, var(--bg-white) 100%);
  padding: 4rem 0;
}

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

.hero-section p {
  font-size: 1.125rem;
  max-width: 540px;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
}

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

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

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

.section-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  height: 100%;
}

.section-image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

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

/* Two Column Layout */
.two-column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.two-column .content-col {
  flex: 1;
  min-width: 300px;
}

.two-column .image-col {
  flex: 1;
  min-width: 300px;
}

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

.two-column.reverse {
  flex-direction: row-reverse;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Limitations Block */
.limitations-block {
  background: linear-gradient(135deg, var(--soft-green-light) 0%, #F1F8E9 100%);
  border-radius: 12px;
  padding: 2.5rem;
  border-left: 4px solid var(--soft-green);
}

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

.limitations-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.limitations-block li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.limitations-block li:before {
  content: "•";
  color: var(--soft-green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* FAQ Section */
.faq-section {
  background-color: var(--bg-light);
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-item .card-header {
  background-color: transparent;
  border-bottom: none;
  padding: 0;
}

.faq-item .btn-link {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item .btn-link:hover {
  color: var(--soft-green-dark);
  text-decoration: none;
}

.faq-item .btn-link:focus {
  text-decoration: none;
  box-shadow: none;
}

.faq-item .card-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
}

.faq-icon {
  transition: transform 0.2s ease;
}

.faq-item .btn-link[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-info {
  background-color: var(--soft-green-light);
  border-radius: 12px;
  padding: 2rem;
}

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

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

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

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

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

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

/* Buttons */
.btn-primary {
  background-color: var(--soft-green);
  border-color: var(--soft-green);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(124, 179, 130, 0.3);
}

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

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--soft-green-light) 0%, #F1F8E9 100%);
  padding: 4rem 0;
  text-align: center;
}

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

.cta-section p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

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

.site-footer h4 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

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

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

.site-footer a:hover {
  color: var(--soft-green-light);
  text-decoration: none;
}

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

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

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

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

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--soft-green-light);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-primary);
  color: #fff;
  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;
  font-size: 0.9375rem;
}

.cookie-banner .btn {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Legal Pages */
.legal-page {
  padding: 4rem 0;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

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

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

.legal-page p, .legal-page li {
  color: var(--text-secondary);
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

/* About Page */
.about-hero {
  background: linear-gradient(135deg, var(--soft-green-light) 0%, var(--bg-white) 100%);
  padding: 4rem 0;
}

.about-content {
  padding: 4rem 0;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
}

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

/* Contact Page */
.contact-hero {
  background: linear-gradient(135deg, var(--soft-green-light) 0%, var(--bg-white) 100%);
  padding: 4rem 0;
}

/* Utility Classes */
.text-soft-green {
  color: var(--soft-green);
}

.bg-soft-green-light {
  background-color: var(--soft-green-light);
}

.rounded-lg {
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 991.98px) {
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .content-section {
    padding: 3rem 0;
  }
  
  .two-column {
    flex-direction: column;
  }
  
  .two-column.reverse {
    flex-direction: column;
  }
  
  .two-column .content-col,
  .two-column .image-col {
    min-width: 100%;
  }
}

@media (max-width: 767.98px) {
  main {
    padding-top: 70px;
  }
  
  h1 {
    font-size: 1.625rem;
  }
  
  h2 {
    font-size: 1.375rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .content-section {
    padding: 2.5rem 0;
  }
  
  .section-card {
    padding: 1.5rem;
  }
  
  .limitations-block {
    padding: 1.5rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .site-footer {
    text-align: center;
  }
  
  .cookie-banner .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-banner .btn {
    margin-left: 0;
    margin-top: 1rem;
  }
}
