/* Nutrition Ink, Inc. — site styles
   Palette measured from the brand lockup. Text colors are chosen for WCAG 2.1 AA contrast on their backgrounds.
   purple #602060 (11.2:1 on white) · dark gold #7a5f26 (6.0:1) · coral and greens are decoration only. */

:root {
  --purple: #602060;
  --purple-deep: #4a184a;
  --purple-tint: #f4ecf4;
  --gold: #7a5f26;
  --gold-logo: #a08040;
  --gold-tint: #f6f1e6;
  --coral: #dd6f6f;
  --leaf: #85a253;
  --leaf-tint: #eef3e4;
  --ink: #1f1a1f;
  --ink-soft: #4a444a;
  --line: #e2dbe2;
  --paper: #ffffff;
  --paper-warm: #faf8f5;
  --focus: #1a6fd6;
  --brand: var(--purple);
  --brand-tint: var(--purple-tint);
  --max: 72rem;
  --gutter: 1rem;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

.brand-nutrition-ink { --brand: var(--gold); --brand-tint: var(--gold-tint); }
.brand-nutricopia { --brand: var(--purple); --brand-tint: var(--purple-tint); }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 0.15em; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); margin-top: 1.5em; }
h3 { font-size: 1.2rem; margin-top: 1.25em; }
p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; left: 0; top: 0; }
.skip-link { position: absolute; left: 0.5rem; top: -4rem; background: var(--purple); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 6px 6px; z-index: 1000; }
.skip-link:focus { top: 0; }

/* Buttons */
.button {
  display: inline-block; padding: 0.65rem 1.1rem; border-radius: 8px; border: 2px solid transparent;
  font-weight: 650; text-decoration: none; line-height: 1.2; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.button-primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.button-primary:hover { background: var(--purple-deep); color: #fff; }
.button-outline { background: #fff; color: var(--purple); border-color: var(--purple); }
.button-outline:hover { background: var(--purple-tint); }
.button-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.button-brand:hover { filter: brightness(0.9); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 200px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 2px solid var(--purple); color: var(--purple);
  border-radius: 8px; padding: 0.5rem 0.8rem; font: inherit; font-weight: 650; cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; display: inline-block; }
.site-nav { display: none; width: 100%; padding: 0.5rem 0 0.75rem; }
.site-nav[data-open="true"] { display: block; }
.nav-list, .app-links { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 0.55rem 0.25rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--purple); }
.nav-list a[aria-current] { box-shadow: inset 3px 0 0 var(--purple); padding-left: 0.6rem; }
.app-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.85rem; }
@media (min-width: 60em) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; align-items: center; gap: 1.25rem; width: auto; padding: 0; }
  .nav-list { display: flex; gap: 0.15rem; }
  .nav-list a { border: 0; padding: 0.5rem 0.65rem; border-radius: 6px; }
  .nav-list a[aria-current] { box-shadow: inset 0 -3px 0 var(--purple); padding-left: 0.65rem; border-radius: 6px 6px 0 0; }
  .app-links { margin: 0; }
  .logo img { width: 230px; }
}

/* Page header */
.page-header { background: var(--paper-warm); border-bottom: 1px solid var(--line); padding: 1.75rem 0 1.5rem; }
.page-header h1 { margin-bottom: 0.35em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 48rem; margin-bottom: 0; }
.breadcrumbs ol { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.92rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.brand-line { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.75rem; color: var(--ink-soft); font-size: 0.95rem; }
.brand-line img { width: 120px; height: auto; }
.page-body { padding: 1.75rem 0 3rem; }
.page-body > :first-child { margin-top: 0; }
.page-body h2 { color: var(--brand); }
.prose { max-width: 46rem; }

/* Home */
.hero { background: linear-gradient(180deg, var(--purple-tint), #fff); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 30ch; }
.hero .lede { margin-bottom: 1rem; }
.section { padding: 2.25rem 0; }
.section-alt { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-top: 0; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h2, .card h3 { margin-top: 0; font-size: 1.2rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--purple); }
.card-link h3 { color: var(--purple); text-decoration: underline; text-underline-offset: 0.15em; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-list a { display: inline-block; padding: 0.45rem 0.85rem; border: 1.5px solid var(--purple); border-radius: 999px; text-decoration: none; font-weight: 600; background: #fff; }
.chip-list a:hover { background: var(--purple-tint); }
.brand-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.brand-card { border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); background: #fff; }
.brand-card.ni { border-top: 6px solid var(--gold-logo); }
.brand-card.nc { border-top: 6px solid var(--purple); }
.brand-card img { width: 220px; height: auto; display: block; margin-bottom: 0.75rem; }
.brand-card .since { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 0.5rem; }
.contact-strip { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: start; }
.contact-strip address { font-style: normal; }

/* Service blocks and products */
.service-blocks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.service-block { border-left: 4px solid var(--brand); padding: 0.25rem 0 0.25rem 1rem; }
.service-block h3 { margin-top: 0; font-size: 1.1rem; }
.service-block p { margin: 0; color: var(--ink-soft); }
.product-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: #fff; }
.product h3 { margin-top: 0; font-size: 1.1rem; }
.product .price { font-weight: 700; color: var(--brand); margin-bottom: 0.5rem; }
.product .unit { font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }
.product .details { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* Forms */
.form { max-width: 46rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem 0.5rem; margin: 0 0 1.5rem; }
legend { font-weight: 700; padding: 0 0.4rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.req { font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
.hint { color: var(--ink-soft); font-size: 0.95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; padding: 0.6rem 0.7rem; border: 1.5px solid #8a808a; border-radius: 6px; background: #fff; color: var(--ink);
}
input[type="number"] { max-width: 8rem; }
select { max-width: 24rem; }
.field-check { display: flex; align-items: flex-start; gap: 0.6rem; }
.field-check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; }
.field-check label { font-weight: 500; margin: 0; }
.order-item { border-top: 1px dashed var(--line); padding-top: 0.85rem; margin-top: 0.85rem; }
.order-item:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.price-inline { font-weight: 400; color: var(--ink-soft); }
.field-option { margin-left: 0; }
@media (min-width: 40em) { .field-option { margin-left: 1.5rem; max-width: 24rem; } }
.form-error { color: #a12626; font-weight: 600; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-warm); }
.table-wrap { overflow-x: auto; }

/* Notices and callouts */
.callout { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.verify { background: #fff6d6; border: 1px dashed #b78b00; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.92rem; }
.at-a-glance { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.at-a-glance li { background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1rem; }
.at-a-glance strong { display: block; color: var(--brand); }
.section-nav { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.section-nav a { display: inline-block; padding: 0.4rem 0.8rem; background: var(--paper-warm); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }

/* Team */
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.team li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.team h3 { margin-top: 0; }
.team .title { color: var(--ink-soft); margin-bottom: 0.5rem; }

/* Openings */
.openings th:first-child { width: 30%; }

/* Blog */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.post-meta { color: var(--ink-soft); font-size: 0.95rem; }
.post-body { max-width: 46rem; }
.post-body img { border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--purple-deep); color: #f3ecf3; margin-top: 2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 2.5rem 0 1.5rem; }
.footer-heading { font-size: 1.05rem; color: #fff; margin: 0 0 0.75rem; }
.footer-address { font-style: normal; line-height: 1.7; }
.footer-note { color: #d9c9d9; font-size: 0.95rem; }
.footer-links, .social-links, .brand-tiles, .legal-links { list-style: none; padding: 0; margin: 0; }
.footer-links { columns: 2; column-gap: 1.5rem; }
.footer-links li, .social-links li { padding: 0.15rem 0; }
.brand-tiles li { margin-bottom: 0.6rem; }
.brand-tiles a { display: block; text-decoration: none; padding: 0.6rem 0.8rem; background: rgba(255,255,255,0.08); border-radius: 8px; }
.brand-tiles a:hover { background: rgba(255,255,255,0.16); }
.brand-tiles strong { display: block; }
.brand-tiles span { font-size: 0.92rem; color: #e6d8e6; }
.social-links { margin-top: 1rem; display: flex; gap: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding: 1rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.95rem; }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; gap: 1rem; }

@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link { display: none; }
  a { color: inherit; text-decoration: none; }
}
