/* ==========================================================================
   Self Hawk Tech (Pty) Ltd — Main stylesheet
   Neutral, professional palette: white, soft greys, charcoal text,
   a single restrained navy accent.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-surface: #ffffff;
  --color-border: #e2e5ea;
  --color-text: #1f2328;
  --color-text-muted: #59616b;
  --color-heading: #111418;
  --color-accent: #1f3a5f;
  --color-accent-hover: #162b47;
  --color-accent-soft: #eef2f7;
  --color-footer-bg: #15191e;
  --color-footer-text: #b4bac2;

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

  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 20, 24, 0.05);
  --shadow-md: 0 4px 16px rgba(17, 20, 24, 0.06);
  --container: 1120px;
  --gutter: 24px;
}

/* ---------- Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 650;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(150%) blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-heading);
  background: var(--color-bg-alt);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--color-heading);
  background: var(--color-bg-alt);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-heading);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-heading);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Hero / page header ---------- */

.hero {
  padding: 96px 0 88px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 680px;
}

.page-header {
  padding: 72px 0 64px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 0.4em;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--color-text-muted);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Two-column split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.split p {
  color: var(--color-text-muted);
}

/* ---------- Product feature ---------- */

.product {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.product-logo {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #fafafa;
  overflow: hidden;
}

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.product p {
  color: var(--color-text-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* ---------- Facts / definition list ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin: 0;
  overflow: hidden;
}

.facts div {
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

.facts div:last-child {
  border-right: 0;
}

.facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-heading);
}

/* ---------- Statement block (mission / vision) ---------- */

.statement {
  border-left: 3px solid var(--color-accent);
  padding-left: 24px;
  margin-bottom: 28px;
}

.statement p {
  font-size: 1.1rem;
  color: var(--color-text);
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--color-border);
}

.timeline li {
  position: relative;
  padding: 0 0 32px 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
}

.timeline .year {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.timeline h3 {
  margin-bottom: 0.3em;
}

.timeline p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Call to action ---------- */

.cta {
  background: var(--color-accent);
  color: #e6ebf2;
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta p {
  margin: 0;
  max-width: 560px;
}

.cta .btn {
  background: #fff;
  color: var(--color-accent);
}

.cta .btn:hover {
  background: #e9edf3;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a3038;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--color-footer-text);
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- 404 ---------- */

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found .code {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.not-found .btn-group {
  justify-content: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts div:nth-child(2) {
    border-right: 0;
  }

  .facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .site-header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-nav a {
    padding: 6px 10px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .page-header {
    padding: 52px 0 44px;
  }

  .section {
    padding: 64px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .facts div:last-child {
    border-bottom: 0;
  }

  .product {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .product-logo {
    max-width: 180px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  * {
    transition: none !important;
  }
}
