/* ==========================================================================
   Enterprise theme — IBM Carbon–inspired professional styling (site-wide)
   ========================================================================== */

:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
}

body {
  background-image: none;
  letter-spacing: 0.01em;
}

body.light-mode {
  background-image: none;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: 0;
}

/* --- Header & navigation --- */

.site-header {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-default);
  backdrop-filter: none;
}

body.light-mode .site-header {
  background: #ffffff;
}

.nav-link {
  border-radius: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.75rem;
}

.nav-link:hover {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-bottom-color: var(--border-default);
}

.nav-link.active {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-dropdown__toggle {
  border-bottom: 2px solid transparent;
}

.nav-dropdown__toggle:hover,
.nav-dropdown.is-open .nav-dropdown__toggle {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-bottom-color: var(--border-default);
}

.nav-dropdown__toggle.active,
.nav-dropdown.is-open .nav-dropdown__toggle {
  border-bottom-color: var(--accent);
}

.nav-dropdown.is-open .nav-dropdown__toggle {
  font-weight: 600;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.55rem 1rem !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #ffffff !important;
}

.nav-cta--active {
  background: var(--accent-hover) !important;
}

.theme-toggle {
  border-radius: var(--radius-sm);
}

/* --- Buttons --- */

.button,
.hero-button {
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: none;
  padding: 0.875rem 1.5rem;
}

.button:hover,
.hero-button:hover {
  box-shadow: none;
  transform: none;
  background: var(--accent-hover);
}

.hero-secondary,
.hero-secondary:hover {
  border-radius: var(--radius-pill);
  backdrop-filter: none;
  transform: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-secondary {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  background: transparent;
}

.hero-secondary:hover {
  background: rgba(15, 98, 254, 0.08);
  color: var(--accent-hover) !important;
  border-color: var(--accent-hover);
}

body.light-mode .hero-secondary {
  color: var(--accent) !important;
  background: transparent;
}

/* --- Section typography --- */

.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-title::before {
  display: none;
}

.section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--accent);
  border-radius: var(--radius-sm);
}

.page-header h1::after {
  background: var(--accent);
  border-radius: var(--radius-sm);
}

/* --- Cards --- */

.cap-card,
.service-card,
.team-card,
.team-member,
.service-item,
.home-pillar,
.home-why-card,
.home-news-card,
.news-card {
  border-radius: var(--radius-md);
}

.cap-card::before,
.service-card::after,
.team-member::before,
.service-item::before {
  display: none;
}

.cap-card:hover,
.service-card:hover,
.team-member:hover,
.service-item:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.service-card::after,
.team-card::after {
  opacity: 0 !important;
}

/* --- Footer --- */

.footer {
  background: #0c0c0c;
}

body.light-mode .footer {
  background: #161616;
}

body.light-mode .footer-brand strong,
body.light-mode .footer-nav a,
body.light-mode .footer-copy,
body.light-mode .footer-brand p {
  color: #c6c6c6 !important;
}

body.light-mode .footer-nav a:hover {
  color: #ffffff !important;
}

body.light-mode .footer-copy {
  border-top-color: #393939;
}

/* --- Professional index markers --- */

.home-pillar__icon,
.cap-card__icon,
.home-why-card__icon {
  font-size: 0 !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  border: none !important;
  animation: none !important;
}

.home-pillar__icon::before,
.cap-card__icon::before,
.home-why-card__icon::before {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-pillar:nth-child(1) .home-pillar__icon::before { content: "01"; }
.home-pillar:nth-child(2) .home-pillar__icon::before { content: "02"; }
.home-pillar:nth-child(3) .home-pillar__icon::before { content: "03"; }

.cap-card:nth-child(1) .cap-card__icon::before { content: "01"; display: block; margin-bottom: 0.75rem; }
.cap-card:nth-child(2) .cap-card__icon::before { content: "02"; display: block; margin-bottom: 0.75rem; }
.cap-card:nth-child(3) .cap-card__icon::before { content: "03"; display: block; margin-bottom: 0.75rem; }
.cap-card:nth-child(4) .cap-card__icon::before { content: "04"; display: block; margin-bottom: 0.75rem; }

.home-why-card:nth-child(1) .home-why-card__icon::before { content: "01"; display: block; margin-bottom: 0.5rem; }
.home-why-card:nth-child(2) .home-why-card__icon::before { content: "02"; display: block; margin-bottom: 0.5rem; }
.home-why-card:nth-child(3) .home-why-card__icon::before { content: "03"; display: block; margin-bottom: 0.5rem; }
.home-why-card:nth-child(4) .home-why-card__icon::before { content: "04"; display: block; margin-bottom: 0.5rem; }

.home-why-card:hover,
.home-pillar:hover,
.home-news-card:hover {
  transform: none;
}

.home-why-card::after {
  display: none;
}

.home-why-card {
  border-left: 3px solid var(--accent);
}

/* --- Partner strip --- */

.partner-marquee {
  overflow: visible;
}

.partner-marquee__track {
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  gap: 0.65rem 1rem;
}

.partner-pill {
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  border-color: var(--border-default);
  background: var(--bg-elevated);
}

/* --- CTA band --- */

.home-cta-band {
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}

.home-cta-band__glow {
  display: none;
}

.home-cta-band__text em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.home-metric__value,
.services-stat__value {
  color: var(--accent);
  font-weight: 600;
}

.home-metrics,
.services-stats,
.services-stat {
  border-radius: var(--radius-sm);
}

.news-category,
.home-news-card__cat,
.service-item__role,
.services-filter__btn {
  border-radius: var(--radius-pill);
}

.services-filter__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.cap-card__link:hover {
  transform: none;
}

.home-signal {
  border-radius: var(--radius-sm);
}

.homepage .cap-card.reveal-active,
.homepage .cap-card.reveal-active:hover {
  transform: none !important;
}

/* --- IBM layout + live atom background --- */

.hero.hero--ibm {
  text-align: left;
  padding: 4.5rem 2rem 3.5rem;
  background: #161616;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
}

body.light-mode .hero.hero--ibm {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  color: #161616;
}

body.light-mode .hero.hero--ibm h1 {
  color: #161616;
}

/* Readability overlay — content left, atom visible right */
.hero.hero--ibm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(22, 22, 22, 0.97) 0%,
    rgba(22, 22, 22, 0.88) 38%,
    rgba(22, 22, 22, 0.45) 58%,
    rgba(22, 22, 22, 0.12) 78%,
    transparent 100%
  );
}

body.light-mode .hero.hero--ibm::after {
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.9) 38%,
    rgba(255, 255, 255, 0.5) 58%,
    rgba(255, 255, 255, 0.15) 78%,
    transparent 100%
  );
}

.hero.hero--ibm .hero-bg-layer {
  z-index: 0;
  opacity: 0.55;
}

.hero.hero--ibm .hero-orbit-layer {
  z-index: 3;
  opacity: 1;
  inset: 0;
}

.hero.hero--ibm .atom-system {
  top: clamp(1.25rem, 5vh, 2rem);
  right: clamp(1.25rem, 6vw, 4.5rem);
  left: auto;
  width: 400px;
  height: 400px;
  transform: translate(-2cm, 2cm);
  opacity: 0.62;
}

.hero.hero--ibm .orbit-ring--4 {
  width: 400px;
  height: 400px;
}

.hero.hero--ibm .orbit-ring--3 {
  width: 310px;
  height: 310px;
}

.hero.hero--ibm .orbit-ring--2 {
  width: 228px;
  height: 228px;
}

.hero.hero--ibm .orbit-ring--1 {
  width: 155px;
  height: 155px;
}

@media (min-width: 900px) {
  .hero.hero--ibm .hero-stats {
    max-width: min(680px, 100%);
    margin-left: 0;
    margin-right: auto;
    width: auto;
  }

  .hero.hero--ibm .hero-stat {
    min-width: 0;
    flex: 1 1 120px;
    padding: 1rem 1.1rem;
  }
}

@media (max-width: 899px) {
  .hero.hero--ibm .hero-orbit-layer {
    inset: 0;
  }

  .atom-system {
    left: 50%;
    top: 38%;
    width: min(400px, calc(100vw - 2.5rem));
    height: min(400px, calc(100vw - 2.5rem));
    transform: translate(calc(-50% - 2cm), calc(-50% + 2cm));
    opacity: 0.62;
  }

  .hero.hero--ibm .orbit-ring--4 { width: 100%; height: 100%; max-width: 400px; max-height: 400px; }
  .hero.hero--ibm .orbit-ring--3 { width: 77.5%; height: 77.5%; }
  .hero.hero--ibm .orbit-ring--2 { width: 57%; height: 57%; }
  .hero.hero--ibm .orbit-ring--1 { width: 38.75%; height: 38.75%; }

  .hero.hero--ibm .hero-orbit-layer {
    opacity: 1;
  }

  .hero.hero--ibm::after {
    background: linear-gradient(
      180deg,
      rgba(22, 22, 22, 0.88) 0%,
      rgba(22, 22, 22, 0.72) 45%,
      rgba(22, 22, 22, 0.35) 100%
    );
  }

  body.light-mode .hero.hero--ibm::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.72) 45%,
      rgba(255, 255, 255, 0.3) 100%
    );
  }

  .hero.hero--ibm .hero-stats {
    display: none;
  }
}

.hero.hero--ibm .hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.hero.hero--ibm .hero-stats {
  grid-column: 1 / -1;
  position: relative;
  z-index: 5;
  margin-top: 0.25rem;
}

.hero.hero--ibm .hero-content {
  text-align: left;
}

.hero.hero--ibm .hero-eyebrow {
  display: inline-block;
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f62fe;
}

body.light-mode .hero.hero--ibm .hero-eyebrow {
  color: #0f62fe;
}

.hero.hero--ibm h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: left;
  animation: none;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero.hero--ibm h1::after {
  display: none;
}

.hero.hero--ibm .hero-tagline {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 540px;
  margin: 0 0 1.75rem;
  text-align: left;
}

body.light-mode .hero.hero--ibm .hero-tagline {
  color: var(--text-body);
}

.hero.hero--ibm .hero-cta-row {
  justify-content: flex-start;
  animation: none;
}

.hero.hero--ibm .hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
  gap: 0;
  margin-top: 0.5rem;
  border: 1px solid var(--border-default);
  background: rgba(38, 38, 38, 0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  overflow: hidden;
}

body.light-mode .hero.hero--ibm .hero-stats {
  background: rgba(255, 255, 255, 0.85);
}

.hero.hero--ibm .hero-stat {
  flex: 1;
  min-width: 140px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-right: 1px solid var(--border-default);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero.hero--ibm .hero-stat:last-child {
  border-right: none;
}

.hero.hero--ibm .hero-stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

body.light-mode .hero.hero--ibm .hero-stat strong {
  color: #161616;
}

@media (max-width: 768px) {
  .hero.hero--ibm {
    padding: 3rem 1.25rem 2.5rem;
    text-align: center;
  }

  .hero.hero--ibm .hero-content {
    text-align: center;
  }

  .hero.hero--ibm .hero-eyebrow,
  .hero.hero--ibm h1,
  .hero.hero--ibm .hero-tagline {
    text-align: center;
  }

  .hero.hero--ibm .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero.hero--ibm .hero-cta-row {
    justify-content: center;
  }

  .hero.hero--ibm .hero-stats {
    flex-direction: column;
  }

  .hero.hero--ibm .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--border-default);
    text-align: center;
  }

  .hero.hero--ibm .hero-stat:last-child {
    border-bottom: none;
  }
}

/* Atom colors (enterprise blue) */

.hero.hero--ibm .orbit {
  border-width: 1.5px;
  border-color: rgba(120, 169, 255, 0.8);
  box-shadow: 0 0 28px rgba(15, 98, 254, 0.35);
}

.hero.hero--ibm .orbit-node {
  width: 8px;
  height: 8px;
}

.hero .qubit-core {
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent), 0 0 44px rgba(15, 98, 254, 0.45);
  animation: enterpriseCorePulse 6s ease-in-out infinite;
}

@keyframes enterpriseCorePulse {
  0%, 100% { box-shadow: 0 0 22px var(--accent), 0 0 44px rgba(15, 98, 254, 0.45); }
  50% { box-shadow: 0 0 32px #4589ff, 0 0 64px rgba(15, 98, 254, 0.6); }
}

.hero .orbit-node {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(15, 98, 254, 0.85);
}

.home-metrics,
.services-stats,
.services-stat {
  border-radius: var(--radius-md);
}

.team-member__photo,
.services-engagement__card,
.services-standards {
  border-radius: var(--radius-md);
}
