/* ============================================
   ENDRAVA NUTRITION — DESIGN SYSTEM
   Version: 1.0.0
   Child theme: kadence-child-endrava
============================================ */


/* ============================================
   1. DESIGN TOKENS
============================================ */
:root {
  --ef-green: #2a6e3f;
  --ef-green-dark: #1f5230;
  --ef-green-deep: #2a5c45;
  --ef-red: #993C1D;
  --ef-text: #1a1a1a;
  --ef-text-muted: #555;
  --ef-text-soft: #888;
  --ef-rule: rgba(0,0,0,0.1);
  --ef-rule-soft: rgba(0,0,0,0.06);
  --ef-bg-soft: #fafafa;
}


/* ============================================
   2. SITE-WIDE REUSABLE PATTERNS (.ef-*)
============================================ */

.ef-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ef-green);
  margin-bottom: 1.5em;
}

.ef-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ef-text-soft);
  margin-bottom: 1.5em;
  text-align: center;
}

.ef-hero {
  text-align: center;
  padding: 4em 1em 3em 1em;
  border-bottom: 1px solid var(--ef-rule-soft);
  margin-bottom: 3em;
}
.ef-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em 0;
}
.ef-hero-sub {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  color: var(--ef-text-muted);
}

.ef-section {
  padding: 3em 1em;
  margin: 0 auto;
}
.ef-section-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin: 0 auto 1em auto;
  max-width: 720px;
}
.ef-section-body {
  max-width: 720px;
  margin: 0 auto 2.5em auto;
  font-size: 1.08rem;
  line-height: 1.7;
}
.ef-section-body p {
  margin-bottom: 1em;
}
.ef-section-body-center {
  text-align: center;
}

/* Card grids */
.ef-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  max-width: 1000px;
  margin: 0 auto;
}
.ef-cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2em;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .ef-cards-3,
  .ef-cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ef-cards-3,
  .ef-cards-4 {
    grid-template-columns: 1fr;
  }
}

/* Universal card */
.ef-card {
  padding: 1.6em 1.4em;
  border: 1px solid var(--ef-rule);
  border-radius: 6px;
  background: var(--ef-bg-soft);
}
.ef-card h3,
.ef-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5em 0;
  line-height: 1.3;
  color: var(--ef-text);
}
.ef-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: var(--ef-text-muted);
}

/* Ingredient card additions */
.ef-ingredient-form {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ef-text-muted);
  margin: 0 0 0.8em 0;
}
.ef-ingredient-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ef-green);
  background: rgba(42, 110, 63, 0.08);
  padding: 0.25em 0.7em;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* Two-column layout */
.ef-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .ef-twocol {
    grid-template-columns: 1fr;
    gap: 2em;
  }
}

/* Is / isn't columns */
.ef-isisnt-col h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1em 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--ef-green);
}
.ef-isisnt-col.ef-isnt h3 {
  border-bottom-color: var(--ef-red);
}
.ef-isisnt-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ef-isisnt-col li {
  padding: 0.6em 0;
  border-bottom: 1px solid var(--ef-rule-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}
.ef-isisnt-col li:last-child {
  border-bottom: none;
}

/* Feature grid */
.ef-feature-grid {
  margin: 2em auto 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ef-rule);
  border: 1px solid var(--ef-rule);
  max-width: 900px;
}
@media (max-width: 600px) {
  .ef-feature-grid {
    grid-template-columns: 1fr;
  }
}
.ef-feature-cell {
  background: #fff;
  padding: 1.5em;
}
.ef-feature-cell h4 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ef-green-deep);
  font-weight: 600;
  margin: 0 0 0.7em 0;
}
.ef-feature-cell p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  color: var(--ef-text-muted);
}

/* Data table */
.ef-data-table {
  margin: 2em auto 0 auto;
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  border: 1px solid var(--ef-rule);
  font-size: 0.92rem;
}
.ef-data-table th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ef-text-soft);
  text-align: left;
  padding: 0.8em 1em;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid var(--ef-rule);
}
.ef-data-table td {
  padding: 0.9em 1em;
  border-bottom: 1px solid var(--ef-rule-soft);
  color: var(--ef-text-muted);
  vertical-align: top;
}
.ef-data-table tr:last-child td {
  border-bottom: none;
}
.ef-data-table td:first-child {
  font-weight: 600;
  color: var(--ef-text);
  white-space: nowrap;
}

/* Closing block */
.ef-closing {
  text-align: center;
  padding: 4em 1em;
  border-top: 1px solid var(--ef-rule-soft);
  margin-top: 3em;
}
.ef-closing p {
  max-width: 720px;
  margin: 0 auto 1em auto;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* CTAs */
.ef-cta {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.65em 1.4em;
  background-color: var(--ef-green);
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.ef-cta:hover {
  background-color: var(--ef-green-dark);
}
.ef-cta-secondary {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.6em 1.3em;
  border: 2px solid var(--ef-green);
  color: var(--ef-green) !important;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.ef-cta-secondary:hover {
  background-color: var(--ef-green);
  color: #fff !important;
}

/* Disclaimer */
.ef-disclaimer {
  margin: 2.5em auto 0 auto;
  max-width: 720px;
  padding-top: 1em;
  border-top: 1px solid var(--ef-rule-soft);
  font-size: 0.85rem;
  color: var(--ef-text-soft);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}


/* ============================================
   3. PRODUCT PAGE WRAPPER
============================================ */
.ef-product {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: inherit;
}


/* ============================================
   4. NUTRIENT INFO PAGE SYSTEM (.nf-*)
============================================ */
.nf-page {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: inherit;
  padding-top: 0 !important;
}
.nf-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 0.5em;
  line-height: 1.2;
}
.nf-lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.2em;
}
.nf-page h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}
.nf-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0 !important;
  margin-bottom: 0.3em !important;
}

.nf-nutrient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin-top: 1.5em;
}
@media (max-width: 580px) {
  .nf-nutrient-grid {
    grid-template-columns: 1fr;
  }
}
.nf-nutrient-group ul {
  list-style: none !important;
  padding: 0 !important;
  margin-top: 0.3em !important;
  margin-bottom: 0 !important;
}
.nf-nutrient-group ul li {
  padding: 0.2em 0;
}
.nf-nutrient-group ul li a {
  text-decoration: none;
  color: var(--ef-green);
  font-weight: 500;
}
.nf-nutrient-group ul li a:hover {
  text-decoration: underline;
}
.nf-group-label {
  font-size: 0.8rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  margin-top: 1.8em !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  display: block;
}

.nf-browse-block {
  max-width: 680px;
  margin: 3em auto 0 auto;
  padding-top: 2em;
  border-top: 1px solid rgba(0,0,0,0.12);
  font-size: 0.95rem;
}
.nf-browse-block h2 {
  font-size: 1.1rem !important;
  font-weight: 600;
  margin-bottom: 0.8em !important;
  margin-top: 0 !important;
}
.nf-browse-block .nf-nutrient-grid {
  margin-top: 0.5em;
}
.nf-back-link {
  margin-top: 2em;
  font-size: 0.95rem;
}
.nf-back-link a {
  color: var(--ef-green);
  text-decoration: none;
  font-weight: 500;
}
.nf-back-link a:hover {
  text-decoration: underline;
}

.nf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.98rem;
}
.nf-table th,
.nf-table td {
  text-align: left;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nf-table th {
  font-weight: 600;
  background-color: rgba(0,0,0,0.03);
}

.nf-related {
  margin-top: 2em;
  font-size: 0.95rem;
}
.nf-related a {
  color: var(--ef-green);
  text-decoration: none;
  font-weight: 500;
}
.nf-related a:hover {
  text-decoration: underline;
}

.nf-disclaimer {
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.nf-cta {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.65em 1.4em;
  background-color: var(--ef-green);
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.nf-cta:hover {
  background-color: var(--ef-green-dark);
}
.nf-cta-secondary {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.6em 1.3em;
  border: 2px solid var(--ef-green);
  color: var(--ef-green) !important;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.nf-cta-secondary:hover {
  background-color: var(--ef-green);
  color: #fff !important;
}

.nf-local-nav {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(0,0,0,0.12);
  font-size: 0.95rem;
}
.nf-local-nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.nf-local-nav ul li a {
  color: var(--ef-green);
  text-decoration: none;
  font-weight: 500;
}
.nf-local-nav ul li a:hover {
  text-decoration: underline;
}

.nf-divider {
  display: none;
}

.nf-chart {
  margin: 1em 0;
  padding: 0;
}
.nf-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.nf-chart-caption {
  margin: 1em 0 0 0 !important;
  padding: 0 !important;
  font-size: 1.08rem;
  line-height: 1.75;
  color: inherit;
}
.nf-chart + p {
  margin-top: 2em !important;
}
.nf-chart-source {
  font-size: 0.72rem;
  line-height: 1.25;
  color: #8B8985;
  margin-top: 0.25rem;
}


/* ============================================
   5. HOME PAGE (.en-home-*)
============================================ */

.en-home-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 56px 48px 48px;
  border-bottom: 1px solid var(--ef-rule-soft);
  margin-bottom: 0;
}

.en-home-hero-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  opacity: 0.07;
  pointer-events: none;
}

.en-home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.en-home-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ef-green);
  margin-bottom: 14px;
}

.en-home-title {
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 4px 0;
  color: var(--ef-text);
}

.en-home-title strong {
  font-weight: 700;
  color: var(--ef-green-dark);
}

.en-home-tagline {
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ef-green);
  margin: 0 0 18px 0;
  line-height: 1.3;
}

.en-home-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ef-text-muted);
  max-width: 520px;
  margin: 0 0 28px 0;
}

.en-home-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.en-home-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ef-text-muted);
}

.en-home-intro p strong {
  color: var(--ef-text);
}

.en-home-pillars {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.en-home-card-accent {
  width: 24px;
  height: 2px;
  background: var(--ef-green);
  margin-bottom: 14px;
}

.en-home-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ef-green);
  text-decoration: none;
  border-bottom: 1px solid var(--ef-green);
  padding-bottom: 1px;
}

.en-home-card-link:hover {
  color: var(--ef-green-dark);
  border-bottom-color: var(--ef-green-dark);
}

.en-home-nutrients {
  background: var(--ef-bg-soft);
  border-top: 1px solid var(--ef-rule-soft);
  border-bottom: 1px solid var(--ef-rule-soft);
  padding: 40px 24px;
}

.en-home-nutrients .nf-nutrient-grid {
  max-width: 720px;
  margin: 16px auto 0;
}

.en-home-nutrients .ef-section-label {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.en-home-tool-banner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ef-rule-soft);
}

.en-home-tool-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ef-green-dark);
  margin: 0 0 8px 0;
}

.en-home-tool-body {
  font-size: 0.95rem;
  color: var(--ef-text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}

@media (max-width: 700px) {
  .en-home-hero {
    padding: 40px 24px 36px;
  }
  .en-home-title {
    font-size: 2.1rem;
  }
  .en-home-tool-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================
   6. KADENCE THEME OVERRIDES
============================================ */

#inner-wrap {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.entry-content-wrap {
  padding-top: 0.75rem !important;
}
.site-container .entry-content,
.content-container {
  padding-top: 0.5em !important;
}

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 999;
  background-color: #fff;
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
