/* Herrera Medical — Main Stylesheet
   Last updated: April 2026
   Informational health resource, not a commercial site.
*/

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  color: #222;
  background: #fff;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: #0052a3; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ---- Layout ---- */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.wrapper { padding: 40px 0 60px; }

/* ---- Header ---- */
#site-header {
  background: #0052a3;
  color: #fff;
  padding: 14px 0;
}
#site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.site-logo span { font-weight: 300; }
#site-nav ul { display: flex; gap: 18px; flex-wrap: wrap; }
#site-nav a { color: #cce3ff; font-size: 0.92rem; }
#site-nav a:hover { color: #fff; text-decoration: none; }
#site-nav a.active { color: #fff; font-weight: 600; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.4rem; line-height: 1; }

/* ---- Hero / Page Banner ---- */
.page-hero {
  background: #f0f6ff;
  border-bottom: 1px solid #d0e4ff;
  padding: 36px 0 28px;
}
.page-hero h1 { font-size: 1.9rem; font-weight: 700; color: #003070; line-height: 1.25; margin-bottom: 10px; }
.page-hero .subtitle { font-size: 1.05rem; color: #444; max-width: 680px; }

/* ---- Main content ---- */
#main-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #003070;
  margin: 36px 0 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid #d0e4ff;
}
#main-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0052a3;
  margin: 20px 0 8px;
}
#main-content p { margin-bottom: 16px; line-height: 1.75; }
#main-content ul.content-list {
  list-style: disc;
  margin: 0 0 16px 24px;
}
#main-content ul.content-list li { margin-bottom: 8px; }
#main-content .note {
  background: #f0f6ff;
  border-left: 4px solid #0052a3;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #333;
  border-radius: 0 4px 4px 0;
}

/* ---- Article meta ---- */
.article-meta { font-size: 0.85rem; color: #666; margin-bottom: 24px; }
.article-meta span { margin-right: 16px; }

/* ---- Supplement cards (vitamins-for-ed page) ---- */
.supplement-card {
  border: 1px solid #d0e4ff;
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 24px;
  background: #fafcff;
}
.supplement-card h3 { margin-top: 0; }

/* ---- FAQ accordion (pure CSS) ---- */
.faq-list { margin-top: 12px; }
.faq-item { border-bottom: 1px solid #dde7f5; }
.faq-item summary {
  cursor: pointer;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 1rem;
  color: #003070;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: #0052a3; }
details[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 4px 16px; color: #333; line-height: 1.7; }

/* ---- CTA card ---- */
.cta-card {
  background: #0052a3;
  color: #fff;
  border-radius: 6px;
  padding: 28px 28px 24px;
  margin: 40px 0;
  text-align: center;
}
.cta-card h2 { color: #fff; border: none; margin-top: 0; font-size: 1.2rem; }
.cta-card p { color: #cce3ff; margin-bottom: 20px; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #0052a3;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 0.97rem;
}
.cta-btn:hover { background: #e8f0fb; text-decoration: none; }

/* ---- Key findings box ---- */
.key-findings {
  background: #fff8e6;
  border: 1px solid #ffd580;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 24px 0;
}
.key-findings h3 { color: #7a4f00; margin-top: 0; margin-bottom: 10px; }
.key-findings ul { list-style: disc; margin-left: 20px; }
.key-findings li { margin-bottom: 6px; font-size: 0.96rem; }

/* ---- About team ---- */
.team-card {
  border: 1px solid #d0e4ff;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #fafcff;
}
.team-card h3 { margin-top: 0; margin-bottom: 4px; }
.team-card .role { font-size: 0.88rem; color: #0052a3; margin-bottom: 8px; }

/* ---- Placeholder page ---- */
.placeholder-box {
  text-align: center;
  padding: 60px 20px;
  max-width: 560px;
  margin: 0 auto;
}
.placeholder-box .icon { font-size: 3rem; margin-bottom: 16px; color: #999; }
.placeholder-box h1 { font-size: 1.5rem; color: #333; margin-bottom: 12px; }
.placeholder-box p { color: #555; margin-bottom: 20px; }
.placeholder-box a.home-btn {
  display: inline-block;
  background: #0052a3;
  color: #fff;
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 600;
}
.placeholder-box a.home-btn:hover { background: #003a78; text-decoration: none; }

/* ---- Internal links section ---- */
.related-links {
  background: #f5f8ff;
  border: 1px solid #d0e4ff;
  border-radius: 6px;
  padding: 20px 22px;
  margin: 40px 0;
}
.related-links h3 { margin-top: 0; margin-bottom: 12px; font-size: 1rem; color: #003070; }
.related-links ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  display: inline-block;
  background: #fff;
  border: 1px solid #b0ccea;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.9rem;
  color: #0052a3;
}
.related-links a:hover { background: #e4eef9; text-decoration: none; }

/* ---- Footer ---- */
#site-footer {
  background: #1a2a3a;
  color: #aec6dc;
  font-size: 0.88rem;
  padding: 32px 0 20px;
}
#site-footer .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { color: #aec6dc; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #2e4055;
  color: #7a9ab5;
  font-size: 0.82rem;
}
.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #5a7d99;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.45rem; }
  #main-content h2 { font-size: 1.15rem; }
  #site-header .container { flex-direction: column; align-items: flex-start; }
  #site-nav ul { gap: 10px; }
  .nav-toggle { display: block; }
  #site-nav { width: 100%; }
  #site-nav ul { display: none; flex-direction: column; gap: 6px; padding-top: 8px; }
  #site-nav ul.open { display: flex; }
  #site-footer .container { flex-direction: column; }
}
