/* ==========================================================================
   Somangaye IT & Internet Services — Help Centre
   Standalone stylesheet for help.somangayeinternet.co.za.
   Matches the main site's brand: Poppins headings / Inter body, navy
   primary, magenta used only as a small solid accent (never in gradients).
   ========================================================================== */

:root {
  --hc-primary: #0D3D91;
  --hc-primary-soft: #E7ECF4;
  --hc-accent: #B024B7;
  --hc-navy: #0F2A57;
  --hc-bg: #FFFFFF;
  --hc-surface: #FFFFFF;
  --hc-border: #EEF1F4;
  --hc-text: #4B5563;
  --hc-text-muted: #7A8494;

  --hc-font-display: 'Poppins', 'Segoe UI', sans-serif;
  --hc-font-body: 'Inter', 'Segoe UI', sans-serif;

  --hc-radius: 16px;
  --hc-radius-sm: 10px;
  --hc-max-width: 1240px;
  --hc-shadow: 0 8px 24px rgba(15, 25, 35, 0.06);
  --hc-shadow-hover: 0 20px 46px -16px rgba(15, 25, 35, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: var(--hc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, .hc-card:focus-visible {
  outline: 2px solid var(--hc-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--hc-font-display);
  color: var(--hc-navy);
  line-height: 1.3;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }

.hc-wrap {
  max-width: var(--hc-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.hc-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(20, 30, 40, .06);
}
.hc-topbar .hc-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.hc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hc-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--hc-navy);
}
.hc-brand:hover { text-decoration: none; opacity: 0.85; }
.hc-brand img.hc-logo { height: 38px; width: auto; object-fit: contain; display: block; }

.hc-topbar nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hc-topbar nav a {
  color: var(--hc-navy);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 30px;
  transition: color .15s, background .15s;
}
.hc-topbar nav a:hover { color: var(--hc-primary); background: var(--hc-primary-soft); text-decoration: none; }
.hc-topbar nav a.hc-nav-pill {
  background: var(--hc-primary);
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  box-shadow: 0 8px 20px -6px rgba(13, 61, 145, .4);
}
.hc-topbar nav a.hc-nav-pill:hover { background: var(--hc-primary); color: #fff; opacity: .92; text-decoration: none; }

/* ---------- Hero — subtle navy-only wash, no purple gradient ---------- */
.hc-hero {
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(13, 61, 145, .10), transparent 60%),
    radial-gradient(900px 380px at 5% 0%, rgba(13, 61, 145, .06), transparent 60%),
    #fafcfd;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--hc-border);
  text-align: center;
}
.hc-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.hc-hero p {
  color: var(--hc-text);
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 1rem;
}

.hc-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  box-shadow: var(--hc-shadow);
  padding: 6px 6px 6px 20px;
}
.hc-search svg { flex-shrink: 0; color: var(--hc-text-muted); }
.hc-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--hc-font-body);
  font-size: 0.95rem;
  color: var(--hc-navy);
  padding: 10px 12px;
}
.hc-search input::placeholder { color: var(--hc-text-muted); }
.hc-search-clear {
  border: 0;
  background: transparent;
  color: var(--hc-text-muted);
  font-size: 0.85rem;
  padding: 6px 10px;
  cursor: pointer;
  display: none;
}
.hc-search-clear.hc-visible { display: inline-block; }

/* ---------- Content layout ---------- */
.hc-content { padding: 44px 0 72px; }
.hc-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .hc-layout { grid-template-columns: 1fr; } }

.hc-section-title {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.hc-section-sub {
  color: var(--hc-text-muted);
  font-size: 0.92rem;
  margin-bottom: 26px;
}

/* ---------- Category grid ---------- */
.hc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .hc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hc-grid { grid-template-columns: 1fr; } }

.hc-card {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s cubic-bezier(.2,.8,.2,1), border-color 0.2s, opacity .15s;
}
.hc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hc-shadow-hover);
  border-color: transparent;
  text-decoration: none;
}
.hc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hc-primary-soft);
  color: var(--hc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-card-icon svg { width: 22px; height: 22px; }
.hc-card h3 { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--hc-navy); }
.hc-card p { margin: 0; font-size: 0.87rem; color: var(--hc-text-muted); flex-grow: 1; }
.hc-card-go { font-size: 0.84rem; font-weight: 600; color: var(--hc-primary); }

.hc-empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--hc-text-muted);
  border: 1px dashed var(--hc-border);
  border-radius: var(--hc-radius);
}
.hc-empty.hc-visible { display: block; }

/* ---------- Sidebar ---------- */
.hc-sidebar {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  padding: 20px;
  box-shadow: var(--hc-shadow);
  position: sticky;
  top: 88px;
}
.hc-sidebar h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hc-text-muted);
  margin-bottom: 14px;
}
.hc-sidebar ul { list-style: none; margin: 0; padding: 0; }
.hc-sidebar li { margin-bottom: 2px; }
.hc-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--hc-radius-sm);
  color: var(--hc-text);
  font-size: 0.9rem;
  font-weight: 500;
}
.hc-sidebar a:hover { background: var(--hc-primary-soft); color: var(--hc-primary); text-decoration: none; }

/* ---------- Footer ---------- */
.hc-footer {
  background: #0E1A20;
  color: #B7C1C8;
  padding: 32px 0;
  font-size: 0.85rem;
}
.hc-footer .hc-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hc-footer a { color: #B7C1C8; transition: color .15s; }
.hc-footer a:hover { color: var(--hc-primary); }

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