/* =========================================================
   Stawrex · stawrex.co.uk · Design B "Established & Corporate"
   ========================================================= */

:root {
  --navy: #0F2340;
  --navy-2: #1B3560;
  --navy-deep: #0A1930;
  --gold: #C9A45C;
  --gold-soft: #E3CC9C;
  --text: #0F2340;
  --muted: #5B6880;
  --bg-soft: #F5F7FA;
  --line: #E4E8EF;
  --white: #FFFFFF;

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 18px 40px rgba(15, 35, 64, 0.12);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; 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: -48px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px;
  border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
/* Gold ring only where the background is dark; navy everywhere light (3:1+ contrast). */
.top :focus-visible, .section-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.form-card :focus-visible { outline-color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 6px;
  font: 600 15px/1 var(--sans); letter-spacing: .2px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

/* ---------- Top band: header + hero ---------- */
.top {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(201, 164, 92, .16), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding-bottom: 96px;
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.logo {
  font: 700 20px/1 var(--sans); letter-spacing: 4px;
  color: var(--white); text-decoration: none;
}
.logo-dot { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 15px;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--white); border-bottom-color: var(--gold); }

.nav-toggle { display: none; }

.hero { text-align: center; padding-top: 88px; padding-bottom: 40px; }
.eyebrow {
  color: var(--gold); font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
}
.rule { display: block; width: 56px; height: 2px; background: var(--gold); margin: 20px auto 26px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.5px; }
.hero h1 span { display: block; }
.lead {
  max-width: 620px; margin: 24px auto 0;
  font-size: 18px; color: rgba(255, 255, 255, .82);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Figures card ---------- */
.stats-wrap { position: relative; margin-top: -64px; z-index: 2; }
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 34px/1.1 var(--serif); color: var(--navy); }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.section-title { font-size: clamp(28px, 3.6vw, 40px); }
.section-kicker {
  color: var(--muted); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.section-navy .section-kicker { color: var(--gold); }
.section-intro { max-width: 640px; margin-top: 16px; color: var(--muted); }
.section-navy .section-intro { color: rgba(255, 255, 255, .8); }

/* ---------- What we source ---------- */
.source-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 48px; }
.card {
  position: relative; padding: 36px 34px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-main { background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFD 100%); }
.card-icon { width: 44px; height: 44px; color: var(--navy); margin-bottom: 18px; }
.card-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.card h3 { font-size: 26px; margin-bottom: 12px; }
.card > p:not(.card-tag) { color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy);
}
.card-link {
  display: inline-block; margin-top: 22px; font-weight: 600; color: var(--navy);
  text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
}
.card-link:hover { color: var(--navy-2); }

/* ---------- Standards ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.standards-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.standards-list li {
  position: relative; padding: 22px 24px 22px 64px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.standards-list li::before {
  content: ""; position: absolute; left: 22px; top: 24px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23C9A45C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.standards-list h3 { font: 600 17px/1.35 var(--sans); margin-bottom: 4px; }
.standards-list p { color: var(--muted); font-size: 15.5px; }

/* ---------- Why partner ---------- */
.reasons {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.reasons li { padding-top: 26px; border-top: 2px solid var(--gold); }
.reason-num { display: block; font: 400 30px/1 var(--serif); color: var(--navy); margin-bottom: 14px; }
.reasons h3 { font-size: 22px; margin-bottom: 10px; }
.reasons p { color: var(--muted); }

/* ---------- Become a supplier ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-points li { position: relative; padding-left: 26px; color: rgba(255, 255, 255, .88); }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--gold);
}
.contact-direct { margin-top: 28px; color: rgba(255, 255, 255, .8); }
.contact-direct a { color: var(--white); text-decoration-color: var(--gold); text-underline-offset: 3px; }

.form-card {
  background: var(--white); color: var(--text);
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.req { color: #B23B3B; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; border: 1.5px solid #8A94A6; border-radius: 6px; background: var(--white);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid transparent; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 164, 92, .45);
}
.form-privacy { font-size: 13.5px; color: var(--muted); margin: 2px 0 18px; }
.form-privacy a { color: var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form-status.is-success { color: #1E6B45; }
.form-status.is-error { color: #B23B3B; }
.hp { display: none !important; }

/* ---------- Simple pages (thanks, 404, privacy) ---------- */
.top-simple { padding-bottom: 72px; }
.top-simple .hero { padding-top: 72px; }

.prose { max-width: 760px; }
.prose-updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose p, .prose li { color: #2B3A52; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 0 0 12px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); font-size: 15px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  padding-top: 56px; padding-bottom: 40px;
}
.footer-note { margin-top: 14px; max-width: 320px; }
.footer-h {
  font: 600 13px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { text-decoration-color: var(--gold); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px; padding-bottom: 30px;
  font-size: 13px; color: rgba(255, 255, 255, .6);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- Tablet: stack form fields so selects and placeholders are not cut off ---------- */
@media (max-width: 1000px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .site-header { flex-wrap: wrap; }
  /* With JS the nav collapses behind a menu button; without JS it stays visible. */
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 8px; cursor: pointer;
    background: transparent; border: 1.5px solid rgba(255, 255, 255, .35);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--white); position: relative;
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding-top: 14px;
  }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .site-nav .btn { margin-top: 14px; }

  .top { padding-bottom: 80px; }
  .hero { padding-top: 56px; }
  .lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .stat b { font-size: 28px; }

  .section { padding: 72px 0; }

  .source-grid, .split, .reasons { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .card { padding: 28px 24px; }
  .card h3 { font-size: 23px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
