/*
Theme Name: Onlylocal Enterprise
Theme URI: https://onlylocal.co.za/
Author: Onlylocal Enterprise (Pty) Ltd
Description: Custom responsive commodity trading website for Onlylocal Enterprise.
Version: 1.0.0
Text Domain: onlylocal-enterprise
*/

:root {
  --ink: #0b0c0d;
  --ink-soft: #141617;
  --paper: #f2f0ea;
  --paper-deep: #e4e0d7;
  --white: #ffffff;
  --muted: #777971;
  --line: rgba(11, 12, 13, 0.14);
  --copper: #c27a43;
  --copper-bright: #e49b60;
  --lime: #b9c38a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  height: 88px;
  padding: 0 clamp(24px, 5vw, 84px);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  background: #0b0c0d;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
  position: relative;
  z-index: 20;
}
.brand { width: 320px; max-width: 100%; display: block; }
.brand img { display: block; width: 100%; height: 62px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; gap: 32px; font-size: 13px; }
.desktop-nav a { color: #c9c9c6; transition: color .2s ease; }
.desktop-nav a:hover { color: #fff; }
.nav-cta {
  justify-self: end;
  border-bottom: 1px solid var(--copper-bright);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
}

.hero {
  min-height: calc(100vh - 88px);
  padding: clamp(72px, 10vw, 140px) clamp(24px, 6vw, 100px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
}
.hero::after {
  content: ""; position: absolute; width: 680px; height: 680px; right: -220px; top: -250px;
  border: 1px solid rgba(228,155,96,.28); border-radius: 50%;
  box-shadow: 0 0 0 110px rgba(228,155,96,.03), 0 0 0 220px rgba(228,155,96,.025);
}
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.eyebrow, .kicker {
  font-family: "Courier New", monospace;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600;
}
.eyebrow { color: #c9c9c4; display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 28px; height: 1px; background: var(--copper-bright); }
.hero h1 {
  max-width: 800px; margin: 28px 0 30px; font-size: clamp(54px, 6.2vw, 94px); line-height: .98;
  font-weight: 520; letter-spacing: -.055em;
}
.hero h1 em, .services-intro h2 em { color: var(--copper-bright); font-style: normal; }
.hero-intro { max-width: 660px; color: #b8b9b7; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 36px;
  min-height: 54px; padding: 0 22px; font-size: 13px; font-weight: 650; transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--copper); color: #fff; }
.button-primary:hover { background: #d18449; }
.button-ghost { border: 1px solid rgba(255,255,255,.24); color: #fff; }
.button-ghost:hover { border-color: rgba(255,255,255,.6); }
.hero-proof {
  margin-top: clamp(48px, 7vw, 92px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.15);
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px;
}
.hero-proof div { display: flex; flex-direction: column; gap: 7px; padding-right: 20px; }
.hero-proof strong { font-size: 20px; font-weight: 560; }
.hero-proof span { font-size: 11px; color: #8d908d; text-transform: uppercase; letter-spacing: .06em; }

.hero-visual {
  background: rgba(27,29,29,.85); border: 1px solid rgba(255,255,255,.16); padding: 28px;
  box-shadow: 0 40px 100px rgba(0,0,0,.35); backdrop-filter: blur(10px);
}
.visual-topline { display: flex; justify-content: space-between; color: #8f928e; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; padding-bottom: 28px; }
.live-dot { color: var(--lime); }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; margin-right: 8px; }
.route-card { display: flex; gap: 18px; align-items: center; background: #222424; border: 1px solid rgba(255,255,255,.11); padding: 18px; }
.route-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(228,155,96,.55); color: var(--copper-bright); font-family: "Courier New", monospace; font-size: 12px; }
.route-card div { display: flex; flex-direction: column; gap: 6px; }
.route-card small { color: #777b77; font-size: 9px; letter-spacing: .13em; }
.route-card strong { font-size: 16px; font-weight: 530; }
.route-line { margin-left: 23px; height: 66px; border-left: 1px dashed rgba(228,155,96,.6); display: flex; align-items: center; gap: 14px; }
.route-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--copper-bright); margin-left: -4px; }
.route-line span { font-size: 10px; color: #777b77; text-transform: uppercase; letter-spacing: .08em; }
.visual-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.visual-footer span { border: 1px solid rgba(255,255,255,.12); text-align: center; padding: 9px; font-size: 10px; color: #bbbdb9; }
.visual-footer small { grid-column: 1 / -1; color: #656965; margin-top: 6px; }

.trust-strip {
  min-height: 68px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 50px);
  padding: 16px 24px; background: var(--copper); color: #181411; font-family: "Courier New", monospace; font-size: 9px; letter-spacing: .13em; font-weight: 700;
}
.trust-strip i { width: 4px; height: 4px; background: rgba(11,12,13,.42); border-radius: 50%; }

.section { padding: clamp(84px, 10vw, 150px) clamp(24px, 6vw, 100px); }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; margin-bottom: 70px; }
.kicker { color: var(--copper); margin: 0 0 22px; }
.kicker-light { color: var(--copper-bright); }
.section-heading h2, .assurance-copy h2, .services-intro h2, .requirements h2, .contact-copy h2 {
  margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.06; letter-spacing: -.045em; font-weight: 540;
}
.section-heading > p { color: #666960; font-size: 16px; line-height: 1.7; max-width: 570px; margin: 0; }
.commodity-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.commodity-card { min-height: 510px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.card-number { font-family: "Courier New", monospace; font-size: 10px; color: #8c8d85; }
.mineral { height: 150px; margin: 44px 0 34px; position: relative; display: grid; place-items: center; overflow: hidden; }
.mineral span { display: block; width: 130px; height: 100px; background: #242627; clip-path: polygon(10% 20%, 38% 0, 78% 14%, 100% 52%, 73% 100%, 25% 87%, 0 58%); transform: rotate(-8deg); box-shadow: inset 20px -15px 35px rgba(0,0,0,.5); }
.mineral::before, .mineral::after { content: ""; position: absolute; border-radius: 50%; filter: blur(35px); opacity: .5; }
.mineral::before { width: 90px; height: 90px; background: var(--copper); }
.mineral::after { width: 35px; height: 35px; background: #fff; opacity: .18; transform: translate(-28px,-20px); }
.mineral-02 span { background: #554e45; transform: rotate(13deg); clip-path: polygon(8% 34%, 35% 4%, 84% 0, 100% 55%, 64% 100%, 18% 91%); }
.mineral-02::before { background: #8e715d; }
.mineral-03 span { background: #4e5044; transform: rotate(-2deg); clip-path: polygon(0 28%, 32% 0, 73% 9%, 100% 45%, 85% 89%, 33% 100%, 9% 67%); }
.mineral-03::before { background: #889065; }
.commodity-card h3 { font-size: 27px; letter-spacing: -.025em; font-weight: 580; margin: 0 0 16px; }
.commodity-card > p { color: #6b6e66; line-height: 1.65; font-size: 14px; margin: 0 0 26px; }
.tag-row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span { border: 1px solid var(--line); padding: 7px 9px; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #73756e; }
.commodity-note { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 24px; padding: 26px 28px; border: 1px solid var(--line); border-top: 0; }
.commodity-note > span { width: 40px; height: 40px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--copper); }
.commodity-note p { margin: 0; color: #6b6e66; font-size: 14px; }.commodity-note strong { color: var(--ink); }
.commodity-note a { font-size: 12px; border-bottom: 1px solid var(--copper); padding: 8px 0; }

.services-band { background: #141616; color: white; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(70px, 10vw, 160px); padding: clamp(90px, 11vw, 160px) clamp(24px, 6vw, 100px); }
.services-intro { position: sticky; top: 80px; align-self: start; }
.services-intro > p:last-child { color: #939793; line-height: 1.75; max-width: 550px; margin-top: 32px; }
.service-list { border-top: 1px solid rgba(255,255,255,.15); }
.service-list > div { display: grid; grid-template-columns: 50px 1fr 1.25fr; gap: 24px; align-items: start; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.service-list span { font-family: "Courier New", monospace; color: var(--copper-bright); font-size: 10px; }
.service-list h3 { margin: 0; font-size: 19px; font-weight: 550; }
.service-list p { margin: 0; color: #8f938f; font-size: 13px; line-height: 1.65; }

.process-section { background: #e8e5dd; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-step { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-step > span { display: block; color: var(--copper); font-family: "Courier New", monospace; font-size: 10px; margin-bottom: 58px; }
.process-step h3 { font-size: 20px; margin: 0 0 14px; font-weight: 570; }
.process-step p { color: #696c64; font-size: 13px; line-height: 1.65; margin: 0; }

.assurance { display: grid; grid-template-columns: 1fr 1fr; min-height: 750px; }
.assurance-copy { background: var(--paper); padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 110px); }
.assurance-copy > p:not(.kicker) { color: #696c64; line-height: 1.75; max-width: 620px; margin-top: 30px; }
.assurance-panel { background: var(--copper); padding: clamp(70px, 9vw, 130px) clamp(24px, 6vw, 90px); }
.assurance-panel > p { font-family: "Courier New", monospace; font-size: 10px; letter-spacing: .14em; margin: 0 0 44px; }
.assurance-panel ul { list-style: none; margin: 0; padding: 0; }
.assurance-panel li { display: flex; gap: 16px; align-items: center; border-top: 1px solid rgba(11,12,13,.24); padding: 18px 0; font-size: 14px; }
.assurance-panel li span { width: 25px; height: 25px; border: 1px solid rgba(11,12,13,.35); display: grid; place-items: center; font-size: 10px; border-radius: 50%; }
.scope-note { margin-top: 46px; padding: 24px; background: rgba(11,12,13,.12); }
.scope-note strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.scope-note p { font-size: 12px; line-height: 1.6; margin: 10px 0 0; }

.requirements { padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 100px); background: #0c0d0e; color: #fff; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.requirements ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.requirements li { border-bottom: 1px solid rgba(255,255,255,.16); padding: 21px 0; color: #b4b7b3; font-size: 14px; }
.requirements li span { color: var(--copper-bright); font-family: "Courier New", monospace; font-size: 9px; display: inline-block; width: 52px; }

.contact-section { padding: clamp(80px, 10vw, 150px) clamp(24px, 6vw, 100px); display: grid; grid-template-columns: .28fr 1fr .72fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-mark { width: 90px; height: 90px; border: 1px solid var(--line); display: grid; place-items: center; font-family: "Courier New", monospace; font-weight: 700; font-size: 22px; }
.contact-copy > p:not(.kicker) { max-width: 610px; color: #686b63; line-height: 1.7; margin: 24px 0 32px; }
.contact-copy .button { color: white; }
address { font-style: normal; border-top: 1px solid var(--line); }
address div { border-bottom: 1px solid var(--line); padding: 22px 0; display: flex; flex-direction: column; gap: 8px; }
address small { font-family: "Courier New", monospace; color: #909188; font-size: 9px; letter-spacing: .1em; }
address a, address span { font-size: 14px; line-height: 1.5; }
address a:hover { color: var(--copper); }

footer { min-height: 96px; background: #080909; color: #777b77; padding: 20px clamp(24px, 5vw, 84px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; font-size: 10px; }
footer img { width: 220px; height: 55px; object-fit: contain; object-position: left center; opacity: .82; }
footer p { margin: 0; text-align: center; }
footer div { display: flex; gap: 28px; justify-self: end; }
footer a { color: #bbbdbb; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }.desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; }.hero-copy { max-width: 850px; }.hero-visual { max-width: 650px; width: 100%; }
  .services-band { grid-template-columns: 1fr; }.services-intro { position: static; }
  .assurance { grid-template-columns: 1fr; }.contact-section { grid-template-columns: .2fr 1fr; }.contact-section address { grid-column: 2; }
}

@media (max-width: 760px) {
  .site-header { height: auto; min-height: 78px; padding: 8px 20px; }.brand { width: 235px; }.brand img { height: 54px; }.nav-cta { display: none; }
  .hero { min-height: auto; padding-top: 72px; }.hero h1 { font-size: clamp(48px, 14vw, 70px); }.hero-intro { font-size: 16px; }
  .hero-actions { flex-direction: column; }.button { width: 100%; }.hero-proof { gap: 16px; }.hero-proof strong { font-size: 16px; }
  .trust-strip { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .commodity-grid, .process-grid { grid-template-columns: 1fr; }.commodity-card { min-height: 460px; }
  .commodity-note { grid-template-columns: 42px 1fr; }.commodity-note a { grid-column: 2; justify-self: start; }
  .service-list > div { grid-template-columns: 35px 1fr; }.service-list p { grid-column: 2; }
  .requirements { grid-template-columns: 1fr; gap: 50px; }
  .contact-section { grid-template-columns: 1fr; }.contact-mark { width: 64px; height: 64px; }.contact-section address { grid-column: 1; width: 100%; }
  footer { grid-template-columns: 1fr; text-align: left; padding-top: 34px; padding-bottom: 34px; }footer p { text-align: left; }footer div { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
