/*
Theme Name: Collabor8 Digital
Theme URI: https://collabor8digital.io/
Author: Collabor8 Digital
Author URI: https://collabor8digital.io/
Description: Custom ultra-modern, high-performance WordPress theme for Collabor8 Digital. Features signature gradient styling, glassmorphism drawer navigation, dynamic blog archives, and single article templates with interactive table of contents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collabor8-digital
Tags: blog, custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready, dark-mode
*/

/* ==========================================================================
   GLOBAL RESET & CSS VARIABLES
   ========================================================================== */
:root {
  --c8-bg-dark: #050814;
  --c8-bg-surface: #0a132c;
  --c8-bg-card: rgba(13, 24, 53, 0.7);
  --c8-bg-card-hover: rgba(18, 33, 73, 0.85);
  --c8-border: rgba(255, 255, 255, 0.08);
  --c8-border-hover: rgba(90, 133, 255, 0.4);
  --c8-primary: #325DFE;
  --c8-primary-light: #5A85FF;
  --c8-accent-purple: #B326CF;
  --c8-accent-cyan: #38BDF8;
  --c8-text-main: #FFFFFF;
  --c8-text-muted: rgba(255, 255, 255, 0.68);
  --c8-text-dim: rgba(255, 255, 255, 0.45);
  --c8-gradient-brand: linear-gradient(90deg, #2D5CFF 0%, #7264FF 45%, #B326CF 100%);
  --c8-gradient-brand-rev: linear-gradient(90deg, #B326CF 0%, #7264FF 55%, #2D5CFF 100%);
  --c8-gradient-cyan: linear-gradient(135deg, #38BDF8 0%, #5a85ff 55%, #c084fc 100%);
  --c8-font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --c8-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--c8-bg-dark);
  color: var(--c8-text-main);
  font-family: var(--c8-font-body);
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-active {
  overflow: hidden !important;
}

main,
.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   GLOBAL BRAND SCROLLBAR
   ========================================================================== */
html,
body {
  scrollbar-width: thin !important;
  scrollbar-color: #2D5CFF rgba(7, 27, 49, 0.85) !important;
}

::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0px !important;
  width: 0px !important;
}

::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}

::-webkit-scrollbar-track {
  background: rgba(7, 27, 49, 0.85) !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2D5CFF 0%, #3FB0F0 100%) !important;
  border-radius: 999px !important;
  border: 2px solid rgba(7, 27, 49, 0.6) !important;
  background-clip: padding-box !important;
  transition: background .25s ease, box-shadow .25s ease !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #2D5CFF !important;
  border: 1px solid rgba(7, 27, 49, 0.3) !important;
  box-shadow: 0 0 14px rgba(45, 92, 255, 0.9) !important;
}

/* ==========================================================================
   SIGNATURE CONSULTATION BUTTON WITH OUTLINE & CORNER BRACKETS
   ========================================================================== */
.main-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.main-button a,
.main-button button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  padding: 0 30px !important;
  font-family: var(--c8-font-heading) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
  background: var(--c8-gradient-brand) !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  position: relative !important;
  z-index: 2 !important;
  outline: 3.5px solid rgba(255, 255, 255, 0.38) !important;
  outline-offset: 4px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(45, 92, 255, 0.35) !important;
  white-space: nowrap !important;
  border: none !important;
  transform: none !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.main-button a:hover,
.main-button button:hover {
  background: var(--c8-gradient-brand-rev) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 28px rgba(179, 38, 207, 0.55) !important;
}

.main-button::before,
.main-button::after {
  content: "" !important;
  position: absolute !important;
  width: 34px !important;
  height: 24px !important;
  transition: all 0.42s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 3 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  will-change: transform, left, width, border-radius, border-color !important;
}

.main-button::before {
  top: -8px !important;
  left: -8px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  border-top: 3.5px solid #ffffff !important;
  border-left: 3.5px solid #ffffff !important;
  border-right: 3.5px solid transparent !important;
  border-bottom: 3.5px solid transparent !important;
  border-top-left-radius: 18px !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.main-button::after {
  bottom: -8px !important;
  right: -8px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  border-bottom: 3.5px solid #ffffff !important;
  border-right: 3.5px solid #ffffff !important;
  border-top: 3.5px solid transparent !important;
  border-left: 3.5px solid transparent !important;
  border-bottom-right-radius: 18px !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.main-button:hover::before {
  top: -8px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 65px !important;
  height: 24px !important;
  border-top: 3.5px solid #ffffff !important;
  border-left: 3.5px solid transparent !important;
  border-right: 3.5px solid transparent !important;
  border-bottom: 3.5px solid transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) !important;
}

.main-button:hover::after {
  bottom: -8px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 65px !important;
  height: 24px !important;
  border-bottom: 3.5px solid #ffffff !important;
  border-top: 3.5px solid transparent !important;
  border-left: 3.5px solid transparent !important;
  border-right: 3.5px solid transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) !important;
}
