/* SmartManPlate - Educational Nutrition Resource */
/* Brand Colors: Midnight Navy #001F3F, Bright Teal #00BFA5, Warm Beige #F5F5DC, Deep Olive #556B2F */

:root {
  --navy: #001F3F;
  --teal: #00BFA5;
  --beige: #F5F5DC;
  --olive: #556B2F;
  --light-gray: #f8f9fa;
  --dark-gray: #333333;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.75;
  font-size: 17px;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--navy);
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--teal);
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--navy);
}

p {
  margin-bottom: 15px;
  color: var(--dark-gray);
}

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

a:hover {
  color: var(--navy);
}

/* Header */
.navbar {
  background-color: var(--navy);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background-color: var(--navy);
  opacity: 0.98;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--teal);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 191, 165, 0.7) 100%),
    url('images/hero-hero.jpg') center/cover;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 60px;
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  animation: fadeIn 0.8s ease-in;
}

.hero h1 {
  color: var(--white);
  font-size: 60px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero p {
  color: var(--beige);
  font-size: 20px;
  margin-bottom: 30px;
  font-weight: 300;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 120px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

section:nth-child(even) {
  background-color: var(--light-gray);
}

section:nth-child(odd) {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 15px;
}

/* Content Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.content-text h3 {
  margin-bottom: 20px;
}

.content-text p {
  margin-bottom: 15px;
}

.content-image {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
  background-color: var(--beige);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-content {
  padding: 25px;
}

.product-content h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.product-content p {
  color: var(--dark-gray);
  font-size: 15px;
  margin-bottom: 15px;
}

.nutrient-tag {
  display: inline-block;
  background-color: var(--teal);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Micronutrients List */
.micronutrients-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.nutrient-item {
  background-color: var(--white);
  padding: 30px;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nutrient-item h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.nutrient-item p {
  color: var(--dark-gray);
  font-size: 15px;
}

/* FAQ Section */
.faq-container {
  max-width: 900px;
  margin: 40px auto;
}

.faq-item {
  background-color: var(--white);
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  background-color: var(--beige);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  border-left: 4px solid var(--teal);
}

.faq-question:hover {
  background-color: #ede8d8;
}

.faq-question h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.faq-toggle {
  font-size: 20px;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px 25px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--dark-gray);
  font-size: 15px;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 191, 165, 0.2);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 31, 63, 0.3);
}

.btn-secondary {
  background-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--teal);
  color: var(--white);
}

.btn-link {
  background-color: transparent;
  color: var(--teal);
  box-shadow: none;
  padding: 10px 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--navy);
  box-shadow: none;
  transform: none;
}

/* Forms */
.contact-form {
  max-width: 700px;
  margin: 40px auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--dark-gray);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.1);
}

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

.form-disclaimer {
  background-color: #f0f8f7;
  padding: 20px;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--dark-gray);
}

/* Disclaimer & Compliance Blocks */
.disclaimer-block {
  background-color: var(--beige);
  padding: 30px;
  border-left: 4px solid var(--olive);
  border-radius: 4px;
  margin: 50px 0;
  font-size: 15px;
  color: var(--dark-gray);
}

.disclaimer-block h3 {
  color: var(--navy);
  margin-bottom: 15px;
}

.disclaimer-block p {
  margin-bottom: 10px;
}

/* Educational Message */
.educational-message {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  margin: 40px 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 60px 40px 30px;
  margin-top: 100px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--teal);
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p {
  color: #b0b0b0;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.8;
}

.footer-section a {
  color: #b0b0b0;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  color: #b0b0b0;
  font-size: 13px;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footer-links a {
  color: #b0b0b0;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--teal);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--navy);
  color: var(--white);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  flex: 1;
  margin-right: 30px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  color: #d0d0d0;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  white-space: nowrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background-color: var(--teal);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: #00a590;
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--teal);
}

.cookie-btn-reject:hover {
  border-color: var(--white);
  color: var(--white);
}

.cookie-btn-learn {
  background-color: transparent;
  color: var(--teal);
  text-decoration: underline;
}

.cookie-btn-learn:hover {
  color: var(--white);
}

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

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  section {
    padding: 60px 20px;
  }

  .navbar-container {
    padding: 0 20px;
  }

  .nav-links {
    gap: 15px;
    font-size: 12px;
  }

  .hero {
    margin-top: 50px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .micronutrients-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cookie-banner {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }

  .cookie-content {
    margin-right: 0;
  }

  .cookie-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .contact-form {
    padding: 25px;
    margin: 20px 0;
  }
}

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

  h2 {
    font-size: 22px;
  }

  body {
    font-size: 16px;
  }

  section {
    padding: 40px 15px;
  }

  .navbar-brand {
    font-size: 18px;
  }

  .nav-links {
    gap: 10px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 12px;
  }

  .micronutrients-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }
}

/* Fade in animation for sections */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: slideInUp 0.6s ease-out;
}
