/*
Theme Name: NutriMakh Foods
Theme URI: https://nutrimakh.com
Author: NutriMakh Foods
Description: Custom theme for NutriMakh Foods premium makhana. Built on the Bold Blue & Yellow design system. Includes Home, About us, Contact us, Privacy policy and Terms and conditions templates.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: nutrimakh
*/

/* Design tokens (Bold Blue & Yellow) */
:root {
  --nm-blue: #2561f5;
  --nm-yellow: #f6e126;
  --nm-ink: #000000;
  --nm-paper: #ffffff;
  --nm-grey: #f5f5f5;
  --nm-muted: #333333;
  --nm-line: rgba(0, 0, 0, 0.12);
  --nm-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --nm-text: Montserrat, system-ui, sans-serif;
  --nm-space-2: 8px;
  --nm-space-4: 16px;
  --nm-space-8: 32px;
  --nm-space-16: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--nm-paper);
  color: var(--nm-ink);
  font-family: var(--nm-text);
  font-size: 16px;
  line-height: 26px;
}

a { color: var(--nm-ink); }
img { max-width: 100%; height: auto; display: block; }

.nm-wrap { max-width: 1440px; margin: 0 auto; }
.nm-section { padding: 96px var(--nm-space-16); }
.nm-section--grey { background: var(--nm-grey); }
.nm-section--yellow { background: var(--nm-yellow); }
.nm-section--blue { background: var(--nm-blue); color: var(--nm-paper); }
.nm-section--ink { background: var(--nm-ink); color: var(--nm-paper); }
.nm-row { display: flex; flex-wrap: wrap; gap: var(--nm-space-8); }
.nm-col { flex: 1 1 300px; min-width: 0; }
.nm-stack { display: flex; flex-direction: column; gap: var(--nm-space-4); }
.nm-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--nm-blue); margin: 0; }
.nm-h1 { margin: 0; font-family: var(--nm-display); font-weight: 400; font-size: clamp(64px, 8vw, 112px); line-height: 0.92; text-transform: uppercase; }
.nm-h2 { margin: 0; font-family: var(--nm-display); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; text-transform: uppercase; }
.nm-h3 { margin: 0; font-family: var(--nm-display); font-weight: 400; font-size: 36px; line-height: 40px; text-transform: uppercase; }
.nm-lead { font-size: 18px; line-height: 28px; margin: 0; }
.nm-body { font-size: 16px; line-height: 26px; margin: 0; }
.nm-small { font-size: 15px; line-height: 23px; margin: 0; color: var(--nm-muted); }

/* Buttons */
.nm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 16px 26px; font-family: var(--nm-text); font-weight: 700; letter-spacing: 0.5px; text-decoration: none; border: 1px solid var(--nm-ink); background: transparent; color: var(--nm-ink); cursor: pointer; }
.nm-btn--blue { background: var(--nm-blue); border-color: var(--nm-blue); color: var(--nm-paper); }
.nm-btn--yellow { background: var(--nm-yellow); border-color: var(--nm-yellow); color: var(--nm-ink); }
.nm-btn--ink { background: var(--nm-ink); border-color: var(--nm-ink); color: var(--nm-yellow); }
.nm-btn--small { min-height: 44px; padding: 12px 18px; }

/* Utility bar + header */
.nm-topbar { background: var(--nm-ink); color: var(--nm-paper); padding: 10px var(--nm-space-16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; letter-spacing: 0.5px; }
.nm-topbar span:last-child { color: var(--nm-yellow); }
.nm-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px var(--nm-space-16); border-bottom: 1px solid var(--nm-line); }
.nm-logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--nm-ink); }
.nm-logo__name { font-family: var(--nm-display); font-size: 44px; line-height: 44px; letter-spacing: 1px; color: var(--nm-blue); }
.nm-logo__sub { font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.nm-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 600; }
.nm-nav a, .nm-nav li a { text-decoration: none; }
.nm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nm-header__actions { display: flex; gap: 12px; align-items: center; }
.nm-cart { background: var(--nm-yellow); padding: 12px 18px; font-weight: 700; font-size: 15px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Hero */
.nm-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: var(--nm-space-16); }
.nm-hero__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: var(--nm-space-8); }
.nm-hero__media { flex: 1 1 480px; background: var(--nm-yellow); padding: var(--nm-space-8); display: flex; flex-direction: column; gap: var(--nm-space-4); }
.nm-hero__caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; font-weight: 600; }
.nm-tag { background: var(--nm-ink); color: var(--nm-yellow); padding: 8px 14px; font-weight: 700; }
.nm-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Benefits */
.nm-benefits { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px 32px; padding: 32px var(--nm-space-16); border-top: 1px solid var(--nm-line); border-bottom: 1px solid var(--nm-line); font-size: 15px; font-weight: 600; }

/* Product cards */
.nm-products { display: flex; flex-wrap: wrap; gap: 32px; }
.nm-card { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.nm-card img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 30%; background: var(--nm-grey); }
.nm-card__body { display: flex; flex-direction: column; gap: 6px; }
.nm-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nm-price { font-weight: 700; font-size: 18px; }

/* Pack sizes */
.nm-range { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.nm-range__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: var(--nm-space-4); }
.nm-range__img { flex: 1 1 480px; }
.nm-range__img img { border: 0; }

/* Farms */
.nm-steps { display: flex; flex-direction: column; border-top: 1px solid var(--nm-ink); }
.nm-step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--nm-line); }
.nm-step__num { font-weight: 700; color: var(--nm-blue); min-width: 64px; }

/* Recipes */
.nm-recipes { display: flex; flex-wrap: wrap; gap: 32px; }
.nm-recipe { flex: 1 1 300px; background: var(--nm-paper); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.nm-recipe__link { margin-top: auto; font-weight: 700; }

/* Forms */
.nm-field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 240px; }
.nm-field label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.nm-input, .nm-select, .nm-textarea { min-height: 52px; padding: 14px 16px; border: 1px solid var(--nm-ink); background: var(--nm-paper); color: var(--nm-ink); font-family: var(--nm-text); font-size: 16px; width: 100%; }
.nm-textarea { min-height: 150px; line-height: 24px; resize: vertical; }
.nm-notice { padding: 16px 20px; border: 1px solid var(--nm-ink); font-weight: 600; }

/* Contact details */
.nm-details { flex: 1 1 320px; display: flex; flex-direction: column; border-top: 1px solid var(--nm-ink); }
.nm-detail { padding: 24px 0; border-bottom: 1px solid var(--nm-line); display: flex; flex-direction: column; gap: 6px; }
.nm-detail strong { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--nm-blue); }

/* Stats */
.nm-stats { flex: 1 1 420px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--nm-ink); }
.nm-stat { padding: 24px 0; border-bottom: 1px solid var(--nm-line); }
.nm-stat strong { display: block; font-family: var(--nm-display); font-weight: 400; font-size: 56px; line-height: 56px; color: var(--nm-blue); }
.nm-stat span { font-size: 14px; color: var(--nm-muted); }

/* Legal pages */
.nm-legal { display: flex; flex-wrap: wrap; gap: 64px; padding: 32px var(--nm-space-16) 96px; align-items: flex-start; }
.nm-legal__nav { flex: 0 1 240px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; border-left: 3px solid var(--nm-yellow); padding-left: 16px; position: sticky; top: 24px; }
.nm-legal__nav a { text-decoration: none; }
.nm-legal__body { flex: 1 1 560px; max-width: 760px; display: flex; flex-direction: column; gap: 32px; font-size: 16px; line-height: 26px; }
.nm-legal__body h2 { margin: 0; font-family: var(--nm-display); font-weight: 400; font-size: 40px; line-height: 44px; text-transform: uppercase; }
.nm-legal__body section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }

/* Footer */
.nm-footer { background: var(--nm-ink); color: var(--nm-paper); padding: var(--nm-space-16); }
.nm-footer__grid { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.nm-footer__brand { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; }
.nm-footer__brand span { font-family: var(--nm-display); font-size: 52px; line-height: 52px; color: var(--nm-yellow); }
.nm-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.nm-footer__col strong { font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--nm-yellow); }
.nm-footer a { color: var(--nm-paper); text-decoration: none; }
.nm-footer__copy { margin: 48px 0 0; font-size: 14px; }

/* Shop dropdown */
.nm-nav ul ul { display: none; position: absolute; background: var(--nm-paper); border: 1px solid var(--nm-line); padding: 12px 0; min-width: 200px; flex-direction: column; gap: 0; z-index: 20; margin-top: 12px; }
.nm-nav ul li { position: relative; }
.nm-nav ul ul li a { display: block; padding: 10px 18px; white-space: nowrap; }
.nm-nav ul ul li a:hover { background: var(--nm-yellow); }
.nm-nav ul li:hover > ul, .nm-nav ul li:focus-within > ul { display: flex; }
.nm-nav ul ul ul { display: none; }
.nm-nav > ul > li > a { padding: 6px 0; }
.nm-nav a:hover { color: var(--nm-blue); }

/* Content pages */
.nm-page-head { padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.nm-prose { padding-top: 16px; max-width: 880px; font-size: 17px; line-height: 28px; }
.nm-prose h2 { margin: 48px 0 12px; font-family: var(--nm-display); font-weight: 400; font-size: 40px; line-height: 44px; text-transform: uppercase; }
.nm-prose h3 { margin: 24px 0 8px; font-family: var(--nm-display); font-weight: 400; font-size: 32px; line-height: 36px; text-transform: uppercase; }
.nm-prose p { margin: 0 0 16px; }
.nm-prose ul, .nm-prose ol { margin: 0 0 16px; padding-left: 22px; }
.nm-prose li { margin-bottom: 8px; }
.nm-prose a { color: var(--nm-blue); font-weight: 600; }
.nm-prose img { margin-bottom: 24px; }
.nm-photo { width: 100%; height: auto; margin: 16px 0 32px; }
.nm-grid { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0 40px; }
.nm-tile { flex: 1 1 260px; border: 1px solid var(--nm-line); padding: 0 0 24px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--nm-ink); }
.nm-tile img { width: 100%; height: 280px; object-fit: cover; object-position: 50% 30%; background: var(--nm-grey); margin: 0 0 8px; }
.nm-tile h3 { margin: 0; padding: 0 24px; font-family: var(--nm-display); font-weight: 400; font-size: 36px; line-height: 40px; text-transform: uppercase; }
.nm-tile p { margin: 0; padding: 0 24px; font-size: 15px; line-height: 23px; color: var(--nm-muted); }
.nm-tile__meta { padding: 0 24px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--nm-blue); }
.nm-tile__more { margin-top: auto; padding: 0 24px; font-weight: 700; }
.nm-tile--link { background: var(--nm-grey); border: 0; padding-top: 32px; padding-bottom: 32px; }
.nm-tile--link h3 { padding: 0; }
.nm-tile--link p, .nm-tile--link .nm-tile__meta, .nm-tile--link .nm-tile__more { padding: 0; }
.nm-table { width: 100%; border-collapse: collapse; margin: 24px 0 40px; font-size: 16px; }
.nm-table th, .nm-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--nm-line); vertical-align: top; }
.nm-table th { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid var(--nm-ink); }
.nm-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0 8px; padding: 16px 0; border-top: 1px solid var(--nm-line); border-bottom: 1px solid var(--nm-line); font-size: 15px; }
.nm-note { background: var(--nm-yellow); padding: 16px 20px; font-weight: 600; }

.nm-logo__img { height: 72px; width: auto; max-width: 260px; }
.nm-footer__logo { display: inline-block; background: #ffffff; padding: 12px 16px; }
.nm-footer__logo img { height: 64px; width: auto; display: block; }
.nm-detail a { font-size: 16px; font-weight: 600; text-decoration: none; word-break: break-word; }
.nm-detail a:hover { color: var(--nm-blue); }
.nm-footer__address { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.2); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 22px; }
.nm-footer__address p { margin: 0; }
.nm-footer a[href^="https://wa.me"] { color: var(--nm-yellow); }

/* Mobile */
@media (max-width: 720px) {
  .nm-section { padding: 64px 16px; }
  .nm-hero, .nm-topbar, .nm-header, .nm-footer, .nm-benefits { padding-left: 16px; padding-right: 16px; }
  .nm-card img { height: 300px; }
  .nm-stats { grid-template-columns: 1fr; }
  .nm-legal { padding: 24px 16px 64px; gap: 32px; }
  .nm-legal__nav { position: static; }
}
