/* ==========================================================================
   ndakatech.co.za — one-page site
   Palette grounded in South African electrical contracting:
   cable-jacket charcoal, galvanised pylon steel, site daylight,
   warning-vest amber. WhatsApp green appears once, functionally.
   ========================================================================== */

:root {
  --jacket:      #14181C;  /* cable-jacket charcoal */
  --jacket-lift: #1E252B;  /* one step off the jacket, for quiet separation */
  --steel:       #48565F;  /* galvanised pylon steel — body copy on light */
  --steel-line:  #5E6E78;  /* the conductor span */
  --daylight:    #EEF0F1;  /* cool site daylight — page ground */
  --daylight-lo: #E4E8EA;  /* alternate band */
  --rule:        #D3D9DC;
  --vest:        #F2A20C;  /* warning-vest amber — the one accent */
  --vest-lift:   #FFB733;
  --signal:      #25D366;  /* functional only, never identity */

  --on-dark:     #DDE3E7;
  --on-dark-mut: #9CA9B2;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --focus: var(--jacket);
}

/* --- reset ---------------------------------------------------------------- */

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

html {
  scroll-padding-top: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--daylight);
  color: var(--steel);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

a { color: inherit; }

/* --- shared --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: -100vw;
  top: 0;
  z-index: 20;
  background: var(--vest);
  color: var(--jacket);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

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

.site-header {
  --focus: var(--vest);
  background: var(--jacket);
  color: var(--on-dark);
  border-bottom: 1px solid var(--jacket-lift);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;   /* collapse the inline-image baseline gap */
}

.brand img {
  display: block;
  height: auto;           /* honour the intrinsic ratio; the attrs reserve the box */
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.875rem;
}

.nav__list a {
  color: var(--on-dark-mut);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav__list a:hover {
  color: #fff;
  border-bottom-color: var(--vest);
}

@media (min-width: 760px) {
  html { scroll-padding-top: 5rem; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

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

.hero {
  --focus: var(--vest);
  background: var(--jacket);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6rem);
}

.eyebrow {
  color: var(--vest);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

h1 {
  color: #fff;
  font-size: clamp(2.4rem, 7.2vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

/* --- the signature: a conductor span, sagging between two towers ---------- */

.span {
  position: relative;
  height: clamp(30px, 5.5vw, 60px);
  overflow: hidden;
  margin-block: clamp(1.75rem, 4vw, 3rem);
}

.span::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 100%;
  border-bottom: 2px solid var(--steel-line);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 11px;
  height: 11px;
  background: var(--vest);
  transform: translate(-50%, 50%) rotate(45deg);
}

/* -------------------------------------------------------------------------- */

.lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
  line-height: 1.55;
  max-width: 46ch;
  color: var(--on-dark);
}

.audience {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 52ch;
  color: var(--on-dark-mut);
  font-size: 0.9375rem;
}

.status {
  margin-top: 1.25rem;
  color: var(--on-dark-mut);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

.cta {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.button {
  display: inline-block;
  background: var(--vest);
  color: var(--jacket);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 2px;
}

.button:hover {
  background: var(--vest-lift);
}

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

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--alt {
  background: var(--daylight-lo);
}

h2 {
  color: var(--jacket);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
}

h3 {
  color: var(--jacket);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.prose {
  max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

/* --- benefits (not a sequence — no markers) ------------------------------- */

.benefits {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}

.benefit {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  max-width: 52ch;
}

@media (min-width: 760px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit--wide { grid-column: 1 / -1; }
  .benefit--wide h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
  .benefit--wide p { max-width: 62ch; font-size: 1.0625rem; }
}

/* --- how it works (a real sequence — markers are earned) ------------------ */

.steps {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  counter-reset: step;
  max-width: 60ch;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(1rem, 2.5vw, 1.5rem);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  align-self: start;
  background: var(--vest);
  color: var(--jacket);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.55rem 0.55rem;
  border-radius: 2px;
}

.wa::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.35em;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: 0.05em;
}

/* --- contact -------------------------------------------------------------- */

.contact {
  display: grid;
  gap: 1.5rem;
  max-width: 60ch;
}

.contact__item {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.contact__label {
  color: var(--steel);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact a,
.contact address {
  color: var(--jacket);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.contact a {
  text-decoration-color: var(--vest);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact a:hover {
  color: var(--steel);
}

/* --- footer (the identity payload) ---------------------------------------- */

.site-footer {
  --focus: var(--vest);
  background: var(--jacket);
  color: var(--on-dark-mut);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 3px solid var(--vest);
}

.legal {
  font-size: 0.8125rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.sep {
  color: var(--steel);
  padding-inline: 0.35rem;
}
