/* Local dark proposal, using the navy palette of the current footer. */
:root {
  color-scheme: dark;
  --surface: var(--brand-navy);
  --surface-alt: #0b2135;
  --surface-card: #102b43;
  --surface-hover: var(--brand-navy-soft);
  --heading: #f5f9fd;
  --text: #e6eef7;
  --muted: #aabdd1;
  --accent: var(--brand-blue-light);
  --accent-pink: #ff7188;
  --soft: var(--surface-alt);
  --soft-blue: var(--surface-hover);
  --night: var(--surface);
  --night-2: var(--surface-alt);
  --night-3: var(--surface-card);
  --night-text: var(--text);
  --night-muted: var(--muted);
  --line: #29445c;
  --night-line: var(--line);
  --shadow-sm: 0 8px 24px rgba(0, 6, 16, 0.16);
  --shadow-md: 0 22px 56px rgba(0, 6, 16, 0.24);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--surface);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
}

body,
main {
  color: var(--text);
  background: var(--surface);
}

a,
.page-breadcrumb a {
  color: var(--accent);
}

a:hover,
.page-breadcrumb a:hover {
  color: var(--white);
}

:focus-visible {
  outline-color: var(--accent);
}

/* Navigation and the original lockup with white lettering and blue symbol. */
.glass-header.site-header,
.inner-page .glass-header.site-header,
.glass-header.site-header.is-scrolled {
  color: var(--text);
  background: rgba(5, 22, 41, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 6, 16, 0.16);
}

.brand-utility {
  background: #04111f;
}

.site-header .navbar-brand {
  position: relative;
  padding: 0;
}

.site-header .navbar-brand::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--white);
  -webkit-mask: url("../assets/sistemasdelsur-brand-navy.png") center / contain no-repeat;
  mask: url("../assets/sistemasdelsur-brand-navy.png") center / contain no-repeat;
  clip-path: inset(0 0 0 39%);
  pointer-events: none;
}

.site-header .navbar .nav-link,
.site-header .navbar .nav-link:hover,
.site-header .navbar .nav-link:focus,
.site-header .navbar .nav-link.active,
.site-header .navbar .nav-link.show {
  color: var(--heading);
}

.btn-language,
.btn-nav-social,
.site-header .navbar-toggler {
  color: var(--text);
  background: var(--surface-alt);
  border-color: var(--line);
}

.btn-language:hover,
.btn-nav-social:hover {
  color: var(--white);
  background: var(--surface-hover);
  border-color: #5c7c98;
}

.site-header .navbar-toggler-icon {
  filter: invert(1);
}

.site-header .dropdown-menu {
  --bs-dropdown-color: var(--text);
  --bs-dropdown-bg: var(--surface-card);
  --bs-dropdown-link-color: var(--text);
  --bs-dropdown-header-color: var(--muted);
  --bs-dropdown-divider-bg: var(--line);
  background: var(--surface-card);
  border-color: var(--line);
}

.site-header .dropdown-item,
.nav-product-link > i:first-child {
  color: var(--text);
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus,
.site-header .dropdown-item.active,
.site-header .dropdown-item:active {
  color: var(--white);
  background: var(--surface-hover);
}

/* Hero: depth from the same blues, with a quieter technical grid. */
.hero-main,
.page-hero {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(170, 193, 214, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(170, 193, 214, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at 86% 40%, #193650, transparent 62%),
    var(--surface);
  background-size: 64px 64px, 64px 64px, 100% 100%, auto;
}

.hero-main h1,
.page-hero h1,
.hero-industries-heading > span {
  color: var(--heading);
}

.hero-main h1 em,
.page-hero h1 em {
  color: var(--accent-pink);
}

.hero-eyebrow,
.page-hero .hero-eyebrow,
.hero-industries-heading i,
.industry-chip i,
.hero-proof i,
.service-hero-proof i {
  color: var(--accent);
}

.hero-lead,
.page-hero-copy > p {
  color: #c0d0df;
}

.hero-glow {
  background: radial-gradient(circle at 76% 48%, rgba(69, 113, 147, 0.24), transparent 72%);
}

.hero-content .hero-radar,
.page-hero-content .hero-radar {
  background: radial-gradient(circle, rgba(25, 54, 80, 0.56), rgba(5, 22, 41, 0.2) 70%);
  border-color: rgba(170, 193, 214, 0.3);
  box-shadow: 0 24px 60px rgba(0, 6, 16, 0.18), inset 0 0 60px rgba(170, 193, 214, 0.04);
}

.hero-radar::before {
  background: repeating-conic-gradient(rgba(170, 193, 214, 0.5) 0deg 0.5deg, transparent 0.5deg 6deg);
}

.hero-radar::after,
.radar-orbit {
  border-color: rgba(170, 193, 214, 0.18);
}

.radar-links {
  stroke: rgba(170, 193, 214, 0.32);
}

.radar-axis {
  background: linear-gradient(90deg, transparent, rgba(170, 193, 214, 0.22), transparent);
}

.radar-field {
  background: conic-gradient(from 90deg, transparent 0deg 285deg, rgba(170, 193, 214, 0.025) 310deg, rgba(170, 193, 214, 0.16) 359deg, transparent 360deg);
}

.radar-sweep {
  background: linear-gradient(90deg, transparent, var(--accent));
}

.radar-core {
  background: var(--surface-hover);
  border-color: #5c7c98;
}

.radar-core svg path:last-child {
  fill: #f5f9fd;
}

.system-node,
.industry-chip,
.hero-proof .hero-contact-link {
  color: var(--text);
  background: var(--surface-card);
  border-color: #38556e;
  box-shadow: var(--shadow-sm);
}

.system-node i,
.signal-item i {
  color: var(--accent);
}

.system-node.node-b i,
.system-node.node-d i {
  color: var(--accent-pink);
}

.system-node::before {
  box-shadow: 0 0 0 3px var(--surface-card);
}

/* A shared signal field connects the headline with the observability layers. */
.hero-content,
.service-detail-page .page-hero-content {
  position: relative;
  display: block;
}

.hero-main .hero-content {
  padding-top: 174px;
}

.hero-copy,
.service-detail-page .page-hero-copy {
  position: relative;
  z-index: 2;
  width: 62%;
  max-width: 740px;
}

.hero-main .hero-content h1 {
  font-size: clamp(44px, 3.5vw, 58px);
}

.hero-main h1 em {
  position: relative;
  display: inline-block;
}

.hero-main h1 em::after {
  position: absolute;
  right: -220px;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent-pink), rgba(170, 193, 214, 0.4), transparent);
  opacity: 0.6;
}

.hero-lead {
  max-width: 640px;
}

.hero-main .hero-industries {
  position: relative;
  z-index: 2;
  margin-top: 90px;
}

.page-breadcrumb {
  position: relative;
  z-index: 2;
}

.observability-composition {
  position: absolute;
  z-index: 1;
  top: 132px;
  left: 0;
  width: 100%;
  height: 520px;
  pointer-events: none;
}

.observability-field {
  position: absolute;
  inset: -60px -80px;
  width: calc(100% + 160px);
  height: calc(100% + 120px);
  max-width: none;
  object-fit: fill;
}

.observability-metrics,
.observability-traces,
.observability-code,
.observability-health,
.observability-events {
  position: absolute;
  padding: 18px 20px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(25, 54, 80, 0.94), rgba(11, 33, 53, 0.86));
  border: 1px solid rgba(170, 193, 214, 0.24);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 6, 16, 0.18);
}

.observability-health {
  top: 0;
  right: 2%;
  left: auto;
  width: 215px;
  padding: 12px;
}

.observability-health img {
  display: block;
  width: 100%;
  height: 80px;
  margin-top: 5px;
  object-fit: contain;
}

.observability-events {
  top: 84%;
  right: 0;
  width: 160px;
  padding: 12px 14px;
}

.observability-event-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-top: 14px;
}

.observability-event-grid i {
  height: 9px;
  background: #aac1d6;
  border-radius: 2px;
  animation: observability-event 3.7s ease-in-out infinite;
  animation-delay: var(--event-delay);
}

.observability-event-grid i:nth-child(3n) { background: #5c8bb0; }
.observability-event-grid i:nth-child(7n) { background: #dcecf6; }

@keyframes observability-event {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {

  .observability-event-grid i { animation: none; opacity: 0.7; }
}

.observability-metrics {
  top: 32%;
  right: 0;
  width: 360px;
}

.observability-code {
  top: -1%;
  left: 51%;
  width: 326px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 43, 67, 0.7), rgba(5, 22, 41, 0.88));
}

.observability-code-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(170, 193, 214, 0.15);
  color: var(--accent);
  font: 11px "DM Mono", monospace;
}

.observability-code-tab span { flex: 1; }
.observability-code-tab i { margin-right: 8px; }
.observability-code-tab b { width: 4px; height: 4px; border-radius: 50%; background: #5c7c98; }
.observability-code-lines { padding: 12px 16px; counter-reset: code-line; }

.observability-code-lines code {
  display: block;
  overflow: hidden;
  color: #aac1d6;
  font: 11px/1.7 "DM Mono", monospace;
  white-space: pre;
  animation: observability-code 9s steps(24, end) infinite;
  animation-delay: calc(var(--code-step) * 0.28s - 3s);
}

.observability-code-lines code::before {
  display: inline-block;
  width: 22px;
  color: #5c7c98;
  content: counter(code-line);
  counter-increment: code-line;
}

.observability-code-lines em { color: #ff92a5; font-style: normal; }
.observability-code-lines b { color: #d4e8f5; font-weight: 500; }
.observability-code-lines q { color: #93cbbf; quotes: none; }

@keyframes observability-code {
  0%, 100% { clip-path: inset(0 100% 0 0); }
  22%, 86% { clip-path: inset(0); }
}

.observability-code-build {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  border-top: 1px solid rgba(170, 193, 214, 0.15);
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}

.observability-code-build i {
  height: 3px;
  flex: 1;
  background: linear-gradient(90deg, #457193, #d4e8f5);
  transform-origin: left;
  animation: observability-build 4.5s ease-in-out -2s infinite;
}

@keyframes observability-build {
  0%, 100% { transform: scaleX(0.15); opacity: 0.5; }
  70%, 90% { transform: scaleX(1); opacity: 1; }
}

.observability-code-build small { font-size: inherit; }

.observability-code-ambient {
  position: absolute;
  top: 26%;
  left: -20%;
  width: 400px;
  opacity: 0.1;
  transform: rotate(-5deg);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.observability-code-ambient pre { color: #aac1d6; font: 14px/2 "DM Mono", monospace; }
.observability-code-ambient span { color: #ff92a5; }

@media (prefers-reduced-motion: reduce) {
  .observability-code-lines code { animation: none; clip-path: none; }
  .observability-code-build i { animation: none; }
}

.observability-widget-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
}

.observability-widget-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.observability-widget-heading i {
  color: var(--accent);
}

.observability-chart {
  display: block;
  width: 100%;
  height: 60px;
  margin: 12px 0 8px;
  overflow: hidden;
}

.obs-chart-stream {
  animation: observability-chart-flow 14s linear infinite;
}

@keyframes observability-chart-flow {
  to { transform: translateX(-360px); }
}

.observability-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10px;
}

.observability-volume > div {
  display: flex;
  height: 20px;
  flex: 1;
  align-items: end;
  gap: 3px;
}

.observability-volume i {
  display: block;
  height: var(--bar-height);
  flex: 1;
  background: #80adc9;
  border-radius: 1px 1px 0 0;
  transform-origin: bottom;
  animation: observability-volume 3.8s ease-in-out infinite;
  animation-delay: var(--bar-delay);
}

.observability-volume i:nth-child(7n) { background: var(--accent-pink); }

@keyframes observability-volume {
  0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.obs-chart-cursor {
  stroke: rgba(170, 193, 214, 0.5);
  stroke-dasharray: 2 4;
  animation: observability-scan 12s linear infinite;
}

@keyframes observability-scan {
  from { transform: translateX(0); }
  to { transform: translateX(360px); }
}

@media (prefers-reduced-motion: reduce) {
  .obs-chart-cursor { animation: none; transform: translateX(260px); }
  .obs-chart-stream,
  .observability-volume i { animation: none; }
}

.obs-chart-grid {
  stroke: rgba(170, 193, 214, 0.12);
  stroke-dasharray: 2 5;
}

.obs-chart-line {
  stroke: #bad9ec;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.obs-chart-traffic {
  stroke: #6e9abb;
}

.obs-chart-errors {
  stroke: var(--accent-pink);
  stroke-width: 1.5;
}

.observability-legend {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.observability-legend span::before {
  display: inline-block;
  width: 10px;
  height: 2px;
  margin: 0 5px 3px 0;
  content: "";
  background: #bad9ec;
}

.observability-legend span:nth-child(2)::before { background: #6e9abb; }
.observability-legend span:nth-child(3)::before { background: var(--accent-pink); }

.observability-traces {
  top: 70%;
  right: 180px;
  width: 280px;
}

.observability-trace {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.2;
}

.observability-trace i {
  position: relative;
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #457193, #aac1d6);
  border-radius: 2px;
  overflow: hidden;
}

.observability-trace i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  content: "";
  background: linear-gradient(90deg, transparent, #f5f9fd, transparent);
  animation: observability-trace-flow 3.6s linear infinite;
}

.observability-trace:nth-child(3) i::after { animation-delay: -1.2s; }
.observability-trace:nth-child(4) i::after { animation-delay: -2.4s; }

@keyframes observability-trace-flow {
  from { transform: translateX(-110%); }
  to { transform: translateX(420%); }
}

@media (prefers-reduced-motion: reduce) {
  .observability-trace i::after { animation: none; opacity: 0; }
}

.observability-trace:nth-child(3) i {
  width: 66%;
  margin-left: 20%;
}

.observability-trace:nth-child(4) i {
  width: 32%;
  margin-left: 48%;
  background: #ff7188;
}

.observability-log {
  position: absolute;
  bottom: 12px;
  left: 48%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
}

.observability-log b {
  width: 14px;
  height: 2px;
  background: #5c7c98;
}

.observability-log b:nth-last-child(2) { width: 28px; }

.service-detail-page .observability-composition {
  top: 60px;
  height: 430px;
}

.service-detail-page .page-hero-copy {
  padding-bottom: 56px;
}

@media (min-width: 992px) {
  .service-detail-page .page-hero-content { min-height: 600px; }
  .service-detail-page .page-hero-copy > p { max-width: 85%; }
  .service-detail-page .observability-code { top: -11%; }
  .service-detail-page .observability-traces { top: 78%; }
  .service-detail-page .observability-events { top: 90%; }
}

@media (max-width: 1199.98px) {
  .observability-code { left: 54%; width: 280px; }
  .observability-code-ambient { display: none; }
  .hero-copy,
  .service-detail-page .page-hero-copy { width: 61%; }
  .observability-metrics { width: 300px; }
  .observability-traces { right: 90px; width: 250px; }
  .observability-events { display: none; }



}

@media (max-width: 991.98px) {
  .observability-health { top: 20px; right: 0; left: auto; width: 180px; }
  .hero-main .hero-content { padding-top: 142px; }
  .hero-copy,
  .service-detail-page .page-hero-copy { width: 100%; max-width: none; }
  .hero-main h1 em::after { right: 0; }
  .observability-composition,
  .service-detail-page .observability-composition {
    position: relative;
    top: auto;
    height: 650px;
    margin-top: 28px;
  }
  .observability-field { top: -90px; height: 670px; }


  .observability-code { top: 0; left: 2%; width: 290px; }
  .observability-metrics { top: 280px; right: 0; width: 58%; }
  .observability-traces { top: 490px; right: auto; left: 8%; width: 48%; }



  .observability-log { bottom: 10px; left: 20%; }
  .hero-main .hero-industries { margin-top: 36px; }
  .service-detail-page .page-hero-copy { padding-bottom: 0; }
}

@media (max-width: 575.98px) {
  .observability-health { top: 50px; width: 136px; }
  .observability-health .observability-widget-heading { font-size: 12px; }
  .observability-health .observability-widget-heading span { gap: 5px; }
  .hero-main .hero-content { padding-top: 126px; }
  .hero-main .hero-content h1 { font-size: 38px; }
  .observability-composition,
  .service-detail-page .observability-composition { height: 660px; }
  .observability-metrics { width: 80%; padding: 12px; }
  .observability-legend { gap: 7px; font-size: 10px; }
  .observability-traces { top: 500px; left: 0; width: 80%; }
  .observability-code { left: 0; width: 78%; }





  .observability-log { display: none; }




}

/* Shared sections and headings. White remains reserved for text and logos. */
.section-white,
.section-ink,
.home-route-section,
.service-capabilities-section,
.service-use-section,
.service-related-section,
.service-explorer-section {
  color: var(--text);
  background: var(--surface);
}

.section-soft,
.managed-section,
.agent-section,
.clients-section,
.ecosystem-section,
.service-answer-section,
.service-process-section,
.service-faq-section,
.home-fact-band,
.signal-bar {
  color: var(--text);
  background: var(--surface-alt);
}

body :is(.section-shell, .contact-section) .section-heading :is(h1, h2, h3),
.service-explorer-heading h2,
.about-statement :is(h1, h2),
.about-copy strong,
.home-route h3,
.home-fact strong,
.about-system-label,
.about-system-stage strong,
.about-signal strong,
.outcome-item h3,
.clients-heading :is(h1, h2),
.unit-title h3,
.unit-ai .unit-title h3,
.agent-copy :is(h1, h2),
.agent-module strong,
.use-case h3,
.work-step h3,
.ecosystem-panel-header h3,
.service-answer-copy h2,
.service-outcome h3,
.service-capability h3,
.service-process-step h3,
.service-use-item h3,
.service-faq-item h3,
.service-related-link h3,
.service-panel-heading h3,
.service-explorer h4,
.service-faq-item summary,
.contact-form-shell h3,
.contact-info-shell h3,
.contact-channel-heading h4,
.contact-list strong,
.contact-channel-number,
.legal-page-heading h1,
body .legal-section :is(h2, h3, h4, h5, h6),
body .legal-section :is(.bg-white, .bg-light) :is(h2, h3, h4, h5, h6) {
  color: var(--heading);
}

body :is(.section-shell, .contact-section) .section-kicker,
.about-manifesto,
.home-route-arrow,
.home-route > i,
.about-badges i,
.about-stage-marker > i,
.about-system-stage:nth-of-type(2) .about-stage-marker > i,
.about-system-stage:nth-of-type(3) .about-stage-marker > i,
.outcome-item i,
.unit-title i,
.unit-link,
.agent-principle i,
.use-case i,
.ecosystem-tab.is-active i,
.ecosystem-tab.is-active small,
.service-outcome > i,
.service-capability > i,
.service-explorer .service-capability > i,
.service-use-item > i,
.service-related-link > i,
.service-related-link > span,
.service-explorer-tab i,
.service-related-chip > i:first-child,
.contact-channel-icon,
.contact-list i,
.contact-float-copy span {
  color: var(--accent);
}

.about-copy p,
.managed-summary p,
.unit-tags span,
.unit-ai .unit-tags span,
.about-stage-marker > span,
.about-signal small,
.agent-module small,
.ecosystem-tab,
.ecosystem-tab i,
.ecosystem-tab small,
.ecosystem-group h4,
.ecosystem-group h4 small,
.service-block-label,
.service-capability-index,
.service-process-step > span,
.service-explorer .service-process-step > span {
  color: var(--muted);
}

.home-route,
.about-badges span,
.about-system,
.about-signal,
.outcome-item,
.managed-service,
.business-unit,
.business-unit.unit-ai,
.business-unit.unit-ai:hover,
.agent-system,
.agent-principle,
.agent-flow span,
.use-case,
.ecosystem-shell,
.service-capability,
.service-explorer .service-capability,
.service-use-item,
.service-explorer .service-use-item,
.service-related-link,
.service-related-chip,
.contact-form-shell,
.contact-info-shell {
  color: var(--text);
  background: var(--surface-card);
  border-color: var(--line);
}

.home-route:hover,
.home-route:focus-visible,
.about-signal:hover,
.outcome-item:hover,
.business-unit:hover,
.business-unit.unit-ai:hover,
.use-case:hover,
.service-capability:hover,
.service-explorer .service-capability:hover,
.service-use-item:hover,
.service-explorer .service-use-item:hover,
.service-related-link:hover,
.service-related-link:focus-visible,
.service-related-chip:hover,
.service-related-chip:focus-visible,
.signal-item:hover,
.signal-item:focus-visible {
  color: var(--heading);
  background: var(--surface-hover);
  border-color: #5c7c98;
}

.home-route > i,
.about-system-head,
.about-stage-marker > i,
.about-system-stage:nth-of-type(2) .about-stage-marker > i,
.about-system-stage:nth-of-type(3) .about-stage-marker > i,
.unit-title i,
.unit-tags span,
.unit-ai .unit-tags span,
.agent-module,
.use-case i,
.ecosystem-tabs,
.service-explorer-tabs,
.service-related-rail,
.service-outcome > i,
.service-capability > i,
.contact-channel-icon,
.contact-list i {
  background: var(--surface-hover);
  border-color: var(--line);
}

.signal-item,
.signal-item:first-child,
.unit-process-track span,
.unit-ai .unit-process-track span,
.service-explorer-tab,
.service-related-chip,
.contact-channel-actions a,
.contact-float-copy a {
  color: var(--text);
}

.clients-count,
.ecosystem-count {
  color: var(--accent);
  background: var(--surface-card);
}

.agent-module.module-core,
.use-case.case-strong {
  background: var(--surface);
  border-color: #5c7c98;
}

.unit-link:hover,
.unit-link:focus-visible,
.service-panel-heading > span,
.service-faq-item summary i,
.service-related-chip > i:last-child,
.contact-channel-number:hover,
.contact-channel-number:focus-visible {
  color: var(--accent-pink);
}

.ecosystem-tab:hover,
.ecosystem-tab.is-active,
.service-explorer-tab:hover,
.ecosystem-panel-header > strong {
  color: var(--heading);
}

.ecosystem-tab:hover,
.ecosystem-tab.is-active,
.service-explorer-tab:hover,
.service-explorer-panel {
  background: var(--surface-card);
}

.work-steps::before {
  background: var(--line);
}

.work-step-number {
  background: var(--surface-hover);
  border-color: var(--surface-alt);
}

/* Commercial actions retain the brand red with readable white labels. */
.btn-brand,
.btn-cta-primary,
.btn-client-portal,
.service-explorer-tab.is-active,
.managed-summary .btn-light-strong {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-brand:hover,
.btn-cta-primary:hover,
.btn-client-portal:hover,
.btn-client-portal:focus-visible,
.managed-summary .btn-light-strong:hover {
  color: var(--white);
  background: #a8102a;
  border-color: #a8102a;
}

.btn-cta-secondary,
.contact-channel-actions a {
  color: var(--text);
  background: transparent;
  border-color: #5c7c98;
}

.btn-cta-secondary:hover,
.hero-proof .hero-contact-call:hover,
.hero-proof .hero-contact-call:focus-visible,
.contact-channel-call:hover,
.contact-channel-call:focus-visible {
  color: var(--white);
  background: var(--surface-hover);
  border-color: var(--accent);
}

.cta-band {
  background:
    linear-gradient(90deg, rgba(170, 193, 214, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(170, 193, 214, 0.05) 1px, transparent 1px),
    var(--surface-hover);
  background-size: 48px 48px;
  border-top: 1px solid var(--line);
}

.cta-band::after {
  background: rgba(69, 113, 147, 0.14);
}

/* Contact and native form states. */
.contact-section {
  background: var(--surface-alt);
  border-top-color: var(--line);
}

.contact-section::after {
  background: linear-gradient(145deg, rgba(69, 113, 147, 0.12), transparent);
}

.contact-section .form-control,
.contact-section .form-select {
  color: var(--text);
  background-color: var(--surface);
  border-color: #5c7c98;
}

.contact-section .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23aac1d6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.contact-section .form-control::placeholder {
  color: var(--muted);
  opacity: 1;
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
  color: var(--text);
  background-color: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(170, 193, 214, 0.18);
}

.contact-section input:autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface) inset;
}

.legal-section .bg-white,
.legal-section .bg-light {
  background: var(--surface-card) !important;
}

.legal-section .text-primary,
.legal-section a {
  color: var(--accent) !important;
}

.contact-float {
  color: var(--text);
  background: rgba(16, 43, 67, 0.98);
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    color: var(--text);
    background: var(--surface-card);
  }

  .site-header .navbar-collapse .navbar-nav .nav-link,
  .site-header .navbar-collapse .navbar-nav .nav-link:hover,
  .site-header .navbar-collapse .navbar-nav .nav-link:focus,
  .site-header .navbar-collapse .navbar-nav .nav-link.active,
  .site-header .navbar-collapse .navbar-nav .nav-link.show {
    color: var(--heading);
  }

  .site-header .navbar-collapse .btn-language,
  .site-header .navbar-collapse .btn-nav-social {
    color: var(--text);
    background: var(--surface-alt);
    border-color: #5c7c98;
  }

  .site-header .navbar-collapse .btn-client-portal {
    background: var(--red-dark);
    border-color: var(--red-dark);
  }
}
