/* =================================================================
   NashComm site CSS for the Canvas 8 / oiw-framework template
   (Templates/oiw-canvas.dwt). Loaded after oiw-site, oiw-framework,
   oiw-legacy and oiw-grid.css. Pages still on the old Canvas 7
   templates keep using /css/custom.css.
   ================================================================= */

/* Brand tokens read by the oiw-framework */
:root {
  --oiw-brand:        #0074c8;
  --oiw-brand-rgb:    0, 116, 200;
  --oiw-brand-dark:   #004fa0;
  --oiw-brand-light:  #e9f1f8;

  --oiw-text:         #111827;
  --oiw-muted:        #4b5563;
  --oiw-border:       #e5e7eb;
  --oiw-surface:      #f4f6f8;
  --oiw-dark:         #111827;
  --oiw-dark-2:       #13293d;

  --oiw-cta-bg:       var(--oiw-brand);
  --oiw-cta-text:     #ffffff;
  --oiw-accent:       var(--oiw-brand);
  --oiw-label:        var(--oiw-brand-dark);

  --oiw-font:         "Inter", Helvetica, Arial, sans-serif;
  --oiw-font-heading: "Inter", Helvetica, Arial, sans-serif;

  --oiw-page-title-image: url("/images/headers/security-operations-hdr.jpg");

  --cnvs-themecolor:     var(--oiw-brand);
  --cnvs-themecolor-rgb: var(--oiw-brand-rgb);
  --cnvs-primary-font:   var(--oiw-font-heading);
  --cnvs-body-font:      var(--oiw-font);
}

/* =================================================================
   NashComm 2026 refresh: header, top bar & footer (site-wide)
   ================================================================= */
:root {
  --nc-blue: #0074c8;
  --nc-blue-dark: #004fa0;
  --nc-red: #c91b1b;
  --nc-ink: #111827;
  --nc-text: #4b5563;
  --nc-line: #e5e7eb;
  --nc-topbar: #111827;
}

/* Top bar */
#top-bar.nc-topbar {
  background: var(--nc-topbar);
  color: #cbd5e1;
  border: 0;
  font-size: 13px;
  letter-spacing: .02em;
}
.nc-topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
}
.nc-topbar-left, .nc-topbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nc-topbar-right { gap: 20px; }
.nc-topbar a { color: #fff; font-weight: 600; }
.nc-topbar-right > a { color: #cbd5e1; font-weight: 400; }
.nc-topbar a:hover { color: #7cc1f2; }
.nc-topbar-note { margin-right: 6px; }
.nc-topbar-call strong { letter-spacing: .04em; }
.nc-dot { color: #64748b; }

/* Header: logo row */
#header.nc-header { border-bottom: 1px solid var(--nc-line); }
.nc-logo-row { padding: 26px 0 22px; border-bottom: 1px solid var(--nc-line); }
.nc-logo-row #logo img { width: 280px; max-width: 100%; height: auto; }
.nc-partner-logos { gap: 22px; margin-left: 0; }
.nc-partner-logos img { height: auto; }

/* Header: nav row */
.nc-nav-wrap { border-top: 0 !important; }
#header.nc-header #header-wrap { background-color: #fff; border-bottom: 1px solid var(--nc-line); }
#header.nc-header.sticky-header #header-wrap { box-shadow: 0 6px 18px rgba(17,24,39,.08); }
.is-expanded-menu .nc-header { --cnvs-primary-menu-padding-x: 13px; }
.is-expanded-menu .nc-header .primary-menu .menu-container > .cnvs-menu-item > .cnvs-menu-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nc-ink);
  white-space: nowrap;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .is-expanded-menu .nc-header { --cnvs-primary-menu-padding-x: 8px; }
  .is-expanded-menu .nc-header .primary-menu .menu-container > .cnvs-menu-item > .cnvs-menu-link { font-size: 12px; letter-spacing: .03em; }
  .nc-header-cta { margin-left: 8px; padding: 10px 14px; font-size: 14px; }
}
.is-expanded-menu .nc-header .primary-menu .menu-container > .cnvs-menu-item:hover > .cnvs-menu-link,
.is-expanded-menu .nc-header .primary-menu .menu-container > .cnvs-menu-item.current > .cnvs-menu-link {
  color: var(--nc-blue);
}
.is-expanded-menu .nc-header .primary-menu .menu-container { margin-left: -13px; }

/* Buttons (shared) */
.nc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.nc-btn-primary { background: var(--nc-blue); color: #fff !important; }
.nc-btn-primary:hover { background: var(--nc-blue-dark); color: #fff !important; }
.nc-btn-white { background: #fff; color: var(--nc-blue-dark) !important; }
.nc-btn-white:hover { background: #e9f1f8; }
.nc-header-cta { margin-left: 18px; padding: 12px 18px; }

@media (max-width: 991.98px) {
  .nc-logo-row { padding: 14px 0; border-bottom: 0; }
  .nc-logo-row #logo { margin: 0 auto 0 0 !important; padding: 0 !important; }
  .nc-logo-row #logo img { width: 220px; }
  .nc-header-cta { margin-left: 10px; padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 767px) {
  .nc-topbar .hide-mobile { display: none !important; }
  .nc-topbar-row { justify-content: center; min-height: 0; padding: 8px 0; }
  .nc-topbar-right { gap: 10px; }
}

/* Footer */
#footer.nc-footer {
  background: #fff;
  color: var(--nc-text);
  border-top: 1px solid var(--nc-line);
  font-size: 14px;
}
.nc-footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 40px;
  padding: 60px 0 44px;
}
.nc-footer-brand img { width: 240px; max-width: 100%; height: auto; margin-bottom: 18px; }
.nc-footer-brand p { margin-bottom: 10px; line-height: 1.65; }
.nc-footer-tag { color: var(--nc-ink); }
.nc-footer h4 { font-size: 15px; font-weight: 700; color: var(--nc-ink); margin-bottom: 16px; letter-spacing: 0; text-transform: none; }
.nc-footer ul { list-style: none; margin: 0; padding: 0; }
.nc-footer li { margin-bottom: 10px; }
.nc-footer a { color: var(--nc-text); }
.nc-footer a:hover { color: var(--nc-blue); }
.nc-footer-logos { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nc-copyrights#copyrights {
  background: #fff;
  border-top: 1px solid var(--nc-line);
  color: #6b7280;
  font-size: 12px;
  padding: 22px 0 30px;
}
.nc-copyrights p { margin-bottom: 6px; }
.nc-copyrights .nc-legal { font-size: 11px; color: #9ca3af; }
@media (max-width: 991.98px) {
  .nc-footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nc-footer-brand { grid-column: 1 / -1; }
  .nc-footer-logos { flex-direction: row; justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .nc-footer-main { grid-template-columns: 1fr; padding: 44px 0 32px; }
}
.is-expanded-menu .nc-nav-row .primary-menu { flex: 1 1 auto; }
.is-expanded-menu .nc-nav-row .menu-container { flex-wrap: nowrap; }
/* Mobile/tablet: hide Contact Us button, put search icon right next to the menu lines (Call-ee style) */
body:not(.is-expanded-menu) .nc-nav-row { justify-content: flex-end !important; }
body:not(.is-expanded-menu) .nc-nav-row > .header-misc { margin-left: auto; margin-right: 0; }
body:not(.is-expanded-menu) .nc-nav-row .nc-header-cta { display: none !important; }
body:not(.is-expanded-menu) .nc-nav-row #top-search { margin-right: 4px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nc-header-cta { display: none; }
}
@media (max-width: 1199.98px) {
  .nc-topbar-note { display: none; }
}

/* =================================================================
   Canvas 8 adjustments
   ================================================================= */
/* Canvas 8 sets the menu padding on the link itself, so set it there */
.is-expanded-menu .nc-header .primary-menu .menu-container > .cnvs-menu-item > .cnvs-menu-link { --cnvs-primary-menu-padding-x: 13px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .is-expanded-menu .nc-header .primary-menu .menu-container > .cnvs-menu-item > .cnvs-menu-link { --cnvs-primary-menu-padding-x: 8px; }
}

/* Mega-menu text links without a <div> wrapper */
.nc-header .sub-menu-container .cnvs-menu-link { white-space: normal; }
.nc-header .sub-menu-container .cnvs-menu-link img { width: 24px; height: 24px; object-fit: contain; margin-right: 8px; vertical-align: middle; }

/* Page title banner: NashComm blue line under the image */
.oiw-page-title::after { background: var(--oiw-brand); }

/* Content area spacing for pages converted from the old templates */
.oiw-content.oiw-legacy { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
.oiw-content.oiw-legacy > *:first-child { margin-top: 0; }
.oiw-legacy .container .container { padding-left: 0; padding-right: 0; max-width: none; }

/* Option A (Editorial) cards: the oiw-framework draws .oiw-grid as a bordered box;
   NashComm uses the open editorial card from /css/oiw-grid.css, so drop the box. */
:is(.oiw-row, .row) > .oiw-grid,
:is(.oiw-row, .row) > .oiw-grid:hover {
  background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; overflow: visible;
}
:is(.oiw-row, .row) > .oiw-grid > img { aspect-ratio: 3 / 2; }
:is(.oiw-row, .row) > .oiw-grid h2,
:is(.oiw-row, .row) > .oiw-grid p,
:is(.oiw-row, .row) > .oiw-grid > a { padding: 0; }
:is(.oiw-row, .row) > .oiw-grid > a::before { float: none; margin: 0; }
:is(.oiw-row, .row) > .oiw-grid > a::after { position: static; inset: auto; }

/* Canvas 8 zeroes list indents; keep bullets inside the column for older content */
.oiw-legacy ul:not([class]), .oiw-legacy ol:not([class]) { padding-left: 1.25em; margin-bottom: 1rem; }
.oiw-legacy li > ul:not([class]), .oiw-legacy li > ol:not([class]) { margin-bottom: 0; }

/* Mega menus: keep the NashComm look (dark mixed-case titles, small grey links) */
.nc-header .mega-menu-content .mega-menu-title > .cnvs-menu-link {
  color: #212529; font-size: 13.2px; font-weight: 700; letter-spacing: 1px; text-transform: none;
}
.nc-header .mega-menu-content .sub-menu-container .sub-menu-container .cnvs-menu-link {
  color: #212529; font-size: 12px; font-weight: 400; letter-spacing: normal; text-transform: none;
  padding-top: 3.2px; padding-bottom: 3.2px;
}
.nc-header .mega-menu-content .cnvs-menu-link:hover,
.nc-header .mega-menu-content .cnvs-menu-item:hover > .cnvs-menu-link { color: var(--nc-blue); }
/* Single-level mega menu columns (e.g. Industries): links sit straight in .mega-menu-column,
   so the nested rule above misses them and oiw-site.css's blue `a` colour wins */
.nc-header .mega-menu-content .mega-menu-column > .cnvs-menu-item:not(.mega-menu-title) > .cnvs-menu-link {
  color: #212529; font-size: 12px; font-weight: 400; letter-spacing: normal; text-transform: none;
  padding-top: 3.2px; padding-bottom: 3.2px;
}
.nc-header .mega-menu-content .mega-menu-column > .cnvs-menu-item:not(.mega-menu-title):hover > .cnvs-menu-link { color: var(--nc-blue); }

/* Industry solution pages (/industry-solutions/*.htm), new landing format (2026-11-22) */
.ind-page .oiw-section-head :is(h3, h4) { margin: 0; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; }
.ind-page .oiw-section-head h4 + h4,
.ind-page .oiw-section-head :is(h2, h3) + h4 { margin-top: 12px; font-size: 19px; font-weight: 500; color: var(--oiw-muted); }
.ind-page .ind-intro .oiw-split-text h2 { font-size: clamp(28px, 3vw, 38px); }
.ind-page :is(.ind-body, .ind-prose, .oiw-split-text) ul:not([class]),
.ind-page :is(.ind-body, .ind-prose, .oiw-split-text) ol:not([class]) { padding-left: 1.25em; margin-bottom: 1rem; }
.ind-page :is(.ind-body, .ind-prose) > :is(h2, h3, h4) { margin-top: 36px; }
.ind-page :is(.ind-body, .ind-prose) > :is(h2, h3, h4):first-child { margin-top: 0; }
.ind-page .ind-body > .pp-features + * { margin-top: 40px; }
.ind-page .ind-body > .pp-features:first-child { margin-top: 0; }
.ind-page .ind-eco-media img { display: block; max-width: 420px; margin: 0 auto; border-radius: 0; }

/* Product tiles: icon, title, link list */
.ind-page .ind-tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 992px) { .ind-page .ind-tiles { grid-template-columns: repeat(4, 1fr); } }
.ind-page .ind-tile:hover { background: #fff; }
.ind-page .ind-tile-icon { display: block; width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.ind-page .ind-tile-links { margin: 14px 0 0; padding: 0; list-style: none; }
.ind-page .ind-tile-links li { border-top: 1px solid var(--oiw-border); }
.ind-page .ind-tile-links a { display: block; padding: 9px 0; font-size: 15px; color: var(--oiw-text); text-decoration: none; }
.ind-page .ind-tile-links a::after { content: "\2192"; float: right; color: var(--oiw-brand); }
.ind-page .ind-tile-links a:hover { color: var(--oiw-brand-dark); }

/* Downloads / videos side by side; compliance logos */
.ind-page .ind-resources { display: grid; gap: 40px; }
@media (min-width: 768px) { .ind-page .ind-resources { grid-template-columns: 1fr 1fr; gap: 56px; } }
.ind-page .ind-resources h4 { margin: 0 0 12px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.ind-page .ind-resources .oiw-link-list { grid-template-columns: 1fr; margin-bottom: 24px; }
.ind-page .ind-resources p { margin: 0 0 6px; }
.ind-page .ind-compliance .oiw-icon-item p { font-weight: 600; color: var(--oiw-text); }

/* Brands NashComm does not sell: hide shared content tagged for them
   (links, quick picks, cards and sections in the /include/nlf/ content).
   The /pelco/ URLs also 301 to /ai-solutions/ in .htaccess. */
.oiw-needs-pelco { display: none !important; }
p:has(> .oiw-needs-pelco:only-child) { display: none; }

/* Video Security "Choose your platform": with Pelco removed (?nopelco) only the
   Avigilon card is left, so stop it stretching across the full width. */
#brands .oiw-cards:has(> .oiw-card:only-child) {
  grid-template-columns: minmax(0, 560px) !important;
}

/* Product pages: on phones the "On this page" tab bar (.pp-section-nav) scrolled
   sideways with a hidden scrollbar, so the later tabs looked cut off. Wrap the
   tabs onto extra lines instead, and stop the bar sticking so it doesn't cover content. */
@media (max-width: 767px) {
  .pp-section-nav { position: static; }
  .pp-section-nav ul { flex-wrap: wrap; overflow: visible; gap: 0 18px; }
  .pp-section-nav a { padding: 10px 0 8px; font-size: 14px; }
  .pp-section-nav .pp-nav-quote { margin-left: 0; }
}
