/* ============================================================
   site.css — Crosspoint shared stylesheet
   Edit this ONE file to update styles across the whole site.
============================================================ */

/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Inter", sans-serif;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  background: #0b0b0b;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --red: #e10600;
  --red-dark: #c00500;
  --bg: #0b0b0b;
  --bg2: #111111;
  --bg3: #141414;
  --bg4: #0f0f0f;
  --border: rgba(255, 255, 255, 0.07);
  --text-muted: #bdbdbd;
  --text-dim: #888;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --transition: 0.25s ease;
}

/* ============================================================
   TYPOGRAPHY HELPERS
============================================================ */
h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 14px;
  border-radius: 999px;
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 8px;
  margin-top: 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 0 24px;
  line-height: 1.8;
  font-size: 16px;
}

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}
section {
  padding: 60px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(225, 6, 0, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.25);
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   HEADER / NAV
============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}
#site-header.scrolled {
  background: rgba(11, 11, 11, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 160px;
  width: auto;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.logo-text span {
  color: var(--red);
}

/* Desktop nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav > a,
.nav-dropdown > .dropdown-toggle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition:
    color var(--transition),
    background var(--transition);
}
.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown:hover > .dropdown-toggle,
.nav-dropdown.open > .dropdown-toggle,
.nav-dropdown.active > .dropdown-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* Products dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: -18px;
}
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.dropdown-toggle::after {
  content: "▾";
  font-size: 11px;
  line-height: 1;
  transform: translateY(1px);
  opacity: 0.7;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 10000;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: flex;
}
.dropdown-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  transition:
    background var(--transition),
    color var(--transition);
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile panel */
.mobile-panel {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - 78px);

  border-top: 1px solid var(--border);
  background: rgba(11, 11, 11, 0.99);

  /* NO backdrop-filter — it kills touch scroll on iOS Safari */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  z-index: 9998;

  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y;         /* tell iOS this element handles vertical touch */

  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mobile-panel.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-panel .mobile-links {
  display: grid;
  gap: 6px;
  padding: 18px 20px 120px;
  min-height: 100%;
  touch-action: pan-y;         /* also on inner container */
}
.mobile-panel a {
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  transition:
    background var(--transition),
    color var(--transition);
}
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.mobile-panel .btn-primary {
  margin-top: 8px;
}
.mobile-submenu {
  display: grid;
  gap: 6px;
  padding: 4px 0 0 16px;
}
.mobile-submenu a {
  font-size: 14px;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
  gap: 0px;
  align-items: start;
  margin-bottom: 40px;
  padding: 0 28px;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.footer-brand img {
  height: 150px;
  width: auto;
  margin: 0 0 -40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
  margin: 0 0 4px;
}
footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-links {
  display: grid;
  gap: 9px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: #fff;
}
.footer-col {
  padding-top: 60px;
}
.footer-col p,
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.85;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

/* ============================================================
   BACK TO TOP BUTTON
============================================================ */
#back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    background var(--transition);
  z-index: 500;
  box-shadow: 0 4px 20px rgba(225, 6, 0, 0.4);
}
#back-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-top:hover {
  background: var(--red-dark);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .main-nav,
  .header-actions .desktop-only {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  section {
    padding: 44px 0;
  }
  .header-inner {
    height: 70px;
  }
  .mobile-panel {
    top: 70px;
    height: calc(100vh - 70px);
  }
  .logo img {
    height: 128px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  video {
    display: none !important;
  }
}

/* =========================================
   PRINTING TABLE
========================================= */
.printer-table-wrap {
  overflow-x: auto;
  margin-top: 30px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
  background: #0b0b0b;
  border-radius: 12px;
  overflow: hidden;
}
.compare-table thead th {
  text-align: left;
  padding: 22px 26px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: #111;
  border-bottom: 3px solid #e10600;
}
.compare-table tbody td {
  padding: 22px 26px;
  font-size: 16px;
  color: #eaeaea;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.compare-table td:first-child {
  font-weight: 800;
  color: #fff;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.badge-red {
  background: rgba(225, 6, 0, 0.15);
  color: #ff6b63;
  border: 1px solid rgba(225, 6, 0, 0.4);
}
.badge-blue {
  background: rgba(0, 140, 255, 0.15);
  color: #5cc8ff;
  border: 1px solid rgba(0, 140, 255, 0.4);
}
.badge-green {
  background: rgba(0, 200, 120, 0.15);
  color: #5ff0b0;
  border: 1px solid rgba(0, 200, 120, 0.4);
}

/* =========================
   SOCIAL ICONS
========================= */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: -30px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.social-icons svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  transform: translateY(-4px) scale(1.05);
}
.social-icons a.facebook:hover {
  background: #1877f2;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.5);
}
.social-icons a.youtube:hover {
  background: #ff0000;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5);
}
.social-icons a.linkedin:hover {
  background: #0a66c2;
  box-shadow: 0 10px 25px rgba(10, 102, 194, 0.5);
}