/* ============================================================
   CPEC.BUSINESS — WeConsult Home A Inspired Design System
   Managed by MSJC LLP
   ============================================================ */
:root {
  --color-text: #132238;
  --color-heading: #0b1f3a;
  --color-muted: #5f6f84;
  --color-line: #dfe7f1;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f7fb;
  --color-surface-soft: #eef3f8;
  --color-primary: #1b56f5;
  --color-primary-dark: #1142c7;
  --color-dark: #08172d;
  --color-dark-2: #0f2442;
  --color-white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(13, 31, 61, 0.06);
  --shadow-md: 0 16px 40px rgba(11, 31, 58, 0.1);
  --shadow-lg: 0 26px 60px rgba(11, 31, 58, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius: 18px;
  --container: 1240px;
  --section-space: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-smooth: cubic-bezier(.16,1,.3,1);
  --nav-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  line-height: 1.75;
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: var(--color-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

small,
.text-small {
  font-size: .92rem;
}

.container,
.container-fluid-narrow {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.section-alt {
  background: var(--color-surface-alt);
}

.section-soft {
  background: var(--color-surface-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: '';
  width: 42px;
  height: 1px;
  background: rgba(27, 86, 245, .38);
}

.section-heading {
  max-width: 680px;
}

.section-heading-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading p {
  font-size: 1.05rem;
}

.eyebrow-center {
  justify-content: center;
}

.section-cta-center {
  margin-top: 42px;
  text-align: center;
}

.btn-link-spacer {
  margin-top: 18px;
}

.sticky-offset-header {
  top: 100px;
}

.btn-main,
.btn-secondary,
.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .28s var(--ease-smooth), box-shadow .28s var(--ease-smooth), background-color .28s var(--ease-smooth), color .28s var(--ease-smooth), border-color .28s var(--ease-smooth);
}

.btn-main {
  color: var(--color-white);
  background: var(--color-primary);
  box-shadow: 0 12px 28px rgba(27, 86, 245, .24);
}

.btn-main:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
  box-shadow: 0 18px 34px rgba(27, 86, 245, .28);
}

.btn-main.is-active {
  background: var(--color-primary-dark);
  box-shadow: 0 18px 34px rgba(27, 86, 245, .28);
}

.btn-secondary {
  color: var(--color-heading);
  background: var(--color-white);
  border: 1px solid rgba(19, 34, 56, .12);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-link-arrow {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  color: var(--color-heading);
}

.btn-link-arrow:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: background-color .28s var(--ease-smooth), box-shadow .28s var(--ease-smooth), border-color .28s var(--ease-smooth), transform .28s var(--ease-smooth);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(8, 23, 45, .08);
  border-color: rgba(8, 23, 45, .07);
}

.navbar-shell {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--color-heading);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(8, 23, 45, .1);
  background: var(--color-white);
  color: var(--color-heading);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-heading);
  transition: color .25s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link.is-active {
  color: var(--color-primary);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 280px;
  padding: 18px;
  border-radius: 20px;
  background: var(--color-white);
  border: 1px solid rgba(8, 23, 45, .08);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .28s var(--ease-smooth), visibility .28s var(--ease-smooth), transform .28s var(--ease-smooth);
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .93rem;
  color: var(--color-muted);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.nav-dropdown a:hover {
  background: var(--color-surface-alt);
  color: var(--color-heading);
  transform: translateX(4px);
}

.nav-dropdown a.is-active {
  background: rgba(27, 86, 245, .08);
  color: var(--color-primary);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 48px) 0 clamp(32px, 4vw, 56px);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-shape-1,
.hero-shape-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
}

.hero-shape-1 {
  width: 460px;
  height: 460px;
  right: -180px;
  top: 40px;
  background: radial-gradient(circle, rgba(27, 86, 245, .12), rgba(27, 86, 245, 0));
}

.hero-shape-2 {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(61, 185, 255, .12), rgba(61, 185, 255, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title-line {
  display: block;
}

.hero-copy p {
  max-width: 560px;
  font-size: 1rem;
  margin-bottom: .5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.stat-chip {
  padding-top: 20px;
  border-top: 1px solid rgba(19, 34, 56, .14);
}

.stat-chip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.55rem;
  color: var(--color-heading);
}

.stat-chip span {
  color: var(--color-muted);
  font-size: .92rem;
}

.hero-media-wrap {
  position: relative;
  z-index: 2;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--nav-height) - 80px);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 86, 245, .45) 0%, rgba(27, 86, 245, .15) 40%, transparent 58%);
  pointer-events: none;
  z-index: 1;
}

.hero-floating-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 250px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 22px 50px rgba(11,31,58,.1);
  z-index: 2;
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: var(--color-white);
  white-space: nowrap;
}

.hero-floating-card p {
  margin-bottom: 0;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.hero-side-badge {
  position: absolute;
  right: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--color-white);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  z-index: 2;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, .6);
  flex-shrink: 0;
}

.logo-strip {
  padding: 24px 0 0;
}

.logo-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.logo-pill {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(19, 34, 56, .08);
  background: var(--color-white);
  color: #7f8da0;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.intro-grid,
.about-grid,
.training-grid,
.careers-grid,
.cta-grid,
.footer-grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.intro-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}

.feature-grid,
.service-grid,
.project-grid,
.insight-grid,
.mini-card-grid,
.footer-links-grid {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid,
.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.project-card,
.insight-card,
.training-panel,
.careers-panel,
.cta-panel,
.contact-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(19, 34, 56, .08);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease-smooth), border-color .3s var(--ease-smooth);
}

.card:hover,
.project-card:hover,
.insight-card:hover,
.training-panel:hover,
.careers-panel:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 86, 245, .12);
}

.card {
  padding: 30px;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(27, 86, 245, .08);
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.card h3,
.card h4 {
  margin-bottom: 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.about-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 620px;
  box-shadow: var(--shadow-lg);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#zones .about-media,
#desk .about-media,
#whyus .about-media {
  min-height: auto;
  align-self: stretch;
  max-height: 85%;
}

#desk .about-media {
  align-self: center;
  margin-top: 24px;
}

#whyus .about-media {
  align-self: center;
}

.about-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 250px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 22px 50px rgba(11, 31, 58, .1);
}

.about-badge strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-white);
  font-size: 1.02rem;
  white-space: nowrap;
}

.about-badge p {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin-bottom: 0;
}

.about-content .mini-card-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--color-surface-alt);
  border: 1px solid rgba(19, 34, 56, .06);
}

.mini-card strong {
  display: block;
  color: var(--color-heading);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.project-card,
.insight-card {
  overflow: hidden;
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  line-height: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .42s var(--ease-smooth);
}

.project-card:hover .card-media img,
.insight-card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  padding: 28px;
}

.project-kicker,
.insight-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--color-primary);
}

.training-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
}

.training-panel {
  padding: 34px;
}

.training-list {
  display: grid;
  gap: 18px;
}

.training-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(19, 34, 56, .08);
}

.training-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.training-item-number {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(27, 86, 245, .08);
  color: var(--color-primary);
  font-weight: 700;
}

.training-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 540px;
  box-shadow: var(--shadow-lg);
}

.training-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
}

.careers-panel,
.cta-panel {
  padding: clamp(34px, 5vw, 54px);
}

.careers-panel {
  background: linear-gradient(135deg, #0e203a 0%, #16345d 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.careers-panel h2,
.careers-panel p,
.cta-panel h2,
.cta-panel p,
.footer,
.footer a,
.footer p,
.footer h3,
.footer h4 {
  color: inherit;
}

.careers-panel p {
  color: rgba(255,255,255,.78);
}

.careers-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-lg);
}

.careers-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #0b1f3a 0%, #163866 100%);
  color: var(--color-white);
  border: 0;
  box-shadow: 0 28px 70px rgba(8, 23, 45, .24);
}

.cta-panel .eyebrow {
  color: #9dc2ff;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.cta-panel .btn-secondary {
  border-color: rgba(255,255,255,.2);
  background: transparent;
  color: var(--color-white);
}

.cta-panel .btn-secondary:hover {
  background: rgba(255,255,255,.08);
}

.cta-contact-card {
  padding: 30px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}

.cta-contact-card h3 {
  color: #ffffff;
}

.cta-contact-card p {
  color: rgba(255,255,255,.78);
}

.cta-contact-card p strong {
  color: #ffffff;
}

.cta-contact-card p:last-child {
  margin-bottom: 0;
}

.footer {
  padding: 88px 0 36px;
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
}

.footer-grid {
  grid-template-columns: 1.15fr .85fr .85fr .95fr;
  align-items: start;
}

.footer-brand p {
  max-width: 340px;
}

.footer .logo {
  color: #ffffff;
}

.footer-links-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.footer-link-title {
  margin-bottom: 16px;
  color: var(--color-white);
  font-size: 1rem;
}

.footer a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .92rem;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  will-change: opacity, transform;
}

.reveal {
  transform: translateY(14px);
}

.reveal-left {
  transform: translateX(-20px);
}

.reveal-right {
  transform: translateX(20px);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-stagger] > * {
  transition-delay: 0s;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  height: 3px;
  width: 0;
  background: var(--color-primary);
}

.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .insight-grid,
  .logo-strip-inner,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .intro-grid,
  .about-grid,
  .training-grid,
  .careers-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
    max-height: 420px;
  }

  .hero-floating-card {
    left: 24px;
  }
}

@media (max-width: 991.98px) {
  :root {
    --nav-height: 78px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    inset: var(--nav-height) 20px auto;
    display: block;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(8, 23, 45, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .28s var(--ease-smooth), visibility .28s var(--ease-smooth), transform .28s var(--ease-smooth);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    display: grid;
    gap: 8px;
  }

  .nav-item:hover > .nav-dropdown,
  .nav-item:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown {
    position: static;
    min-width: 100%;
    display: none;
    margin-top: 6px;
    padding: 12px;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-radius: 16px;
    background: var(--color-surface-alt);
  }

  .nav-item.is-open > .nav-dropdown {
    display: block;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-title-line {
    display: inline;
  }

  .hero-media,
  .about-media,
  .training-media,
  .careers-media {
    min-height: 420px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .container,
  .container-fluid-narrow {
    width: min(calc(100% - 24px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .hero-meta,
  .feature-grid,
  .service-grid,
  .project-grid,
  .insight-grid,
  .logo-strip-inner,
  .about-content .mini-card-grid,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 380px;
  }

  .hero-floating-card,
  .hero-side-badge,
  .about-badge {
    position: static;
    margin-top: 18px;
    max-width: none;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-main,
  .btn-secondary {
    width: 100%;
  }
}

/* ============================================================
   CPEC-SPECIFIC COMPONENTS
   ============================================================ */

/* Logo Accent */
.logo-accent {
  color: var(--color-primary);
}

/* Gold / CPEC Accent */
.text-accent {
  color: var(--color-primary);
}

/* Authority Bar */
.authority-bar {
  padding: 28px 0;
  background: var(--color-dark);
  color: rgba(255,255,255,.72);
  text-align: center;
  font-size: .98rem;
  line-height: 1.7;
}

.authority-bar p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

.authority-bar strong {
  color: #ffffff;
}

.authority-bar .text-accent {
  color: var(--color-primary);
}

/* Sector Ticker / Marquee */
.sector-ticker {
  padding: 18px 0;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.ticker-track span::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: .4;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CPEC Data Grid */
.cpec-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cpec-data-card {
  padding: 30px;
  border-radius: 24px;
  background: var(--color-surface-alt);
  border: 1px solid rgba(19, 34, 56, .08);
  text-align: center;
  transition: box-shadow .3s var(--ease-smooth);
}

.cpec-data-card:hover {
  box-shadow: var(--shadow-md);
}

.cpec-data-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.cpec-data-label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Steps Grid (How It Works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  position: relative;
  padding: 34px 30px;
  border-radius: 24px;
  background: var(--color-white);
  border: 1px solid rgba(19, 34, 56, .08);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease-smooth);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(27, 86, 245, .08);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 22px;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-card p {
  margin-bottom: 0;
  font-size: .95rem;
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
  transition: background-color .25s ease, color .25s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Page Hero (Inner Pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(180deg, #f0f4fa 0%, #ffffff 100%);
}

.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}

.page-hero::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(27, 86, 245, .12), rgba(27, 86, 245, 0));
}

.page-hero::after {
  width: 240px;
  height: 240px;
  left: -90px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(61, 185, 255, .12), rgba(61, 185, 255, 0));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.page-hero p {
  max-width: 700px;
  font-size: 1.08rem;
}

/* Responsive additions for CPEC components */
@media (max-width: 1199.98px) {
  .cpec-data-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .cpec-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .sector-ticker {
    padding: 14px 0;
  }

  .ticker-track span {
    padding: 0 18px;
    font-size: .8rem;
  }
}

/* ============================================================
   LEGACY PAGE NORMALIZATION
   ============================================================ */

.section-padding {
  padding: var(--section-space) 0;
}

.bg-light-gray {
  background: var(--color-surface-alt) !important;
}

.bg-navy {
  background: var(--color-dark) !important;
}

section.bg-navy .eyebrow {
  color: var(--color-primary);
}

section.bg-navy .card-cpec-dark,
.section.bg-navy .card-cpec-dark,
.section-padding.bg-navy .card-cpec-dark {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
}

.text-gold {
  color: var(--color-primary) !important;
}

.btn-outline-white {
  display: inline-block;
  padding: 12px 28px;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-sm);
  background: transparent;
  font-weight: 600;
  font-size: .95rem;
  transition: background .3s var(--ease-smooth), border-color .3s var(--ease-smooth);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #ffffff;
  color: #ffffff;
}

.text-white-50 {
  color: rgba(255, 255, 255, .72) !important;
}

.service-cluster,
.card-cpec,
.advisor-card,
.stat-card,
.faq-card,
.timeline-card {
  position: relative;
  height: 100%;
  padding: 30px;
  background: var(--color-white);
  border: 1px solid rgba(19, 34, 56, .08);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease-smooth), border-color .3s var(--ease-smooth);
}

.service-cluster:hover,
.card-cpec:hover,
.advisor-card:hover,
.stat-card:hover,
.faq-card:hover,
.timeline-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 86, 245, .12);
}

/* Disable hover effect on cards that contain forms or act as static panels */
.card-cpec:has(form):hover,
.sticky-offset-header .card-cpec:hover,
.sticky-lg-top .card-cpec:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(19, 34, 56, .08);
}

.card-cpec .card-body {
  padding: 0;
}

.card-cpec .card-title,
.service-cluster .card-title {
  margin-bottom: 10px;
}

.service-cluster h4,
.card-cpec h4,
.card-cpec h5,
.card-cpec h6,
.advisor-name,
.advisor-role {
  color: var(--color-heading);
}

.section .container > .text-center,
.section-padding .container > .text-center {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.section .container > .text-center > h2,
.section-padding .container > .text-center > h2 {
  margin-bottom: 16px;
}

.section .container > .text-center > p,
.section-padding .container > .text-center > p {
  margin-left: auto;
  margin-right: auto;
}

.section .row.align-items-center > [class*='col-'] > h2,
.section-padding .row.align-items-center > [class*='col-'] > h2 {
  max-width: 640px;
}

.section .row.align-items-center > [class*='col-'] > p,
.section-padding .row.align-items-center > [class*='col-'] > p {
  max-width: 620px;
}

.service-cluster ul,
.feature-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.service-cluster li,
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(19, 34, 56, .08);
  color: var(--color-muted);
  line-height: 1.65;
}

.service-cluster li:last-child,
.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list i,
.service-cluster i.text-gold,
.service-cluster h4 i,
.card-cpec h5 i,
.card-cpec h6 i {
  color: var(--color-primary) !important;
}

.glass {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(19, 34, 56, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.glass-dark {
  background: linear-gradient(180deg, rgba(19, 34, 56, .94) 0%, rgba(24, 45, 74, .92) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.surface-soft {
  border-radius: var(--radius);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, rgba(27, 86, 245, .18), transparent 32%), radial-gradient(circle at bottom left, rgba(61, 185, 255, .14), transparent 28%), linear-gradient(180deg, #081728 0%, #0f233b 100%);
}

.auth-bar {
  padding: 18px 0;
}

.auth-bar .logo {
  color: #ffffff;
}

.auth-shell {
  position: relative;
  isolation: isolate;
}

.auth-shell::before,
.auth-shell::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.auth-shell::before {
  width: 260px;
  height: 260px;
  top: -48px;
  right: 4%;
  background: radial-gradient(circle, rgba(27, 86, 245, .22), rgba(27, 86, 245, 0));
}

.auth-shell::after {
  width: 220px;
  height: 220px;
  left: 6%;
  bottom: -40px;
  background: radial-gradient(circle, rgba(61, 185, 255, .16), rgba(61, 185, 255, 0));
}

.auth-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.auth-card .form-control {
  min-height: 52px;
}

.auth-card .input-group-text {
  border-radius: 14px 0 0 14px;
}

.auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #3db9ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: 0 16px 36px rgba(27, 86, 245, .28);
}

.auth-link {
  color: var(--color-primary);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-bar .btn-secondary {
  min-height: 42px;
  padding: 0 20px;
  font-size: .9rem;
}

.auth-subtitle {
  color: var(--color-muted);
  font-size: .95rem;
}

.auth-label {
  font-size: .92rem;
  font-weight: 600;
}

.auth-meta {
  color: var(--color-muted);
  font-size: .9rem;
}

.auth-footer {
  padding: 18px 0;
  text-align: center;
}

.auth-footer .auth-note {
  margin: 0;
}

.auth-note {
  color: rgba(255, 255, 255, .5);
  font-size: .88rem;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  border: 1px solid rgba(19, 34, 56, .08);
  color: var(--color-heading);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
}

.btn-gold,
.btn-outline-gold,
.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .28s var(--ease-smooth), box-shadow .28s var(--ease-smooth), background-color .28s var(--ease-smooth), color .28s var(--ease-smooth), border-color .28s var(--ease-smooth);
}

.btn-gold {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 12px 28px rgba(27, 86, 245, .24);
}

.btn-gold:hover,
.btn-navy:hover {
  transform: translateY(-2px);
  color: var(--color-white);
  background: var(--color-primary-dark);
}

.btn-outline-gold {
  background: var(--color-white);
  color: var(--color-heading);
  border-color: rgba(19, 34, 56, .12);
}

.btn-outline-gold:hover {
  transform: translateY(-2px);
  color: var(--color-heading);
  box-shadow: var(--shadow-sm);
}

.btn-navy {
  background: var(--color-dark);
  color: var(--color-white);
}

.icon-circle {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(27, 86, 245, .1);
  color: var(--color-primary);
}

.sector-card {
  height: 100%;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  border: 1px solid rgba(19, 34, 56, .08);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth), border-color .3s var(--ease-smooth);
}

.sector-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 86, 245, .16);
}

.sector-card i {
  margin-bottom: 18px;
  color: var(--color-primary);
  font-size: 1.4rem;
}

.sector-card h5 {
  margin-bottom: 10px;
}

.sector-card p {
  margin-bottom: 0;
}

.zone-list-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(19, 34, 56, .08);
}

.zone-list-item:first-child {
  padding-top: 0;
}

.zone-list-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.advisor-card {
  text-align: center;
}

.advisor-avatar {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(27, 86, 245, .1);
  color: var(--color-primary);
  font-size: 1.4rem;
}

.advisor-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.advisor-role {
  color: var(--color-muted);
  font-size: .92rem;
}

.advisor-card .badge-category {
  margin: 6px 6px 0 0;
}

.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-card small,
.stat-card p,
.stat-card .small {
  color: var(--color-muted);
}

.stat-card .stat-number,
.stat-card .data-counter {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary) !important;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  margin: 0;
  color: var(--color-muted);
  font-size: .9rem;
}

.page-hero + .section,
.page-hero + .section-padding {
  padding-top: clamp(52px, 7vw, 84px);
}

.footer .row,
.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.form-control,
.form-select,
.input-group-text,
.form-check-input {
  border-color: rgba(19, 34, 56, .12);
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 14px;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(27, 86, 245, .4);
  box-shadow: 0 0 0 4px rgba(27, 86, 245, .08);
}

.input-group-text {
  background: var(--color-surface-alt);
  color: var(--color-muted);
}

.form-check {
  min-height: 28px;
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

table,
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--color-text);
  --bs-table-border-color: rgba(19, 34, 56, .08);
  border-color: rgba(19, 34, 56, .08);
}

.table thead th,
table thead th {
  color: var(--color-heading);
  font-weight: 700;
}

.table > :not(caption) > * > *,
table > :not(caption) > * > * {
  padding: 1rem 1.1rem;
}

.resource-nav-grid,
.section-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.resource-nav-card,
.section-nav-card {
  display: block;
  height: 100%;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  border: 1px solid rgba(19, 34, 56, .08);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .28s var(--ease-smooth), box-shadow .28s var(--ease-smooth), border-color .28s var(--ease-smooth);
}

.resource-nav-card:hover,
.section-nav-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 86, 245, .16);
}

.resource-nav-card.is-active,
.section-nav-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(27, 86, 245, .28);
  box-shadow: 0 20px 42px rgba(27, 86, 245, .14);
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.resource-nav-card i,
.section-nav-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(27, 86, 245, .08);
  color: var(--color-primary);
  font-size: 1.2rem;
}

.resource-nav-card.is-active i,
.section-nav-card.is-active i {
  background: rgba(27, 86, 245, .14);
}

.resource-nav-card h5,
.section-nav-card h5 {
  margin-bottom: 10px;
}

.resource-nav-card p,
.section-nav-card p {
  margin: 0;
  color: var(--color-muted);
}

.feature-chip {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  border: 1px solid rgba(19, 34, 56, .06);
  font-size: .86rem;
  color: var(--color-heading);
}

.glass-accent {
  border-radius: var(--radius);
  border-left: 3px solid var(--secondary);
}

.icon-size-sm {
  font-size: 1.5rem;
}

.icon-size-md {
  font-size: 2rem;
}

.icon-size-lg {
  font-size: 2.5rem;
}

.card-cpec-dark {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
}

.soft-panel-dark {
  padding: 24px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
}

.process-steps .step {
  text-align: center;
  padding: 30px 20px;
  background: var(--color-white);
  border: 1px solid rgba(19, 34, 56, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.process-steps .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.process-steps .step h5 {
  color: var(--color-heading);
  margin-bottom: 8px;
}

.divider-gold-left {
  width: 60px;
  border: none;
  border-top: 3px solid var(--color-primary);
  opacity: 1;
  margin-top: 12px;
  margin-bottom: 18px;
}

.list-clean {
  list-style: none;
  padding: 0;
}

.border-white-soft {
  border-color: rgba(255, 255, 255, .1) !important;
}

.copy-emphasis {
  font-size: 1.05rem;
}

.content-stack {
  display: grid;
  gap: 28px;
}

.topic-nav {
  padding: 28px;
}

.topic-nav .list-group {
  display: grid;
  gap: 10px;
}

.topic-nav .list-group-item {
  border: 1px solid rgba(19, 34, 56, .08);
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--color-white);
  transition: transform .24s ease, border-color .24s ease, background-color .24s ease, color .24s ease;
}

.topic-nav .list-group-item:hover,
.topic-nav .list-group-item:focus {
  transform: translateX(4px);
  border-color: rgba(27, 86, 245, .16);
  background: rgba(27, 86, 245, .05);
  color: var(--color-primary);
}

.topic-nav .list-group-item.is-active {
  transform: translateX(4px);
  border-color: rgba(27, 86, 245, .2);
  background: linear-gradient(180deg, rgba(27, 86, 245, .08) 0%, rgba(61, 185, 255, .08) 100%);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(27, 86, 245, .08);
}

.faq-section-block {
  padding: 30px;
}

.faq-section-block + .faq-section-block {
  margin-top: 24px;
}

.faq-section-block h4 {
  margin-bottom: 18px;
}

.faq-section-block .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(19, 34, 56, .08);
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: none;
}

.faq-section-block .accordion-item + .accordion-item {
  margin-top: 14px;
}

.faq-section-block .accordion-button {
  padding: 18px 20px;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--color-white);
  box-shadow: none;
}

.faq-section-block .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background: rgba(27, 86, 245, .04);
}

.faq-section-block .accordion-body {
  padding: 0 20px 20px;
}

@media (max-width: 991.98px) {
  .resource-nav-grid,
  .section-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .service-cluster,
  .card-cpec,
  .advisor-card,
  .stat-card,
  .faq-card,
  .timeline-card {
    padding: 24px;
  }

  .btn-gold,
  .btn-outline-gold,
  .btn-navy {
    width: 100%;
  }

  .resource-nav-grid,
  .section-nav-grid {
    grid-template-columns: 1fr;
  }

  .topic-nav,
  .faq-section-block {
    padding: 24px;
  }
}
