/* ============ Neurofood — brand styles ============ */
:root {
  --green-900: #1f5a26;
  --green-700: #2e7d32;
  --green-500: #4caf50;
  --green-300: #8bc34a;
  --green-50: #f2f8ec;
  --yellow-400: #f3cd55;
  --yellow-100: #fdf3d6;
  --orange: #f0912e;
  --red: #d94f36;
  --cream: #fffdf6;
  --ink: #17301a;
  --muted: #4b6350;
  --radius: 20px;
  --shadow: 0 12px 30px rgba(31, 90, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
h1, h2, h3, .brand-name {
  font-family: "Baloo 2", "Nunito", sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--green-700); }

.container { width: min(1120px, 92vw); margin-inline: auto; }
.container.narrow { width: min(860px, 92vw); }
.center { text-align: center; }
.center .btn { margin-top: .5rem; }

/* Icons */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.ic-20 { width: 1.25rem; height: 1.25rem; }
.ic-24 { width: 1.5rem; height: 1.5rem; }
.ic-32 { width: 2rem; height: 2rem; }
.inline-ic { color: var(--orange); margin-inline-start: .15em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-small { padding: .45rem 1rem; font-size: .92rem; }

/* Header */
.site-header {
  position: relative; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(46, 125, 50, .12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.3rem; color: var(--green-900); letter-spacing: .02em; }
.brand-name em { font-style: normal; color: var(--green-500); }
.site-header .container { width: min(1300px, 96vw); }
.site-nav { display: flex; align-items: center; gap: .9rem; flex-wrap: nowrap; }
.site-nav > a { text-decoration: none; font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand, .lang-switch { flex: 0 0 auto; }
.site-nav > a:hover { color: var(--green-700); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--green-900); cursor: pointer; padding: .3rem; }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; }
.lang-switch .ic { color: var(--green-700); }
.lang-select {
  font: inherit; font-weight: 700; font-size: .88rem;
  padding: .32rem .55rem; border-radius: 999px;
  border: 1.5px solid rgba(46,125,50,.35); background: #fff; color: var(--ink); cursor: pointer;
}
.lang-select:focus { outline: 2px solid var(--green-500); outline-offset: 1px; }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--yellow-100), transparent 60%),
    linear-gradient(180deg, var(--green-50), transparent 70%);
  padding: clamp(2.2rem, 5vw, 3.6rem) 0;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-inline: 0; }
.hero-copy { max-width: 44rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
  color: var(--green-700); background: #fff;
  border: 1.5px solid rgba(46, 125, 50, .25);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow.light { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); color: #fff; }
.hl { color: var(--green-700); }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.4rem 0 1.2rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; padding: 0; margin: 0; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges .ic { color: var(--green-500); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--green-50); }

/* Award */
.award-card {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.award-card h2 { color: #fff; }
.award-head { display: flex; gap: 1rem; align-items: flex-start; }
.award-icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow-400); color: var(--green-900); font-size: 2rem;
}
.award-text { color: #eaf4e6; max-width: 70ch; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.stat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: .9rem 1rem; text-align: center; }
.stat-num { display: block; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--yellow-400); }
.stat-label { font-size: .85rem; color: #eaf4e6; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin: 2rem 0 1.5rem; }
.feature { background: #fff; border: 1.5px solid rgba(46,125,50,.15); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--yellow-100); color: var(--green-700); margin-bottom: .8rem;
}
.cta-line { font-weight: 700; color: var(--green-900); display: flex; align-items: center; justify-content: center; gap: .45rem; flex-wrap: wrap; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.split.reverse { grid-template-columns: .8fr 1.2fr; }
.unique { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; border: 1.5px solid rgba(46,125,50,.15); margin-top: 1.2rem; }
.unique h3 { display: flex; align-items: center; gap: .5rem; color: var(--green-900); }
.quote-card {
  background: #fff; border-radius: var(--radius); padding: 2rem; border: 1.5px solid rgba(46,125,50,.15);
  box-shadow: var(--shadow); font-family: "Baloo 2", sans-serif; font-size: 1.35rem; color: var(--green-900);
}
.quote-card > .ic { color: var(--red); margin-bottom: .5rem; }
.quote-sub { font-family: "Nunito", sans-serif; font-size: 1rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; margin: 0; }
.quote-sub .ic { color: var(--red); }

/* Awards — page hero */
.awards-hero {
  background:
    radial-gradient(900px 420px at 85% -20%, var(--yellow-100), transparent 60%),
    linear-gradient(180deg, var(--green-50), transparent 75%);
  padding: clamp(2rem, 5vw, 3.5rem) 0 1rem;
}
.section-tight { padding: 1rem 0 clamp(1.5rem, 3vw, 2.5rem); }

/* Awards — headline numbers */
.result-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.result {
  background: #fff; border: 1.5px solid rgba(46,125,50,.15); border-radius: 16px;
  padding: 1.1rem .9rem; text-align: center; box-shadow: 0 4px 14px rgba(31,90,38,.07);
}
.result-num {
  display: block; font-family: "Baloo 2", sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.1; color: var(--green-700);
}
.result-label { display: block; margin-top: .2rem; font-size: .85rem; font-weight: 700; color: var(--muted); }

/* Awards — featured card */
.awards-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: .35rem; }
.awards-card .award-head p { margin: 0; color: #eaf4e6; }
.award-cta { margin: 1.5rem 0 0; }

/* Awards — track record grid */
.achievements { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.achievement {
  background: #fff; border: 1.5px solid rgba(46,125,50,.15); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: 0 6px 18px rgba(31,90,38,.07);
}
.achievement h3 {
  display: flex; align-items: center; gap: .55rem; font-size: 1.05rem;
  color: var(--green-900); margin: 0 0 .4rem;
}
.achievement h3 .ic { color: var(--green-700); font-size: 1.35rem; }
.achievement p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Awards — partner chips */
.partner-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; padding: 0; margin: 1.4rem 0 0; }
.partner-chips li {
  background: #fff; border: 1.5px dashed rgba(46,125,50,.35); border-radius: 999px;
  padding: .45rem 1rem; font-weight: 700; font-size: .9rem; color: var(--green-900);
}

/* Recipes — page hero */
.recipes-hero {
  background:
    radial-gradient(900px 420px at 15% -20%, var(--yellow-100), transparent 60%),
    linear-gradient(180deg, var(--green-50), transparent 75%);
  padding: clamp(2rem, 5vw, 3.5rem) 0 .5rem;
}

/* Recipes — teaser cards on home */
.recipe-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.teaser {
  background: #fff; border: 1.5px solid rgba(46,125,50,.15); border-radius: var(--radius);
  padding: 1.4rem; text-decoration: none; color: inherit; box-shadow: 0 6px 18px rgba(31,90,38,.07);
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.teaser h3 { color: var(--green-900); margin: .8rem 0 .35rem; }
.teaser p { font-size: .93rem; color: var(--muted); margin-bottom: .9rem; flex: 1; }
.teaser-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--green-700); font-size: .92rem; }
.teaser:hover .teaser-cta { gap: .65rem; }
.teaser-tip { background: linear-gradient(135deg, #fffdf6, var(--yellow-100)); border-color: var(--yellow-400); }

/* Recipes — full cards */
.recipe-title { font-size: 1.35rem; color: var(--green-900); margin: 0 0 .15rem; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.3rem; margin-top: 2rem; }
.recipe {
  background: #fff; border: 1.5px solid rgba(46,125,50,.15); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 6px 18px rgba(31,90,38,.08); display: flex; flex-direction: column;
}
.recipe-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .6rem; }
.recipe-head h3 { margin-bottom: .15rem; color: var(--green-900); }
.recipe-icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); font-size: 1.6rem;
}
.recipe-icon.tip { background: var(--yellow-100); color: var(--orange); }
.recipe-goal { font-size: .88rem; color: var(--muted); font-weight: 700; margin: 0; display: flex; gap: .35rem; align-items: baseline; }
.recipe-goal .ic { color: var(--orange); }
.recipe-benefits { font-size: .95rem; color: var(--muted); display: flex; gap: .45rem; align-items: baseline; }
.recipe-benefits .ic { color: var(--red); }
.recipe h4 { font-family: "Baloo 2", sans-serif; margin: .8rem 0 .3rem; color: var(--green-900); font-size: 1rem; }
.recipe > p:last-of-type, .recipe > ul + p { font-size: .95rem; }
.ingredients { margin: 0; padding-inline-start: 1.15rem; font-size: .95rem; }
.ingredients li { margin-bottom: .2rem; }
.taste-test {
  margin: 1rem 0 0; padding: .8rem 1rem; background: var(--green-50);
  border-inline-start: 4px solid var(--green-300); border-radius: 0 12px 12px 0;
  font-style: italic; font-size: .92rem; color: var(--ink);
}
.taste-test cite { display: flex; align-items: center; gap: .35rem; font-style: normal; font-weight: 700; color: var(--green-700); margin-top: .45rem; font-size: .85rem; }
.recipe-tip { background: linear-gradient(135deg, #fffdf6, var(--yellow-100)); border-color: var(--yellow-400); }
.tip-note { font-size: .92rem; color: var(--muted); display: flex; gap: .4rem; align-items: baseline; margin-top: auto; }
.tip-note .ic { color: var(--orange); }

/* Reviews */
.review-box {
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 2px dashed rgba(46,125,50,.25);
}
.review-summary { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--muted); margin-bottom: .9rem; }
.review-summary strong { color: var(--green-900); font-size: 1.05rem; }
.review-heading { display: flex; align-items: center; gap: .45rem; font-size: 1.02rem; color: var(--green-900); }
.review-heading .ic { color: var(--yellow-400); }
.review-form { display: grid; gap: .8rem; }
.rating-picker { border: 0; padding: 0; margin: 0; }
.rating-picker legend, .review-label { font-weight: 700; font-size: .88rem; color: var(--green-900); display: grid; gap: .3rem; }
.rating-stars { display: flex; gap: .15rem; }
.star-btn { background: none; border: 0; padding: .1rem; cursor: pointer; font-size: 1.55rem; color: #d7d2bf; transition: transform .1s ease; }
.star-btn:hover { transform: scale(1.15); }
.star-btn .ic { width: 1.55rem; height: 1.55rem; }
.star-btn .ic.on, .star.on { color: var(--yellow-400); }
.star-btn .ic.on path, .star.on path { fill: currentColor; }
.review-form input[type=text], .review-form textarea {
  font: inherit; padding: .6rem .8rem; border: 1.5px solid rgba(46,125,50,.3); border-radius: 12px;
  background: #fff; color: var(--ink); resize: vertical;
}
.review-form input[type=text]:focus, .review-form textarea:focus { outline: 2px solid var(--green-500); outline-offset: 1px; }
.review-error { color: var(--red); font-weight: 700; font-size: .88rem; margin: 0; }
.review-note { font-size: .78rem; color: var(--muted); margin: 0; }
.review-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.review-item { background: var(--green-50); border-radius: 12px; padding: .8rem 1rem; }
.review-item-head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.review-item-head strong { color: var(--green-900); }
.review-item-head time { font-size: .78rem; color: var(--muted); margin-inline-start: auto; }
.review-item p { margin: .35rem 0 0; font-size: .93rem; }
.review-stars { display: inline-flex; gap: .05rem; color: #d7d2bf; }
.review-stars .ic { width: 1.05rem; height: 1.05rem; }
.review-stars .ic.on { color: var(--yellow-400); }
.review-stars .ic.on path { fill: currentColor; }
.review-stars.big .ic { width: 1.3rem; height: 1.3rem; }
.review-stars.muted { opacity: .55; }
.review-empty { font-size: .9rem; color: var(--muted); font-style: italic; }
.review-delete { background: none; border: 0; cursor: pointer; color: var(--red); padding: .2rem; font-size: .95rem; }
.review-delete:hover { opacity: .75; }
.site-nav > a[aria-current="page"] { color: var(--green-700); }

/* Contact actions */
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.2rem; }

/* Contact popup (centred overlay) — plain CSS, no <dialog>/top-layer,
   so it also works inside sandboxed iframes and older browsers. */
html.nf-modal-open { overflow: hidden; }
.contact-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1.2rem;
  color: var(--ink);
}
.contact-modal[hidden] { display: none !important; }
.contact-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 48, 26, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.contact-modal-inner {
  position: relative; z-index: 1; text-align: center;
  width: min(430px, 100%); max-height: calc(100vh - 2.4rem); overflow-y: auto;
  background: var(--cream); border: 2px solid rgba(46, 125, 50, .2);
  border-radius: var(--radius); padding: 1.9rem 1.5rem 1.6rem;
  box-shadow: 0 26px 60px rgba(23, 48, 26, .38);
  animation: nf-pop .18s ease-out;
}
@keyframes nf-pop {
  from { transform: scale(.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.contact-modal .eyebrow { margin-bottom: .9rem; }
.contact-modal h2 { margin: 0 0 .3rem; }
.contact-modal .lead { font-size: 1rem; margin-bottom: 1.15rem; }
.contact-modal-close {
  position: absolute; top: .5rem; inset-inline-end: .5rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--muted); transition: background .15s ease, color .15s ease;
}
.contact-modal-close:hover { background: var(--green-50); color: var(--green-900); }
.contact-modal-close .ic { width: 1.05rem; height: 1.05rem; }
.modal-links { display: grid; gap: .7rem; }
.modal-link {
  display: flex; align-items: center; gap: .8rem; text-align: start;
  padding: .75rem .9rem; border-radius: 14px; text-decoration: none;
  background: #fff; border: 1.5px solid rgba(46, 125, 50, .22); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.modal-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green-500); color: var(--ink); }
.modal-link-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--green-50); color: var(--green-700);
}
.modal-link.ig .modal-link-icon { background: var(--yellow-100); color: var(--orange); }
.modal-link-copy { display: grid; line-height: 1.3; min-width: 0; }
.modal-link-copy strong { font-size: .95rem; color: var(--green-900); }
.modal-link-copy span { font-size: .84rem; color: var(--muted); word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  .contact-modal-inner { animation: none; }
}

/* Facts */
.fact-card {
  background: var(--yellow-100); border: 2px dashed var(--yellow-400); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}
.fact-big { font-family: "Baloo 2", sans-serif; font-size: clamp(3.5rem, 9vw, 5.5rem); font-weight: 800; color: var(--red); display: block; line-height: 1; margin-bottom: .5rem; }

/* Goals */
.goals { list-style: none; padding: 0; margin: 1.5rem auto; max-width: 640px; display: grid; gap: .8rem; }
.goals li {
  display: flex; gap: .7rem; align-items: center; background: #fff; font-weight: 700;
  border: 1.5px solid rgba(46,125,50,.15); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: 0 4px 14px rgba(31,90,38,.07);
}
.goals .ic { color: #fff; background: var(--green-500); border-radius: 50%; padding: .25rem; box-sizing: content-box; }

/* Booklet */
.booklet-card {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
  background: linear-gradient(120deg, var(--orange), var(--red));
  color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow);
}
.booklet-card h2 { color: #fff; }
.booklet-card p { color: #fff7ef; }

/* Footer */
.site-footer { background: var(--green-900); color: #dcebda; padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name em { color: var(--yellow-400); }
.site-footer p { display: flex; align-items: center; gap: .45rem; margin: 0; }
.site-footer a { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split, .split.reverse, .booklet-card { grid-template-columns: 1fr; }
  .booklet-art { display: none; }

}

/* the full nav needs room for the language switcher: collapse earlier */
@media (max-width: 1080px) {
  .nav-inner { padding-inline: 2vw; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .4rem;
    background: var(--cream); border-bottom: 1px solid rgba(46,125,50,.15);
    padding: 1rem 4vw 1.4rem; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: .5rem 0; white-space: normal; }
  .site-nav .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============ i18n: RTL + language typography ============ */
[dir="rtl"] .taste-test { border-radius: 12px 0 0 12px; }
[dir="rtl"] .rating-stars { flex-direction: row-reverse; }

/* Arabic: readable UI + display type (font loaded on demand by i18n.js) */
html[lang="ar"] body { font-family: "Noto Kufi Arabic", "Nunito", system-ui, sans-serif; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .eyebrow { letter-spacing: 0; }
html[lang="ar"] .brand-name { font-family: "Noto Kufi Arabic", "Baloo 2", "Nunito", sans-serif; }
