/* ===================================================================
   Onlyn Biz Enterprise — shared stylesheet
   Design concept: government supply-schedule / spec-sheet aesthetic.
   Print registration marks, itemised tables and a stamped B-BBEE seal
   stand in for the generic "card grid" — all drawn from the actual
   world of tender documents this company lives in.
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root{
  --ink:        #1c2321;
  --ink-soft:   #454f4c;
  --paper:      #eeede7;
  --paper-dim:  #e3e1d8;
  --white:      #fffefb;
  --steel:      #2b4570;
  --steel-dim:  #4c6e91;
  --amber:      #d98e2b;
  --amber-soft: #f3d9ab;
  --line:       #c7c4b8;
  --line-dark:  #9a978a;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --measure: 68ch;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

h1, h2, h3{
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; max-width: var(--measure); }

a{ color: var(--steel); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

/* ---------- registration-mark corner ticks ---------- */
.reg-frame{
  position: relative;
  border: 1px solid var(--line-dark);
}
.reg-frame::before, .reg-frame::after,
.reg-frame .rf-br, .reg-frame .rf-bl{
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--ink);
}
.reg-frame::before{ top: -1px; left: -1px; border-right: none; border-bottom: none; }
.reg-frame::after{ top: -1px; right: -1px; border-left: none; border-bottom: none; }
.reg-frame .rf-bl{ bottom: -1px; left: -1px; border-right: none; border-top: none; }
.reg-frame .rf-br{ bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- shell ---------- */
.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header / nav ---------- */
.site-header{
  background: var(--ink);
  color: var(--paper);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
}
.brand .mark{
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand .sub{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber-soft);
}
nav.primary{
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}
nav.primary a{
  color: var(--paper);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
nav.primary a:hover,
nav.primary a[aria-current="page"]{
  border-bottom-color: var(--amber);
  color: var(--white);
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--ink);
  color: var(--paper-dim);
  margin-top: 96px;
}
.site-footer .wrap{
  padding-top: 40px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer h3{
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.7em;
}
.site-footer p, .site-footer a{
  color: var(--paper-dim);
  font-size: 0.9rem;
}
.site-footer a{ text-decoration: none; }
.site-footer a:hover{ color: var(--white); }
.site-footer .legal{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--line-dark);
}
.footer-bottom{
  border-top: 1px solid #33403c;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--line-dark);
  text-align: center;
}

/* ---------- section rhythm ---------- */
section{ padding: 72px 0; }
section + section{ border-top: 1px solid var(--line); }
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: 1.6rem; }
.section-num{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel-dim);
}

/* ---------- hero ---------- */
.hero{
  padding: 64px 0 80px;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
.eyebrow-line{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  margin-bottom: 18px;
}
.hero h1{
  font-size: clamp(2.1rem, 4vw, 3rem);
  max-width: 14ch;
}
.hero .lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.btn:hover{ background: var(--ink); color: var(--white); }
.btn.primary{
  background: var(--steel);
  border-color: var(--steel);
  color: var(--white);
}
.btn.primary:hover{ background: var(--ink); border-color: var(--ink); }

/* ---------- BBBEE seal ---------- */
.seal{
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-6deg);
  position: relative;
  margin-left: auto;
  color: var(--steel);
}
.seal::before{
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--steel-dim);
  border-radius: 50%;
}
.seal .seal-inner{
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
}
.seal .seal-inner .big{ font-size: 1.9rem; display: block; }
.seal .seal-inner .small{
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- schedule table (services / references) ---------- */
.schedule{
  width: 100%;
  border-collapse: collapse;
}
.schedule th{
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 500;
}
.schedule td{
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}
.schedule tr:hover td{ background: var(--paper-dim); }
.schedule td.code{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  white-space: nowrap;
}
.schedule td.name{ font-weight: 600; }

/* ---------- two column ---------- */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.two-col h3{ font-size: 1.05rem; color: var(--steel); }

/* ---------- team ---------- */
.team-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.team-item{
  background: var(--paper);
  padding: 22px 24px;
}
.team-item .name{ font-weight: 600; margin-bottom: 4px; }
.team-item .role{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
  margin-bottom: 8px;
  display: block;
}
.team-item p{ font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- bbbee band ---------- */
.band{
  background: var(--steel);
  color: var(--white);
}
.band .wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.band h2{ color: var(--white); }
.band p{ color: #dbe4ee; }
.band .stat{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--amber-soft);
}
.band .stat-label{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #b9cadc;
}

/* ---------- cta ---------- */
.cta{
  text-align: left;
}
.cta .wrap{
  padding-top: 64px;
  padding-bottom: 80px;
}
.cta h2{ font-size: 2rem; max-width: 20ch; }

/* ---------- generic page header (contact / maps) ---------- */
.page-head{ padding: 56px 0 40px; }
.page-head .eyebrow-line{ margin-bottom: 14px; }
.page-head h1{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 20ch; }
.page-head .lede{ font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- contact page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-card{ padding: 4px 0; }
.contact-line{
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line .k{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  width: 84px;
  flex-shrink: 0;
  padding-top: 3px;
}
.contact-line .v{ font-size: 1.02rem; }
.contact-line .v a{ color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-dark); }

form.enquiry{
  border: 1px solid var(--line-dark);
  padding: 28px;
  background: var(--white);
}
form.enquiry .field{ margin-bottom: 18px; }
form.enquiry label{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
form.enquiry input,
form.enquiry select,
form.enquiry textarea{
  width: 100%;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
form.enquiry textarea{ resize: vertical; min-height: 110px; }
form.enquiry .note{
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- maps page ---------- */
.location{
  border: 1px solid var(--line-dark);
  background: var(--white);
  margin-bottom: 28px;
}
.location .loc-body{
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: baseline;
}
.location .loc-name{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  margin-bottom: 6px;
  display: block;
}
.location address{ font-style: normal; font-size: 1.02rem; }
.location iframe{
  width: 100%;
  height: 300px;
  border: 0;
  border-top: 1px solid var(--line);
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}
.location .directions{
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .seal{ margin-left: 0; margin-top: 12px; }
  .two-col{ grid-template-columns: 1fr; gap: 28px; }
  .team-list{ grid-template-columns: 1fr; }
  .band .wrap{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .site-footer .wrap{ grid-template-columns: 1fr; gap: 28px; }
  nav.primary{ gap: 18px; font-size: 0.88rem; }
}
