/* Foods directory v2: editorial pass.
 * Layered AFTER food-directory.css. */

/* ---------- Hero ---------- */
.page-header {
  max-width: 1100px;
  padding: 3.5rem 2rem 2rem;
  text-align: left;
  margin: 0 auto;
}
.page-header .header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--food-primary, #FF8A73);
  margin-bottom: 1rem;
}
.page-header .header-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.page-header h1 {
  font-family: 'Fraunces', serif !important;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem) !important;
  line-height: 1.02 !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
  font-variation-settings: "opsz" 96;
  max-width: 18ch;
}
.page-header p {
  font-family: 'Fraunces', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 1.2rem !important;
  line-height: 1.5 !important;
  color: #5a5a5a !important;
  max-width: 58ch;
  margin: 0 !important;
}
.page-header .header-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(43, 43, 43, 0.1);
  width: 100%;
  max-width: 420px;
}
.page-header .header-count-value {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.65rem;
  color: var(--charcoal, #2B2B2B);
  font-variant-numeric: tabular-nums;
}
.page-header .header-count-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  font-weight: 500;
}
@media (max-width: 768px) {
  .page-header { padding: 2.5rem 1.25rem 1.5rem; }
  .page-header p { font-size: 1.05rem !important; }
}

/* ---------- Food checker CTA, repolished ---------- */
.food-checker-cta {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--cream, #FFF8F0);
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.food-checker-cta-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.5;
}
.food-checker-cta-text strong {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--charcoal, #2B2B2B);
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.food-checker-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  background: var(--food-primary, #FF8A73);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s;
}
.food-checker-cta-btn:hover {
  background: #f57862;
}

/* ---------- Container ---------- */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ---------- Intro section ---------- */
.intro-section {
  margin: 2rem 0 3.5rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.intro-section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--charcoal, #2B2B2B);
  max-width: 28ch;
}
.intro-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 1rem;
  max-width: 66ch;
}

/* ---------- Section header refinement ---------- */
.foods-section {
  margin-bottom: 3rem;
}
.foods-section .section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.foods-section .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}
.foods-section .section-badge.good {
  background: var(--sage, #B4C7A8);
  color: #2c3a26;
  border: 0;
}
.foods-section .section-badge.avoid {
  background: rgba(43, 43, 43, 0.06);
  color: #5a5a5a;
  border: 0;
}
.foods-section .section-header h2 {
  font-family: 'Fraunces', serif !important;
  font-weight: 500 !important;
  font-size: clamp(1.85rem, 3vw, 2.5rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  color: var(--charcoal, #2B2B2B);
  max-width: 22ch;
}
.foods-section .section-description {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: #5a5a5a;
  max-width: 60ch;
  margin: 0 0 1.75rem;
}

/* ---------- Food chip cards ---------- */
.foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.food-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--charcoal, #2B2B2B);
  transition: border-color 0.18s, background 0.18s;
}
.food-card:hover {
  border-color: var(--food-primary, #FF8A73);
  background: #fff;
  transform: none !important;
  box-shadow: none !important;
}
.food-card.avoid:hover {
  border-color: rgba(43, 43, 43, 0.4);
}
.food-card .food-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--sage, #B4C7A8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3a26;
}
.food-card.avoid .food-icon {
  background: rgba(43, 43, 43, 0.08);
  color: #5a5a5a;
}
.food-card .food-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* ---------- FAQ refinement ---------- */
.faq-section {
  margin: 4rem 0 3rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.faq-section h2 {
  font-family: 'Fraunces', serif !important;
  font-weight: 500 !important;
  font-size: 2rem !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 1.75rem !important;
  max-width: 24ch;
}
.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.faq-question {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--charcoal, #2B2B2B);
  margin-bottom: 0.5rem;
}
.faq-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 66ch;
  margin: 0;
}

/* ---------- Related section refinement ---------- */
.related-section {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(43, 43, 43, 0.1);
}
.related-section h2 {
  font-family: 'Fraunces', serif !important;
  font-weight: 500 !important;
  font-size: 1.4rem !important;
  margin-bottom: 1.1rem !important;
}
.related-section .related-link {
  display: inline-block;
  margin-right: 1.5rem;
  padding: 0.4rem 0;
  color: var(--charcoal, #2B2B2B);
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 115, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.related-section .related-link:hover {
  color: var(--food-primary, #FF8A73);
  text-decoration-color: var(--food-primary, #FF8A73);
}
