/* =============================================================
   JFFD HOMEPAGE — Concept D (artifact v14)
   Sections rendered by inc/jffd-homepage.php.

   PALETTE — brand values only. Mapped from the Graphite blog system
   during the 2026-10-14 brand audit:
     Midnight    #07272D  headings
     Kale Blue   #003B49  links, dark panels, strips
     Off-White   #D8DEE8  type on dark grounds
     Warm Gray 1 #D7D2CB  photo backstop
     Harvest     #FFC658  accent — on DARK grounds only, per brand rules
   Neutral greys are kept for long body copy as a deliberate readability
   exception; see BLOG-ARCHITECTURE.md.

   WIDTH: these sections do NOT set their own page width. Elementor's
   container supplies it, so the homepage stays consistent with the rest
   of the site. The two full-bleed bands constrain their own inner row
   with --jffd-content.
   ============================================================= */

.jffd-search-band,
.jffd-trust-band,
.jffd-section,
.jffd-freemeal-wrap,
.jffd-roster {
  --jffd-content: 1180px;
  --jffd-midnight: #07272D;
  --jffd-kale: #003B49;
  --jffd-offwhite: #D8DEE8;
  --jffd-harvest: #FFC658;
  --jffd-harvest-deep: #DDAD2B;
  --jffd-border: #C3CCDA;
  --jffd-tint: #EDF1F7;
  --jffd-tint-2: #F4F6FA;
  --jffd-body: #212121;
  --jffd-body-2: #333333;
  --jffd-muted: #62777D;
  --jffd-radius: 12px;
  --jffd-lift: 0 8px 24px rgba(1, 62, 78, .14);
}

/* ---- shared ------------------------------------------------- */

.jffd-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--jffd-kale);
  margin-bottom: 10px;
}

.jffd-section { padding: 56px 0 0; }
.jffd-section-head { margin-bottom: 28px; }
.jffd-section-head h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--jffd-midnight);
  letter-spacing: -.01em;
}
.jffd-section-head p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--jffd-body-2);
  margin-top: 6px;
  max-width: 640px;
}

.jffd-chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--jffd-kale);
  background: var(--jffd-tint-2);
  border-radius: 999px;
  padding: 5px 11px;
}

.jffd-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--jffd-harvest-deep);
  color: var(--jffd-midnight);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: -2px;
  margin-right: 5px;
}

.jffd-btn-harvest {
  display: inline-block;
  background: var(--jffd-harvest);
  color: var(--jffd-midnight);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 180ms ease;
}
.jffd-btn-harvest:hover { background: #FDD26E; }

/* Cards share one hover. Transform-only so it never triggers layout. */
.jffd-topic-card,
.jffd-guide-card,
.jffd-research-panel,
.jffd-roster__card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.jffd-topic-card:hover,
.jffd-guide-card:hover,
.jffd-research-panel:hover,
.jffd-roster__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--jffd-lift);
}
@media (prefers-reduced-motion: reduce) {
  .jffd-topic-card, .jffd-guide-card, .jffd-research-panel, .jffd-roster__card,
  .jffd-btn-harvest, .jffd-search-chip { transition: none; }
  .jffd-topic-card:hover, .jffd-guide-card:hover,
  .jffd-research-panel:hover, .jffd-roster__card:hover { transform: none; }
}

/* ---- 2. search band (full bleed) ---------------------------- */

.jffd-search-band {
  background: var(--jffd-tint);
  padding: 64px 24px 60px;
  text-align: center;
}
.jffd-search-band__inner { max-width: 780px; margin: 0 auto; }
.jffd-search-band h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--jffd-midnight);
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.jffd-search-band .jffd-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--jffd-body-2);
  max-width: 620px;
  margin: 0 auto 30px;
}
.jffd-search-band .jffd-sub a { font-weight: 600; color: var(--jffd-kale); }

.jffd-hero-search {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--jffd-border);
  border-radius: 999px;
  padding: 6px 6px 6px 26px;
  max-width: 640px;
  margin: 0 auto 30px;
  box-shadow: 0 8px 24px rgba(1, 62, 78, .08);
}
.jffd-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16.5px;
  font-family: inherit;
  color: var(--jffd-body);
  background: transparent;
  min-width: 0;
}
.jffd-hero-search input::placeholder { color: var(--jffd-muted); }
.jffd-hero-search input:focus-visible { outline: 2px solid var(--jffd-kale); outline-offset: 4px; }

.jffd-trend-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--jffd-muted);
  margin-bottom: 12px;
}
.jffd-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.jffd-chip-row + .jffd-trend-label { margin-top: 26px; }
.jffd-search-chip {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--jffd-kale);
  background: #FFFFFF;
  border: 1px solid var(--jffd-border);
  border-radius: 999px;
  padding: 8px 15px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.jffd-search-chip:hover {
  background: var(--jffd-kale);
  color: #FFFFFF;
  border-color: var(--jffd-kale);
}

/* ---- 5. trust band ------------------------------------------ */

.jffd-trust-band { background: var(--jffd-tint-2); padding: 0 0 56px; }

/* Kale Blue strip with Harvest numerals: the one placement the brand
   guidelines call for the accent as type. */
.jffd-trust-stats {
  background: var(--jffd-kale);
  padding: 26px 24px;
  margin-bottom: 48px;
}
.jffd-trust-stats__inner {
  max-width: var(--jffd-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px 28px;
  flex-wrap: wrap;
}
.jffd-stat { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.jffd-stat__num {
  font-size: 30px;
  font-weight: 800;
  color: var(--jffd-harvest);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.jffd-stat__lbl { font-size: 14.5px; color: var(--jffd-offwhite); }

/* Phone: four inline items wrap into ragged rows, so stack each pair into a
   tidy 2x2 with the numeral over its label. */
@media (max-width: 620px) {
  .jffd-trust-stats { padding: 22px 20px; margin-bottom: 34px; }
  .jffd-trust-stats__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .jffd-stat { display: block; }
  .jffd-stat__num { display: block; font-size: 26px; }
  .jffd-stat__lbl { display: block; margin-top: 2px; line-height: 1.35; }
}

.jffd-trust-grid {
  max-width: var(--jffd-content);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.jffd-trust-copy h2 {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--jffd-midnight);
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.jffd-trust-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--jffd-body-2);
  margin-bottom: 16px;
}
.jffd-trust-copy p a { font-weight: 700; color: var(--jffd-kale); }
.jffd-trust-copy p a:hover { text-decoration: underline; }

/* ---- 6. research panels ------------------------------------- */

.jffd-research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jffd-research-panel {
  background: var(--jffd-kale);
  border-radius: var(--jffd-radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.jffd-research-panel .jffd-eyebrow { color: var(--jffd-harvest); margin-bottom: 12px; }
.jffd-research-panel h3 {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.jffd-research-panel p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--jffd-offwhite);
  margin-bottom: 18px;
}
.jffd-research-link {
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--jffd-harvest);
  text-decoration: none;
}
.jffd-research-link:hover { text-decoration: underline; }

/* ---- 7. topic cards ----------------------------------------- */

.jffd-topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.jffd-topic-card {
  background: #FFFFFF;
  border: 1px solid var(--jffd-border);
  border-radius: var(--jffd-radius);
  padding: 22px 20px;
  text-decoration: none;
  display: block;
}
.jffd-topic-card .jffd-chip { margin-bottom: 12px; }
.jffd-topic-card:hover .jffd-chip { background: var(--jffd-tint); }
.jffd-topic-card p { font-size: 14.5px; line-height: 1.55; color: var(--jffd-body-2); }

/* ---- 8. guide cards ----------------------------------------- */

.jffd-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jffd-guide-card {
  background: #FFFFFF;
  border: 1px solid var(--jffd-border);
  border-radius: var(--jffd-radius);
  padding: 24px 26px;
  display: block;
  text-decoration: none;
}
.jffd-guide-card .jffd-eyebrow { margin-bottom: 10px; }
.jffd-guide-card__title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--jffd-midnight);
  line-height: 1.35;
  margin-bottom: 8px;
}
.jffd-guide-card:hover .jffd-guide-card__title { color: var(--jffd-kale); }
.jffd-guide-card__desc {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--jffd-body-2);
  margin-bottom: 12px;
}
.jffd-guide-card__meta { display: block; font-size: 13px; color: var(--jffd-muted); }

/* ---- 9. about ----------------------------------------------- */

.jffd-about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  background: var(--jffd-tint-2);
  border-radius: var(--jffd-radius);
  padding: 44px 46px;
  align-items: start;
}
.jffd-about__copy h2 {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--jffd-midnight);
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.jffd-about__copy p { font-size: 16px; line-height: 1.68; color: var(--jffd-body-2); margin-bottom: 15px; }
.jffd-about__links { font-size: 14.5px; font-weight: 700; margin-top: 20px; }
.jffd-about__links a { color: var(--jffd-kale); text-decoration: none; }
.jffd-about__links a:hover { text-decoration: underline; }
.jffd-about__links .jffd-sep { color: var(--jffd-muted); margin: 0 8px; font-weight: 400; }
.jffd-about__proof { display: flex; flex-direction: column; gap: 12px; }
.jffd-about__fact {
  background: #FFFFFF;
  border: 1px solid var(--jffd-border);
  border-radius: var(--jffd-radius);
  padding: 16px 20px;
}
.jffd-about__fact .t {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--jffd-midnight);
  line-height: 1.35;
  margin-bottom: 3px;
}
.jffd-about__fact .d { display: block; font-size: 14.5px; line-height: 1.55; color: var(--jffd-muted); }

/* ---- 10. free meal ------------------------------------------ */

/* .jffd-freemeal-wrap is the full card. The two-column grid and the retailer
   strip are SIBLINGS inside it, so the strip spans the whole card rather than
   falling into the grid as a third column — which is how the first build of
   this rendered at half width. */
.jffd-freemeal-wrap {
  border-radius: var(--jffd-radius);
  overflow: hidden;
  margin-top: 64px;
  border: 1px solid var(--jffd-border);
}
.jffd-freemeal { display: grid; grid-template-columns: 1.05fr 1fr; }
.jffd-freemeal__copy { background: var(--jffd-kale); padding: 52px 48px; }
.jffd-freemeal__copy .jffd-eyebrow { color: var(--jffd-harvest); margin-bottom: 14px; }
.jffd-freemeal__copy h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.jffd-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--jffd-offwhite);
  max-width: 460px;
  margin-bottom: 28px;
}
.jffd-lede b { color: #FFFFFF; font-weight: 700; }
.jffd-freemeal__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.jffd-freemeal__find {
  font-size: 15px;
  font-weight: 600;
  color: var(--jffd-offwhite);
  text-decoration: underline;
}
.jffd-freemeal__find:hover { color: #FFFFFF; }
.jffd-freemeal__proof {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(216, 222, 232, .25);
  padding-top: 24px;
}
.jffd-freemeal__proof .t {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--jffd-harvest);
  line-height: 1.4;
}
.jffd-freemeal__proof .d { display: block; font-size: 14.5px; color: var(--jffd-offwhite); line-height: 1.4; }
.jffd-freemeal__terms { font-size: 12.5px; color: #8FA3AB; margin-top: 22px; }
.jffd-freemeal__img { background: #D7D2CB; min-height: 100%; }
.jffd-freemeal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Logos are capped near their native 769px so they stay crisp and never
   stretch. */
.jffd-freemeal__retailers {
  background: var(--jffd-offwhite);
  padding: 26px 40px 30px;
  text-align: center;
  border-top: 1px solid var(--jffd-border);
}
.jffd-freemeal__retailers .label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jffd-kale);
  margin-bottom: 16px;
}
.jffd-freemeal__retailers img {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0 auto;
}

/* ---- /our-experts roster ------------------------------------ */

.jffd-roster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.jffd-roster__card {
  display: flex;
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid var(--jffd-border);
  border-radius: var(--jffd-radius);
  padding: 22px 24px;
}
.jffd-roster__photo { flex-shrink: 0; display: block; text-decoration: none; }
.jffd-roster__photo img,
.jffd-roster__initials {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 5px var(--jffd-tint);
}
.jffd-roster__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--jffd-offwhite), var(--jffd-tint));
  color: var(--jffd-kale);
  font-size: 26px;
  font-weight: 800;
}
.jffd-roster__name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 4px;
}
.jffd-roster__name a { color: var(--jffd-midnight); text-decoration: none; }
.jffd-roster__card:hover .jffd-roster__name a { color: var(--jffd-kale); }
.jffd-roster__role {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--jffd-muted);
  margin: 0 0 10px;
}
.jffd-roster__bio { font-size: 15px; line-height: 1.6; color: var(--jffd-body-2); margin: 0 0 10px; }
.jffd-roster__meta { font-size: 14px; font-weight: 700; margin: 0; }
.jffd-roster__meta a { color: var(--jffd-kale); text-decoration: none; }
.jffd-roster__meta a:hover { text-decoration: underline; }

/* ---- responsive --------------------------------------------- */

@media (max-width: 900px) {
  .jffd-research-grid,
  .jffd-topics-grid,
  .jffd-guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .jffd-search-band { padding: 48px 24px 44px; }
  .jffd-search-band h2 { font-size: 30px; }
  .jffd-trust-grid { grid-template-columns: 1fr; gap: 36px; }
  .jffd-about { grid-template-columns: 1fr; gap: 30px; padding: 32px 26px; }
  .jffd-freemeal { grid-template-columns: 1fr; }
  .jffd-freemeal__copy { padding: 36px 28px; }
  .jffd-freemeal__copy h2 { font-size: 30px; }
  /* Photo above the copy on phones: the image is the hook, and a 52px pad of
     Kale Blue before any picture reads as a dead zone at this width. */
  .jffd-freemeal__img { min-height: 260px; order: -1; }
  .jffd-freemeal__retailers { padding: 22px 20px 24px; }
  .jffd-roster { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .jffd-research-grid,
  .jffd-topics-grid,
  .jffd-guide-grid { grid-template-columns: 1fr; }
  .jffd-roster__card { flex-direction: column; gap: 14px; }
}

/* =============================================================
   PAGE FURNITURE — used by the /our-experts and
   /content-review-process templates, and by the "Latest from the
   blog" section head on the homepage.
   ============================================================= */

.jffd-page-intro,
.jffd-section-head-row,
.jffd-callout--draft {
  --jffd-midnight: #07272D;
  --jffd-kale: #003B49;
  --jffd-border: #C3CCDA;
  --jffd-body-2: #333333;
  --jffd-muted: #62777D;
}

.jffd-page-intro { max-width: 720px; margin: 0 0 40px; }
.jffd-page-intro h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--jffd-midnight);
  margin: 0 0 14px;
}
.jffd-page-intro p { font-size: 18px; line-height: 1.68; color: var(--jffd-body-2); margin: 0; }
.jffd-page-intro p a { color: var(--jffd-kale); font-weight: 600; }
.jffd-page-intro p a:hover { text-decoration: underline; }

/* Section head with a "view all" on the right. */
.jffd-section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.jffd-section-head-row h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--jffd-midnight);
  letter-spacing: -.01em;
  margin: 0;
}

/* Loud on purpose. This page must not reach the index while the workflow
   sections are still placeholders, and a quiet note would not stop it. */
.jffd-callout--draft {
  background: #FDECEA;
  border: 1px solid #E8B4AE;
  border-left: 5px solid #C0392B;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 36px;
}
.jffd-callout--draft p { font-size: 15.5px; line-height: 1.6; color: #7B2018; margin: 0; }

/* Prose pages: the roster and review-process templates are plain content, so
   they get article typography without needing the post template. */
.jffd-sec-prose h2 {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--jffd-midnight);
  letter-spacing: -.01em;
  margin: 44px 0 14px;
}
.jffd-sec-prose h2 i { font-style: normal; font-size: 15px; font-weight: 700; color: #C0392B; }
.jffd-sec-prose p { font-size: 18px; line-height: 1.72; color: #212121; margin: 0 0 16px; }
.jffd-sec-prose p i { color: var(--jffd-muted); }
.jffd-sec-prose ul { margin: 0 0 16px; padding-left: 22px; }
.jffd-sec-prose li { font-size: 16.5px; line-height: 1.65; color: #212121; margin-bottom: 10px; }
.jffd-sec-prose a { color: var(--jffd-kale); font-weight: 600; }
.jffd-sec-prose a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .jffd-page-intro h1 { font-size: 30px; }
  .jffd-section-head-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
