/* =============================================================
   CCTV page — reuses tokens from css/style.css (:root)
   ============================================================= */

/* ---------- shared page-banner base ---------- */
.page-banner {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  color: var(--paper);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner .eyebrow {
  color: var(--amber);
}

.page-banner h1 {
  color: var(--paper);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin: 10px 0 0;
  max-width: 20ch;
}

/* ---------- cctv banner image (simplified) ---------- */
.cctv-banner {
  background-image:
    linear-gradient(180deg, rgba(23, 35, 59, 0.75), rgba(23, 35, 59, 0.50)),
    url("../images/banner/ccbanner.png");
}

/* ---------- cctv intro with image (left/right) ---------- */
.cctv-intro {
  padding: 70px 0;
}

.cctv-intro h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 8px 0 18px;
  max-width: 22ch;
  color: var(--ink);
}

.cctv-intro .eyebrow {
  color: var(--ink-soft);
}

.cctv-intro .eyebrow {
  color: var(--ink-soft); /* Fix for light background */
}

.cctv-intro p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: 16px;
}

.cctv-intro p:last-of-type {
  margin-bottom: 0;
}

.cctv-highlights {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.cctv-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.cctv-highlight i {
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 2px;
}

.cctv-highlight strong {
  font-weight: 600;
  color: var(--ink);
}

.cctv-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cctv-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* ---------- benefit cards ---------- */
.cctv-benefits {
  padding: 70px 0;
}

.cctv-benefits h2 {
  color: var(--ink);
}

.cctv-benefits .eyebrow {
  color: var(--ink-soft);
}

.benefit-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card h3 {
  color: var(--ink);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper-dim);
  color: var(--sky-deep);
  margin-bottom: 16px;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}
/* ---------- camera types ---------- */
.camera-types {
  padding: 70px 0;
}

.camera-types h2 {
  color: var(--paper);
}

.camera-types .eyebrow {
  color: var(--amber);
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.product-card img {
  max-width: 120px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
}

.product-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.camera-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- camera brands (marquee) ---------- */
.camera-brands {
  padding: 70px 0;
  background: var(--paper-dim);
  overflow: hidden;
}

.camera-brands h2 {
  color: var(--ink);
}

.camera-brands .eyebrow {
  color: var(--ink-soft);
}

.brands-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 20px 0;
}

.brands-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brands-track {
  display: flex;
  gap: 40px;
  animation: marquee-ltr 25s linear infinite;
  width: max-content;
}

.brands-marquee-rtl .brands-track {
  animation-name: marquee-rtl;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  padding: 10px 20px;
  flex-shrink: 0;
}

.brand-item img {
  width: 100px;
  height: 60px;
  object-fit: contain;
  display: block;
  filter: grayscale(0%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.brand-item span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 600;
}

/* Marquee Animations */
@keyframes marquee-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Pause animation on hover */
.brands-marquee-wrapper:hover .brands-track {
  animation-play-state: paused;
}

/* ---------- responsive ---------- */
@media (max-width: 992px) {
  .page-banner {
    padding: calc(var(--header-h) + 60px) 0 60px;
  }

  .cctv-intro {
    padding: 50px 0;
  }

  .cctv-intro p {
    max-width: 100%;
  }

  .brand-item {
    min-width: 80px;
    padding: 8px 14px;
  }

  .brand-item img {
    width: 60px;
    height: 45px;
  }

  .brands-track {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .cctv-intro p {
    font-size: 0.95rem;
  }

  .cctv-highlight {
    font-size: 0.9rem;
  }

  .benefit-card {
    padding: 20px 18px;
  }

  .cctv-image-wrapper {
    margin-top: 16px;
  }

  .cctv-highlights {
    margin-top: 18px;
    padding-top: 16px;
  }

  .camera-note {
    font-size: 0.65rem;
  }

  .product-card img {
    max-width: 80px;
  }

  .brand-item {
    min-width: 70px;
    padding: 6px 10px;
  }

  .brand-item img {
    width: 50px;
    height: 38px;
  }

  .brands-track {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-banner {
    padding: calc(var(--header-h) + 40px) 0 40px;
  }

  .page-banner h1 {
    font-size: 1.6rem;
  }

  .cctv-highlight {
    font-size: 0.85rem;
    padding: 6px 0;
  }

  .cctv-highlight i {
    font-size: 1rem;
  }

  .product-card img {
    max-width: 60px;
  }

  .brand-item {
    min-width: 60px;
    padding: 4px 8px;
  }

  .brand-item img {
    width: 40px;
    height: 32px;
  }

  .brand-item span {
    font-size: 0.6rem;
  }

  .brands-track {
    gap: 15px;
  }
}