/* ========================================================================
   CXOkit Consolidated CSS - Production Ready
   ======================================================================== */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* ========================================================================
   NAVIGATION BAR
   ======================================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar > .container {
  align-items: center;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  color: #1e293b !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.btn-primary {
  background: var(--gradient-1);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}


/* ========================================================================
   DROPDOWN & MULTI-LEVEL SUBMENUS
   ======================================================================== */
/* Ensure any shown dropdown is positioned and animated */
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  position: absolute;
  z-index: 1050;
}
/* Remove submenu arrow indicator */
.dropdown-submenu > .dropdown-item::after {
    content: none;
}
/* Base dropdown styling */
.dropdown-menu {
  min-width: 280px;
  max-height: 60vh;
  background-color: #ffffff;
  border: 1px solid #dde2e8;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

/* Custom scrollbar */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #a1aab8;
  border-radius: 3px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background-color: #f1f3f5;
  border-radius: 3px;
}

/* Dropdown items */
.dropdown-item {
  position: relative;
  padding: 0.6rem 1rem;
  color: #1f2937;
  background: transparent;
  transition: all 0.2s ease;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #eef2f7;
  color: #111827;
  transform: translateX(4px);
}

/* Subtitle text within items */
.dropdown-menu .dropdown-item small {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #6b7280;
  display: block;
  margin-top: 2px;
}

/* Multi-level submenu positioning */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  margin-top: -1px !important;
  display: none !important;
  opacity: 0 !important;
  transform: scale(0.9) !important;
  z-index: 1051 !important;
}

.dropdown-submenu.dropstart .dropdown-menu {
  left: auto !important;
  right: 100% !important;
}

/* Arrow indicators */
.dropdown-submenu > .dropdown-item::after {
  border: solid #6b7280;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(-45deg);
  float: right;
  margin-top: 6px;
}

/* Hover reveal for submenus */
.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Show class for submenus */
.dropdown-submenu .dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .dropdown-submenu .dropdown-menu {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }
  
  .dropdown-submenu .dropdown-menu.show {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }
}


/* ======================================================================== 
   HERO SECTION 
   ======================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #040a29 0%, #764ba2 50%, #050f33 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: #667eea;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    color: white;
}

/* ======================================================================== 
   SECTIONS 
   ======================================================================== */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    text-align: center;
    margin: 0 auto 4rem;
}

.section-dark {
    background: var(--dark-bg);
    color: white;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.7);
}

/* ======================================================================== 
   FEATURE CARDS 
   ======================================================================== */
.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top-color: #667eea;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.7;
}

/* ======================================================================== 
   FORMS 
   ======================================================================== */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

/* ======================================================================== 
   CTA SECTION 
   ======================================================================== */
.cta-section {
    background: var(--gradient-1);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ======================================================================== 
   FOOTER 
   ======================================================================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}


/* ======================================================================== 
   HERO STATS PLACEHOLDERS 
   ======================================================================== */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  color: #fff;
  text-align: center;
  border-radius: 20px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.hero-stat:hover::before {
  transform: scale(1);
}

.hero-stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.hero-stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #00eaff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
  transition: color 0.3s ease;
}

.hero-stat:hover .hero-stat-number {
  color: #ffea00;
  text-shadow: 0 0 15px rgba(255, 234, 0, 0.8);
}

.hero-stat-label {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: #dcdcdc;
  font-weight: 500;
  transition: color 0.3s ease;
}

.hero-stat:hover .hero-stat-label {
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-stat-number {
    font-size: 2.5rem;
  }
  .hero-stat-label {
    font-size: 1rem;
  }
  .hero-stats {
    gap: 2rem;
    padding: 2rem 1rem;
  }
}


/* ======================================================================== 
   IMAGE PLACEHOLDERS 
   ======================================================================== */
.img-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    border-radius: 8px;
}

/* ======================================================================== 
   RESPONSIVE 
   ======================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* ======================================================================== 
   UTILITIES 
   ======================================================================== */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* ========================================================================
   SCROLL REVEAL (used across kit/feature pages - see JS.php for the
   IntersectionObserver that toggles .is-visible)
   ======================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ========================================================================
   KIT SHOWCASE - "how it works" step timeline + animated app-preview mockup
   used on every assessment/compliance/monitoring kit page
   ======================================================================== */
.kit-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
@media (max-width: 991px) {
    .kit-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .kit-steps { grid-template-columns: 1fr; }
}
.kit-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kit-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}
.kit-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}
.kit-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.kit-step p {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Fake app-preview window: browser chrome + sidebar + animated main panel */
.mock-app-window {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.mock-app-window__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.mock-app-window__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}
.mock-app-window__dot:nth-child(1) { background: #f87171; }
.mock-app-window__dot:nth-child(2) { background: #fbbf24; }
.mock-app-window__dot:nth-child(3) { background: #34d399; }
.mock-app-window__title {
    margin-left: 0.75rem;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}
.mock-app-window__body {
    display: flex;
    min-height: 320px;
}
.mock-app-window__sidebar {
    width: 160px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1rem 0.75rem;
    flex-shrink: 0;
}
.mock-nav-item {
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mock-nav-item.active {
    background: #e0e7ff;
    color: var(--primary-color);
    font-weight: 600;
}
.mock-app-window__main {
    flex: 1;
    padding: 1.5rem;
}
.mock-metric-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.mock-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    flex: 1;
    min-width: 110px;
}
.mock-metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}
.mock-metric-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mock-progress-row {
    margin-bottom: 1rem;
}
.mock-progress-row .label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 0.35rem;
}
.mock-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.mock-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--gradient-1);
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-visible .mock-progress-fill {
    width: var(--pct, 60%);
}

.mock-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mock-check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #334155;
    padding: 0.4rem 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.is-visible .mock-check-item {
    opacity: 1;
    transform: translateX(0);
}
.is-visible .mock-check-item:nth-child(1) { transition-delay: 0.1s; }
.is-visible .mock-check-item:nth-child(2) { transition-delay: 0.3s; }
.is-visible .mock-check-item:nth-child(3) { transition-delay: 0.5s; }
.is-visible .mock-check-item:nth-child(4) { transition-delay: 0.7s; }
.mock-check-item .badge-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* ========================================================================
   CAREERS - job listing cards, filters, and the application form
   ======================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}
.filter-pill {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.filter-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.filter-pill.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
}

.job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
}
.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    color: inherit;
}
.job-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #0f172a;
}
.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #64748b;
}
.job-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.job-badge {
    display: inline-block;
    background: #eef2ff;
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.25rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
}

.resume-drop {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #64748b;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}
.resume-drop.dragover, .resume-drop:hover {
    border-color: var(--primary-color);
    background: #f5f7ff;
}
.resume-drop .file-name {
    font-weight: 600;
    color: #0f172a;
}

.admin-table-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pill.status-new { background: #e0e7ff; color: #4338ca; }
.status-pill.status-reviewing { background: #fef3c7; color: #92400e; }
.status-pill.status-shortlisted { background: #dcfce7; color: #166534; }
.status-pill.status-rejected { background: #fee2e2; color: #991b1b; }
.status-pill.status-hired { background: #d1fae5; color: #065f46; }
