/* NutriFlow - Educational Supplement Information Site */
/* Main Stylesheet */

:root {
  --primary-color: #388E3C;
  --primary-dark: #2E7D32;
  --primary-light: #4CAF50;
  --text-dark: #212121;
  --text-medium: #424242;
  --text-light: #757575;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Header / Navigation */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-brand:hover {
  color: var(--primary-dark) !important;
}

.nav-link {
  color: var(--text-medium) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

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

.navbar-toggler {
  border-color: var(--border-color);
}

/* Hero Section */
.hero-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

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

.hero-section p {
  font-size: 1.125rem;
  color: var(--text-light);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

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

.section-alt {
  background-color: var(--bg-light);
}

.section-title {
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 0.75rem;
}

.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* Content Blocks */
.content-block {
  margin-bottom: 2rem;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.content-image:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Info Cards */
.info-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.infographic-section h2 {
  color: var(--bg-white);
}

.infographic-section .section-title::after {
  background-color: var(--bg-white);
}

.infographic-item {
  text-align: center;
  padding: 1.5rem;
}

.infographic-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.infographic-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* FAQ Section */
.faq-section .card {
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.faq-section .card-header {
  background-color: var(--bg-white);
  border-bottom: none;
  padding: 0;
}

.faq-section .btn-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 1.5rem;
  display: block;
  width: 100%;
  text-align: left;
}

.faq-section .btn-link:hover {
  color: var(--primary-color);
}

.faq-section .card-body {
  padding: 1rem 1.5rem;
  color: var(--text-medium);
}

/* Study/Research Cards */
.study-card {
  background-color: var(--bg-white);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.study-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.study-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

.btn-cta {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
}

.btn-cta:hover {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  transform: translateY(-1px);
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.1);
}

/* Contact Info */
.contact-info {
  padding: 2rem;
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-info-item p {
  margin-bottom: 0;
}

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

.footer h5 {
  color: var(--bg-white);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.footer p {
  color: #BDBDBD;
  font-size: 0.95rem;
}

.footer a {
  color: #BDBDBD;
  transition: var(--transition);
}

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

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

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

.footer-bottom {
  border-top: 1px solid #424242;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.disclaimer-box h4 {
  color: #F57C00;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.disclaimer-box p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: var(--bg-light);
  padding: 1.25rem;
  z-index: 9999;
  display: none;
}

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

.cookie-banner p {
  color: var(--bg-light);
  margin-bottom: 1rem;
}

.cookie-banner a {
  color: var(--primary-light);
}

.btn-cookie {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie:hover {
  background-color: var(--primary-dark);
}

.btn-cookie-secondary {
  background-color: transparent;
  border: 1px solid var(--bg-light);
  color: var(--bg-light);
}

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

/* Policy Pages */
.policy-page {
  padding: 3rem 0;
}

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

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

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

.policy-page ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-page li {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
}

/* About Page */
.about-hero {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

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

.mission-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.mission-card:hover {
  box-shadow: var(--shadow-md);
}

.mission-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--bg-white);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 991px) {
  body {
    padding-top: 60px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    padding: 3rem 0;
    min-height: auto;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .infographic-number {
    font-size: 2rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-links {
    margin-bottom: 1.5rem;
  }
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.mb-section {
  margin-bottom: 2rem;
}

.img-responsive {
  max-width: 100%;
  height: auto;
}
