:root {
  --nexus-bg-glass: rgba(0, 0, 0, 0.46);
  --nexus-bg-glass-strong: rgba(0, 0, 0, 0.62);
  --nexus-border: rgba(73, 222, 197, 0.24);
  --nexus-border-strong: rgba(73, 222, 197, 0.5);
  --nexus-text: #d8fbff;
  --nexus-text-soft: rgba(216, 251, 255, 0.88);
  --nexus-accent: #49dec5;
  --nexus-accent-2: #91f5ff;
  --nexus-shadow: 0 0 30px rgba(73, 222, 197, 0.12);
  --nexus-radius: 26px;
  --nexus-width: min(1180px, 92vw);
}

body.page-template-page-services,
body.page-template-page-services-php,
body.page-services {
  background: #000;
}

body.page-template-page-services #services-page-content,
body.page-template-page-services-php #services-page-content,
body.page-services #services-page-content {
  position: relative;
  width: 100%;
  z-index: 1;
}

body.page-template-page-services #menu,
body.page-template-page-services-php #menu,
body.page-services #menu {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(10px);
}

body.admin-bar.page-template-page-services #menu,
body.admin-bar.page-template-page-services-php #menu,
body.admin-bar.page-services #menu {
  top: 32px;
}

.nexus-services-page .content-padding {
  width: var(--nexus-width);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0;
  text-align: center;
  background: transparent;
}

.nexus-services-page .section-shell {
  position: relative;
  width: 100%;
}

.nexus-services-page h1,
.nexus-services-page h2,
.nexus-services-page h3,
.nexus-services-page p,
.nexus-services-page li,
.nexus-services-page a,
.nexus-services-page span,
.nexus-services-page button {
  color: var(--nexus-text);
}

.nexus-section-kicker,
.nexus-flow-node__kicker {
  color: var(--nexus-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
}

.nexus-section-heading {
  max-width: 900px;
  margin: 0 auto 2.75rem;
}

.nexus-section-title {
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.04;
  font-weight: 700;
  margin: 0.4rem 0 1rem;
  justify-content: center;
}

.nexus-section-text {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.72;
  color: var(--nexus-text-soft);
}

.nexus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--nexus-border-strong);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.nexus-button:hover {
  transform: translateY(-2px);
}

.nexus-button--primary {
  background: linear-gradient(135deg, rgba(73, 222, 197, 0.22), rgba(145, 245, 255, 0.1));
  box-shadow: var(--nexus-shadow);
}

.nexus-button--primary:hover {
  background: linear-gradient(135deg, rgba(73, 222, 197, 0.34), rgba(145, 245, 255, 0.16));
  border-color: rgba(145, 245, 255, 0.72);
}

.nexus-button--secondary {
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.nexus-button--secondary:hover {
  background: rgba(73, 222, 197, 0.1);
}

.nexus-services-hero {
  padding: 8rem 0 2.9rem;
}

.nexus-services-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.nexus-services-hero__title {
  max-width: 15ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.4rem, 4.3vw, 3.9rem);
  line-height: 1.02;
}

.nexus-services-hero__text {
  max-width: 820px;
}

.nexus-services-page .nexus-page-hero__meta {
  max-width: 1100px;
  margin-top: 2.15rem;
  gap: 1.1rem;
}

.nexus-services-page .nexus-page-hero__meta-card {
  min-height: 100%;
  padding: 1.1rem 1.15rem 1.05rem;
}

.nexus-services-page .nexus-page-hero__meta-text {
  line-height: 1.66;
}

.nexus-services-hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.nexus-services-tabs {
  padding: 0.25rem 0 3.5rem;
  scroll-margin-top: 6.5rem;
}

.nexus-services-tabs__shell {
  position: relative;
}

.nexus-services-tabs__nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.35rem;
  position: relative;
}

.nexus-services-tabs__button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--nexus-border);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
  box-shadow: var(--nexus-shadow);
  cursor: pointer;
}

.nexus-services-tabs__button:hover {
  transform: translateY(-2px);
  border-color: var(--nexus-border-strong);
  background: rgba(73, 222, 197, 0.08);
  color: var(--nexus-accent);
}

.nexus-services-tabs__button.is-active {
  border-color: rgba(145, 245, 255, 0.75);
  background: linear-gradient(135deg, rgba(73, 222, 197, 0.2), rgba(145, 245, 255, 0.1));
  color: var(--nexus-accent-2);
  box-shadow:
    0 0 0 1px rgba(145, 245, 255, 0.08),
    0 0 30px rgba(73, 222, 197, 0.18);
}

.nexus-services-tabs__button:focus-visible {
  outline: 2px solid rgba(145, 245, 255, 0.95);
  outline-offset: 3px;
}

.nexus-services-tabs__button-label {
  text-wrap: balance;
}

.nexus-services-tabs__panel[hidden] {
  display: none !important;
}

.nexus-service-panel__grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(300px, 0.95fr);
  gap: 1.2rem;
  align-items: stretch;
}

.nexus-service-panel__side {
  display: grid;
  gap: 1.2rem;
}

.nexus-service-card {
  position: relative;
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--nexus-border);
  border-radius: 32px;
  background: var(--nexus-bg-glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--nexus-shadow);
  text-align: left;
}

.nexus-service-card--main {
  min-height: 100%;
}

.nexus-service-card__title {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.03;
  color: var(--nexus-accent-2);
}

.nexus-service-card__title svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.nexus-service-card h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.1;
  color: var(--nexus-accent-2);
}

.nexus-service-card p {
  margin: 0 0 0.95rem;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--nexus-text-soft);
}

.nexus-service-card p:last-child {
  margin-bottom: 0;
}

.nexus-bullet-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.nexus-bullet-list li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.6;
  color: var(--nexus-text-soft);
}

.nexus-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nexus-accent);
  box-shadow: 0 0 12px rgba(73, 222, 197, 0.4);
}

.nexus-services-process {
  padding: 1rem 0 0;
}

.nexus-process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.nexus-process-node {
  position: relative;
  padding: 1.45rem 1.2rem;
  border: 1px solid var(--nexus-border);
  border-radius: 28px;
  background: var(--nexus-bg-glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--nexus-shadow);
  text-align: left;
}

.nexus-process-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -30px;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, rgba(73, 222, 197, 0.2), rgba(145, 245, 255, 0.65));
  box-shadow: 0 0 14px rgba(73, 222, 197, 0.18);
}

.nexus-process-node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 31px;
  right: -30px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid rgba(145, 245, 255, 0.7);
}

.nexus-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid var(--nexus-border-strong);
  background: rgba(73, 222, 197, 0.12);
  color: var(--nexus-accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nexus-process-node h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  color: var(--nexus-accent-2);
}

.nexus-process-node p {
  margin: 0;
  line-height: 1.65;
  color: var(--nexus-text-soft);
}

.nexus-services-cta {
  padding: 4rem 0 4.75rem;
}

.nexus-services-cta__inner {
  padding: 2.6rem clamp(1.2rem, 2.6vw, 3rem);
  border: 1px solid var(--nexus-border);
  border-radius: 32px;
  background: var(--nexus-bg-glass-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--nexus-shadow);
  text-align: center;
}

.nexus-services-cta__inner .nexus-section-text {
  max-width: 760px;
}

@media (max-width: 1180px) {
  .nexus-services-tabs__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nexus-service-panel__grid {
    grid-template-columns: 1fr;
  }

  .nexus-service-panel__side {
    grid-template-columns: 1fr 1fr;
  }

  .nexus-process-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nexus-process-node:not(:last-child)::after,
  .nexus-process-node:not(:last-child)::before {
    display: none;
  }
}

@media (max-width: 768px) {
  body.admin-bar.page-template-page-services #menu-mobile,
  body.admin-bar.page-template-page-services-php #menu-mobile,
  body.page-services #menu-mobile {
    top: 46px;
  }

  .nexus-services-hero {
    padding: 6.8rem 0 1.8rem;
  }

  .nexus-services-hero__title {
    max-width: none;
    font-size: clamp(2.1rem, 9.5vw, 3rem);
  }

  .nexus-services-hero__text {
    max-width: 34ch;
    line-height: 1.65;
  }

  .nexus-services-page .nexus-page-hero__meta {
    margin-top: 1.6rem;
    gap: 0.85rem;
  }

  .nexus-services-page .nexus-page-hero__meta-card {
    padding: 0.95rem 1rem 0.9rem;
  }

  .nexus-services-tabs__nav {
    grid-template-columns: 1fr;
  }

  .nexus-services-tabs__button {
    min-height: 54px;
    padding: 0.8rem 1rem;
  }

  .nexus-services-hero__actions .nexus-button {
    width: 100%;
    max-width: 360px;
  }

  .nexus-service-panel__side,
  .nexus-process-flow {
    grid-template-columns: 1fr;
  }

  .nexus-service-card,
  .nexus-process-node,
  .nexus-services-cta__inner {
    border-radius: 22px;
  }

  .nexus-service-card {
    padding: 1.35rem 1.2rem;
  }

  .nexus-service-card__title {
    gap: 0.75rem;
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .nexus-service-card__title svg {
    width: 38px;
    height: 38px;
  }

  .nexus-service-card p,
  .nexus-bullet-list li {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .nexus-services-cta__inner .nexus-section-title {
    max-width: 10ch;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  .nexus-section-title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .nexus-service-card h3,
  .nexus-process-node h3 {
    font-size: 1.35rem;
  }
}
