/* ============================================================
   Zoe Investments — Cybersecurity website
   Single stylesheet. Theme is driven by the CSS variables in
   :root below — change colours/fonts there to re-theme.
   ============================================================ */

/* ---------- Theme variables ---------- */
:root {
  /* Brand palette (from the design: dark navy + gold accent) */
  --navy:        #0b1220;   /* hero / dark section background */
  --navy-2:      #111a2e;   /* slightly lifted dark surface (cards on dark) */
  --navy-3:      #1b2540;   /* borders / dividers on dark */
  --ink:         #1a2233;   /* primary text on light backgrounds */
  --ink-soft:    #5a6478;   /* secondary/body text on light */
  --gold:        #f5b417;   /* primary accent (buttons, highlights) */
  --gold-dark:   #d99b08;   /* accent hover */
  --light:       #f6f8fb;   /* light-grey section background */
  --white:       #ffffff;
  --line:        #e6eaf1;   /* hairline borders on light */
  --green:       #22c55e;   /* check marks */

  /* Typography */
  --font: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 76px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.18);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  /* offset so anchored sections aren't hidden under the sticky header */
  scroll-padding-top: var(--header-h);
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }

.accent { color: var(--gold); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--light { background: var(--light); }
.section--dark  { background: var(--navy); color: #cfd7e6; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.section--dark .section-head .eyebrow { color: var(--gold); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--ink);
}
.section--dark .section-head h2 { color: var(--white); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.section--dark .section-head p { color: #aab4c8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost-dark:hover { background: var(--light); }

/* ============================================================
   Header / Nav
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-3);
  z-index: 1000;
}
.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}
.logo .logo-mark {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 7px;
  font-weight: 800;
}
.logo .logo-sub { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  color: #cfd7e6;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 14px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(11,18,32,0.86), rgba(11,18,32,0.94)),
    radial-gradient(circle at 70% 30%, rgba(245,180,23,0.10), transparent 55%),
    var(--navy);
  color: var(--white);
  padding: calc(var(--header-h) + 90px) 0 0;
  overflow: hidden;
}
/* subtle circuit grid backdrop */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  color: var(--white);
  margin-bottom: 18px;
}
.hero .lead {
  font-size: 1.15rem;
  color: #b9c2d6;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
/* hero feature bar */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: 26px 0;
  border-top: 1px solid var(--navy-3);
}
.hero-features li {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  color: #cfd7e6;
}
.hero-features .check { color: var(--gold); font-weight: 800; }

/* ============================================================
   Threat cards (Modern Threat Landscape)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.threat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.threat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.threat-card .icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(245,180,23,0.14);
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.threat-card .icon svg { width: 26px; height: 26px; }
.threat-card h3 { font-size: 1.15rem; color: var(--ink); }
.threat-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ============================================================
   Solutions (dark split block)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .media img,
.split .media .media-fallback {
  border-radius: var(--radius);
  width: 100%;
}
.media-fallback {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 45%, rgba(245,180,23,0.18), transparent 60%),
    linear-gradient(135deg, var(--navy-2), #0a1a33);
  border: 1px solid var(--navy-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.media-fallback svg { width: 88px; height: 88px; opacity: 0.85; }

.solutions h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.solutions .lead { color: #aab4c8; }
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 24px 0 30px;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: #d3dae8;
  font-size: 0.95rem;
}
.check-list .check { color: var(--gold); font-weight: 800; flex: none; }

/* ============================================================
   Services (image-card grid)
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-2);
  min-height: 230px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card .thumb {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(11,18,32,0.25), rgba(11,18,32,0.85)),
    linear-gradient(135deg, #14233f, #0a1426);
  background-size: cover;
  background-position: center;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11,18,32,0.92) 100%);
}
.service-card .body {
  position: absolute; inset: auto 0 0 0;
  padding: 22px;
  color: var(--white);
}
.service-card h3 { font-size: 1.15rem; color: var(--white); margin: 0 0 6px; }
.service-card p { font-size: 0.88rem; color: #c4cce0; margin: 0 0 14px; }
.service-card.is-featured .thumb {
  background: linear-gradient(160deg, rgba(245,180,23,0.22), rgba(11,18,32,0.92)), linear-gradient(135deg, #1b2b4a, #0a1426);
}

/* ============================================================
   Process (How we work)
   ============================================================ */
.process {
  background:
    linear-gradient(rgba(11,18,32,0.90), rgba(11,18,32,0.94)),
    linear-gradient(120deg, #0d1830, #0a1426);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step {
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}
.step .num {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
}
.step h3 { color: var(--white); font-size: 1.2rem; }
.step p { color: #aab4c8; font-size: 0.95rem; margin: 0; }

/* ============================================================
   Technologies (logo row)
   ============================================================ */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 56px;
}
.tech-row .tech {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink-soft);
  opacity: 0.8;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition), color var(--transition);
  letter-spacing: 0.01em;
}
.tech-row .tech:hover { opacity: 1; filter: grayscale(0); color: var(--ink); }

/* ============================================================
   Contact (Security Consultation)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.contact-intro h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-intro p { color: #aab4c8; }
.contact-details { margin-top: 28px; display: grid; gap: 16px; }
.contact-details li { display: flex; align-items: center; gap: 14px; color: #d3dae8; }
.contact-details .ci {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(245,180,23,0.14);
  color: var(--gold);
}
.contact-details .ci svg { width: 20px; height: 20px; }

.form-card {
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4cce0;
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--navy-3);
  background: var(--navy);
  color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder, .field textarea::placeholder { color: #6c768c; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,180,23,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; justify-content: center; }
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #f87171; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #070d18;
  color: #97a2b8;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer .logo { margin-bottom: 16px; }
.footer p { font-size: 0.92rem; line-height: 1.7; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.92rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer .contact-details { margin-top: 0; }
.footer .contact-details li { color: #97a2b8; font-size: 0.92rem; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--navy-2);
  color: #cfd7e6;
  transition: background var(--transition), color var(--transition);
}
.socials a:hover { background: var(--gold); color: var(--navy); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--navy-3);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom .legal { display: flex; gap: 22px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .card-grid, .service-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }

  /* mobile nav: slide-down panel */
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-3);
    padding: 12px 16px 20px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 10px; border-bottom: 1px solid var(--navy-3); }
  .nav a:last-child { border-bottom: 0; }

  /* hide the desktop header button on small screens (CTA lives in hero + nav) */
  .header-cta .btn { display: none; }

  .card-grid, .service-grid, .step-grid, .check-list, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal-page {
  padding: calc(var(--header-h) + 60px) 0 80px;
}
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); }
.legal-page .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.25rem; color: var(--ink); margin-top: 34px; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--gold-dark); text-decoration: underline; }
.back-link { display: inline-block; margin-top: 30px; font-weight: 600; color: var(--gold-dark); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   Trust & stats bar (B-BBEE + key metrics)
   ============================================================ */
.trustbar { background: var(--navy-2); border-top: 1px solid var(--navy-3); border-bottom: 1px solid var(--navy-3); }
.trustbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}
.bbbee-badge { display: flex; align-items: center; gap: 14px; }
.bbbee-icon {
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(245,180,23,0.14);
  color: var(--gold);
}
.bbbee-icon svg { width: 26px; height: 26px; }
.bbbee-text { display: flex; flex-direction: column; line-height: 1.3; }
.bbbee-text strong { color: var(--white); font-size: 1rem; }
.bbbee-text span { color: #9aa6bd; font-size: 0.82rem; }

.stats { display: flex; gap: 18px 40px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; align-items: center; min-width: 86px; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label {
  font-size: 0.74rem; color: #9aa6bd; margin-top: 7px;
  text-transform: uppercase; letter-spacing: 0.06em; text-align: center;
}

/* B-BBEE callout inside Solutions */
.bbbee-note {
  background: rgba(245,180,23,0.09);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px 18px;
  color: #e7ecf6;
  font-size: 0.95rem;
  margin: 4px 0 24px;
}
.bbbee-note strong { color: var(--gold); }

/* ============================================================
   Services: group labels + ICT cards
   ============================================================ */
.group-label {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  text-align: center;
  font-size: 1.15rem; color: var(--ink);
  margin: 0 0 28px;
}
.group-label::before, .group-label::after {
  content: ""; height: 1px; width: 46px; background: var(--line);
}
.service-grid + .group-label { margin-top: 54px; }

.ict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.ict-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ict-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ict-card .icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(245,180,23,0.14);
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.ict-card .icon svg { width: 24px; height: 24px; }
.ict-card h4 { font-size: 1.05rem; color: var(--ink); margin: 0 0 6px; }
.ict-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Testimonials
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.testi-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.testi-card blockquote { margin: 0; color: var(--ink); font-size: 0.98rem; line-height: 1.6; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-card .avatar {
  width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700; font-size: 0.9rem;
}
.testi-card .who { display: flex; flex-direction: column; line-height: 1.3; }
.testi-card .who strong { color: var(--ink); font-size: 0.95rem; }
.testi-card .who span { color: var(--ink-soft); font-size: 0.82rem; }

/* Footer B-BBEE line */
.footer-bbbee {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 2px 0 0;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
}

/* ============================================================
   Reveal-on-scroll (JS adds .reveal-on to <html> only when
   motion is allowed, so content is always visible without JS
   or when prefers-reduced-motion is set).
   ============================================================ */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

/* New-component responsive tweaks */
@media (max-width: 720px) {
  .trustbar-inner { justify-content: center; text-align: center; }
  .bbbee-badge { justify-content: center; }
  .stats { justify-content: center; gap: 18px 28px; }
  .stat-num { font-size: 1.5rem; }
}
