/* ===========================================================
   Nexus Supply Solutions — shared stylesheet (v2)
   Theme: premium corporate — charcoal, brass gold, refined serif
   =========================================================== */

:root {
  --charcoal: #0B0F14;
  --charcoal-soft: #141B24;
  --charcoal-line: #262F3B;
  --gold: #C9A227;
  --gold-light: #E7C567;
  --gold-deep: #9C7C1B;
  --sky: #2EC4E0;
  --ink: #1B2027;
  --paper: #F4F5F7;
  --paper-alt: #EAEBEE;
  --muted: #5B6472;
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1140px;
  --shadow-soft: 0 10px 30px rgba(11, 15, 20, 0.08);
  --shadow-card: 0 4px 18px rgba(11, 15, 20, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

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

a { color: var(--charcoal); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-line);
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 38px; display: block; }
nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a {
  color: #D8DCE3;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: #fff; border-bottom-color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  nav.main-nav { position: absolute; top: 74px; left: 0; right: 0; background: var(--charcoal);
    flex-direction: column; align-items: flex-start; gap: 0; border-top: 1px solid var(--charcoal-line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease; z-index: 20; }
  nav.main-nav.open { max-height: 340px; }
  nav.main-nav a { width: 100%; padding: 15px 28px; border-bottom: 1px solid var(--charcoal-line); }
  header.site-header { position: relative; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--charcoal-line); color: #fff;
    font-size: 1.3rem; line-height: 1; padding: 7px 13px; border-radius: var(--radius-sm); cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
  color: #fff;
  padding: 100px 0 108px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(201,162,39,0.22) 0%, rgba(201,162,39,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(46,196,224,0.10) 0%, rgba(46,196,224,0) 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero.split .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero.split .wrap { grid-template-columns: 1fr; }
  .hero .diagram-col { order: -1; max-width: 300px; margin: 0 auto; }
}
.eyebrow-mark { color: var(--gold); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em; margin-bottom: 16px; display: block; }
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero .sub { color: #B9C0CC; font-size: 1.14rem; max-width: 48ch; }
.hero .cta-row { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-charcoal { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.btn-charcoal:hover { background: #222b38; border-color: #222b38; }
.btn-outline-charcoal { background: transparent; color: var(--charcoal); border-color: #C7CBD2; }
.btn-outline-charcoal:hover { border-color: var(--charcoal); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow-mark { color: var(--gold-deep); }
.section-head p { color: var(--muted); }

.rule { border: none; border-top: 1px solid #DADDE2; margin: 0; }

/* ---------- Steps (home) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--charcoal); color: var(--gold-light);
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Numbered steps (buyer/manufacturer pages) ---------- */
.num-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.num-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 26px;
}
.num-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -3px;
  width: 32px; height: 32px;
  background: var(--charcoal);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.95rem;
}

/* ---------- Cards / bullets ---------- */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 14px;
  color: var(--ink);
}
ul.plain li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
}

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

.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; font-size: 0.93rem; border-bottom: 1px solid #E6E8EC; }
.spec-table th { background: var(--charcoal); color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; }
.spec-table tr:last-child td { border-bottom: none; }

.note-box {
  border-left: 3px solid var(--gold);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.value-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.value-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px;
  max-width: 640px;
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--charcoal); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D3D6DB;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-msg { margin-top: 18px; font-size: 0.92rem; display: none; }
.form-msg.success { color: #1B7A3E; display: block; }
.form-msg.error { color: #B3261E; display: block; }
.field-error { color: #B3261E; font-size: 0.82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.field.invalid .field-error { display: block; }

/* ---------- Contact info cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.contact-card .label { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.82rem;
  color: var(--gold-deep); margin-bottom: 10px; letter-spacing: 0.02em; }
.contact-card a.value { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--charcoal);
  text-decoration: none; word-break: break-word; }
.contact-card a.value:hover { color: var(--gold-deep); }

/* ---------- About page ---------- */
.about-hero-figure {
  background: var(--charcoal-soft);
  border-radius: var(--radius);
  padding: 40px;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--charcoal); color: #A6ADB8; padding: 44px 0; font-size: 0.9rem; }
footer.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site-footer a { color: var(--gold-light); text-decoration: none; }
footer.site-footer .fmark img { height: 26px; opacity: 0.95; }
footer.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-footer nav a { color: #A6ADB8; }
footer.site-footer nav a:hover { color: #fff; }

@media (max-width: 560px) {
  footer.site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
