/* NutrivioGlobal front-end — brand tokens */
:root {
  --nv-forest: #1f3d2b;
  --nv-green: #3f7d4e;
  --nv-leaf: #e7f0e6;
  --nv-ivory: #faf7f0;
  --nv-gold: #8a6a1f; /* 5.0:1 on white (WCAG AA) */
  --nv-ink: #1d2420;
  --nv-muted: #66706a;
  --nv-line: #dfe4dc;
  --nv-radius: 12px;
}

/* Specification tables / compare */
.nv-spec-table, .nv-compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.nv-spec-table th, .nv-compare th { text-align: left; width: 34%; color: var(--nv-forest); font-weight: 600; background: var(--nv-ivory); }
.nv-spec-table th, .nv-spec-table td, .nv-compare th, .nv-compare td { padding: .6rem .8rem; border-bottom: 1px solid var(--nv-line); vertical-align: top; }
.nv-compare-wrap { overflow-x: auto; }
.nv-compare thead th { background: var(--nv-forest); color: #fff; }
.nv-compare thead th a { color: #fff; }
.nv-muted { color: var(--nv-muted); font-size: .85rem; }
.nv-docs { list-style: none; padding: 0; }
.nv-docs li::before { content: "📄 "; }
.nv-cta { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; }

/* Catalogue */
.nv-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.nv-filters input, .nv-filters select { padding: .5rem .7rem; border: 1px solid var(--nv-line); border-radius: 8px; }
.nv-filters button, .nv-catalogue > button { background: var(--nv-forest); color: #fff; border: 0; border-radius: 8px; padding: .55rem 1rem; cursor: pointer; }
.nv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.nv-card { background: #fff; border: 1px solid var(--nv-line); border-radius: var(--nv-radius); padding: 1rem; }
.nv-card img { width: 100%; height: auto; border-radius: 8px; }
.nv-card h3 { font-size: 1.05rem; margin: .6rem 0 .2rem; }
.nv-botanical { color: var(--nv-green); margin: 0 0 .4rem; }

/* Quote form */
.nv-form { display: grid; gap: .9rem; max-width: 860px; }
.nv-form label { display: grid; gap: .3rem; font-weight: 600; color: var(--nv-forest); font-size: .92rem; }
.nv-form input, .nv-form select, .nv-form textarea { font: inherit; font-weight: 400; padding: .6rem .75rem; border: 1px solid var(--nv-line); border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box; }
.nv-form fieldset { border: 1px solid var(--nv-line); border-radius: var(--nv-radius); padding: .8rem 1rem; }
.nv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.nv-inline, .nv-check { display: flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; }
.nv-inline { display: inline-flex !important; margin-right: 1rem; }
.nv-check input, .nv-inline input { width: auto; }
.nv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nv-notice { padding: 1rem 1.2rem; border-radius: var(--nv-radius); margin-bottom: 1rem; }
.nv-success { background: var(--nv-leaf); border: 1px solid var(--nv-green); }
.nv-error { background: #fbeaea; border: 1px solid #c24d4d; }

/* Chat widget */
.nv-chat-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 99998; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--nv-forest); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; display: grid; place-items: center; }
.nv-chat-toggle:hover { background: var(--nv-green); }
.nv-chat { position: fixed; right: 20px; bottom: 90px; z-index: 99999; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; font-size: 14px; color: var(--nv-ink); }
.nv-chat[hidden] { display: none; }
.nv-chat-head { background: var(--nv-forest); color: #fff; padding: .85rem 1rem; display: grid; grid-template-columns: 1fr auto; }
.nv-chat-sub { grid-column: 1; font-size: 12px; opacity: .8; }
.nv-chat-close { grid-row: 1 / span 2; grid-column: 2; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.nv-chat-log { flex: 1; overflow-y: auto; padding: 1rem; background: var(--nv-ivory); display: flex; flex-direction: column; gap: .55rem; }
.nv-m { max-width: 86%; padding: .6rem .8rem; border-radius: 12px; white-space: pre-wrap; line-height: 1.45; word-wrap: break-word; }
.nv-m-bot { background: #fff; border: 1px solid var(--nv-line); align-self: flex-start; border-bottom-left-radius: 4px; }
.nv-m-me { background: var(--nv-green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.nv-m a { color: inherit; text-decoration: underline; }
.nv-typing { opacity: .6; font-style: italic; }
.nv-quick { display: flex; gap: .35rem; overflow-x: auto; padding: .5rem .75rem; border-top: 1px solid var(--nv-line); }
.nv-quick button { white-space: nowrap; border: 1px solid var(--nv-green); color: var(--nv-forest); background: #fff; border-radius: 999px; padding: .3rem .7rem; font-size: 12px; cursor: pointer; }
.nv-chat-form { display: flex; gap: .5rem; padding: .6rem .75rem; border-top: 1px solid var(--nv-line); }
.nv-chat-form textarea { flex: 1; resize: none; border: 1px solid var(--nv-line); border-radius: 10px; padding: .5rem .6rem; font: inherit; }
.nv-chat-send { background: var(--nv-gold); color: #fff; border: 0; border-radius: 10px; padding: 0 1rem; font-weight: 600; cursor: pointer; }
.nv-chat-foot { font-size: 11px; color: var(--nv-muted); padding: 0 .75rem .6rem; }
.nv-chat-foot a { color: var(--nv-muted); }
@media (max-width: 480px) { .nv-chat { right: 8px; left: 8px; width: auto; bottom: 80px; } }

/* Accessibility helpers */
.screen-reader-text, .nv-sr { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.nv-form :focus-visible, .nv-filters :focus-visible, .nv-catalogue :focus-visible, .nv-chat :focus-visible, .nv-chat-toggle:focus-visible, .nv-pagination a:focus-visible, .nv-docs a:focus-visible { outline: 3px solid #1e4a8a; outline-offset: 2px; }
.nv-field-error { color: #9b1c1c; font-weight: 600; font-size: .85rem; }
.nv-form [aria-invalid="true"] { border-color: #9b1c1c; box-shadow: 0 0 0 1px #9b1c1c; }
.nv-notice ul { margin: .5rem 0 0 1.2rem; }
.nv-notice:focus { outline: 3px solid #1e4a8a; }
.nv-form button[disabled] { opacity: .7; cursor: progress; }
.nv-filter { display: inline-flex; }
.nv-reset { align-self: center; }
.nv-pagination ul { list-style: none; display: flex; gap: .35rem; padding: 0; flex-wrap: wrap; }
.nv-pagination a, .nv-pagination span { display: inline-block; min-width: 2.2rem; text-align: center; padding: .4rem .6rem; border: 1px solid var(--nv-line); border-radius: 8px; text-decoration: none; }
.nv-pagination [aria-current] { background: var(--nv-forest); color: #fff; border-color: var(--nv-forest); }
.nv-cmp-label { display: flex; gap: .4rem; align-items: center; margin-top: .5rem; }
.nv-chat-title { font-size: 1rem; margin: 0; color: #fff; }
.nv-m-error { border-color: #c24d4d !important; background: #fbeaea !important; }
.nv-chat-send[disabled] { opacity: .6; cursor: progress; }
.nv-chat-close { min-width: 44px; min-height: 44px; }
.nv-quick button { min-height: 32px; }
@media (max-width: 480px) { .nv-chat { height: calc(100vh - 100px); } .nv-row { grid-template-columns: 1fr; } .nv-inline { display: flex !important; margin: .2rem 0; } }
@media (prefers-reduced-motion: reduce) { .nv-chat-log { scroll-behavior: auto; } }

/* Buyer information pages (1.2.2) */
.nv-subnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; background: var(--nv-forest); border-radius: var(--nv-radius); padding: .5rem .75rem; margin: 0 0 1.5rem; }
.nv-subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.nv-subnav a { color: #fff; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; display: inline-block; font-size: .92rem; }
.nv-subnav a:hover, .nv-subnav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.nv-subnav a[aria-current="page"] { font-weight: 600; }
.nv-subnav .nv-subnav-cta { background: var(--nv-ivory); color: var(--nv-forest); font-weight: 600; }
.nv-subnav .nv-subnav-cta:hover { background: #fff; }
.nv-subnav a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nv-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.25rem 0 1.75rem; }
.nv-info-card { background: var(--nv-ivory); border: 1px solid var(--nv-line); border-top: 4px solid var(--nv-green); border-radius: var(--nv-radius); padding: 1rem 1.1rem; }
.nv-info-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--nv-forest); }
.nv-info-card p { margin: 0; color: var(--nv-ink); font-size: .95rem; line-height: 1.5; }
.nv-cta-block { margin: 1.75rem 0; }
.nv-btn { display: inline-block; background: var(--nv-forest); color: #fff !important; text-decoration: none; padding: .75rem 1.3rem; border-radius: 10px; font-weight: 600; }
.nv-btn:hover { background: var(--nv-green); }
.nv-btn:focus-visible { outline: 3px solid #1e4a8a; outline-offset: 2px; }
.nv-oem { background: var(--nv-ivory); }
.nv-oem[hidden] { display: none; }
@media (max-width: 600px) { .nv-subnav { flex-direction: column; align-items: stretch; } .nv-subnav ul { justify-content: flex-start; } .nv-subnav .nv-subnav-cta { text-align: center; } }

.nv-label { display: inline; }
.nv-form button[type="submit"] { justify-self: start; background: var(--nv-forest); color: #fff; border: 0; border-radius: 10px; padding: .8rem 1.6rem; font: inherit; font-weight: 600; cursor: pointer; }
.nv-form button[type="submit"]:hover { background: var(--nv-green); }
.nv-form button[type="submit"]:focus-visible { outline: 3px solid #1e4a8a; outline-offset: 2px; }
