/* ==========================================================================
   SECSCAN & CAMMIO INDUSTRIES - UNIFIED NAVIGATION & FOOTER STYLESHEET
   Guarantees 100% visual and functional consistency across all platform pages.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  color: currentColor;
}

.material-symbols-outlined.icon-10 { font-size: 10px; }
.material-symbols-outlined.icon-12 { font-size: 12px; }
.material-symbols-outlined.icon-14 { font-size: 14px; }
.material-symbols-outlined.icon-16 { font-size: 16px; }
.material-symbols-outlined.icon-18 { font-size: 18px; }
.material-symbols-outlined.icon-20 { font-size: 20px; }
.material-symbols-outlined.icon-22 { font-size: 22px; }
.material-symbols-outlined.icon-24 { font-size: 24px; }
.material-symbols-outlined.icon-28 { font-size: 28px; }

:root, [data-theme="dark"] {
  --nav-ink: #070C14;
  --nav-ink-surface: #0A111F;
  --nav-accent: #2BB3A3;
  --nav-accent-hover: #39D4C2;
  --nav-accent-glow: rgba(43, 179, 163, 0.25);
  --nav-text: #F8FAFC;
  --nav-text-muted: #94A3B8;
  --nav-border: rgba(43, 179, 163, 0.22);
  --nav-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --nav-ink: #F8FAFC;
  --nav-ink-surface: #F1F5F9;
  --nav-accent: #0D9488;
  --nav-accent-hover: #0F766E;
  --nav-accent-glow: rgba(13, 148, 136, 0.2);
  --nav-text: #0F172A;
  --nav-text-muted: #475569;
  --nav-border: rgba(15, 23, 42, 0.1);
}

/* --------------------------------------------------------------------------
   1. TOP HEADER (UNIFIED DESKTOP & MOBILE BAR)
   -------------------------------------------------------------------------- */
header.site-unified-header, header {
  background: rgba(6, 11, 20, 0.92) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  color: var(--nav-text);
  padding: 14px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(43, 179, 163, 0.25) !important;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.8) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] header.site-unified-header,
[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #0F172A !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06) !important;
}

/* Brand Wrap */
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.brand-wrap:hover .brand-logo {
  transform: scale(1.05);
}
.brand-title {
  font-family: var(--nav-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--nav-text);
}
.brand-tag {
  font-family: var(--nav-font-mono, monospace);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nav-accent) !important;
  font-weight: 700;
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button (Universal across Platform & Standalone Pages) */
.theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}
[data-theme="dark"] .theme-toggle-btn {
  background: rgba(14, 23, 41, 0.85) !important;
  border: 1px solid rgba(43, 179, 163, 0.35) !important;
  color: #F8FAFC !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(43, 179, 163, 0.2) !important;
  border-color: #2BB3A3 !important;
  color: #3DD1BF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(43, 179, 163, 0.25) !important;
}
[data-theme="light"] .theme-toggle-btn {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
[data-theme="light"] .theme-toggle-btn:hover {
  background: #F1F5F9 !important;
  border-color: #0D9488 !important;
  color: #0D9488 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.16) !important;
}
.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--nav-accent, #0D9488) !important;
  outline-offset: 2px !important;
}
[data-theme="dark"] .theme-toggle-btn .material-symbols-outlined {
  color: #F8FAFC !important;
}
[data-theme="dark"] .theme-toggle-btn:hover .material-symbols-outlined {
  color: #3DD1BF !important;
}
[data-theme="light"] .theme-toggle-btn .material-symbols-outlined {
  color: #0F172A !important;
}
[data-theme="light"] .theme-toggle-btn:hover .material-symbols-outlined {
  color: #0D9488 !important;
}
[data-theme="dark"] .theme-icon-dark {
  display: none !important;
}
[data-theme="dark"] .theme-icon-light {
  display: inline-flex !important;
}
[data-theme="light"] .theme-icon-light {
  display: none !important;
}
[data-theme="light"] .theme-icon-dark {
  display: inline-flex !important;
}

/* Desktop Guest Navigation Links */
.guest-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.guest-nav-link {
  color: var(--nav-text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
  padding: 4px 0;
}
.guest-nav-link:hover {
  color: var(--nav-text);
}
.guest-nav-link.active {
  color: var(--nav-text);
  font-weight: 600;
}
.guest-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nav-accent);
  border-radius: 2px;
}

/* Desktop Nav Buttons (Standardized 36px Height) */
.nav-btn-signin {
  background: transparent;
  color: var(--nav-text);
  border: 1px solid rgba(148, 163, 184, 0.28);
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  transition: all 0.15s ease;
}
.nav-btn-signin:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: var(--nav-accent);
  color: var(--nav-text);
}
.nav-btn-cta {
  background: var(--nav-accent);
  color: #FFFFFF;
  border: 1px solid var(--nav-accent);
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  gap: 6px;
  transition: all 0.15s ease;
}
[data-theme="dark"] .nav-btn-cta {
  color: #041311;
}
.nav-btn-cta:hover {
  background: var(--nav-accent-hover);
  border-color: var(--nav-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--nav-accent-glow);
}

/* --------------------------------------------------------------------------
   2. MOBILE HAMBURGER BUTTON & SLIDE-OUT DRAWER
   -------------------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 1010;
}
.mobile-menu-btn:hover {
  background: rgba(148, 163, 184, 0.22);
  border-color: var(--nav-accent);
}
.mobile-menu-btn .hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.mobile-menu-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Backdrop */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 31, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1005;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open {
  display: block;
  opacity: 1;
}

/* Mobile Slide-Out Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 310px;
  max-width: 86vw;
  height: 100%;
  height: 100dvh;
  background: var(--nav-ink);
  border-left: 1px solid var(--nav-border);
  box-shadow: -10px 0 36px rgba(0, 0, 0, 0.45);
  z-index: 1006;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-sizing: border-box;
}
.mobile-nav-drawer.open {
  right: 0;
}
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--nav-border);
  margin-bottom: 20px;
}
.mobile-drawer-close {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--nav-text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.mobile-drawer-close:hover {
  background: rgba(148, 163, 184, 0.22);
  color: var(--nav-text);
}
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
  background: rgba(43, 179, 163, 0.1);
  color: var(--nav-accent);
}
.mobile-nav-item .material-symbols-outlined {
  font-size: 20px;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}
.mobile-nav-item:hover .material-symbols-outlined {
  transform: translateX(2px);
}
.mobile-nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.mobile-drawer-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--nav-border);
}
.mobile-drawer-footer {
  margin-top: 20px;
  font-size: 11px;
  color: var(--nav-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   3. STANDARDIZED CAMMIO INDUSTRIES 4-COLUMN FOOTER (THEME-REACTIVE)
   -------------------------------------------------------------------------- */
.landing-footer-wrap {
  background: var(--nav-ink, #070C14);
  color: var(--nav-text, #F8FAFC);
  padding: 56px 36px 36px;
  border-top: 1px solid var(--nav-border, rgba(43, 179, 163, 0.22));
  margin-top: 80px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* Brand Column */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cammio-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}
.cammio-brand-name {
  font-family: var(--nav-font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--nav-text);
}
.cammio-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nav-text-muted, #94A3B8);
  margin: 0;
}

/* Link Columns */
.footer-col h4 {
  font-family: var(--nav-font-display);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nav-text);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--nav-text-muted, #94A3B8);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer-col a:hover {
  color: var(--nav-accent, #2BB3A3);
}

/* Bottom Attribution Strip */
.footer-bottom-strip {
  padding-top: 24px;
  border-top: 1px solid var(--nav-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--nav-text-muted, #94A3B8);
}
.footer-copy strong {
  color: var(--nav-text);
}
.footer-attribution-pill {
  display: inline-block;
  margin-left: 8px;
  background: var(--nav-ink-surface, #0A111F);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--nav-border, rgba(43, 179, 163, 0.22));
  font-size: 11px;
  color: var(--nav-text-muted, #94A3B8);
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: var(--nav-text-muted, #94A3B8);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-legal-links a:hover {
  color: var(--nav-accent-hover, #39D4C2);
}
.footer-source-attribution {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--nav-ink-surface, #0A111F);
  border: 1px solid var(--nav-border, rgba(43, 179, 163, 0.22));
  border-radius: 4px;
  font-size: 11px;
  color: var(--nav-text-muted, #94A3B8);
  line-height: 1.5;
}
.footer-source-attribution strong {
  color: var(--nav-text);
}

/* --------------------------------------------------------------------------
   4. CAMMIO.UI MOBILE ORIENTATION SHIELD (LANDSCAPE PHONE PROTECTION)
   -------------------------------------------------------------------------- */
#cammio-orientation-shield {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 9, 17, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #F8FAFC;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}
[data-theme="light"] #cammio-orientation-shield {
  background: rgba(248, 250, 252, 0.96);
  color: #0F172A;
}
@media screen and (max-height: 520px) and (orientation: landscape) and (max-width: 920px) {
  #cammio-orientation-shield {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  header.site-unified-header, header {
    padding: 14px 20px;
  }
  .guest-nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .landing-footer-wrap {
    padding: 40px 20px 28px;
  }
}

@media (max-width: 600px) {
  .brand-title {
    font-size: 19px;
  }
  .brand-tag {
    font-size: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-legal-links {
    gap: 10px;
  }
  .footer-attribution-pill {
    margin-left: 0;
    margin-top: 4px;
    display: inline-block;
  }
}

/* --------------------------------------------------------------------------
   5. MOBILE DEVICE RESTRICTION SHIELD (ANIMATED NO ENTRY SIGN)
   -------------------------------------------------------------------------- */
@keyframes noEntryPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.45));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 35px rgba(239, 68, 68, 0.85));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.45));
  }
}

@keyframes noEntrySubtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.mobile-shield-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #04070D;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-text-size-adjust: 100%;
}

.mobile-shield-card {
  max-width: 440px;
  width: 100%;
  background: #0A0F1D;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(239, 68, 68, 0.15);
}

.no-entry-pulse-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 16px;
  animation: noEntrySubtleFloat 3s ease-in-out infinite;
}

.no-entry-sign-svg {
  width: 76px;
  height: 76px;
  animation: noEntryPulse 2.4s ease-in-out infinite;
}

.mobile-shield-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.mobile-shield-title {
  font-size: 20px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.mobile-shield-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 20px;
}

.mobile-shield-specs {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
}

.mobile-shield-footer {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #475569;
  text-transform: uppercase;
}

@media screen and (max-width: 768px), screen and (pointer: coarse) and (max-width: 1024px) {
  #mobile-restricted-shield {
    display: flex !important;
  }
  #landing-page-view,
  #app-workspace-view,
  .app-workspace,
  .site-unified-header,
  header,
  aside,
  main,
  footer,
  .modal-backdrop,
  #mobile-nav-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  html, body {
    overflow: hidden !important;
    height: 100% !important;
    background: #04070D !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    touch-action: none !important;
  }
}
