/* CyberPoint Advisory Design System Theme */
/* Compliance Hub Integration - Design tokens from Wave 1 Analysis */
/* Version 1.0 - November 12, 2025 */

/* ===================================
   COLOR PALETTE & DESIGN TOKENS
   =================================== */

:root {
  /* Primary Color System */
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #1a1a1a;

  /* Accent Colors */
  --color-accent-gold: #d4af37;
  --color-accent-gold-light: #c9a961;
  --color-gold-hover: #f4d47c;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;

  /* Border Colors */
  --color-border: #333333;
  --color-border-secondary: #2a2a2a;

  /* Spacing System */
  --section-padding-y: 6rem;
  --section-padding-x: 1.5rem;
  --content-max-width: 1400px;

  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 4rem;
    --section-padding-x: 1rem;
  }
}

/* ===================================
   OVERRIDE SHARED STYLES
   =================================== */

/* Base overrides */
body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Typography overrides */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ===================================
   NAVIGATION STYLES
   =================================== */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.nav-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--color-gold-hover);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-accent-gold);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.85rem;
  }
}

/* ===================================
   BUTTON STYLES
   =================================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--color-accent-gold);
  color: var(--color-bg-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 4px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-accent-gold);
}

.btn-secondary:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 4px;
}

.cta-button {
  font-size: 1.25rem;
  padding: 1.25rem 3rem;
}

/* ===================================
   CARD STYLES
   =================================== */

.card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
  font-size: 3rem;
  color: var(--color-accent-gold);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.card-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Tier Card variant */
.tier-card {
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 3rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.tier-card.featured {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
  border: 3px solid var(--color-accent-gold);
  transform: scale(1.02);
}

/* ===================================
   BADGE COMPONENT
   =================================== */

.badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.5;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.badge:hover {
  border-color: var(--color-accent-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-5px) scale(1.02);
}

.badge-icon {
  color: var(--color-accent-gold);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
  display: inline-block;
}

.badge:hover .badge-icon {
  transform: scale(1.3) rotate(10deg);
  text-shadow: 0 0 10px var(--color-accent-gold);
}

/* ===================================
   GRID LAYOUTS
   =================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===================================
   SERVICE TABS
   =================================== */

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-tab {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.service-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
  border-color: var(--color-accent-gold);
  color: var(--color-text-primary);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.service-tab:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.service-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-accent-gold);
  z-index: 1;
}

@media (max-width: 768px) {
  .service-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .service-tab.active::after {
    bottom: -1rem;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--color-accent-gold);
  }
}

/* ===================================
   SERVICE TABLE
   =================================== */

.service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-accent-gold);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.service-table th {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  text-align: left;
  padding: 2rem;
  width: 25%;
  vertical-align: top;
  background: rgba(212, 175, 55, 0.05);
  border-right: 2px solid var(--color-border);
}

.service-table td {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  padding: 2rem;
  vertical-align: top;
}

.service-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.service-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.08);
}

.service-table li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
  font-weight: 700;
}

@media (max-width: 768px) {
  .service-table th,
  .service-table td {
    display: block;
    width: 100%;
    padding: 1.5rem;
    border-right: none;
  }
}

/* ===================================
   STATS COMPONENT
   =================================== */

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--color-accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===================================
   TWO-PANEL LAYOUT (Difference Section)
   =================================== */

.difference-container {
  display: flex;
  gap: 2rem;
  max-width: 100%;
  align-items: stretch;
  justify-content: flex-start;
  transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.difference-titles {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.difference-content-panel {
  flex: 1 1 auto;
  position: relative;
  background-color: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.difference-title-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.difference-title-card:hover,
.difference-title-card.active {
  border-color: var(--color-accent-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
  transform: translateX(5px);
}

.difference-title-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.difference-title-card:hover h3,
.difference-title-card.active h3 {
  color: var(--color-accent-gold);
}

.difference-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  z-index: 2;
  display: none;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: left;
}

.difference-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.difference-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease 0.5s;
  z-index: 1;
  pointer-events: none;
}

.difference-background.active {
  opacity: 1;
  transition: opacity 0.4s ease;
}

@media (max-width: 768px) {
  .difference-container {
    flex-direction: column;
  }

  .difference-titles {
    flex: 1 1 auto;
  }

  .difference-content-panel {
    min-height: 400px;
  }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
  min-height: 100vh;
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.section-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.95));
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  z-index: 0;
  transform-origin: center;
  will-change: transform, opacity;
  transition: transform 0.1s ease-out, opacity 3s ease-in-out;
  opacity: 1;
}

.section-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ===================================
   SECTION STYLES
   =================================== */

.section {
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  overflow: hidden;
}

.section-light {
  background-color: transparent;
}

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   INTERACTIVE ELEMENTS
   =================================== */

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 4px;
}

/* Links */
a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-gold-hover);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================
   SCROLL ANIMATION ELEMENTS
   =================================== */

[data-scroll-element] {
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll-element].scroll-animate {
  opacity: 0;
}

[data-scroll-element].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }

  .nav {
    display: none;
  }
}
