/* HIKVISION BY ANFSOLUTIONS - Sales site theme
   Brand: HIKVISION red / black on light grey
   Independent from ANF Solutions main site
*/

:root {
  --hik-red: #c8102e;
  --hik-red-dark: #9a0c23;
  --hik-black: #111111;
  --hik-grey-900: #1f1f1f;
  --hik-grey-700: #3a3a3a;
  --hik-grey-300: #d7d7d7;
  --hik-grey-100: #f5f5f5;
  --hik-white: #ffffff;
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Tahoma, Arial, sans-serif;
  color: var(--hik-grey-900);
  background: var(--hik-white);
  line-height: 1.6;
}

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

a { color: var(--hik-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--hik-red-dark); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--hik-black);
  color: #d4d4d4;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #d4d4d4; }
.topbar a:hover { color: var(--hik-white); }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--hik-white);
  border-bottom: 3px solid var(--hik-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--hik-red);
  letter-spacing: 0.5px;
}
.brand-sub {
  font-size: 11px;
  color: var(--hik-grey-700);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--hik-black);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--hik-red);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--hik-red); }

.btn {
  display: inline-block;
  background: var(--hik-red);
  color: var(--hik-white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  border: 2px solid var(--hik-red);
  transition: all .2s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--hik-red-dark);
  border-color: var(--hik-red-dark);
}
.btn-outline {
  background: transparent;
  color: var(--hik-red) !important;
}
.btn-outline:hover {
  background: var(--hik-red);
  color: var(--hik-white) !important;
}
.btn-dark {
  background: var(--hik-black);
  border-color: var(--hik-black);
}
.btn-dark:hover {
  background: var(--hik-grey-900);
  border-color: var(--hik-grey-900);
}

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.78) 0%, rgba(200,16,46,0.55) 100%),
    linear-gradient(135deg, #1a1a1a, #3a3a3a);
  color: var(--hik-white);
  padding: 90px 24px;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--hik-red);
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 3px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--hik-red); }
.hero p {
  font-size: 18px;
  color: #e5e5e5;
  margin-bottom: 30px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.hero-visual img { border-radius: var(--radius); }

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}
.section-alt { background: var(--hik-grey-100); }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--hik-black);
  margin-bottom: 12px;
}
.section-head h2 .accent { color: var(--hik-red); }
.section-head p {
  color: var(--hik-grey-700);
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
}

/* ===== LAYOUT: SIDEBAR + MAIN ===== */
.layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.sidebar {
  background: var(--hik-black);
  color: var(--hik-white);
  border-radius: var(--radius);
  padding: 26px 20px;
  position: sticky;
  top: 100px;
}
.sidebar h3 {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hik-red);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu a {
  display: block;
  padding: 10px 14px;
  color: #e5e5e5;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .2s ease;
}
.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(200,16,46,0.15);
  color: var(--hik-white);
  border-left-color: var(--hik-red);
}
.sidebar-cta {
  margin-top: 24px;
  padding: 18px;
  background: linear-gradient(135deg, var(--hik-red), var(--hik-red-dark));
  border-radius: var(--radius);
  text-align: center;
}
.sidebar-cta p {
  font-size: 13px;
  color: #ffeaea;
  margin-bottom: 12px;
}
.sidebar-cta a {
  display: inline-block;
  background: var(--hik-white);
  color: var(--hik-red) !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}

/* ===== PRODUCT CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--hik-white);
  border: 1px solid var(--hik-grey-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--hik-red);
}
.card-img {
  background: var(--hik-grey-100);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  display: inline-block;
  background: var(--hik-red);
  color: var(--hik-white);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  align-self: flex-start;
}
.card h3 {
  font-size: 17px;
  color: var(--hik-black);
  margin-bottom: 8px;
  font-weight: 700;
}
.card p {
  font-size: 14px;
  color: var(--hik-grey-700);
  margin-bottom: 14px;
  flex: 1;
}
.card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--hik-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card-link::after { content: ' →'; }

/* ===== FEATURES STRIP ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature {
  text-align: center;
  padding: 24px;
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--hik-red);
  color: var(--hik-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}
.feature h4 {
  font-size: 17px;
  color: var(--hik-black);
  margin-bottom: 8px;
}
.feature p { font-size: 14px; color: var(--hik-grey-700); }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--hik-black) 0%, var(--hik-red-dark) 100%);
  color: var(--hik-white);
  padding: 60px 24px;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
  font-weight: 800;
}
.cta-strip p {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 26px;
}

/* ===== FORM ===== */
.form-wrap {
  background: var(--hik-white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hik-grey-900);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hik-grey-300);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--hik-red);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--hik-black);
  color: #b8b8b8;
  padding: 50px 24px 20px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-col h5 {
  color: var(--hik-white);
  font-size: 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a { color: #b8b8b8; }
.footer-col a:hover { color: var(--hik-white); }
.footer-brand-main {
  color: var(--hik-red);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-bottom {
  max-width: var(--container);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  font-size: 12px;
  text-align: center;
  color: #888;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--hik-grey-100);
  padding: 14px 24px;
  font-size: 13px;
  color: var(--hik-grey-700);
}
.breadcrumb-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.breadcrumb a { color: var(--hik-grey-700); }
.breadcrumb .sep { margin: 0 8px; color: var(--hik-grey-300); }
.breadcrumb .current { color: var(--hik-red); font-weight: 600; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; font-size: 14px; }
}
@media (max-width: 560px) {
  .topbar-inner { font-size: 12px; }
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; justify-content: flex-start; }
  .hero { padding: 60px 20px; }
  .section { padding: 50px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
