@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Oswald:wght@500;600;700&display=swap");

:root {
  --nbi-blue: #1c5098;
  --nbi-blue-bright: #00649c;
  --nbi-blue-dark: #12386c;
  --nbi-red: #cb1518;
  --nbi-yellow: #ffd500;
  --nbi-ink: #15191f;
  --nbi-muted: #5d6773;
  --nbi-line: #dce3ea;
  --nbi-soft: #f4f7fa;
  --nbi-white: #ffffff;
  --nbi-radius: 18px;
  --nbi-shadow: 0 14px 40px rgba(18, 56, 108, 0.11);
  --nbi-shell: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--nbi-ink);
  background: var(--nbi-white);
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { border-radius: 0; }
button { cursor: pointer; }

.nbi-shell {
  width: min(100% - 36px, var(--nbi-shell));
  margin-inline: auto;
}

.nbi-skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--nbi-white);
  background: var(--nbi-blue-dark);
  transform: translateY(-150%);
}

.nbi-skip-link:focus { transform: translateY(0); }

.nbi-contact-bar {
  color: var(--nbi-white);
  background: var(--nbi-blue);
  font-size: 12px;
  font-weight: 700;
}

.nbi-contact-bar__inner {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-block: 5px;
}

.nbi-contact-bar a { text-decoration: none; }

.nbi-main-nav {
  position: relative;
  z-index: 10;
  background: var(--nbi-white);
  box-shadow: 0 3px 15px rgba(21, 25, 31, 0.06);
}

.nbi-main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}

.nbi-brand img { width: 150px; height: auto; }

.nbi-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--nbi-blue);
  border-radius: 999px;
  color: var(--nbi-blue);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.nbi-hero {
  position: relative;
  overflow: hidden;
  color: var(--nbi-white);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.14) 0 9%, transparent 9.5%),
    linear-gradient(145deg, var(--nbi-blue-bright), var(--nbi-blue) 70%);
}

.nbi-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -85px -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--nbi-yellow);
}

.nbi-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--nbi-red) 0 25%, var(--nbi-white) 25% 50%, var(--nbi-blue-bright) 50% 75%, var(--nbi-yellow) 75% 100%);
}

.nbi-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
  padding-block: 60px 70px;
}

.nbi-hero__copy { max-width: 680px; }

.nbi-eyebrow {
  margin: 0 0 10px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nbi-eyebrow--red { color: var(--nbi-red); }

.nbi-hero h1,
.nbi-section-heading h2,
.nbi-legend h2,
.nbi-empty-state h3 {
  margin: 0;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: uppercase;
}

.nbi-hero h1 { font-size: clamp(42px, 13vw, 72px); }

.nbi-hero__copy > p:not(.nbi-eyebrow) {
  max-width: 560px;
  margin: 22px 0 28px;
  font-size: 18px;
  line-height: 1.55;
}

.nbi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 26px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.nbi-button:hover { transform: translateY(-2px); }
.nbi-button--yellow { color: var(--nbi-yellow); background: transparent; }
.nbi-button--yellow:hover { color: var(--nbi-blue-dark); background: var(--nbi-yellow); }
.nbi-button--blue { color: var(--nbi-white); background: var(--nbi-blue); }

.nbi-hero__mark {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(18, 56, 108, 0.48);
  backdrop-filter: blur(8px);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
}

.nbi-hero__mark-number {
  color: var(--nbi-yellow);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.nbi-note { background: var(--nbi-soft); }

.nbi-note__inner {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding-block: 22px;
}

.nbi-note__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--nbi-white);
  background: var(--nbi-blue);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
}

.nbi-note p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; }

.nbi-finder { padding-block: 64px 78px; }

.nbi-section-heading { max-width: 700px; margin-bottom: 30px; }
.nbi-section-heading h2, .nbi-legend h2 { font-size: clamp(31px, 8vw, 48px); }
.nbi-section-heading > p:last-child { margin: 15px 0 0; color: var(--nbi-muted); }

.nbi-filter {
  display: grid;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--nbi-line);
  border-radius: var(--nbi-radius);
  background: var(--nbi-white);
  box-shadow: var(--nbi-shadow);
}

.nbi-filter > label,
.nbi-event-filter legend {
  padding: 0;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nbi-search-field { position: relative; margin-top: -15px; }
.nbi-search-field svg {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--nbi-blue);
  transform: translateY(-50%);
  pointer-events: none;
}

.nbi-search-field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 50px 12px 50px;
  border: 2px solid var(--nbi-line);
  border-radius: 12px;
  color: var(--nbi-ink);
  background: var(--nbi-soft);
  outline: 0;
}

.nbi-search-field input:focus {
  border-color: var(--nbi-blue);
  background: var(--nbi-white);
  box-shadow: 0 0 0 4px rgba(28, 80, 152, 0.12);
}

.nbi-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--nbi-muted);
  background: transparent;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
}

.nbi-event-filter { min-width: 0; margin: 0; padding: 0; border: 0; }

.nbi-filter-pills {
  display: flex;
  overflow-x: auto;
  gap: 9px;
  margin-inline: -4px;
  padding: 10px 4px 4px;
  scrollbar-width: thin;
}

.nbi-filter-pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid var(--nbi-line);
  border-radius: 999px;
  color: var(--nbi-blue-dark);
  background: var(--nbi-white);
  font-weight: 700;
}

.nbi-filter-pill[aria-pressed="true"] {
  border-color: var(--nbi-blue);
  color: var(--nbi-white);
  background: var(--nbi-blue);
}

.nbi-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 2px 16px;
}

.nbi-results-bar p { margin: 0; color: var(--nbi-muted); font-size: 14px; font-weight: 700; }

.nbi-text-button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--nbi-blue);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.nbi-product-grid { display: grid; gap: 14px; }

.nbi-product-card {
  overflow: clip;
  border: 1px solid var(--nbi-line);
  border-radius: 16px;
  background: var(--nbi-white);
  box-shadow: 0 7px 24px rgba(18, 56, 108, 0.07);
}

.nbi-product-card[open] { border-color: rgba(28, 80, 152, 0.45); }

.nbi-product-card summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 18px;
  list-style: none;
  cursor: pointer;
}

.nbi-product-card summary::-webkit-details-marker { display: none; }

.nbi-product-title {
  display: block;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.nbi-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-top: 5px;
  color: var(--nbi-muted);
  font-size: 13px;
  line-height: 1.35;
}

.nbi-product-status {
  color: var(--nbi-red);
  font-weight: 700;
}

.nbi-card-action {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nbi-allergen-count {
  display: none;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--nbi-red);
  background: #fff1f1;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.nbi-chevron {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--nbi-blue);
  background: var(--nbi-soft);
  font-size: 24px;
  line-height: 1;
  transition: transform 180ms ease;
}

.nbi-product-card[open] .nbi-chevron { transform: rotate(45deg); }

.nbi-product-card__body {
  display: grid;
  gap: 22px;
  padding: 0 18px 22px;
  border-top: 1px solid var(--nbi-line);
}

.nbi-product-group { padding-top: 18px; }

.nbi-product-group h3 {
  margin: 0 0 10px;
  color: var(--nbi-blue-dark);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

.nbi-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.nbi-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.nbi-tag--allergen { color: #9c1719; background: #ffe9e9; }
.nbi-tag--additive { color: var(--nbi-blue-dark); background: #e9f1fb; }
.nbi-tag--empty { color: var(--nbi-muted); background: var(--nbi-soft); font-weight: 400; }
.nbi-tag--pending { color: #6b5300; background: #fff4bd; }

.nbi-source-line {
  margin: -6px 0 0;
  color: var(--nbi-muted);
  font-size: 12px;
}

.nbi-empty-state {
  padding: 44px 24px;
  border: 1px dashed var(--nbi-line);
  border-radius: var(--nbi-radius);
  text-align: center;
  background: var(--nbi-soft);
}

.nbi-empty-state h3 { font-size: 25px; }
.nbi-empty-state p { margin: 10px auto 22px; color: var(--nbi-muted); }

.nbi-noscript { padding: 18px; color: #6b5300; background: #fff4bd; }

.nbi-legend {
  color: var(--nbi-white);
  background: var(--nbi-blue);
}

.nbi-legend__inner { display: grid; gap: 34px; padding-block: 62px; }
.nbi-legend h2 { max-width: 520px; }
.nbi-legend__items { display: grid; gap: 20px; }
.nbi-legend__item { padding: 20px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 16px; }
.nbi-legend__item p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.5; }

.nbi-footer { color: var(--nbi-blue-dark); background: var(--nbi-white); }
.nbi-stripe {
  height: 12px;
  background: linear-gradient(90deg, var(--nbi-red) 0 25%, var(--nbi-white) 25% 50%, var(--nbi-blue-bright) 50% 75%, var(--nbi-yellow) 75% 100%);
}
.nbi-footer__inner { display: grid; gap: 24px; padding-block: 36px; }
.nbi-footer img { width: 190px; height: auto; }
.nbi-footer p { margin: 4px 0; font-size: 14px; }
.nbi-footer nav { display: flex; gap: 18px; font-size: 14px; font-weight: 700; }

:focus-visible { outline: 3px solid var(--nbi-yellow); outline-offset: 3px; }

@media (min-width: 560px) {
  .nbi-allergen-count { display: inline-flex; }
  .nbi-product-card__body { grid-template-columns: 1fr 1fr; }
  .nbi-source-line { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .nbi-shell { width: min(100% - 64px, var(--nbi-shell)); }
  .nbi-contact-bar__inner { justify-content: flex-end; }
  .nbi-main-nav__inner { min-height: 98px; }
  .nbi-brand img { width: 210px; }
  .nbi-home-link { padding-inline: 22px; font-size: 14px; }
  .nbi-hero__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding-block: 90px 105px; }
  .nbi-hero__mark { margin-bottom: 4px; }
  .nbi-note__inner { grid-template-columns: 40px 1fr; align-items: center; padding-block: 25px; }
  .nbi-note__icon { width: 40px; height: 40px; }
  .nbi-note p { font-size: 15px; }
  .nbi-finder { padding-block: 90px 110px; }
  .nbi-filter { grid-template-columns: minmax(300px, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 26px; }
  .nbi-filter > label { grid-column: 1; }
  .nbi-search-field { grid-column: 1; }
  .nbi-event-filter { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .nbi-filter-pills { flex-wrap: wrap; overflow: visible; }
  .nbi-product-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .nbi-product-card__body { grid-template-columns: 1fr; }
  .nbi-source-line { grid-column: auto; }
  .nbi-legend__inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; padding-block: 80px; }
  .nbi-legend__items { grid-template-columns: 1fr 1fr; }
  .nbi-footer__inner { grid-template-columns: 220px 1fr auto; align-items: center; }
}

@media (min-width: 1080px) {
  .nbi-product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  @page { margin: 14mm; }
  body { color: #000; font-size: 10pt; }
  .nbi-contact-bar, .nbi-main-nav, .nbi-hero__mark, .nbi-button, .nbi-filter, .nbi-results-bar, .nbi-legend, .nbi-footer, .nbi-note__icon { display: none !important; }
  .nbi-hero { color: #000; background: none; }
  .nbi-hero::before, .nbi-hero::after { display: none; }
  .nbi-hero__inner { display: block; padding: 0 0 8mm; }
  .nbi-hero h1 { font-size: 28pt; }
  .nbi-hero__copy > p:not(.nbi-eyebrow) { margin-block: 3mm; }
  .nbi-note { border: 1px solid #999; background: none; }
  .nbi-note__inner { display: block; padding: 4mm; }
  .nbi-finder { padding-block: 8mm 0; }
  .nbi-product-grid { grid-template-columns: 1fr 1fr; gap: 4mm; }
  .nbi-product-card { break-inside: avoid; box-shadow: none; }
  .nbi-product-card__body { display: grid !important; }
  .nbi-chevron { display: none; }
}
