/* Norvendra Trading Limited — site styles.
   Tokens follow design/theme.css and design/design-system/tokens.json. */

@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/chivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --petrol-deep: #0b2a3a;
  --petrol-700: #123e52;
  --signal-teal: #00a3a3;
  --teal-300: #7fd8d8;
  --slate-500: #5a7079;
  --slate-400: #8fa3ab;
  --steel-100: #e6ecee;
  --steel-200: #c9d6da;
  --paper: #f5f8f8;
  --white: #ffffff;
  --amber: #e08a1e;
  --rust: #a8321e;
  --petrol-text-muted: #afc4cb;
  --petrol-text-subtle: #6e8b96;
  --petrol-rule: #1e4b5f;
  --on-teal: #03282a;

  --surface: var(--white);
  --surface-alt: var(--paper);
  --surface-inverse: var(--petrol-deep);
  --ink: var(--petrol-deep);
  --ink-body: var(--petrol-700);
  --ink-muted: var(--slate-500);
  --ink-inverse: var(--white);
  --line: var(--steel-100);
  --line-strong: var(--petrol-deep);
  --accent: var(--signal-teal);

  --font-display: Chivo, Arial, sans-serif;
  --font-sans: "Source Sans 3", Arial, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --radius-base: 2px;
  --shadow-overlay: 0 8px 24px #0b2a3a29;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #0b2a3a;
  --gutter: clamp(16px, 4vw, 24px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 26px; background: var(--surface); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--petrol-deep); }
a:hover { color: var(--petrol-700); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; box-shadow: var(--focus-ring); }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.tnum { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); font-weight: 700; border-radius: var(--radius-base); }
.skip-link:focus { top: 12px; }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sec-paper { background: var(--paper); }
.sec-rule { border-bottom: 1px solid var(--line); }
.sec-inverse { background: var(--petrol-700); }
.stack { display: flex; flex-direction: column; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); gap: var(--gap, 24px); }
.grid-fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr)); }
.measure { max-width: 720px; }

/* Type */
.overline { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.overline-inverse { color: var(--teal-300); }
.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); max-width: 760px; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; color: var(--ink); max-width: 820px; }
.h2-lg { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.22; color: var(--ink); }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; color: var(--ink); }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 24px; color: var(--ink); }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-body); max-width: 680px; }
.text { font-size: 16px; line-height: 26px; color: var(--ink-body); max-width: 760px; }
.caption { font-size: 13px; line-height: 20px; color: var(--ink-muted); max-width: 760px; }
.link-strong { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 24px; color: var(--ink); }
.prose { max-width: 760px; color: var(--ink-body); }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 30px; color: var(--ink); margin: 40px 0 12px; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 24px; color: var(--ink); margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Logo */
.nv-logo { display: inline-flex; align-items: center; gap: 0.6em; color: var(--ink); text-decoration: none; }
.nv-mark { display: block; flex: none; }
.nv-logo-words { display: flex; flex-direction: column; gap: 0.35em; }
.nv-logo-name { font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: -0.005em; color: var(--ink); }
.nv-logo-sub { font-family: var(--font-sans); font-weight: 600; line-height: 1; letter-spacing: 0.3em; text-transform: uppercase; color: var(--slate-500); }
.nv-logo-reversed .nv-logo-name { color: var(--white); }
.nv-logo-reversed .nv-logo-sub { color: var(--teal-300); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.nv-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-base); font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .12s, color .12s, border-color .12s; }
.nv-btn-primary { background: var(--petrol-deep); border-color: var(--petrol-deep); color: var(--white); }
.nv-btn-primary:hover { background: var(--signal-teal); border-color: var(--signal-teal); color: var(--on-teal); }
.nv-btn-secondary { background: transparent; border-color: var(--petrol-deep); color: var(--petrol-deep); }
.nv-btn-secondary:hover { background: var(--paper); color: var(--petrol-deep); }
.nv-btn-accent { background: var(--signal-teal); border-color: var(--signal-teal); color: var(--on-teal); }
.nv-btn-accent:hover { background: var(--teal-300); border-color: var(--teal-300); color: var(--on-teal); }
.nv-btn-accent:focus-visible { box-shadow: 0 0 0 2px var(--petrol-deep), 0 0 0 4px var(--teal-300); }
.nv-btn-ghost-inverse { background: transparent; border-color: var(--petrol-text-muted); color: var(--white); }
.nv-btn-ghost-inverse:hover { border-color: var(--white); color: var(--white); }
.nv-btn-ghost-inverse:focus-visible { box-shadow: 0 0 0 2px var(--teal-300); }
.nv-btn[disabled] { background: var(--steel-100); border-color: var(--steel-100); color: var(--slate-500); cursor: not-allowed; }

/* Outlined link chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-base); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); }
.chip-link:hover { border-color: var(--petrol-deep); color: var(--ink); }
.chip-link-strong { border-color: var(--petrol-deep); }
.chip-link-strong:hover { background: var(--white); }
.chip-count { color: var(--ink-muted); font-weight: 400; margin-left: 6px; }

/* InfoPanel */
.nv-panel { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.nv-panel-paper { background: var(--paper); color: var(--ink); }
.nv-panel-outline { background: var(--surface); border: 1px solid var(--line); }
.nv-panel-inverse { background: var(--petrol-deep); color: var(--white); }
.nv-panel-title { font-family: var(--font-display); font-size: 15px; line-height: 20px; font-weight: 700; }
.nv-panel-body { font-size: 14px; line-height: 21px; color: var(--slate-500); }
.nv-panel-body a { color: inherit; }
.nv-panel-inverse .nv-panel-body { color: var(--petrol-text-muted); }
.nv-panel .overline { margin-bottom: 2px; }
.nv-panel-inverse .overline { color: var(--teal-300); }

/* DocHeader */
.nv-dochead { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding-bottom: 12px; border-bottom: 2px solid var(--line-strong); }
.nv-dochead-title { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.nv-dochead-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-500); text-align: right; }

/* DataTable */
.nv-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-base); background: var(--surface); }
.nv-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.nv-table caption { text-align: left; padding: var(--space-2); font-size: 13px; color: var(--ink-muted); caption-side: bottom; }
.nv-table th { background: var(--steel-100); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--petrol-700); white-space: nowrap; }
.nv-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.nv-table td:first-child { font-weight: 600; }

/* Definition lists */
.facts { display: flex; flex-direction: column; }
.facts-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); column-gap: 64px; }
.fact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-boxed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-base); padding: 8px 24px; }
.facts-boxed .fact:last-child, .facts-plain .fact:last-child { border-bottom: 0; }
.facts-paper .fact { border-bottom-color: var(--steel-100); padding: 12px 0; }
.fact dt { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.fact dd { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* Site header */
.site-header { background: var(--surface-inverse); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.site-home { display: inline-flex; border-radius: var(--radius-base); text-decoration: none; }
.site-home:focus-visible { box-shadow: 0 0 0 2px var(--teal-300); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.site-link { font-size: 15px; font-weight: 600; color: var(--petrol-text-muted); text-decoration: none; padding: 10px 0; }
.site-link:hover, .site-link[aria-current="page"] { color: var(--white); }
.site-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal-teal); }
.site-link:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 2px; box-shadow: none; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--petrol-rule); border-radius: var(--radius-base); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer; }
.menu-toggle:focus-visible { box-shadow: 0 0 0 2px var(--teal-300); }
.menu-bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 8px; border-top: 1px solid var(--petrol-rule); }
  .js .site-nav.is-open { display: flex; }
  .js .site-link { padding: 12px 0; border-bottom: 1px solid var(--petrol-rule); }
  .js .site-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal-teal); padding-left: 12px; }
  .js .site-nav .nv-btn { margin-top: 16px; }
}

/* Footer */
.site-footer { background: var(--petrol-deep); color: var(--white); }
.site-footer-inner { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px 24px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--white); text-decoration: none; font-size: 15px; line-height: 28px; }
.footer-col a:hover { color: var(--teal-300); text-decoration: underline; }
.footer-col a:focus-visible, .footer-legal a:focus-visible, .footer-legal button:focus-visible { box-shadow: 0 0 0 2px var(--teal-300); }
.footer-col p { font-size: 15px; line-height: 24px; color: var(--white); }
.footer-col p.muted { color: var(--petrol-text-muted); }
.footer-col .footer-about { font-size: 14px; line-height: 22px; color: var(--petrol-text-muted); max-width: 300px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--petrol-rule); }
.footer-bottom p { font-size: 13px; line-height: 20px; color: var(--petrol-text-muted); max-width: 760px; }
.footer-legal { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-legal a, .footer-legal button { color: var(--petrol-text-muted); font-size: 13px; line-height: 20px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-decoration: underline; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--white); }

/* Sections */
.hero { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px 24px; align-items: start; }
.page-head { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.block { padding-top: 64px; padding-bottom: 64px; }
.block-tight { padding-top: 40px; padding-bottom: 40px; }
.block-last { padding-bottom: 96px; }
.glance { background: var(--paper); border-radius: var(--radius-base); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 479px) {
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .page-head { padding-top: 40px; padding-bottom: 40px; }
  .glance { padding: 20px; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 2px solid var(--petrol-deep); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 32px; color: var(--accent); font-variant-numeric: tabular-nums; }
.step p { font-size: 15px; line-height: 24px; color: var(--ink-body); }

/* Inverse band */
.band { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px 24px; align-items: start; }
.band h2 { color: var(--white); }
.band .band-text { font-size: 16px; line-height: 26px; color: var(--petrol-text-muted); max-width: 560px; }
.band-list li { padding: 14px 0; border-bottom: 1px solid var(--petrol-rule); font-size: 16px; line-height: 24px; color: var(--white); }
.band-list li:last-child { border-bottom: 0; }
@media (max-width: 479px) { .band { padding-top: 64px; padding-bottom: 64px; } }

/* Policy rows */
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 0 64px; }
.row-item { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.row-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 24px; }
.row-item p { font-size: 15px; line-height: 24px; color: var(--ink-body); }

/* Catalogue */
.cat-group { padding-top: 64px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 16px; }
.cat-group + .cat-group { padding-top: 40px; }
.cat-sub { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.cat-sub + .cat-sub { padding-top: 16px; }
.cat-sub-title { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 24px; }
.cat-sub-title span { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.brand-card { display: flex; flex-direction: column; gap: 8px; min-height: 148px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-base); text-decoration: none; color: var(--ink); }
.brand-card:hover { border-color: var(--petrol-deep); color: var(--ink); }
.brand-card-logo { display: flex; align-items: center; height: 48px; margin-bottom: 4px; }
.brand-logo { display: block; max-width: 100%; height: auto; }
.brand-card-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 28px; color: var(--ink); }
.brand-card-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 24px; }
.brand-logo-box { align-self: flex-start; display: flex; align-items: center; min-height: 64px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-base); }
.brand-card-lines { font-size: 14px; line-height: 21px; color: var(--ink-muted); flex-grow: 1; }
.brand-card-more { font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: underline; }
.brand-card-tag { align-self: flex-start; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-teal); background: var(--signal-teal); padding: 2px 8px; border-radius: var(--radius-base); }
.cat-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding-top: 8px; }
.search-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; max-width: 480px; }
.search-empty { padding: 24px; background: var(--paper); border-radius: var(--radius-base); color: var(--ink-body); }
[hidden] { display: none !important; }

/* Brand page */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.zh-name { font-size: 18px; line-height: 26px; color: var(--ink-muted); font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", var(--font-sans); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--ink-muted); font-weight: 400; }
.input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--steel-200); border-radius: var(--radius-base); font-family: var(--font-sans); font-size: 16px; color: var(--ink); background: var(--white); }
textarea.input { padding: 12px; line-height: 24px; resize: vertical; min-height: 160px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--petrol-deep) 50%), linear-gradient(135deg, var(--petrol-deep) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:hover { border-color: var(--slate-400); }
.input[aria-invalid="true"] { border-color: var(--rust); }
.field-error { font-size: 13px; line-height: 18px; color: var(--rust); }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--petrol-deep); }
.consent label { font-size: 14px; line-height: 22px; color: var(--ink-body); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: var(--radius-base); font-size: 15px; line-height: 24px; }
.notice strong { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 2px; }
.notice-ok { background: var(--paper); border-left: 3px solid var(--signal-teal); color: var(--ink); }
.notice-error { background: #fbefec; border-left: 3px solid var(--rust); color: var(--ink); }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; padding: 20px 24px; background: var(--petrol-deep); color: var(--white); border-radius: var(--radius-base); box-shadow: var(--shadow-overlay); display: flex; flex-direction: column; gap: 14px; }
.cookie-banner h2 { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 22px; color: var(--white); }
.cookie-banner p { font-size: 14px; line-height: 21px; color: var(--petrol-text-muted); }
.cookie-banner a { color: var(--teal-300); }
.cookie-banner .btn-row { padding-top: 0; gap: 12px; }

/* Error page */
.error-code { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }

@media print {
  .site-header, .site-footer, .cookie-banner, .btn-row { display: none !important; }
}
