/* Quality Trading Partners — site styles */

:root {
  --navy-900: #0a1c38;
  --navy-800: #10274c;
  --navy-700: #17376b;
  --navy-600: #1f4785;
  --steel-400: #5b7c99;
  --amber: #c9a227;        /* gold, from the logo */
  --amber-dark: #a8861f;
  --gold-light: #e0c25c;
  --ink: #16202b;
  --body: #47566a;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 12px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(13,27,42,.05), 0 12px 32px -18px rgba(13,27,42,.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.13rem; font-weight: 650; }
p { margin: 0 0 1rem; }
a { color: var(--navy-600); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; z-index: 100; top: 8px; left: 8px; background: #fff;
  padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); font-weight: 600;
}
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--amber); color: var(--navy-900); font-weight: 650; font-size: .95rem;
  padding: .7rem 1.25rem; border: 1px solid transparent; border-radius: 8px;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: .5rem .95rem; font-size: .88rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

/* ---------- header ---------- */
/* Light bar: the logo artwork is full-colour on white, so it needs a light ground. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(10,28,56,.06);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 160px;
  transition: min-height .22s ease; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
/* Sized to carry the full logo artwork. height drives it, max-width catches wide
   lockups, so both a 3:2 badge and a long horizontal lockup sit correctly. */
.brand-logo {
  height: 130px; width: auto; max-width: min(460px, 56vw);
  object-fit: contain; object-position: left center; display: block;
  transition: height .22s ease;
}
/* shrink once the reader scrolls, so a tall header doesn't eat the screen */
.site-header.scrolled .header-inner { min-height: 84px; }
.site-header.scrolled .brand-logo { height: 62px; }
/* fallback wordmark, shown only when no logo image is present */
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; letter-spacing: -.01em; color: var(--ink); }
.brand-text small { font-size: .72rem; color: var(--steel-400); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--navy-700); text-decoration: none; font-size: .9rem; font-weight: 550; }
.nav a:hover { color: var(--navy-900); }
.nav a.btn { color: var(--navy-900); }
.nav-toggle {
  display: none; background: none; border: 1px solid #ccd6e2;
  border-radius: 8px; padding: .55rem .6rem; cursor: pointer;
}
.bars { display: block; width: 20px; }
.bars i { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; }
.bars i + i { margin-top: 4px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #dbe5ef; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(232,163,61,.20), transparent 60%),
    radial-gradient(760px 460px at 6% 10%, rgba(91,124,153,.28), transparent 62%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.hero-inner { position: relative; max-width: 900px; }
.hero h1 { color: #fff; max-width: 21ch; }
.eyebrow {
  font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 .9rem;
}
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #b9c9d8; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 3rem; }
.hero-stats {
  list-style: none; margin: 0; padding: 2rem 0 0; border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.hero-stats strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { font-size: .85rem; color: #8fa5ba; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.12); }

/* ---------- strip ---------- */
.strip { background: var(--navy-700); color: #b9c9d8; }
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  padding-top: .95rem; padding-bottom: .95rem; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
}
.strip i { color: var(--amber); font-style: normal; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-dark {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #b9c9d8;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: #9db2c6; }
.section-head { max-width: 68ch; margin-bottom: 2.6rem; }
.section-sub { color: var(--body); font-size: 1.05rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card-lg { padding: 2rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy-600); background: #eaf0f7;
  border-radius: 999px; padding: .3rem .75rem; margin-bottom: 1rem;
}
.ticks { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 11px; height: 6px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}
.ticks.two { columns: 2; column-gap: 1.5rem; }
.link-arrow { font-weight: 650; text-decoration: none; font-size: .95rem; }
.link-arrow::after { content: " →"; transition: margin .15s ease; }
.link-arrow:hover::after { margin-left: .25rem; }

/* category art blocks (swap for photography) */
.cat { padding: 0; overflow: hidden; }
.cat h3, .cat p { padding-inline: 1.5rem; }
.cat h3 { margin-top: 1.3rem; }
.cat p { padding-bottom: 1.5rem; font-size: .95rem; }
.cat-art { height: 150px; background-color: var(--navy-700); position: relative; }
.cat-art::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(135deg, rgba(255,255,255,.12) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.12) 75%, transparent 75%);
  background-size: 22px 22px;
}
.art-1 { background-image: linear-gradient(135deg, #1e3a55, #0d1b2a); }
.art-2 { background-image: linear-gradient(135deg, #33455c, #14293e); }
.art-3 { background-image: linear-gradient(135deg, #c9862a, #8a5a1a); }
.art-4 { background-image: linear-gradient(135deg, #2c5570, #14293e); }
.art-5 { background-image: linear-gradient(135deg, #223a4d, #0a1522); }
.art-6 { background-image: linear-gradient(135deg, #5b7c99, #23394d); }

/* sources */
.source { padding: 1.6rem 0 0; border-top: 3px solid var(--line); }
.source .num { font-size: .8rem; font-weight: 700; color: var(--amber); letter-spacing: .1em; }
.source h3 { margin-top: .4rem; }
.source p { font-size: .95rem; margin: 0; }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.3rem; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--amber);
  color: var(--navy-900); font-weight: 700; margin-bottom: .9rem;
}
.steps p { font-size: .95rem; margin: 0; }

.feat h3 { margin-bottom: .35rem; }
.feat p { font-size: .95rem; }

/* cta panel */
.cta-panel {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #c3d2e0; border-radius: 16px; padding: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-panel h2 { color: #fff; }
.cta-panel .section-sub { color: #b9c9d8; }
.cta-panel .ticks li { color: #dbe5ef; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
.contact-list { margin: 2rem 0 0; }
.contact-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.contact-list dt { font-weight: 650; color: var(--ink); font-size: .9rem; }
.contact-list dd { margin: 0; font-size: .96rem; }
.form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .86rem; font-weight: 650; color: var(--ink); margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--steel-400); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid #cfd8e3; border-radius: 8px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-600); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; background: #fdf4f3; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { margin: .9rem 0 0; font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: #1d7a4c; }
.form-note.err { color: #c0392b; }

/* footer */
.site-footer { background: var(--navy-900); color: #8fa5ba; padding: 3.5rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: .6rem; }
.footer-brand p { font-size: .92rem; max-width: 46ch; margin: 0; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; align-content: start; }
.footer-nav a { color: #b9c9d8; text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem;
}
.footer-legal p { margin: 0; }
.fine { color: #6c8299; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -14px rgba(10,28,56,.35);
    padding: .5rem 24px 1.2rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .9rem; border-bottom: none; justify-content: center; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .steps, .row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .ticks.two { columns: 1; }
  .hero-cta .btn { width: 100%; }
}

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

@media print {
  .site-header, .nav, .hero-cta, .form { display: none; }
  body { color: #000; font-size: 12pt; }
}

/* ---------- multi-page additions ---------- */
.nav a.active { color: var(--navy-900); font-weight: 650; }
.nav a:not(.btn).active { box-shadow: inset 0 -2px 0 var(--amber); }
.nav a.btn.active { background: var(--amber-dark); }

.page-hero {
  position: relative; color: #b9c9d8; padding: clamp(3rem, 6vw, 4.75rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(900px 420px at 82% -20%, rgba(232,163,61,.18), transparent 62%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.page-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.page-hero .lede { max-width: 64ch; margin-bottom: 0; }
.page-hero .hero-cta { margin: 1.8rem 0 0; }

.section-foot { margin: 2rem 0 0; }

.steps-light li { border-top-color: var(--line); }
.steps-light h3 { color: var(--ink); }
.steps-light p { color: var(--body); }

.note-box {
  border-left: 3px solid var(--amber); background: var(--bg-alt);
  padding: 1.15rem 1.3rem; border-radius: 0 10px 10px 0; margin-top: 1.5rem;
}
.note-box h3 { font-size: 1rem; margin-bottom: .35rem; }
.note-box p { font-size: .94rem; margin-bottom: .5rem; }

address { font-style: normal; }
.footer-brand address { font-size: .9rem; margin-top: 1rem; line-height: 1.7; }
.footer-brand address a { color: #b9c9d8; text-decoration: none; }
.footer-brand address a:hover { color: #fff; text-decoration: underline; }

.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); box-shadow: none; }
.section-dark .card p { color: #b9c9d8; }
.cta-panel .btn { white-space: nowrap; }

.section-cta { background: var(--bg); padding-block: clamp(3rem, 5vw, 4.5rem); }
.footer-nav { grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
@media (max-width: 620px) { .footer-nav { grid-auto-flow: row; grid-template-rows: none; } }
img.brand-mark { width: auto; height: 36px; max-width: 190px; object-fit: contain; }

@media (max-width: 900px) { .brand-logo { height: 92px; } .header-inner { min-height: 118px; } }
@media (max-width: 760px) { .brand-logo { height: 74px; max-width: 60vw; } .header-inner { min-height: 96px; }
  .site-header.scrolled .brand-logo { height: 52px; } .site-header.scrolled .header-inner { min-height: 74px; } }
@media (max-width: 420px) { .brand-logo { height: 60px; max-width: 62vw; } }

/* the hidden attribute must beat the display rules above it */
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* no logo file yet: don't hold open a 160px header for a line of text */
.site-header.no-logo .header-inner { min-height: 86px; }
