
:root {
  --nl-green: #395a3f;
  --nl-green-2: #55745a;
  --nl-cream: #f7f5ee;
  --nl-ink: #172019;
  --nl-muted: #657067;
  --nl-line: #dfe5df;
  --nl-white: #ffffff;
}

.nl-home, .nl-policy, .nl-legal-footer { font-family: inherit; color: var(--nl-ink); }
.nl-home *, .nl-policy *, .nl-legal-footer * { box-sizing: border-box; }

.nl-hero {
  margin: 0 auto 36px;
  max-width: 1440px;
  min-height: 520px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 82% 28%, rgba(93,126,97,.20), transparent 27%),
    linear-gradient(135deg, #f8f7f1 0%, #edf2e9 100%);
  overflow: hidden;
  position: relative;
}
.nl-hero:after {
  content: "N";
  position: absolute;
  right: 7%;
  bottom: -26%;
  font-size: 430px;
  line-height: 1;
  font-weight: 800;
  color: rgba(57,90,63,.055);
  pointer-events: none;
}
.nl-hero__inner { padding: 72px clamp(28px, 7vw, 96px); max-width: 820px; position: relative; z-index: 1; }
.nl-eyebrow { letter-spacing: .18em; font-weight: 700; font-size: 12px; color: var(--nl-green-2); margin: 0 0 14px; }
.nl-hero h1 { font-size: clamp(46px, 6.8vw, 84px); line-height: .98; letter-spacing: -.04em; margin: 0 0 24px; color: var(--nl-ink); }
.nl-hero__copy { max-width: 650px; font-size: 19px; line-height: 1.65; color: #4f5a51; margin: 0 0 30px; }
.nl-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.nl-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border: 1px solid transparent !important;
  transition: transform .18s ease, opacity .18s ease;
}
.nl-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-1px); opacity: .93; }
.nl-btn--primary, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--nl-green) !important; color: #fff !important; }
.nl-btn--secondary { background: transparent; color: var(--nl-green); border-color: var(--nl-green) !important; }
.nl-btn--light { background: #fff; color: var(--nl-green); }

.nl-trust {
  max-width: 1240px;
  margin: 0 auto 72px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--nl-line);
  border-bottom: 1px solid var(--nl-line);
}
.nl-trust > div { min-width: 0; padding: 10px 22px; text-align: center; border-right: 1px solid var(--nl-line); }
.nl-trust > div:last-child { border-right: 0; }
.nl-trust strong { display: block; font-size: 20px; color: var(--nl-green); }
.nl-trust span { display: block; margin-top: 4px; color: var(--nl-muted); font-size: 13px; overflow-wrap: anywhere; }

.nl-section { max-width: 1240px; margin: 0 auto; padding: 0 18px 72px; }
.nl-section__head { max-width: 680px; margin-bottom: 30px; }
.nl-section__head h2, .nl-cta h2 { font-size: clamp(34px,4vw,54px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 14px; }
.nl-section__head p:last-child { color: var(--nl-muted); font-size: 17px; }
.nl-center { text-align: center; margin-top: 28px; }

.nl-values {
  max-width: 1240px;
  margin: 0 auto 72px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.nl-values article { border: 1px solid var(--nl-line); border-radius: 20px; padding: 30px; min-height: 220px; background: #fff; }
.nl-values article span { display: inline-block; font-weight: 800; color: #9aa99c; margin-bottom: 38px; }
.nl-values h3 { margin: 0 0 10px; font-size: 22px; }
.nl-values p { color: var(--nl-muted); line-height: 1.6; margin: 0; }

.nl-cta {
  max-width: 1240px;
  margin: 0 auto 70px;
  padding: 48px clamp(28px,5vw,64px);
  border-radius: 26px;
  background: var(--nl-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.nl-cta .nl-eyebrow { color: #cdd9ce; }
.nl-cta h2 { color: #fff; margin: 0; max-width: 740px; }

/* WooCommerce grids: fixed rows, uniform image ratio and no broken first-column spacing. */
.woocommerce ul.products,
.woocommerce-page ul.products,
.nl-product-grid-wrap ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 22px !important;
  clear: both !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  float: none !important;
  clear: none !important;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  border: 1px solid var(--nl-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: #f3f4f1;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px !important;
  line-height: 1.35 !important;
  min-height: 44px;
  padding: 0 16px !important;
  margin: 0 0 8px !important;
  color: var(--nl-ink);
}
.woocommerce ul.products li.product .price {
  color: var(--nl-green) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 0 16px;
  margin: auto 0 12px !important;
}
.woocommerce ul.products li.product > a.button,
.woocommerce-page ul.products li.product > a.button {
  margin: 0 16px !important;
  width: calc(100% - 32px);
}

/* Single product layout and images */
.woocommerce div.product div.images img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f3f4f1;
  border-radius: 18px;
}
.woocommerce div.product .product_title { letter-spacing: -.02em; line-height: 1.08; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--nl-green) !important; font-weight: 800; }
.woocommerce div.product form.cart .variations select { min-height: 44px; border: 1px solid var(--nl-line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--nl-muted); line-height: 1.7; }

/* Policy/content pages */
.nl-policy { max-width: 920px; margin: 20px auto 70px; padding: 0 22px; }
.nl-policy h1 { font-size: clamp(38px,5vw,58px); letter-spacing: -.04em; margin: 0 0 12px; }
.nl-policy h2 { margin: 34px 0 10px; font-size: 24px; }
.nl-policy p, .nl-policy li { color: #49534b; font-size: 16px; line-height: 1.75; }
.nl-policy a { color: var(--nl-green); }
.nl-business-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.nl-business-table th, .nl-business-table td { padding: 13px 14px; border-bottom: 1px solid var(--nl-line); vertical-align: top; text-align: left; }
.nl-business-table th { width: 32%; color: var(--nl-green); }

/* Guaranteed compact legal footer */
.nl-legal-footer { background: #19221b; color: #fff; margin-top: 40px; }
.nl-legal-footer__inner { max-width: 1240px; margin: 0 auto; padding: 38px 22px 26px; }
.nl-footer-brand { display: grid; gap: 5px; margin-bottom: 24px; }
.nl-footer-brand strong { font-size: 24px; }
.nl-footer-brand span { color: #cad2cb; }
.nl-footer-brand small { color: #98a39a; max-width: 760px; }
.nl-legal-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.nl-legal-footer a { color: #e7ece7; text-decoration: none; }
.nl-footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #98a39a; font-size: 13px; padding-top: 18px; }

/* Hide common theme metadata/noise on store cards */
.woocommerce ul.products li.product .star-rating { margin-left: 16px !important; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; }

@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .nl-product-grid-wrap ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .nl-trust { grid-template-columns: repeat(2, 1fr); }
  .nl-trust > div:nth-child(2) { border-right: 0; }
  .nl-values { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nl-hero { min-height: auto; border-radius: 18px; }
  .nl-hero__inner { padding: 52px 24px; }
  .nl-hero h1 { font-size: 48px; }
  .nl-hero:after { font-size: 260px; right: -7%; }
  .nl-trust { grid-template-columns: 1fr 1fr; margin-bottom: 52px; }
  .nl-trust > div { padding: 12px 10px; }
  .nl-cta { flex-direction: column; align-items: flex-start; }
  .nl-business-table, .nl-business-table tbody, .nl-business-table tr, .nl-business-table th, .nl-business-table td { display: block; width: 100%; }
  .nl-business-table th { border-bottom: 0; padding-bottom: 2px; }
  .nl-business-table td { padding-top: 2px; }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .nl-product-grid-wrap ul.products { grid-template-columns: 1fr !important; gap: 20px !important; }
}


/* v1.1: compatible full-width layout within Twenty Twenty-Five and other block themes. */
body.nourishleaf-front .nl-home {
  width: min(1240px, calc(100vw - 52px)) !important;
  max-width: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
}
body.nourishleaf-front .wp-block-post-content:has(.nl-home),
body.nourishleaf-front .entry-content:has(.nl-home) {
  overflow: visible !important;
}
body.nourishleaf-front .nl-home > section { box-sizing: border-box; width: 100%; max-width: 100%; }
body.nourishleaf-front .nl-hero { min-height: 460px; margin: 18px auto 48px; }
body.nourishleaf-front .nl-hero__inner { max-width: 830px; }
body.nourishleaf-front .nl-trust { margin-bottom: 68px; }
body.nourishleaf-front .nl-section { padding: 0 0 66px; }
body.nourishleaf-front .nl-section__head { max-width: 860px; }
body.nourishleaf-front .nl-values {
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 68px;
}
body.nourishleaf-front .nl-values article {
  min-width: 0;
  min-height: 205px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body.nourishleaf-front .nl-values article span { margin-bottom: 18px; font-size: 12px; letter-spacing: .06em; }
body.nourishleaf-front .nl-values h3 { font-size: 21px; line-height: 1.25; }
body.nourishleaf-front .nl-values p { font-size: 15px; line-height: 1.55; overflow-wrap: break-word; }
body.nourishleaf-front .nl-cta { margin-bottom: 64px; }
/* Remove block-theme footer only: the plugin's policy/business footer remains visible. */
body.nourishleaf-active .wp-site-blocks > footer.wp-block-template-part,
body.nourishleaf-active footer.wp-block-template-part,
body.nourishleaf-active .wp-site-blocks > .wp-block-template-part:has(footer) {
  display: none !important;
}
body.nourishleaf-active .nl-legal-footer { margin-top: 0; width: 100%; }
body.nourishleaf-active .nl-legal-footer__inner { max-width: 1240px; }
body.nourishleaf-active .nl-legal-footer nav { font-size: 14px; gap: 12px 22px; }
body.nourishleaf-active .nl-footer-brand small { overflow-wrap: anywhere; }
/* Keep product listing grid stable despite inherited theme layout styles. */
body.nourishleaf-active .nl-product-grid-wrap,
body.nourishleaf-active .nl-product-grid-wrap .woocommerce { width: 100%; max-width: 100%; }
body.nourishleaf-active .woocommerce ul.products li.product .woocommerce-loop-product__title { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  body.nourishleaf-front .nl-values { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.nourishleaf-front .nl-values article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body.nourishleaf-front .nl-home { width: calc(100vw - 28px) !important; }
  body.nourishleaf-front .nl-hero { min-height: 0; margin-top: 12px; }
  body.nourishleaf-front .nl-section { padding-bottom: 45px; }
  body.nourishleaf-front .nl-values { grid-template-columns: 1fr; gap: 14px; margin-bottom: 45px; }
  body.nourishleaf-front .nl-values article:last-child { grid-column: auto; }
  body.nourishleaf-front .nl-values article { min-height: 0; padding: 22px; }
  body.nourishleaf-front .nl-values article span { margin-bottom: 12px; }
  body.nourishleaf-front .nl-cta { margin-bottom: 40px; }
  body.nourishleaf-active .nl-legal-footer__inner { padding: 32px 18px 24px; }
}
