/*
Theme Name: SentrixIT Critical Infrastructure
Theme URI: https://sentrixit.com.br/
Author: SentrixIT
Description: Tema institucional WordPress para engenharia de infraestruturas criticas de TI e telecomunicacoes.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.0
Text Domain: sentrixit-critical
*/

:root {
  color-scheme: dark;
  --sx-bg-primary: #050b12;
  --sx-bg-secondary: #0a1628;
  --sx-surface: #123a5d;
  --sx-brand-primary: #1e4e79;
  --sx-accent-cyan: #38bdf8;
  --sx-accent-green: #22c55e;
  --sx-accent-amber: #d97706;
  --sx-text-primary: #f8fafc;
  --sx-text-premium: #e2e8f0;
  --sx-text-secondary: #94a3b8;
  --sx-border: #1e3a56;
  --sx-paper: #f8fafc;
  --sx-paper-muted: #eef2f7;
  --bg-main: var(--sx-bg-primary);
  --bg-alt: var(--sx-bg-secondary);
  --bg-deep: #040913;
  --section: #08111f;
  --section-alt: #0a1628;
  --card: rgba(10, 22, 40, 0.88);
  --card-strong: rgba(18, 58, 93, 0.9);
  --panel: rgba(10, 22, 40, 0.86);
  --panel-soft: rgba(248, 250, 252, 0.04);
  --border: rgba(30, 58, 86, 0.82);
  --border-strong: rgba(56, 189, 248, 0.42);
  --text: var(--sx-text-primary);
  --text-soft: var(--sx-text-premium);
  --muted: var(--sx-text-secondary);
  --muted-2: #c6d2e1;
  --cyan: var(--sx-accent-cyan);
  --turquoise: #67d6ff;
  --teal: var(--sx-surface);
  --blue: var(--sx-brand-primary);
  --green: var(--sx-accent-green);
  --amber: var(--sx-accent-amber);
  --action: var(--sx-brand-primary);
  --action-hover: #28699a;
  --action-text: #ffffff;
  --layout-width: 1560px;
  --header-offset: 74px;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.24);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--header-offset);
  background:
    radial-gradient(circle at 78% 6%, rgba(56, 189, 248, 0.14), transparent 30%),
    linear-gradient(135deg, var(--sx-bg-primary) 0%, var(--sx-bg-secondary) 58%, #071322 100%);
  color: var(--text);
  font-family: Inter, "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.admin-bar {
  padding-top: calc(var(--header-offset) + 32px);
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    padding-top: calc(var(--header-offset) + 46px);
  }

  body.admin-bar .site-header {
    top: 46px;
  }
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--sx-accent-cyan);
  outline-offset: 3px;
}

img,
video {
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(30, 58, 86, 0.7);
  background: #050b12;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.site-header-inner {
  width: min(var(--layout-width), calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-link span span,
.footer-brand span {
  color: var(--sx-accent-cyan);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav .primary-menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav .primary-menu > li {
  position: relative;
}

.site-nav .primary-menu > li.has-mega-menu {
  position: static;
}

.site-nav .menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--sx-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.site-nav .menu-link:hover,
.site-nav .menu-link:focus-visible,
.site-nav .menu-link.is-current,
.site-nav .has-mega-menu:hover > .menu-link,
.site-nav .has-mega-menu:focus-within > .menu-link {
  color: var(--sx-accent-cyan);
  background: rgba(248, 250, 252, 0.04);
}

.mega-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.74;
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 34px 0 38px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(34, 197, 94, 0.045), transparent 24rem),
    linear-gradient(180deg, rgba(8, 18, 31, 0.99), rgba(5, 11, 18, 0.995));
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.site-nav .has-mega-menu:hover > .mega-menu,
.site-nav .has-mega-menu:focus-within > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  width: min(1760px, calc(100% - 96px));
  margin: 0 auto;
  display: block;
}

.mega-overview-link {
  display: inline-flex;
  color: var(--sx-accent-cyan);
  text-decoration: none;
  font-weight: 760;
  font-size: 13px;
}

.mega-overview-link:hover,
.mega-overview-link:focus-visible {
  color: var(--sx-text-primary);
}

.mega-menu-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.mega-menu-divider {
  width: 100%;
  height: 1px;
  min-height: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    rgba(30, 58, 86, 0),
    rgba(30, 58, 86, 0.85) 16%,
    rgba(56, 189, 248, 0.28) 50%,
    rgba(30, 58, 86, 0.85) 84%,
    rgba(30, 58, 86, 0)
  );
}

.mega-menu-section {
  min-width: 0;
}

.mega-menu-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 58, 86, 0.54);
}

.mega-menu-section-head .eyebrow {
  margin: 0;
}

.mega-menu-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 38px;
  align-items: start;
}

.mega-menu-section-1 .mega-menu-groups {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mega-menu-section-2 .mega-menu-groups {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mega-menu-group {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mega-menu-group h3 {
  margin: 0 0 14px;
  color: var(--sx-accent-cyan);
  font-size: clamp(0.96rem, 0.92vw, 1.08rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.section-link {
  color: inherit;
  text-decoration: none;
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--sx-accent-cyan);
}

.mega-menu-items {
  display: grid;
  gap: 13px;
}

.mega-menu-item {
  display: grid;
  gap: 2px;
  padding: 0 0 0 12px;
  border: 1px solid transparent;
  border-width: 0 0 0 2px;
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
  background: transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.mega-menu-item span {
  color: var(--sx-text-premium);
  font-weight: 760;
  font-size: clamp(0.83rem, 0.78vw, 0.93rem);
  line-height: 1.28;
}

.mega-menu-item small {
  color: var(--muted-2);
  font-size: clamp(0.72rem, 0.68vw, 0.8rem);
  line-height: 1.32;
}

.mega-menu-item:hover,
.mega-menu-item:focus-visible {
  border-color: var(--sx-accent-cyan);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent 86%);
  transform: translateX(2px);
}

.mega-menu-item:hover span,
.mega-menu-item:focus-visible span {
  color: var(--sx-accent-cyan);
}

.mega-menu-item:hover small,
.mega-menu-item:focus-visible small {
  color: var(--sx-text-premium);
}

.solution-catalog {
  display: grid;
  gap: 36px;
}

.solution-catalog-group .section-header {
  margin-bottom: 18px;
}

.home-solution-catalog .solution-catalog-group + .solution-catalog-group {
  margin-top: 76px;
}

.home-solution-catalog .solution-catalog-group + .solution-catalog-group .section-header {
  padding-top: 4px;
}

.site-header-cta,
.button-primary,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sx-brand-primary), #28699a);
  color: var(--action-text);
  text-decoration: none;
  font-weight: 760;
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.12);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.site-header-cta:hover,
.site-header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  border-color: var(--sx-accent-cyan);
  background: var(--sx-accent-cyan);
  color: var(--sx-bg-primary);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--text);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
}

.site-main {
  position: relative;
  overflow: clip;
}

.container {
  width: min(var(--layout-width), calc(100% - 36px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  clip-path: inset(0);
  isolation: isolate;
  border-bottom: 0;
  box-shadow: inset 0 -2px 0 rgba(3, 12, 22, 0.96);
  background:
    radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.16), transparent 30%),
    linear-gradient(145deg, var(--sx-bg-primary), var(--sx-bg-secondary));
}

.hero-video {
  position: fixed;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  opacity: 0.46;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 -2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(3, 12, 22, 0.90) 0%,
    rgba(3, 12, 22, 0.76) 35%,
    rgba(3, 12, 22, 0.28) 65%,
    rgba(3, 12, 22, 0.06) 100%
  );
}

.hero::after,
.technical-grid {
  content: "";
  position: absolute;
  inset: 0 0 -2px;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.115) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.115) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.26;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(var(--layout-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 112px 0 92px;
  display: block;
}

.hero-copy {
  max-width: 720px;
  padding-right: 0;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 16px;
  display: block;
  color: var(--sx-accent-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.6rem, 5vw, 5.3rem);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero h1 span,
.page-hero h1 span,
.text-accent {
  color: var(--sx-accent-cyan);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .hero-title-line {
  color: var(--sx-text-primary);
}

.hero-lead,
.page-hero p {
  margin: 24px 0 0;
  max-width: 780px;
  color: var(--sx-text-secondary);
  font-size: 19px;
  line-height: 1.85;
}

.hero .hero-lead {
  max-width: 560px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 740;
}

.button-secondary {
  border: 1px solid var(--sx-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--sx-text-premium);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
}

.info-panel,
.sidebar-box,
.card,
.service-card,
.stat-card,
.process-card,
.post-card,
.modality-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 16rem),
    linear-gradient(180deg, rgba(18, 58, 93, 0.64), rgba(10, 22, 40, 0.9));
  box-shadow: var(--shadow-soft);
}

.signal-list,
.feature-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.signal-list li,
.feature-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(30, 58, 86, 0.72);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.04);
  color: var(--sx-text-premium);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.signal-list li::before,
.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--sx-accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.26);
}

.signal-list li:hover,
.signal-list li:focus-within,
.feature-list li:hover,
.feature-list li:focus-within {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.capability-strip {
  padding: 0;
  border-bottom: 1px solid rgba(30, 58, 86, 0.38);
  background: var(--sx-bg-primary);
}

.capability-panel {
  width: 100%;
  border-top: 1px solid var(--sx-border);
  border-right: 0;
  border-bottom: 1px solid var(--sx-border);
  border-left: 0;
  border-radius: 0;
  overflow: hidden;
  background: rgba(10, 22, 40, 0.78);
  box-shadow: none;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.capability-item {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--sx-text-premium);
  background: rgba(248, 250, 252, 0.015);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.capability-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 0;
  bottom: 13px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(30, 58, 86, 0),
    rgba(56, 189, 248, 0.22) 28%,
    rgba(30, 58, 86, 0.72) 50%,
    rgba(56, 189, 248, 0.18) 72%,
    rgba(30, 58, 86, 0)
  );
}

.capability-item:hover {
  background: rgba(56, 189, 248, 0.06);
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.14);
  transform: translateY(-1px);
}

.capability-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--sx-accent-cyan);
}

.capability-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.capability-copy strong {
  color: var(--sx-text-premium);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.28;
}

.capability-copy span {
  color: var(--sx-text-secondary);
  font-size: 0.7rem;
  line-height: 1.34;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95), rgba(7, 18, 34, 0.95));
}

.home-differentials {
  border-top: 1px solid rgba(30, 58, 86, 0.38);
  border-bottom: 1px solid rgba(30, 58, 86, 0.38);
  background:
    radial-gradient(circle at 86% 12%, rgba(34, 197, 94, 0.045), transparent 28rem),
    linear-gradient(180deg, rgba(7, 28, 30, 0.96), rgba(5, 18, 24, 0.98));
}

.home-differentials .section-header {
  max-width: 820px;
  margin-bottom: 44px;
}

.differentials-list {
  border-top: 0.5px solid rgba(148, 163, 184, 0.22);
}

.differential-row {
  display: grid;
  grid-template-columns: 60px minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 0.5px solid rgba(148, 163, 184, 0.18);
}

.differential-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.52);
  border-radius: 999px;
  color: var(--sx-accent-cyan);
}

.differential-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.differential-row h3 {
  margin: 0;
  color: var(--sx-text-premium);
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  line-height: 1.35;
}

.differential-row p {
  margin: 0;
  color: var(--sx-text-secondary);
  font-size: 0.98rem;
  line-height: 1.72;
}

.section-deep {
  background: var(--bg-deep);
}

.section-header {
  max-width: 980px;
  margin-bottom: 38px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2,
.content-area h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.14;
  font-weight: 740;
}

.section-header p,
.content-area p,
.cta-band p {
  margin: 16px 0 0;
  color: var(--sx-text-secondary);
  line-height: 1.85;
}

.grid,
.post-grid {
  display: grid;
  gap: 18px;
}

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

.grid-3,
.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.service-grid.grid-3,
.service-grid.grid-4,
.service-grid.grid-5 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.service-card,
.stat-card,
.process-card,
.post-card,
.modality-card {
  position: relative;
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
}

.service-card,
.post-card a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.service-card--media {
  justify-content: flex-start;
  min-height: 240px;
}

.service-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--service-card-image);
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.92;
  transform: scale(1.015);
}

.service-card--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 84% 20%, rgba(56, 189, 248, 0.12), transparent 16rem),
    linear-gradient(
      90deg,
      rgba(3, 12, 22, 0.985) 0%,
      rgba(3, 12, 22, 0.94) 24%,
      rgba(3, 12, 22, 0.82) 46%,
      rgba(3, 12, 22, 0.58) 72%,
      rgba(3, 12, 22, 0.34) 100%
    );
}

.service-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  max-width: 100%;
}

.service-card--media .service-card-body {
  max-width: min(76%, 20rem);
}

.service-card--media .card-kicker {
  margin-bottom: 12px;
}

.service-card--media h3,
.service-card--media p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.service-card--media h3 {
  -webkit-line-clamp: 2;
}

.service-card--media p:last-child {
  -webkit-line-clamp: 3;
}

.service-card:hover,
.service-card:focus-visible,
.modality-card:hover,
.modality-card:focus-visible,
.post-card:hover,
.post-card:focus-within {
  border-color: rgba(56, 189, 248, 0.78);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.24), transparent 14rem),
    linear-gradient(180deg, rgba(28, 76, 120, 0.86), rgba(10, 22, 40, 0.96));
  transform: translateY(-5px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(56, 189, 248, 0.24),
    0 0 28px rgba(56, 189, 248, 0.14);
}

.card h3,
.service-card h3,
.process-card h3,
.post-card h2,
.modality-card h2,
.stat-card strong {
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}

.card h3,
.service-card h3,
.process-card h3,
.post-card h2 {
  font-size: 21px;
}

.card p,
.service-card p,
.process-card p,
.post-card p,
.modality-card p,
.stat-card span {
  margin: 14px 0 0;
  color: var(--sx-text-secondary);
  line-height: 1.75;
}

.service-card:hover h3,
.service-card:focus-visible h3,
.modality-card:hover h2,
.modality-card:focus-visible h2 {
  color: var(--sx-accent-cyan);
}

.service-card:hover p,
.service-card:focus-visible p,
.modality-card:hover p,
.modality-card:focus-visible p {
  color: var(--sx-text-premium);
}

.service-card:hover .icon-dot,
.service-card:focus-visible .icon-dot,
.modality-card:hover .icon-dot,
.modality-card:focus-visible .icon-dot {
  border-color: rgba(56, 189, 248, 0.78);
  background: rgba(56, 189, 248, 0.18);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
}

.icon-dot {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.11);
  color: var(--sx-accent-cyan);
  font-weight: 800;
}

.icon-dot.teal,
.icon-dot.blue { border-color: rgba(56, 189, 248, 0.34); background: rgba(56, 189, 248, 0.08); color: #b8e7fb; }
.icon-dot.green { border-color: rgba(34, 197, 94, 0.34); background: rgba(34, 197, 94, 0.1); color: #bbf7d0; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card strong {
  display: block;
  font-size: 30px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(30, 58, 86, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 58, 93, 0.6), rgba(10, 22, 40, 0.88));
  color: var(--sx-text-premium);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.tag:hover,
.tag:focus-visible {
  border-color: rgba(56, 189, 248, 0.46);
  background: linear-gradient(180deg, rgba(30, 78, 121, 0.92), rgba(18, 58, 93, 0.92));
  color: var(--sx-text-primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.page-hero {
  position: relative;
  padding: 92px 0 72px;
  border-bottom: 1px solid rgba(30, 58, 86, 0.4);
  background:
    radial-gradient(circle at 78% 12%, rgba(56, 189, 248, 0.14), transparent 25rem),
    linear-gradient(180deg, rgba(10, 22, 40, 0.98), rgba(5, 11, 18, 0.99));
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.5fr);
  gap: 34px;
  align-items: start;
}

.content-area {
  color: var(--sx-text-premium);
}

.content-area h3 {
  margin: 30px 0 0;
  color: var(--sx-text-primary);
  font-size: 23px;
}

.content-area ul,
.content-area ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--sx-text-premium);
  line-height: 1.8;
}

.content-area li + li {
  margin-top: 8px;
}

.sidebar-box {
  padding: 24px;
}

.cta-band {
  border: 1px solid rgba(30, 58, 86, 0.82);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(18, 58, 93, 0.72), rgba(10, 22, 40, 0.92));
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-status {
  margin-bottom: 16px;
  border: 1px solid var(--sx-border);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--sx-text-premium);
  background: rgba(10, 22, 40, 0.82);
}

.contact-status-success {
  border-color: rgba(34, 197, 94, 0.42);
}

.contact-status-warning {
  border-color: rgba(217, 119, 6, 0.5);
}

.contact-status-error {
  border-color: rgba(248, 113, 113, 0.52);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-turnstile {
  min-height: 65px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--sx-text-premium);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(30, 58, 86, 0.78);
  border-radius: 14px;
  background: rgba(5, 11, 18, 0.78);
  color: var(--sx-text-primary);
  padding: 13px 14px;
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(56, 189, 248, 0.55);
  outline: 2px solid rgba(56, 189, 248, 0.2);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid rgba(30, 58, 86, 0.42);
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.96), rgba(5, 11, 18, 0.98));
}

.footer-grid {
  width: min(var(--layout-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 0.8fr));
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
}

.footer-brand h2 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 22px;
}

.footer-tagline {
  color: var(--text-soft);
  font-weight: 700;
}

.footer-grid p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--sx-accent-cyan);
}

.footer-action {
  width: 100%;
  justify-content: center;
}

.footer-bottom {
  width: min(var(--layout-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(30, 58, 86, 0.42);
  color: var(--muted);
  font-size: 13px;
}

.document-section,
.light-section,
.proposal-preview {
  background: var(--sx-paper);
  color: var(--sx-bg-secondary);
}

.document-section h1,
.document-section h2,
.light-section h1,
.light-section h2,
.proposal-preview h1,
.proposal-preview h2 {
  color: var(--sx-bg-secondary);
}

.document-section h3,
.light-section h3,
.proposal-preview h3 {
  color: var(--sx-brand-primary);
}

.document-section table thead,
.light-section table thead,
.proposal-preview table thead {
  background: var(--sx-surface);
  color: #ffffff;
}

.tech-node {
  background: linear-gradient(145deg, var(--sx-bg-secondary), var(--sx-surface));
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 18px;
  color: var(--sx-text-premium);
}

.tech-line {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), var(--sx-accent-cyan), rgba(56, 189, 248, 0.12));
}

.tech-secure,
.status-ok {
  color: var(--sx-accent-green);
}

.status-warning {
  color: var(--sx-accent-amber);
}

@media (max-width: 1080px) {
  .site-header-cta {
    display: none;
  }

  .mega-menu-catalog {
    grid-template-columns: 1fr;
  }

  .mega-menu-divider {
    display: none;
  }

  .mega-menu-section-1 .mega-menu-groups,
  .mega-menu-section-2 .mega-menu-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content,
  .split,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 100px 0 84px;
  }

  .hero-copy {
    max-width: 100%;
    padding-right: 0;
  }

  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-solution-catalog .solution-catalog-group + .solution-catalog-group {
    margin-top: 64px;
  }

  .differential-row {
    grid-template-columns: 54px minmax(180px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
  }

  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capability-item:nth-child(3n)::after {
    display: none;
  }

  .service-grid,
  .service-grid.grid-3,
  .service-grid.grid-4,
  .service-grid.grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .mobile-menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    max-height: calc(100vh - 104px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(5, 11, 18, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .primary-menu,
  .mega-menu,
  .mega-menu-inner,
  .mega-menu-catalog,
  .mega-menu-groups {
    position: static;
    display: grid;
    max-height: none;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav .primary-menu {
    padding: 10px;
    gap: 4px;
  }

  .mega-menu {
    padding: 0;
    overflow: visible;
  }

  .mega-menu-inner {
    gap: 10px;
  }

  .mega-menu-catalog,
  .mega-menu-groups {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mega-menu-catalog {
    padding: 6px 0 6px 12px;
  }

  .mega-menu-group {
    padding: 10px;
  }

  .mega-menu-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .mega-menu-item {
    padding: 9px;
  }

  .site-nav .menu-link {
    width: 100%;
    justify-content: space-between;
  }

  .hero-content {
    padding: 88px 0 72px;
    gap: 24px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(3, 12, 22, 0.88) 0%,
      rgba(3, 12, 22, 0.72) 55%,
      rgba(3, 12, 22, 0.90) 100%
    );
  }

  .hero-title-line {
    display: inline;
    white-space: normal;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 10vw, 4.25rem);
    line-height: 1;
    text-wrap: pretty;
  }

  .hero .hero-lead {
    margin-top: 24px;
    max-width: 32rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .button {
    flex: 1 1 220px;
    min-width: min(100%, 220px);
  }

  .grid-3,
  .post-grid,
  .grid-4,
  .grid-5,
  .stat-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-solution-catalog .solution-catalog-group + .solution-catalog-group {
    margin-top: 56px;
  }

  .home-differentials .section-header {
    margin-bottom: 32px;
  }

  .differential-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px 18px;
  }

  .differential-row p {
    grid-column: 2;
  }

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

  .capability-item:nth-child(3n)::after {
    display: block;
  }

  .capability-item:nth-child(2n)::after {
    display: none;
  }

  .service-grid,
  .service-grid.grid-3,
  .service-grid.grid-4,
  .service-grid.grid-5 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 70px 0 58px;
  }
}

@media (max-width: 640px) {
  .hero-content {
    width: min(calc(100% - 32px), var(--layout-width));
    padding: 82px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.55rem);
  }

  .hero .hero-lead {
    max-width: 100%;
    font-size: 1.03rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
    flex-basis: 100%;
  }

  .home-solution-catalog .solution-catalog-group + .solution-catalog-group {
    margin-top: 48px;
  }

  .differential-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .differential-row p {
    grid-column: auto;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-item:not(:last-child)::after,
  .capability-item:nth-child(2n)::after,
  .capability-item:nth-child(3n)::after {
    display: block;
    top: auto;
    right: 18px;
    bottom: 0;
    left: 18px;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(30, 58, 86, 0),
      rgba(56, 189, 248, 0.2) 24%,
      rgba(30, 58, 86, 0.72) 50%,
      rgba(56, 189, 248, 0.16) 76%,
      rgba(30, 58, 86, 0)
    );
  }

  .capability-item:last-child::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }
}
