:root {
  --green-dark: #22322a;    /* NourishNow dark green (headers, hero) */
  --green-section: #354d39; /* NourishNow secondary dark green */
  --green-primary: #4c7c57; /* NourishNow primary brand green */
  --green-accent: #2aba4c;  /* NourishNow bright accent green */
  --green-tint: #e8f2ea;    /* light tint of primary green */
  --cream: #f7f7f4;
  --cream-card: #ffffff;
  --text: #1d1e20;
  --text-gray: #56585e;
  --shadow: 0 4px 14px rgba(34, 50, 42, 0.1);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0;
}

img { max-width: 100%; display: block; }

/* ---------- Top nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  border-bottom: 3px solid var(--green-accent);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 20px;
}

.nav-inner img.logo { height: 48px; filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-accent);
  color: var(--green-dark);
  font-weight: 700;
}

.nav-sep {
  color: rgba(255, 255, 255, 0.3);
  align-self: center;
  padding: 0 2px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  background: var(--cream-card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-text {
  padding: 56px 48px;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 18px;
  color: var(--text-gray);
}

.hero-side {
  background: linear-gradient(160deg, var(--green-section), var(--green-dark));
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.hero-side .emoji-row {
  font-size: 2.6rem;
  display: flex;
  gap: 18px;
  margin-bottom: 6px;
}

.hero-side img.logo-big {
  width: 220px;
  margin-top: 10px;
  filter: brightness(0) invert(1);
}

.hero-side .tagline {
  color: var(--green-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Section shells ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
  scroll-margin-top: 90px;
}

.section-banner {
  background: var(--green-primary);
  border-radius: 18px 18px 0 0;
  padding: 22px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.section-banner h2 { color: white; font-size: 1.8rem; }
.section-banner span { color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.95rem; }

.section-body {
  background: var(--cream-card);
  border-radius: 0 0 18px 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ---------- Meal calendar table ---------- */
.calendar-wrap { overflow-x: auto; margin-bottom: 8px; }

table.calendar {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.calendar th {
  background: var(--green-dark);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
}

table.calendar td {
  padding: 12px 16px;
  border-bottom: 1px solid #ececec;
  font-size: 0.92rem;
}

table.calendar tr:nth-child(even) td { background: var(--green-tint); }
table.calendar td:first-child { font-weight: 700; color: var(--green-primary); }

/* ---------- Recipe cards ---------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.recipe-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.recipe-photo {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.recipe-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.meta-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.meta-pills span {
  background: var(--green-tint);
  color: var(--green-section);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.recipe-card h4 {
  color: var(--green-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 12px 0 6px;
  font-weight: 700;
}

.recipe-card ul, .recipe-card ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
}

.recipe-card ul li, .recipe-card ol li { margin-bottom: 3px; }

.nutrition-tip {
  margin-top: auto;
  background: var(--green-tint);
  border-left: 4px solid var(--green-accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  margin-top: 16px;
}

.nutrition-tip strong { color: var(--green-section); }

/* ---------- Snacks ---------- */
.snack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.snack-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}

.snack-card .emoji { font-size: 1.8rem; }
.snack-card span.label { font-weight: 600; font-size: 0.95rem; }

.callout {
  background: var(--green-tint);
  color: var(--green-section);
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
}

.callout.orange { background: var(--green-dark); color: white; }

/* ---------- Storage tips ---------- */
.storage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.storage-card {
  background: white;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.storage-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.storage-card ul { margin: 0; padding-left: 18px; font-size: 0.92rem; }
.storage-card ul li { margin-bottom: 4px; }

/* ---------- Balanced plate ---------- */
.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.plate-card {
  background: white;
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.plate-fraction {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.plate-fraction.veg { background: var(--green-primary); color: white; }
.plate-fraction.protein { background: var(--green-accent); color: var(--green-dark); }
.plate-fraction.grain { background: var(--green-dark); color: white; }

.plate-card .emoji { font-size: 2.4rem; margin: 6px 0; }
.plate-card h3 { color: var(--green-primary); margin-bottom: 8px; }
.plate-card p { font-size: 0.88rem; color: var(--text-gray); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}

.footer-heading {
  color: white;
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 18px;
}

.footer-subhead {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.footer-contact p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.footer-contact p.group-gap {
  margin-top: 18px;
}

.footer-contact a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.footer-contact a:hover,
.footer-legal a:hover {
  color: var(--green-accent);
}

.footer-legal {
  margin-top: 18px;
}

.footer-legal p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.footer-partners {
  display: flex;
  flex-direction: column;
}

.footer-partners .footer-heading {
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logos img { display: block; }

.footer-logos .somos-logo { height: 42px; width: auto; }
.footer-logos .rdn-badge { height: 92px; width: auto; }
.footer-logos .nn-logo {
  height: 58px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-copyright {
  margin-top: auto;
  padding-top: 24px;
  text-align: right;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-partners { align-items: center; text-align: center; }
  .footer-copyright { text-align: center; margin-top: 24px; }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { justify-content: flex-start; }
  .hero-text { padding: 36px 28px; }
}
