/* ===== MK CCTV – sales & service website ===== */
:root {
  --navy: #0e1828;
  --navy-2: #16243a;
  --navy-3: #22344f;
  --gold: #c99a2e;
  --gold-2: #a87c1c;
  --gold-light: #e9cd7f;
  --gold-soft: #faf4e3;
  --ink: #1a2332;
  --muted: #5f6b7c;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-alt: #f7f6f1;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 24, 40, .08);
  --shadow-lg: 0 22px 50px rgba(14, 24, 40, .18);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h3, h4 { font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.container--narrow { max-width: 820px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .98rem; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 154, 46, .4); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }

/* Top bar */
.topbar { background: var(--navy); color: #b7c2d2; font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a { color: #b7c2d2; }
.topbar a:hover { color: var(--gold-light); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo img { width: auto; height: 58px; flex: none; }
/* The logo keeps its original cream colour; on the white header it sits on a navy badge. */
.header .logo img { height: 60px; padding: 6px 10px; background: var(--navy); border-radius: 12px; box-sizing: border-box; }
.logo b { display: block; font-family: var(--font-head); font-size: 1.22rem; line-height: 1.15; color: var(--navy); }
.logo small { font-size: .74rem; color: var(--muted); letter-spacing: .4px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.nav a { position: relative; color: var(--ink); padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav .btn { color: var(--navy); padding: 9px 18px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
/* Background photo: images/hero.jpg (CC0, Matthew Henry / Burst), under a navy overlay that keeps the text readable. */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(700px 420px at 82% 40%, rgba(201, 154, 46, .3), transparent 65%), linear-gradient(100deg, rgba(14, 24, 40, .96) 0%, rgba(14, 24, 40, .86) 45%, rgba(14, 24, 40, .62) 100%), var(--navy) url("../images/hero.jpg") center top / cover no-repeat; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(201, 154, 46, .14); color: var(--gold-light); font-size: .82rem; font-weight: 600; letter-spacing: .6px; border: 1px solid rgba(201, 154, 46, .35); margin-bottom: 20px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { color: #c4cedc; font-size: 1.08rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.hero__art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero__ring { position: absolute; width: min(380px, 92%); aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(233, 205, 127, .4); animation: spin 40s linear infinite; }
.hero__ring--2 { width: min(300px, 74%); border-style: solid; border-color: rgba(255, 255, 255, .08); animation: none; }
.hero__logo { position: relative; width: min(330px, 78%); height: auto; filter: drop-shadow(0 18px 36px rgba(201, 154, 46, .35)); }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .96); color: var(--navy); font-size: .84rem; font-weight: 600; padding: 9px 15px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
.chip i { font-style: normal; }
.chip--1 { top: 8%; left: 0; }
.chip--2 { top: 44%; right: -2%; animation-delay: -1.7s; }
.chip--3 { bottom: 6%; left: 8%; animation-delay: -3.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-9px); } }

/* Trust strip */
.trust { position: relative; z-index: 2; margin-top: -44px; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.trust__grid div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 22px 24px; border-right: 1px solid var(--line); }
.trust__grid div:last-child { border-right: 0; }
.trust__grid span { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; font-size: 1.35rem; }
.trust__grid b { font-size: .97rem; color: var(--navy); }
.trust__grid small { color: var(--muted); font-size: .83rem; line-height: 1.35; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section__head p { color: var(--muted); margin: 0; }
.section--dark .section__head p { color: #a3b1c5; }
.eyebrow { display: inline-block; color: var(--gold-2); font-weight: 700; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section--dark .eyebrow { color: var(--gold-light); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.about p { color: var(--muted); }
.about__card { background: var(--navy); color: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.about__card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 46, .35), transparent 70%); }
.about__card h3 { color: var(--gold-light); font-size: 1.05rem; letter-spacing: .4px; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.ticks li { display: flex; gap: 12px; color: #d4dce8; font-size: .96rem; }
.ticks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(201, 154, 46, .2); color: var(--gold-light); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 1px; }

/* Products */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.cat__ic { flex: none; width: 78px; height: 78px; border-radius: 18px; background: var(--gold-soft); display: grid; place-items: center; transition: background .25s; }
.cat:hover .cat__ic { background: #f3e6bf; }
.cat__ic svg { width: 52px; height: 52px; }
.cat h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cat p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.5; }
.products__cta { text-align: center; margin-top: 40px; }
.products__cta p { color: var(--muted); margin-bottom: 16px; }

/* Brands */
.brands { padding: 46px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands__title { text-align: center; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 22px; }
.brands__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.brands__row li { font-weight: 600; font-size: .95rem; color: var(--navy-3); padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); transition: .2s; }
.brands__row li:hover { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); }

/* Service */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 30px; transition: transform .25s, border-color .25s, background .25s; }
.svc:hover { transform: translateY(-5px); border-color: rgba(233, 205, 127, .55); background: rgba(255, 255, 255, .07); }
.svc__ic { width: 56px; height: 56px; border-radius: 16px; background: rgba(201, 154, 46, .16); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
.svc h3 { font-size: 1.1rem; }
.svc p { color: #a3b1c5; margin: 0; font-size: .94rem; }

.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 25px; left: 12%; right: 12%; border-top: 2px dashed rgba(233, 205, 127, .35); }
.steps li { counter-increment: step; text-align: center; position: relative; color: #a3b1c5; font-size: .92rem; padding: 0 6px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; box-shadow: 0 0 0 7px var(--navy-2); position: relative; }
.steps b { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.steps__title { text-align: center; margin: 72px 0 0; font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.steps__title + .steps { margin-top: 36px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--gold-light); }
.faq summary { padding: 19px 54px 19px 24px; cursor: pointer; font-weight: 600; list-style: none; position: relative; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info--wide { grid-column: 1 / -1; }
.info__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 12px; }
.info h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin-bottom: 6px; }
.info p { margin: 0; color: var(--ink); font-size: .96rem; }
.info a { color: var(--ink); font-weight: 500; }
.info a:hover { color: var(--gold-2); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--bg-alt); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* CTA band */
.band { background: linear-gradient(135deg, var(--gold-light), var(--gold)); padding: 44px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.band p { margin: 0; color: #4a3a10; }
.band__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Policy pages */
.page-hero { background: radial-gradient(600px 300px at 85% 0%, rgba(201, 154, 46, .25), transparent 70%), linear-gradient(rgba(14, 24, 40, .86), rgba(14, 24, 40, .86)), var(--navy) url("../images/hero.jpg") center top / cover no-repeat; color: #fff; padding: 64px 0 96px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page-hero p { color: #a3b1c5; margin: 0; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 48px 52px; margin: -56px auto 80px; position: relative; max-width: 860px; }
.doc h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; margin: 2em 0 .6em; padding-left: 14px; border-left: 3px solid var(--gold); }
.doc p, .doc li { color: #3d4859; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--gold); }
.doc__contact { background: var(--gold-soft); border-radius: 14px; padding: 20px 24px; }
.doc__contact p { margin: 0; }

/* Footer */
.footer { background: var(--navy); color: #9fadc1; padding-top: 64px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer .logo b { color: #fff; }
.footer .logo small { color: #8797ad; }
.footer p { margin: 16px 0 0; max-width: 320px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: #9fadc1; }
.footer a:hover { color: var(--gold-light); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }
.footer__bottom nav { display: flex; gap: 20px; }

/* WhatsApp float */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; z-index: 80; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Reveal on scroll (class added by script, so content shows without it) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__ring, .chip { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; }
  .menu-btn { display: flex; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 84px; gap: 24px; }
  .hero__art { order: -1; min-height: 260px; }
  .hero__logo { width: 220px; }
  .hero__ring { width: 250px; }
  .hero__ring--2 { width: 200px; }
  .chip { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__links { width: 100%; justify-content: space-between; gap: 10px; font-size: .78rem; }
  .header__inner { height: 72px; }
  .logo img, .header .logo img { width: auto; height: 46px; padding: 4px 8px; }
  .footer .logo img { padding: 0; }
  .logo b { font-size: 1rem; }
  .section { padding: 60px 0; }
  .hero__cta .btn { width: 100%; }
  .trust__grid, .cat-grid, .svc-grid, .contact__cards { grid-template-columns: 1fr; }
  .trust__grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust__grid div:last-child { border-bottom: 0; }
  .doc { padding: 28px 22px; border-radius: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .band__btns .btn { width: 100%; }
}
