/* ============================================================
   WZ TRADING — shared stylesheet
   Concept: a shipping / trade chart. Navy ink on aged chart paper,
   with brass, jade and clay used as route/port markers.
   ============================================================ */

:root{
  --navy-deep:  #0B1526;
  --navy:       #12203A;
  --paper:      #ECEDE7;
  --paper-2:    #E2E3DB;
  --ink:        #1B2436;
  --ink-soft:   #4B5468;
  --gold:       #B8863A;
  --jade:       #2E6B5E;
  --clay:       #A63D2F;
  --line:       rgba(18,32,58,0.16);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  z-index: 0;
}

a{ color: inherit; }

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

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  margin: 0;
}

h1{ font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3{ font-size: 1.25rem; }

p{ max-width: 62ch; color: var(--ink-soft); margin: 0; }

.coord{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- header / nav ---------- */

header.site{
  position: relative;
  z-index: 5;
  background: var(--navy-deep);
  color: var(--paper);
}

.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand{
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand span{ color: var(--gold); }

.brand-logo{
  height: 40px;
  width: auto;
  display: block;
}

.footer-logo{
  height: 46px;
  width: auto;
  display: block;
}

nav.links{
  display: flex;
  gap: 30px;
}

nav.links a{
  color: rgba(236,237,231,0.78);
  text-decoration: none;
  font-size: 0.95rem;
}

nav.links a:hover, nav.links a.active{
  color: var(--paper);
}

nav.links a.active{
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

.nav-toggle{ display: none; }

@media (max-width: 720px){
  nav.links{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.links.open{ max-height: 260px; }
  nav.links a{
    padding: 14px 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle{
    display: block;
    background: none;
    border: 1px solid rgba(236,237,231,0.4);
    color: var(--paper);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 3px;
  }
}

/* ---------- hero ---------- */

.hero{
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero .wrap{
  padding-top: 72px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px){
  .hero .wrap{ grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
}

.hero .eyebrow{
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero h1{ color: var(--paper); }

.hero p.lead{
  color: rgba(236,237,231,0.82);
  font-size: 1.12rem;
  margin-top: 22px;
  max-width: 46ch;
}

.hero .cta-row{
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn{
  display: inline-block;
  padding: 13px 26px;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--sans);
}

.btn-primary{
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
}

.btn-primary:hover{ background: #c69248; }

.btn-ghost{
  border-color: rgba(236,237,231,0.4);
  color: var(--paper);
}

.btn-ghost:hover{ border-color: var(--paper); }

/* ---------- route chart svg ---------- */

.chart-frame{
  border: 1px solid rgba(236,237,231,0.18);
  padding: 18px;
}

.chart-frame svg{ width: 100%; height: auto; display: block; }

.chart-caption{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(236,237,231,0.55);
}

/* ---------- sections ---------- */

section{
  position: relative;
  z-index: 1;
  padding: 88px 0;
}

section.tight{ padding: 64px 0; }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

@media (max-width: 640px){
  .section-head{ flex-direction: column; align-items: flex-start; gap: 8px; }
}

.pillars{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 860px){
  .pillars{ grid-template-columns: 1fr; }
}

.pillar .num{
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.pillar h3{ margin-bottom: 10px; }

.pillar p{ max-width: 40ch; }

/* markets strip */

.markets{
  background: var(--navy-deep);
  color: var(--paper);
}

.market-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(236,237,231,0.14);
  border: 1px solid rgba(236,237,231,0.14);
}

@media (max-width: 860px){
  .market-grid{ grid-template-columns: 1fr; }
}

.market-cell{
  background: var(--navy-deep);
  padding: 34px 30px;
}

.market-cell .flag{ font-size: 1.5rem; margin-bottom: 14px; }

.market-cell h3{ color: var(--paper); margin-bottom: 8px; }

.market-cell p{ color: rgba(236,237,231,0.7); font-size: 0.95rem; }

.market-cell .quote{
  margin-top: 16px;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(236,237,231,0.6);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

/* footer */

footer.site{
  background: var(--navy-deep);
  color: rgba(236,237,231,0.7);
  padding: 56px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-row{
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(236,237,231,0.14);
}

.footer-brand{
  font-family: var(--serif);
  color: var(--paper);
  font-size: 1.15rem;
}

.footer-cols{
  display: flex;
  gap: 64px;
}

.footer-cols h4{
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 600;
}

.footer-cols a{
  display: block;
  color: rgba(236,237,231,0.65);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.footer-cols a:hover{ color: var(--paper); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* generic content blocks used on inner pages */

.prose p + p{ margin-top: 16px; }

.prose p{ max-width: 68ch; }

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px){
  .two-col{ grid-template-columns: 1fr; }
}

.tag-row{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.tag{
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.stat-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 12px;
}

@media (max-width: 640px){
  .stat-row{ grid-template-columns: repeat(2, 1fr); }
}

.stat .n{
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--navy);
}

.stat .l{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.service-list{ display: flex; flex-direction: column; }

.service-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child{ border-bottom: 1px solid var(--line); }

@media (max-width: 640px){
  .service-row{ grid-template-columns: 1fr; gap: 10px; }
}

.service-row .idx{
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.85rem;
  padding-top: 4px;
}

.service-row h3{ margin-bottom: 8px; }

.contact-panel{
  background: var(--navy);
  color: var(--paper);
  padding: 48px;
}

@media (max-width: 640px){ .contact-panel{ padding: 30px; } }

.field{ margin-bottom: 20px; }

.field label{
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.field input, .field textarea{
  width: 100%;
  background: rgba(236,237,231,0.06);
  border: 1px solid rgba(236,237,231,0.25);
  color: var(--paper);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 2px;
}

.field textarea{ resize: vertical; min-height: 110px; }

.field input:focus, .field textarea:focus{
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.info-list{ margin-top: 34px; }

.info-list dt{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 20px;
}

.info-list dd{
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
}

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

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
