@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --primary-green: #2E8B57;
  --accent-yellow: #F4D03F;
  --dark-blue: #2C3E50;
  --light-teal: #A2D9CE;
  --text-dark: #2C3E50;
  --text-light: #555;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-light: #E5E5E5;
}

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

html, body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dark-blue);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

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

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

a:hover {
  color: var(--accent-yellow);
}

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

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green) !important;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

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

body {
  padding-top: 80px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(46, 139, 87, 0.7), rgba(46, 139, 87, 0.7)), url('images/hero-nutrition.jpg') center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 20px;
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

/* Section Styles */
.section {
  padding: 5rem 0;
}

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

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

/* Two Column Layout */
.row-two-col {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.row-two-col-image-right {
  flex-direction: row;
}

.row-two-col-image-left {
  flex-direction: row-reverse;
}

.two-col-text {
  flex: 1;
}

.two-col-image {
  flex: 1;
}

.two-col-image img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Card Grid Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(46, 139, 87, 0.15);
}

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

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

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

/* Button Styles */
.btn-primary {
  background-color: var(--primary-green);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #1e6e42;
  transform: scale(1.02);
}

.btn-secondary {
  background-color: var(--light-teal);
  color: var(--dark-blue);
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #7ab8a6;
}

/* Footer Styles */
.footer {
  background-color: var(--dark-blue);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer a {
  color: var(--accent-yellow);
}

.footer a:hover {
  color: white;
}

.footer-section h4 {
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

.footer-section ul li a {
  font-size: 0.95rem;
}

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

.educational-badge {
  background-color: var(--accent-yellow);
  color: var(--dark-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Disclaimer Section */
.disclaimer-section {
  background-color: var(--light-teal);
  border-left: 4px solid var(--primary-green);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.disclaimer-section h4 {
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.disclaimer-section p {
  margin: 0;
  font-size: 0.95rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-blue);
  color: white;
  padding: 1.5rem;
  z-index: 2000;
  display: none;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

.cookie-banner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--accent-yellow);
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

.cookie-accept:hover {
  background-color: #1e6e42;
}

.cookie-reject {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

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

.cookie-learn {
  background-color: var(--accent-yellow);
  color: var(--dark-blue);
}

.cookie-learn:hover {
  background-color: #e6c914;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table thead {
  background-color: var(--primary-green);
  color: white;
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}

table tbody tr:hover {
  background-color: var(--bg-light);
}

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-section {
    height: 350px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .row-two-col {
    flex-direction: column;
    gap: 2rem;
  }

  .row-two-col-image-right,
  .row-two-col-image-left {
    flex-direction: column;
  }

  .two-col-image img {
    max-width: 100%;
  }

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

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

  .cookie-banner-buttons {
    width: 100%;
  }

  .cookie-banner button {
    flex: 1;
  }

  .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

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

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent-green {
  color: var(--primary-green);
}

.accent-yellow {
  color: var(--accent-yellow);
}

.accent-teal {
  color: var(--light-teal);
}
