/* =========================================================
   CamX — Remote Video Monitoring
   Theme tokens live at the top. Change colors/fonts here only.
   ========================================================= */

:root {
  /* --- Brand palette: sampled directly from the CamX logo artwork --- */
  /* To re-theme the site, only the values below need to change.        */
  --color-bg: #13171B;
  /* logo's dark navy/charcoal base     */
  --color-bg-elevated: #1B1F24;
  /* panels sitting on the dark base    */
  --color-bg-elevated-2: #23272D;
  /* one step lighter than elevated     */
  --color-light: #FFFFFF;
  /* light section base                 */
  --color-light-alt: #F4F5F7;
  /* light section alt (cards on white) */
  --color-accent: #9F1320;
  /* logo's deep crimson red            */
  --color-accent-dim: rgba(159, 19, 32, 0.12);
  --color-accent-dim-2: rgba(159, 19, 32, 0.35);

  --color-text-dark: #13171B;
  --color-text-dark-muted: rgba(23, 26, 31, 0.64);
  --color-text-dark-faint: rgba(23, 26, 31, 0.4);
  --color-text-light: #FFFFFF;
  --color-text-light-muted: rgba(255, 255, 255, 0.68);
  --color-text-light-faint: rgba(255, 255, 255, 0.42);

  --color-border-dark: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(23, 26, 31, 0.12);

  /* --- Type --- */
  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* --- Shape / rhythm --- */
  --radius-sm: 3px;
  --radius-md: 6px;
  --section-pad: 6.5rem;
  --section-pad-sm: 3.5rem;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-font {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  max-width: 62ch;
}

a {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.section {
  padding: var(--section-pad) 0;
}

@media (max-width: 767px) {
  .section {
    padding: var(--section-pad-sm) 0;
  }
}

.section-dark {
  background: var(--color-bg);
  color: var(--color-text-light);
}

.section-dark p {
  color: var(--color-text-light-muted);
}

.section-light {
  background: var(--color-light);
}

.section-alt {
  background: var(--color-light-alt);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn-camx {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}

.btn-camx:active {
  transform: translateY(1px);
}

.btn-camx-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-camx-primary:hover {
  background: #B4172A;
  color: #fff;
}

.btn-camx-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text-light);
}

.btn-camx-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-camx-outline-dark {
  border-color: var(--color-border-light);
  color: var(--color-text-dark);
}

.btn-camx-outline-dark:hover {
  border-color: var(--color-text-dark);
}

/* ---------- Preloader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
}

#loader .loader-mark {
  height: 46px;
  width: auto;
  display: block;
}

#loader .loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

#loader .loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--color-accent);
  animation: loaderSweep 1.1s ease-in-out infinite;
}

@keyframes loaderSweep {
  0% {
    left: -40%;
  }

  100% {
    left: 100%;
  }
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: #0D1013;
  color: var(--color-text-light-muted);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.topbar a {
  color: var(--color-text-light-muted);
}

.topbar a:hover {
  color: #fff;
}

.topbar .dot {
  color: var(--color-accent);
}

.topbar .city-list span:first-child {
  color: #fff;
  font-weight: 600;
}

/* ---------- Navbar ---------- */
.navbar-camx {
  background: var(--color-bg);
  padding: 1.1rem 0;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.navbar-camx.is-scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.navbar-camx .navbar-brand {
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.navbar-camx .navbar-brand img {
  height: 34px;
  width: auto;
  display: block;
  transition: height 0.25s ease;
}

.navbar-camx.is-scrolled .navbar-brand img {
  height: 28px;
}

.navbar-camx .nav-link {
  color: var(--color-text-light-muted);
  font-weight: 500;
  margin: 0 0.6rem;
}

.navbar-camx .nav-link:hover,
.navbar-camx .nav-link.active {
  color: #fff;
}

.navbar-camx .navbar-toggler {
  border: none;
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg);
  color: var(--color-text-light);
  padding: 5.5rem 0 5rem;
  position: relative;
}

.hero .hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 2rem;
}

.hero-badges .badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light-muted);
}

.hero-badges .badge-item .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 var(--color-accent-dim-2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(159, 19, 32, 0.5);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(159, 19, 32, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(159, 19, 32, 0);
  }
}

.hero-frame {
  position: relative;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.hero-frame .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-accent);
  opacity: 0.9;
}

.hero-frame .corner.tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.hero-frame .corner.br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.hero-frame .live-tag {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(23, 26, 31, 0.75);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: #fff;
  font-weight: 600;
}

.hero-frame .live-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Referral stat visual (used in place of a hero photo) ---------- */
.referral-stat-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2rem;
  min-height: 280px;
}

.referral-stat {
  text-align: center;
}

.referral-stat-num {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.referral-stat-label {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-text-light-muted);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--color-border-dark);
  padding-top: 2rem;
  margin-top: 3.5rem;
}

.trust-strip .trust-label {
  font-size: 0.82rem;
  color: var(--color-text-light-faint);
  margin-bottom: 1rem;
}

.brand-chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin: 0 0.4rem 0.6rem 0;
  border: 1px solid var(--color-border-dark);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--color-text-light-muted);
}

/* ---------- Value / feature cards ---------- */
.feature-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  height: 100%;
  background: var(--color-light);
}

.feature-card .feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--color-text-dark-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Workflow (true sequence → numbered) ---------- */
.workflow {
  position: relative;
}

.workflow-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.workflow-line {
  position: absolute;
  top: 23px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--color-border-dark);
  z-index: 0;
}

.workflow-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-accent);
}

.workflow-step {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  text-align: left;
}

.workflow-step .step-num {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  background: var(--color-bg);
  color: var(--color-text-light-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1.4rem;
  transition: border-color .3s ease, color .3s ease;
}

.workflow-step.is-active .step-num {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.workflow-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  font-size: 0.9rem;
  color: var(--color-text-light-muted);
}

@media (max-width: 767px) {
  .workflow-track {
    flex-direction: column;
    gap: 2rem;
  }

  .workflow-line {
    display: none;
  }
}

/* ---------- Stats band ---------- */
.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  color: var(--color-text-light-muted);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* ---------- Industries grid ---------- */
.industry-tile {
  padding: 1.9rem 1.5rem;
  border-top: 2px solid var(--color-accent);
  background: var(--color-light-alt);
  height: 100%;
}

.industry-tile .industry-icon {
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.industry-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.industry-tile p {
  font-size: 0.88rem;
  color: var(--color-text-dark-muted);
  margin-bottom: 0;
}

/* ---------- Testimonials (continuous right-to-left marquee) ---------- */
.testimonial-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.testimonial-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  padding: 0.5rem 0 2.5rem;
  animation: testimonialScroll 60s linear infinite;
}

.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.testimonial-card {
  background: var(--color-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: 320px;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .testimonial-card {
    width: 260px;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 200px;
    padding: 1.1rem;
  }

  .testimonial-card .quote-mark {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .testimonial-card p.quote-text {
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }
}

.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.testimonial-card p.quote-text {
  font-size: 0.98rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-meta .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--color-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.testimonial-meta .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-meta .role {
  font-size: 0.8rem;
  color: var(--color-text-dark-muted);
}

.sample-note {
  font-size: 0.78rem;
  color: var(--color-text-dark-faint);
  margin-top: 1.5rem;
}

/* ---------- FAQ (bootstrap accordion overrides) ---------- */
.faq .accordion-item {
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  background: transparent;
}

.faq .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1.25rem 0;
  background: transparent;
  box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
  color: var(--color-accent);
  background: transparent;
}

.faq .accordion-button::after {
  filter: none;
}

.faq .accordion-body {
  padding: 0 0 1.5rem;
  color: var(--color-text-dark-muted);
}

/* ---------- Service rows ---------- */
.service-row {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.service-row .service-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.service-row h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.service-row p {
  color: var(--color-text-dark-muted);
  margin-bottom: 0.5rem;
}

.confirm-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* ---------- Compare block ---------- */
.compare-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
}

.compare-card.is-camx {
  border-color: var(--color-accent);
  background: var(--color-bg);
  color: #fff;
}

.compare-card.is-camx h3 {
  color: #fff;
}

.compare-card.is-camx li {
  color: var(--color-text-light-muted);
}

.compare-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.compare-card ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.compare-card li {
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
  color: var(--color-text-dark-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-bg);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 {
  max-width: 20ch;
  margin: 0 auto 1rem;
}

.cta-band p {
  max-width: 50ch;
  margin: 0 auto 2rem;
  color: var(--color-text-light-muted);
}

/* ---------- Form ---------- */
.lead-form {
  background: var(--color-light-alt);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.lead-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.lead-form .form-control,
.lead-form .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--color-border-light);
  padding: 0.65rem 0.85rem;
}

.lead-form .form-control:focus,
.lead-form .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

#form-success {
  display: none;
  border: 1px solid var(--color-accent);
  background: var(--color-accent-dim);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  margin-top: 1rem;
}

/* ---------- Team / monitoring concept ---------- */
.ops-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.ops-image img {
  width: 100%;
  display: block;
}

/* ---------- Footer ---------- */
.footer-camx {
  background: #0D1013;
  color: var(--color-text-light-muted);
  padding: 4rem 0 1.75rem;
}

.footer-camx .footer-brand {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-camx .footer-brand img {
  height: 30px;
  width: auto;
  display: block;
}

.footer-camx h4 {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-camx ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-camx li {
  margin-bottom: 0.6rem;
}

.footer-camx a {
  color: var(--color-text-light-muted);
  font-size: 0.9rem;
}

.footer-camx a:hover {
  color: #fff;
}

.footer-camx .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border-dark);
  border-radius: 50%;
  margin-right: 0.6rem;
  color: #fff;
}

.footer-camx .social-icons a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-light-faint);
}

.footer-bottom a {
  color: var(--color-text-light-faint);
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--color-bg);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}

.page-header p {
  color: var(--color-text-light-muted);
  max-width: 55ch;
}

/* ---------- Utility ---------- */
.text-accent {
  color: var(--color-accent);
}

.bg-accent-dim {
  background: var(--color-accent-dim);
}

[data-animate] {
  opacity: 0;
}