/* foods-style.css - Medical white theme with dark navbar/footer */
:root {
  --pure-white: #ffffff;
  --background-light: #f5fafd;
  --text-primary: #122b3f;
  --text-secondary: #2c4b63;
  --accent-medical: #1e88e5;
  --accent-soft: #6ab7ff;
  --border-light: #d9e9f2;
  --hover-bg: #e1f0fa;
  --card-shadow: 0 10px 25px -5px rgba(0, 50, 80, 0.1);

  /* Dark navbar/footer */
  --nav-bg: #0b202f;
  --nav-text: #e0eefb;
  --dropdown-border: #2b4b65;

  --transition: all 0.3s ease-in-out;
}

body {
  background-color: var(--pure-white);
  color: var(--text-primary);
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}

/* Navbar (dark) - matches main style */
.navbar {
  background: var(--nav-bg) !important;
  border-bottom: 2px solid var(--dropdown-border);
}

.logo {
  color: var(--nav-text) !important;
}
.logo-hb {
  background: var(--nav-bg); /* Matches navbar for depth */
  color: var(
    --accent-medical
  ); /* HB letters now clearly visible in medical blue */
  border: 2px solid var(--accent-medical); /* Adds professional frame */
  padding: 6px 12px;
  border-radius: 10px;
  margin-right: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo span {
  color: var(--accent-medical); /* Keeps "Bridge" in medical blue */
}
/* --- Hero Section (updated with overlay) --- */
.foods-hero {
  position: relative;
  background: url("https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darker midnight overlay for premium contrast */
  background: linear-gradient(rgba(11, 32, 47, 0.9), rgba(11, 32, 47, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-tag {
  display: inline-block;
  background: var(--nav-bg); /* Darker background for the tag */
  color: var(--accent-medical); /* Blue text on dark background for pop */
  border: 1px solid var(--accent-medical);
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.foods-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--pure-white); /* High-contrast white */
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.foods-hero h1 span {
  /* Removed blue; using a clean white with a subtle underline or different weight */
  color: var(--pure-white);
  border-bottom: 4px solid var(--accent-medical);
}

.foods-hero p {
  /* Using a light steel gray/white for readability */
  color: #e0eefb;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 1;
}

/* --- Intro Section --- */
.nutrition-intro {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.nutrition-intro h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.nutrition-intro p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Main Container --- */
.foods-container {
  max-width: 1300px;
  margin: 60px auto 120px;
  padding: 0 4%;
}

/* --- Grid Layout (responsive) --- */
.foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* --- Food Card (enhanced) --- */
.food-card {
  background: var(--pure-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.food-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(30, 136, 229, 0.2);
  border-color: var(--accent-medical);
}

/* Image wrapper */
.food-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.food-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.food-card:hover .food-image-wrapper img {
  transform: scale(1.05);
}

/* Nutrient badge */
.nutrient-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-medical);
  color: white;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

/* Content area */
.food-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.food-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.food-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Medical target block */
.medical-target {
  background: var(--background-light);
  padding: 18px 20px;
  border-radius: 16px;
  border-left: 4px solid var(--accent-medical);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: auto;
  transition: var(--transition);
}

.medical-target span {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-top: 5px;
  font-weight: 700;
}

/* --- New Sections (Guidelines, Research, Note) --- */
.nutrition-guidelines,
.nutrition-research {
  margin: 80px 0 60px;
}

.nutrition-guidelines h2,
.nutrition-research h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-align: center;
}

.guidelines-grid,
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.guideline-item,
.research-card {
  background: var(--pure-white);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}

.guideline-item:hover,
.research-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-medical);
}

.guideline-item h3,
.research-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.guideline-item p,
.research-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Clinical note */
.clinical-note {
  background: #e3f2fd;
  border-left: 6px solid var(--accent-medical);
  padding: 25px 30px;
  border-radius: 16px;
  margin: 60px 0 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  box-shadow: var(--card-shadow);
}

.clinical-note strong {
  color: var(--accent-medical);
}

/* --- Footer (dark) --- */
.footer {
  background: var(--nav-bg) !important;
  color: var(--nav-text);
  border-top: 2px solid var(--dropdown-border);
  padding: 80px 8% 40px;
  margin-top: 0;
}

.footer-section h2,
.footer-section h3 {
  color: white;
}
.footer-section h2 span {
  color: var(--accent-medical);
}
.footer-section p,
.footer-section a {
  color: #cbd5e1;
}
.footer-section a:hover {
  color: var(--accent-medical);
}
.nutritional-disclaimer {
  margin-top: 20px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a0b8cc;
}
.footer-bottom {
  border-top-color: var(--dropdown-border);
  color: #8fa3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .foods-hero h1 {
    font-size: 2.8rem;
  }
  .foods-grid {
    grid-template-columns: 1fr;
  }
  .food-image-wrapper {
    height: 200px;
  }
  .nutrition-intro h2,
  .nutrition-guidelines h2,
  .nutrition-research h2 {
    font-size: 1.8rem;
  }
}
