/* ============================================================
   CCTV DE BRUIN SECURITY — Kathu, Northern Cape
   Design system: surveillance-monitor aesthetic
   ============================================================ */

:root {
  --ink: #0b0908;          /* page background */
  --panel: #151009;        /* raised panels */
  --panel-2: #1c1610;      /* hover / deeper panels */
  --line: #2b2118;         /* hairlines */
  --orange: #f59315;       /* brand orange (logo) */
  --orange-deep: #c96f06;
  --cream: #f0e7d4;        /* logo lettering cream */
  --body: #b9ad99;         /* body text on dark */
  --khaki: #8d7c5d;        /* muted labels */
  --wa: #25d366;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

::selection { background: var(--orange); color: var(--ink); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); color: var(--cream); line-height: 0.95; text-transform: uppercase; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--khaki);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--orange); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: 0.04em; color: var(--cream); text-transform: uppercase;
}
.brand-name span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.28em; color: var(--orange); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--body);
  letter-spacing: 0.02em; transition: color 0.15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--orange); padding-bottom: 3px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--cream); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; padding: 9px 14px; cursor: pointer; text-transform: uppercase;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; padding: 14px 26px; border-radius: 4px;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  cursor: pointer; border: none;
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #06230f; }
.btn-wa:hover { background: #2ee878; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #ffa62e; }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn svg { flex: none; }

.header-cta { padding: 11px 20px; font-size: 14px; }

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

.hero { padding: clamp(20px, 3vw, 36px) var(--pad); }

.viewfinder {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(22px, 3.5vw, 40px);
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(245, 147, 21, 0.07), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(240, 231, 212, 0.014) 3px 4px),
    linear-gradient(180deg, #120e09, #0b0908 70%);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* corner brackets */
.viewfinder::before, .viewfinder::after,
.vf-inner::before, .vf-inner::after {
  content: ""; position: absolute; width: 34px; height: 34px;
  border-color: var(--orange); border-style: solid; z-index: 3;
}
.viewfinder::before { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.viewfinder::after  { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.vf-inner::before   { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.vf-inner::after    { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }

.vf-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: relative; z-index: 2; }

.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); }
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #ff3b30;
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.hero-core { position: relative; z-index: 2; text-align: left; padding: clamp(28px, 5vh, 56px) 0; }

.hero-core h1 {
  font-size: clamp(56px, 10.5vw, 138px);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 6px 0 20px;
}
.hero-core h1 .accent { color: var(--orange); }
.hero-sub {
  max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); color: var(--body);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- ticker strip ---------- */

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.ticker .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  padding-top: 15px; padding-bottom: 15px;
}
.ticker span { display: inline-flex; align-items: center; gap: 9px; }
.ticker span::before { content: "▸"; color: var(--orange); font-size: 10px; }

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

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head h2 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 700; margin-bottom: 14px; }
.section-head p { font-size: 17px; }

/* ---------- channel grid (services) ---------- */

.channel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.channel {
  background: var(--panel); padding: 26px 26px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.2s; text-decoration: none;
  position: relative;
}
.channel:hover { background: var(--panel-2); }
.channel-bar { display: flex; justify-content: space-between; align-items: center; }
.channel-live { color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.channel-live::before { content: "●"; font-size: 8px; }
.channel h3 { font-size: 26px; font-weight: 700; letter-spacing: 0.02em; }
.channel p { font-size: 15px; flex: 1; }
.channel-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }
.channel:hover .channel-link { color: var(--orange); }
.channel-icon { color: var(--orange); }

/* ---------- split (why local) ---------- */

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.statement {
  font-family: var(--font-display); text-transform: uppercase; color: var(--cream);
  font-size: clamp(34px, 4.4vw, 54px); font-weight: 600; line-height: 1.02;
}
.statement em { font-style: normal; color: var(--orange); }
.points { display: flex; flex-direction: column; }
.point { border-top: 1px solid var(--line); padding: 24px 0; }
.point:last-child { border-bottom: 1px solid var(--line); }
.point h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: 0.03em; }
.point p { font-size: 15.5px; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: step; }
.step { background: var(--panel); padding: 30px 26px 34px; }
.step-num { font-family: var(--font-display); font-size: 52px; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 16px; }
.step h3 { font-size: 23px; margin-bottom: 10px; letter-spacing: 0.03em; }
.step p { font-size: 15px; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--orange); }
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px);
}
.cta-band h2 { color: var(--ink); font-size: clamp(36px, 5vw, 60px); font-weight: 800; max-width: 620px; }
.cta-band .mono { color: rgba(11, 9, 8, 0.65); margin-bottom: 10px; }
.cta-band .btn { background: var(--ink); color: var(--cream); padding: 16px 30px; }
.cta-band .btn:hover { background: #241c13; }

/* ---------- page hero (inner pages) ---------- */

.page-hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #120e09, var(--ink)); }
.page-hero .wrap { padding-top: clamp(52px, 7vw, 90px); padding-bottom: clamp(44px, 6vw, 76px); }
.page-hero h1 { font-size: clamp(48px, 8vw, 96px); font-weight: 800; margin-top: 6px; }
.page-hero p { max-width: 620px; margin-top: 18px; font-size: 17.5px; }

/* ---------- service detail rows ---------- */

.svc-row {
  display: grid; grid-template-columns: 200px 1fr 1fr; gap: clamp(24px, 4vw, 60px);
  border-top: 1px solid var(--line); padding: clamp(36px, 5vw, 56px) 0;
}
.svc-row:last-of-type { border-bottom: 1px solid var(--line); }
.svc-ch { display: flex; flex-direction: column; gap: 10px; }
.svc-ch .ch-code { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--orange); line-height: 1; }
.svc-main h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-bottom: 14px; }
.svc-main p { font-size: 16px; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.svc-list li { display: flex; gap: 12px; font-size: 15.5px; align-items: baseline; }
.svc-list li::before { content: "▸"; color: var(--orange); font-size: 12px; flex: none; }
.svc-cta { margin-top: 20px; display: inline-flex; }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); }
.about-grid .lead { font-size: clamp(19px, 2vw, 23px); color: var(--cream); line-height: 1.5; }
.about-grid .lead + p, .about-copy p + p { margin-top: 18px; }

.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.coverage div { background: var(--panel); padding: 22px 24px; display: flex; align-items: center; gap: 12px; color: var(--cream); font-weight: 500; }
.coverage div::before { content: "◎"; color: var(--orange); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--panel); padding: 30px 26px 34px; }
.value h3 { font-size: 22px; margin: 14px 0 10px; letter-spacing: 0.03em; }
.value p { font-size: 15px; }

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

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.contact-card {
  border: 1px solid var(--line); background: var(--panel); padding: clamp(30px, 4vw, 46px);
  position: relative;
}
.contact-card h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 12px 0 16px; }
.contact-card p { margin-bottom: 26px; max-width: 460px; }
.contact-meta { display: flex; flex-direction: column; }
.meta-row { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.meta-row:last-child { border-bottom: 1px solid var(--line); }
.meta-row strong { color: var(--cream); font-size: 16.5px; font-weight: 600; }
.meta-row a { color: var(--orange); text-decoration: none; }
.meta-row a:hover { text-decoration: underline; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; }
.checklist li::before { content: "▸"; color: var(--orange); font-size: 12px; flex: none; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: #080706; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px;
}
.footer-grid img { height: 64px; width: auto; margin-bottom: 16px; }
.footer-grid p { font-size: 14.5px; max-width: 300px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; font-weight: 500; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a { text-decoration: none; font-size: 14.5px; }
.footer-grid ul a:hover { color: var(--cream); }
.footer-grid ul li { font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 22px; padding-bottom: 26px;
}
.footer-bottom span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--khaki); }

/* ---------- floating whatsapp ---------- */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rec-dot { animation: none; }
  * { transition: none !important; }
}

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .channel-grid, .steps, .values, .coverage { grid-template-columns: repeat(2, 1fr); }
  .split, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #0d0b09; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    display: none; padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--pad); width: 100%; }
  .nav a[aria-current="page"] { border-bottom: none; color: var(--orange); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

@media (max-width: 560px) {
  .channel-grid, .steps, .values, .coverage, .footer-grid { grid-template-columns: 1fr; }
  .vf-row .mono { font-size: 10.5px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
