/*
Theme Name: Xelvora Global Sourcing
Theme URI: https://xelvoraglobal.com
Author: Xelvora Global Sourcing Ltd.
Author URI: https://xelvoraglobal.com
Description: "The Sourcing Manifest" — bespoke theme for Xelvora Global Sourcing Ltd. Deep-blue and gold trade-document design system with an admin settings panel, stored form submissions, automatic page seeding and a built-in SEO layer.
Version: 2.1.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xelvora
Tags: one-column, custom-menu, sticky-post
*/

/* ==========================================================================
   XELVORA GLOBAL SOURCING LTD. — "The Sourcing Manifest" design system
   See DESIGN.md for the full specification.
   ========================================================================== */

:root {
  --ink: #0B3C5D;
  --ink-deep: #07253A;
  --ink-soft: #123F60;
  --gold: #D4AF37;
  --gold-soft: #E8CF7A;
  --paper: #F6F3EC;
  --paper-2: #EFEAE0;
  --text: #333333;
  --text-mute: #6B7280;
  --line: #D8D2C4;
  --line-dark: rgba(255, 255, 255, 0.14);
  --wa: #22C55E;
  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 2px;
  --section-pad: clamp(72px, 10vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container { width: min(1200px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; max-width: 18ch; margin-bottom: 22px; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p + p { margin-top: 1em; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink-deep);
  padding: 10px 18px; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: all 0.25s ease;
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-deep); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink-deep); border-bottom: 1px solid var(--line-dark);
  overflow: hidden; padding: 8px 0; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 28px; align-items: center;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  animation: ticker 45s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.t-sep { color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 32px rgba(7, 37, 58, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px; flex: none;
  background: var(--gold); color: var(--ink-deep);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em; color: #fff; font-size: 1.05rem; }
.brand-text span { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.3em; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:not(.btn):hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.nav-cta { display: none; }
.header-cta { padding: 11px 20px; font-size: 0.85rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-deep);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #fff;
  padding: clamp(80px, 11vw, 140px) 0 clamp(70px, 9vw, 110px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy .mono-label { color: var(--gold); margin-bottom: 22px; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.78); max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.mono-note { margin-top: 40px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.45); }

/* Manifest card */
.manifest-card {
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.mc-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mc-ref { color: var(--ink); }
.mc-route { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.mc-route strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-top: 3px; }
.mc-arrow { color: var(--gold); font-size: 1.4rem; }
.mc-lines { list-style: none; padding: 10px 0; }
.mc-lines li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; font-size: 0.92rem; border-bottom: 1px dotted var(--line);
}
.mc-lines li:last-child { border-bottom: 0; }
.mc-ok, .mc-live { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; align-self: center; }
.mc-ok { color: #16803C; }
.mc-live { color: var(--gold); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.mc-link { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink); text-decoration: none; }
.mc-link:hover { color: var(--gold); }

.stamp {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  color: var(--gold); border: 1.5px solid var(--gold); border-radius: var(--radius);
  padding: 6px 12px; transform: rotate(-4deg);
}
.manifest-card .stamp { color: #B08D1F; border-color: #B08D1F; }
.stamp-lg { font-size: 0.8rem; padding: 12px 22px; transform: rotate(-6deg); }

/* ---------- Stats ---------- */
.stats { background: var(--ink); border-top: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 34px 26px; text-align: left;
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: 0; }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--gold); line-height: 1;
  margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.stat .mono-label { color: rgba(255, 255, 255, 0.6); }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink-deep); color: rgba(255, 255, 255, 0.82); border-bottom: 0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head { border-color: var(--line-dark); }
.section-dark .mono-label { color: rgba(255, 255, 255, 0.55); }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px; margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head .mono-label:first-child { color: var(--ink); }
.section-dark .section-head .mono-label:first-child { color: var(--gold); }
.head-note { text-align: right; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }

/* ---------- About ---------- */
.pull-quote { border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin-top: 28px; }
.pull-quote p { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); line-height: 1.5; }

.company-file { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.company-file > .mono-label { color: var(--gold); display: block; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cf-row { padding: 20px 0; border-bottom: 1px dotted var(--line); }
.cf-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.cf-row h3 { font-size: 0.95rem; margin-bottom: 8px; }
.cf-row p { font-size: 0.95rem; color: var(--text-mute); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-row span {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--radius);
}

/* ---------- Services ---------- */
.ledger-grid {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.services-grid { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.service-card {
  position: relative; background: #fff; padding: 28px 24px 56px;
  transition: background 0.25s ease;
}
.service-card:hover { background: var(--paper); }
.sc-index {
  display: block; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--gold); letter-spacing: 0.14em; margin-bottom: 40px;
  transition: transform 0.25s ease;
}
.service-card:hover .sc-index { transform: translateX(6px); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-mute); }
.sc-arrow {
  position: absolute; right: 22px; bottom: 18px;
  color: var(--gold); font-size: 1.1rem;
  opacity: 0; transform: translateX(-8px); transition: all 0.25s ease;
}
.service-card:hover .sc-arrow { opacity: 1; transform: translateX(0); }

.full-manifest {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px; border-top: 1px dashed var(--line);
}
.full-manifest > .mono-label { color: var(--gold); padding-top: 8px; }
.full-manifest .tag-row { margin-top: 0; flex: 1; }

/* ---------- Industries ---------- */
.industries-grid { align-items: center; }
.pill-wall { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-wall span {
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  color: var(--ink); border: 1px solid var(--line); background: #fff;
  padding: 11px 20px; border-radius: 999px;
  transition: all 0.25s ease; cursor: default;
}
.pill-wall span:hover { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); }

/* ---------- Products / cargo list ---------- */
.products-intro { position: sticky; top: 110px; }
.products-intro .btn { margin-top: 24px; }
.cargo-list { list-style: none; counter-reset: cargo; }
.cargo-list li {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--ink);
  padding: 15px 6px; border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s ease, background 0.25s ease;
}
.cargo-list li:first-child { border-top: 1px solid var(--line); }
.cargo-list li:hover { padding-left: 16px; background: #fff; }
.cargo-list .mono-label { color: var(--gold); flex: none; }

/* ---------- Network ---------- */
.port-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.port-card { background: var(--ink-deep); padding: 26px 22px; transition: background 0.25s ease; }
.port-card:hover { background: var(--ink-soft); }
.port-card strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: 8px; }
.port-card .mono-label { font-size: 0.66rem; }
.port-home { outline: 1px solid var(--gold); outline-offset: -1px; }
.port-home strong { color: var(--gold); }

/* ---------- Process / tracking ---------- */
.process-intro { position: sticky; top: 110px; }
.process-intro .btn { margin-top: 26px; }
.track { list-style: none; position: relative; padding-left: 34px; }
.track::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.track-step { position: relative; padding: 0 0 34px; }
.track-step:last-child { padding-bottom: 0; }
.ts-node {
  position: absolute; left: -34px; top: 5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.track-step.active .ts-node {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.18);
}
.track-step .mono-label { color: var(--gold); }
.track-step h3 { margin: 4px 0 4px; }
.track-step p { font-size: 0.92rem; color: var(--text-mute); max-width: 46ch; }

/* ---------- Why ---------- */
.why-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.why-head h2 { margin-bottom: 0; }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.why-card { background: #fff; padding: 30px 26px; transition: background 0.25s ease; }
.why-card:hover { background: var(--paper); }
.why-card h3 { font-size: 1.02rem; margin-bottom: 10px; padding-top: 14px; border-top: 2px solid var(--gold); display: inline-block; }
.why-card p { font-size: 0.92rem; color: var(--text-mute); }

/* ---------- Quote / RFQ ---------- */
.next-steps { list-style: none; margin-top: 26px; }
.next-steps li {
  display: flex; gap: 16px; align-items: baseline;
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  padding: 14px 0; border-bottom: 1px dotted var(--line);
}
.next-steps .mono-label { color: var(--gold); }
.form-note { display: block; margin-top: 26px; font-size: 0.62rem; }

.rfq-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field {
  display: block;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mute);
}
.field input, .field textarea {
  width: 100%; margin-top: 8px;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 2px; border-radius: 0;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; }

/* ---------- Contact ---------- */
.contact-band .lead-dark { color: rgba(255, 255, 255, 0.75); max-width: 48ch; margin-bottom: 6px; }
.contact-details { border: 1px solid var(--line-dark); border-radius: var(--radius); }
.cd-row {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 24px; border-bottom: 1px solid var(--line-dark);
}
.cd-row:last-child { border-bottom: 0; }
.cd-row a, .cd-row span:not(.mono-label) {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  color: #fff; text-decoration: none;
}
.cd-row a:hover { color: var(--gold-soft); }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, 0.7); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: clamp(48px, 7vw, 80px) 0 40px;
}
.f-brand p { font-size: 0.92rem; margin-top: 18px; max-width: 34ch; }
.site-footer nav, .site-footer .footer-grid > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.site-footer .mono-label { color: var(--gold); margin-bottom: 6px; }
.site-footer a:not(.brand) {
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); text-decoration: none; width: fit-content;
}
.site-footer a:not(.brand):hover { color: var(--gold-soft); }
.f-addr { font-size: 0.92rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px; padding-bottom: 30px;
  font-size: 0.82rem;
}
.footer-bottom .mono-label { margin: 0; }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--ink-deep);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--line-dark);
}
.page-hero .mono-label { color: var(--gold); margin-bottom: 16px; display: block; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 18px; color: #fff; }
.page-hero .lead { max-width: 62ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 30px; }
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* Active nav link */
.main-nav a.active:not(.btn) { color: var(--gold-soft); border-bottom-color: var(--gold); }

/* ---------- Service detail rows ---------- */
.detail-list { list-style: none; }
.detail-list li {
  display: grid; grid-template-columns: 70px 260px 1fr; gap: 24px; align-items: baseline;
  padding: 22px 6px; border-bottom: 1px solid var(--line);
}
.detail-list li:first-child { border-top: 1px solid var(--line); }
.detail-list .mono-label { color: var(--gold); }
.detail-list h3 { font-size: 1.05rem; }
.detail-list p { font-size: 0.95rem; color: var(--text-mute); }
@media (max-width: 820px) { .detail-list li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.testimonial { background: #fff; padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.testimonial blockquote::before { content: "“"; color: var(--gold); font-size: 2rem; line-height: 0; display: block; margin-bottom: 14px; }
.testimonial cite { font-style: normal; margin-top: auto; }
.testimonial cite strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); }
.testimonial cite span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
@media (max-width: 960px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Insight / blog cards ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.insight-card { background: #fff; padding: 28px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; transition: background .25s ease; }
.insight-card:hover { background: var(--paper); }
.insight-card .mono-label { color: var(--gold); }
.insight-card h3 { font-size: 1.05rem; }
.insight-card p { font-size: 0.9rem; color: var(--text-mute); }
.insight-card .read-more { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.insight-card:hover .read-more { color: var(--gold); }
@media (max-width: 960px) { .insight-grid { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.case-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.case-head h3 { font-size: 1.15rem; }
.case-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.case-body > div { background: #fff; padding: 24px 28px; }
.case-body .mono-label { color: var(--gold); display: block; margin-bottom: 10px; }
.case-body p { font-size: 0.92rem; color: var(--text-mute); }
@media (max-width: 820px) { .case-body { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-group { margin-bottom: 40px; }
.faq-group > .mono-label { color: var(--gold); display: block; margin-bottom: 12px; }
.faq { border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink);
  padding: 18px 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 400; transition: transform .25s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; font-size: 0.95rem; color: var(--text-mute); max-width: 72ch; }

/* ---------- Careers / generic panels ---------- */
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.panel-cell { background: #fff; padding: 30px 26px; }
.panel-cell h3 { margin-bottom: 10px; }
.panel-cell p { font-size: 0.92rem; color: var(--text-mute); }
.panel-cell .btn { margin-top: 18px; }
@media (max-width: 820px) { .panel-grid { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA band (reusable) ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0; }

/* ==========================================================================
   Document-character components (v2 content expansion)
   ========================================================================== */

/* Giant outlined watermark numerals */
.has-wm { position: relative; overflow: hidden; overflow: clip; }
.has-wm > .container { position: relative; z-index: 1; }
.wm {
  position: absolute; top: -10px; right: -14px; z-index: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(9rem, 22vw, 17rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  pointer-events: none; user-select: none;
}
.section-dark .wm { -webkit-text-stroke-color: rgba(255, 255, 255, 0.07); }

/* Barcode motif */
.barcode {
  width: 110px; height: 30px; opacity: 0.55; flex: none;
  background: repeating-linear-gradient(90deg,
    currentColor 0 2px, transparent 2px 5px,
    currentColor 5px 6px, transparent 6px 8px,
    currentColor 8px 12px, transparent 12px 15px,
    currentColor 15px 16px, transparent 16px 20px);
}

/* Page-hero meta strip */
.page-hero .hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.page-hero .barcode { color: rgba(255,255,255,.6); margin-top: 4px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark);
  margin-top: 38px;
}
.hero-meta > div { flex: 1; min-width: 150px; background: var(--ink-deep); padding: 13px 18px; }
.hero-meta .mono-label { display: block; font-size: 0.58rem; color: rgba(255, 255, 255, 0.4); margin-bottom: 4px; }
.hero-meta strong { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; color: #fff; }
.hero-meta strong.gold { color: var(--gold); }

/* Phase group headers (services) */
.phase-head { display: flex; align-items: center; gap: 20px; margin: clamp(48px, 7vw, 72px) 0 22px; }
.phase-head:first-of-type { margin-top: 0; }
.phase-num {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: transparent; -webkit-text-stroke: 1.5px var(--gold);
}
.phase-head h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.phase-head .phase-note { margin-left: auto; text-align: right; }

/* Checklists */
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; gap: 14px; font-size: 0.95rem; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; margin-top: 3px;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.7rem; display: grid; place-items: center;
}
.section-dark .check-list li { color: rgba(255,255,255,.8); }

/* Chips */
.dur-chip, .approve-chip {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: var(--radius);
  display: inline-block; vertical-align: middle; margin-left: 10px; white-space: nowrap;
}
.dur-chip { color: var(--text-mute); border: 1px solid var(--line); }
.approve-chip { color: var(--ink-deep); background: var(--gold); }

/* Margin note ("stamped" annotation) */
.doc-note {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: #fff; padding: 20px 24px; margin-top: 34px;
  font-size: 0.93rem; color: var(--text-mute); max-width: 76ch;
}
.doc-note .mono-label { display: block; color: var(--gold); margin-bottom: 8px; }
.section-dark .doc-note { background: var(--ink-soft); border-color: var(--line-dark); border-left-color: var(--gold); color: rgba(255,255,255,.75); }

/* Figure strip (inline stats on light) */
.fig-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
.fig-strip > div { background: #fff; padding: 22px 24px; }
.fig-strip strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); margin-bottom: 4px; }
.fig-strip strong em { font-style: normal; color: var(--gold); }

/* Case-study metric rows */
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.metric-row > div { background: var(--paper); padding: 18px 28px; }
.metric-row strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }

/* Blog category bar */
.cat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.cat-bar span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
}
.cat-bar span.on { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); }

/* Values grid (about) */
.value-cell h3 { display: flex; align-items: baseline; gap: 12px; }
.value-cell h3 .mono-label { color: var(--gold); }

/* Big quote band (dark) */
.big-quote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.3; color: #fff;
  max-width: 26ch;
}
.big-quote em { font-style: italic; color: var(--gold); }

/* Rich detail rows: nested tags + meta */
.detail-list .dl-meta { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--text-mute); display: block; margin-top: 10px; }
.detail-list .tag-row { margin-top: 12px; }
.detail-list .tag-row span { background: #fff; }
.section-alt .detail-list .tag-row span { background: var(--paper); }

/* Open roles table-ish list */
.role-list { list-style: none; }
.role-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-bottom: 0; padding: 16px 22px;
}
.role-list li:last-child { border-bottom: 1px solid var(--line); }
.role-list h3 { font-size: 1rem; }
@media (max-width: 720px) { .role-list li { grid-template-columns: 1fr; gap: 6px; } }

@media (max-width: 960px) {
  .fig-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: 1fr; }
  .phase-head .phase-note { display: none; }
}
@media (max-width: 480px) { .fig-strip { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pizzazz layer (v3) — motion & texture that fit the manifest identity
   ========================================================================== */

/* Scroll "route progress" line */
.route-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  pointer-events: none;
}
.route-progress::after {
  content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-soft); box-shadow: 0 0 10px rgba(212, 175, 55, 0.9);
}

/* Paper grain over everything (very subtle) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* Hero headline lines rise in on load */
.hero h1 .line { animation: lineUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero h1 .line:nth-child(2) { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.24s; }
@keyframes lineUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Traveling dot on the hero route arc (SMIL) — hidden under reduced motion */
@media (prefers-reduced-motion: reduce) { .route-dot { display: none; } }

/* Manifest stamp slams down once the card reveals */
.manifest-card.in .stamp { animation: stampIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.55s backwards; }
@keyframes stampIn {
  from { opacity: 0; transform: rotate(9deg) scale(1.9); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* Section-head hairline draws itself in */
.section-head { border-bottom: 0; position: relative; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s ease 0.15s;
}
.section-head.in::after { transform: scaleX(1); }
.section-dark .section-head::after { background: var(--line-dark); }

/* Gold-button shine sweep */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); transition: left 0.55s ease;
}
.btn-gold:hover::before { left: 130%; }

/* Live pulse on the Lagos HQ port card */
.port-home strong::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-right: 10px; vertical-align: 2px;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Blinking cursor on hero coordinates */
.mono-note::after { content: "▍"; color: var(--gold); animation: blink 1.4s step-end infinite; margin-left: 4px; }

/* ==========================================================================
   v4 — Newsletter ("The Dispatch"), legal pages, cookie notice
   ========================================================================== */

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Footer newsletter band */
.f-newsletter {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 38px 0; border-bottom: 1px solid var(--line-dark);
}
.f-newsletter h3 { color: #fff; margin: 8px 0 6px; font-size: 1.35rem; }
.f-newsletter .mono-label { color: var(--gold); }
.f-newsletter .nl-copy p:not(.mono-label) { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; max-width: 46ch; }
.nl-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; flex: 1; max-width: 500px; min-width: 260px; }
.nl-input {
  flex: 1; min-width: 200px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark);
  color: #fff; font: inherit; padding: 11px 2px;
}
.nl-input:focus { outline: none; border-bottom-color: var(--gold); }
.nl-input::placeholder { color: rgba(255, 255, 255, 0.35); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; }
.nl-success { color: var(--gold) !important; font-size: 0.8rem !important; }

/* Legal links in footer bottom */
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: rgba(255, 255, 255, 0.55); text-decoration: none; font-size: 0.82rem; }
.legal-links a:hover { color: var(--gold-soft); }

/* Prose (legal pages / long-form) */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; max-width: none; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; margin-bottom: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0.8em 0; }
.prose li { margin: 0.4em 0; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }

/* Cookie / privacy notice (optional; toggled from the WP admin) */
.cookie-notice {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 150;
  max-width: 560px; margin-inline: auto;
  background: var(--ink-deep); border: 1px solid var(--line-dark); border-left: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.8); font-size: 0.88rem;
  padding: 18px 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.cookie-notice .mono-label { color: var(--gold); display: block; margin-bottom: 4px; }
.cookie-notice p { max-width: 40ch; }
.cookie-notice .btn { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease var(--d, 0s), transform 0.55s ease var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .port-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed; inset: 0; z-index: 99;
    background: var(--ink-deep);
    flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav a:not(.btn) {
    font-size: 1.5rem; padding: 10px 0; color: #fff;
    opacity: 0; transform: translateY(12px); transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .main-nav.open a:not(.btn) { opacity: 1; transform: none; }
  .main-nav.open a:nth-child(1) { transition-delay: 0.05s; }
  .main-nav.open a:nth-child(2) { transition-delay: 0.1s; }
  .main-nav.open a:nth-child(3) { transition-delay: 0.15s; }
  .main-nav.open a:nth-child(4) { transition-delay: 0.2s; }
  .main-nav.open a:nth-child(5) { transition-delay: 0.25s; }
  .main-nav.open a:nth-child(6) { transition-delay: 0.3s; }
  .main-nav.open a:nth-child(7) { transition-delay: 0.35s; }
  .main-nav.open a:nth-child(8) { transition-delay: 0.4s; }
  .main-nav.open a:nth-child(9) { transition-delay: 0.45s; }
  .main-nav.open a:nth-child(10) { transition-delay: 0.5s; }
  .main-nav a:not(.btn) { font-size: 1.25rem; }
  .nav-cta { display: inline-flex; margin-top: 18px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: grid; gap: 6px; z-index: 100;
    background: none; border: 0; cursor: pointer; padding: 10px 4px;
  }
  .nav-toggle span { width: 26px; height: 2px; background: #fff; transition: transform 0.3s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .products-intro, .process-intro { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
}

@media (max-width: 720px) {
  .services-grid, .port-grid, .why-grid { grid-template-columns: 1fr; }
  .service-card { padding-bottom: 48px; }
  .sc-index { margin-bottom: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line-dark); }
  .stat:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .mc-live { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ==========================================================================
   WordPress-specific additions
   ========================================================================== */
.entry-content { max-width: 76ch; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 1em 0; }
.entry-content img { border: 1px solid var(--line); border-radius: var(--radius); }
.entry-content blockquote { border-left: 3px solid var(--gold); padding-left: 22px; margin: 1.4em 0; color: var(--ink); font-family: var(--font-display); }
.wp-block-image figcaption { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-mute); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-links { display: flex; gap: 14px; font-family: var(--font-display); font-weight: 600; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--gold); }

/* Footer social row */
.f-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.f-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.65); transition: all 0.25s ease;
}
.f-social a:hover { color: var(--gold-soft); border-color: var(--gold); transform: translateY(-2px); }
.f-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Form success notice */
.form-success { border-left-color: #16803C !important; margin: 0 0 26px; }
.form-success .mono-label { color: #16803C !important; }
