/* =========================================================
   Nexium Trade Limited — Corporate Stylesheet
   Palette: Navy #0E2A47 · Gold #C9A24B · Slate neutrals
   ========================================================= */

:root {
  --navy: #0E2A47;
  --navy-deep: #0A2038;
  --navy-soft: #143A63;
  --gold: #C9A24B;
  --gold-dark: #B08D38;
  --ink: #1A2433;
  --slate: #5B6B7F;
  --line: #E3E9F0;
  --bg: #FFFFFF;
  --bg-alt: #F6F8FB;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, 0.06);
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.08);
  --maxw: 1140px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 .8rem;
}

.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head p { color: var(--slate); font-size: 1.05rem; margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--white); }

/* =========================  Header  ========================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: .95rem; font-weight: 500; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--navy); }
.nav .btn { padding: 9px 20px; font-size: .9rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* =========================  Hero  ========================= */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(201,162,75,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(700px 380px at 80% 0%, #000, transparent 70%);
          mask-image: radial-gradient(700px 380px at 80% 0%, #000, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 100px; max-width: 880px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { font-size: 1.18rem; color: rgba(255,255,255,.85); max-width: 660px; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================  Services  ========================= */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D4DEEA; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
}
.card__icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); font-size: .96rem; margin: 0; }

/* =========================  About / split  ========================= */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split .lead { color: var(--slate); font-size: 1.06rem; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(201,162,75,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B08D38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.panel {
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  color: var(--white); border-radius: 16px; padding: 40px;
  box-shadow: var(--shadow);
}
.panel h3 { color: var(--white); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 8px; }
.stat .num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold); line-height: 1; }
.stat .label { font-size: .9rem; color: rgba(255,255,255,.78); margin-top: 6px; }

/* =========================  Steps  ========================= */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--gold);
}
.step h3 { margin-bottom: .25rem; }
.step p { color: var(--slate); font-size: .96rem; }

/* =========================  Contact  ========================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-block { margin-bottom: 26px; }
.info-block .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-dark); font-weight: 700; margin-bottom: 4px; }
.info-block .v { color: var(--ink); font-style: normal; }
.info-block .v a { color: var(--navy); font-weight: 600; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg-alt);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--slate); margin: 14px 0 0; text-align: center; }
.form-msg { font-size: .92rem; margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; text-align: center; }
.form-msg--ok { background: rgba(46, 125, 50, .10); color: #1E7A34; border: 1px solid rgba(46, 125, 50, .25); }
.form-msg--err { background: rgba(192, 57, 43, .08); color: #B23A2E; border: 1px solid rgba(192, 57, 43, .25); }

/* =========================  Footer  ========================= */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer img { height: 46px; margin-bottom: 18px; }
.site-footer p { font-size: .92rem; color: rgba(255,255,255,.62); }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .94rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 22px; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* =========================  Legal pages  ========================= */
.page-hero {
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  color: var(--white); padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: .3rem; }
.page-hero p { color: rgba(255,255,255,.78); margin: 0; }
.legal { padding: 60px 0 80px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 1.05rem; color: var(--ink); margin-top: 1.4rem; }
.legal p, .legal li { color: #36424F; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: .5rem; }
.legal .updated { color: var(--slate); font-size: .92rem; }
.callout {
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 16px 20px; margin: 24px 0; font-size: .92rem; color: var(--slate);
}
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.toc h4 { margin: 0 0 12px; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dark); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; gap: 24px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--navy); font-size: .92rem; }

/* =========================  Responsive  ========================= */
@media (max-width: 920px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 680px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 0; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 24px; text-align: center; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
