@font-face {
  font-family: 'Barlow Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Barlow Regular'), url('../fonts/Barlow-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Barlow Medium';
  font-style: normal;
  font-weight: normal;
  src: local('Barlow Medium'), url('../fonts/Barlow-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Barlow SemiBold';
  font-style: normal;
  font-weight: normal;
  src: local('Barlow SemiBold'), url('../fonts/Barlow-SemiBold.woff') format('woff');
}

@font-face {
  font-family: 'Barlow Bold';
  font-style: normal;
  font-weight: normal;
  src: local('Barlow Bold'), url('../fonts/Barlow-Bold.woff') format('woff');
}

body {
  font-family: 'Barlow Regular', sans-serif !important;
  font-size: 1vw;
  background-color: #1a1f24;
  margin: 0;
  overflow: hidden;
}

#main {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.page-anim {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-bg {
  position: fixed;
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hotspots-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hotspot-category {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  pointer-events: none;
}

.hotspot-interactive {
  pointer-events: auto;
  cursor: pointer;
}

.hotspot-static {
  pointer-events: none;
}

body.hotspot-drag-mode .hotspot-static {
  pointer-events: auto;
}

.hotspot {
  direction: ltr;
}

/* Ensero hotspots: PNG as-is; plate colors unchanged; plate from icon center; icon height = plate height */
.ens-hotspot {
  --ens-size: 34px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.ens-hotspot--inactive .ens-label {
  background: linear-gradient(180deg, #156f92 0%, #0a3d5c 100%);
  color: #fff;
}

.ens-hotspot--active {
  --ens-size: 48px;
}

.ens-hotspot--active .ens-label {
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(180deg, #b11218 0%, #f08a1a 100%) border-box;
  color: #b11218;
  font-family: 'Barlow Bold', sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.94rem);
  letter-spacing: 0.02em;
}

.ens-hotspot--active:hover .ens-label {
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #8f0f17 0%, #c51619 55%, #e11b1a 100%) padding-box,
    linear-gradient(180deg, #b11218 0%, #f08a1a 100%) border-box;
  color: #fff;
}

.ens-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  line-height: 0;
  background: none;
}

.ens-icon-circle img {
  display: block;
  width: var(--ens-size);
  height: var(--ens-size);
  object-fit: contain;
}

.ens-label {
  font-family: 'Barlow Medium', sans-serif;
  font-size: clamp(0.6rem, 0.78vw, 0.85rem);
  line-height: 1.2;
  margin-left: calc(var(--ens-size) / -2);
  padding: 0 12px 0 calc(var(--ens-size) / 2 + 8px);
  height: var(--ens-size);
  min-height: var(--ens-size);
  max-height: var(--ens-size);
  display: flex;
  align-items: center;
  max-width: min(420px, 38vw);
  border-radius: 0 6px 6px 0;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  align-self: center;
  box-sizing: border-box;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

header.site-logo {
  position: fixed;
  bottom: 21px;
  right: 27px;
  z-index: 20000;
  pointer-events: none;
}

header.site-logo img {
  max-width: 48px;
  height: auto;
  display: block;
}

.page-title {
  position: fixed;
  display: flex;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(600px, 86vw);
  height: 60px;
  z-index: 1060;
  align-items: stretch;
}

.page-title span {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-title .col-left {
  background: url('../images/title-l.png') no-repeat left top;
  background-size: 100% 100%;
  width: 81px;
  height: 100%;
}

.page-title .col-right {
  background: url('../images/title-r.png') no-repeat left top;
  background-size: 100% 100%;
  width: 81px;
  min-width: 81px;
  height: 100%;
}

.col-title {
  background: url('../images/title-bg.png') repeat-x left top;
  background-size: auto 100%;
  height: 100%;
  flex-grow: 6;
  flex-shrink: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#title {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #2db8c8 0%, #0a5a7a 45%, #063a52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Barlow SemiBold', sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  letter-spacing: 0.06em;
  line-height: 1.15;
}

/* Bottom phase tabs: one segmented bar — only outer corners rounded, middle flush, no gaps */
.phase-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1500;
  width: min(500px, 96vw);
  max-width: 96vw;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0;
  pointer-events: auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.28));
  box-sizing: border-box;
}

.phase-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
}

.phase-tab__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.phase-tab__label {
  font-family: 'Barlow SemiBold', sans-serif;
  font-size: clamp(0.62rem, 0.82vw, 0.88rem);
  letter-spacing: 0.06em;
  padding: 9px 14px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: rgba(220, 228, 235, 0.92);
  color: #5a6a78;
  border-radius: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.phase-tab:first-child .phase-tab__label {
  border-radius: 999px 0 0 999px;
}

.phase-tab:last-child .phase-tab__label {
  border-radius: 0 999px 999px 0;
}

.phase-tab:not(:first-child):not(:last-child) .phase-tab__label {
  border-radius: 0;
}

.phase-tab--on .phase-tab__label {
  background: linear-gradient(90deg, #1a8aa8 0%, #0a3d5c 100%);
  color: #fff;
}

.phase-tab:not(.phase-tab--on):hover .phase-tab__label {
  background: rgba(255, 255, 255, 0.95);
  color: #0a3d5c;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1040;
}

.solutions.modal {
  top: 120px;
  z-index: 1050;
}

.solutions.modal {
  max-height: 100%;
}

.solutions .modal-content {
  background-color: transparent;
  font-family: 'Barlow Regular', sans-serif;
  overflow: visible;
}

.solutions .modal-body {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  font-size: 0.9rem;
  overflow: visible;
}

@media (min-width: 576px) {
  .solutions .modal-dialog {
    max-width: 1390px;
    overflow: visible;
  }
}

.col-content {
  background-color: transparent;
  border: none;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 23px;
  position: relative;
  overflow: visible;
  flex: 1;
  min-width: 0;
  min-height: 720px;
  display: flex;
  flex-direction: column;
}

.modal-all-content {
  padding: 0;
  max-height: 720px;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border-top-left-radius: 15px;
  overflow: hidden;
  position: relative;
}

.col-content h1 {
  font-family: 'Barlow Bold', sans-serif;
  font-size: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: #fff;
  margin: 0;
  padding: 27px 27px 0 27px;
  position: relative;
  z-index: 1;
  border-top-left-radius: 15px;
  overflow: visible;
  flex-shrink: 0;
}

.col-content h1 span {
  color: #222;
}

.col-content h4.modal-subtitle {
  font-family: 'Barlow Medium', sans-serif;
  font-size: 1.2rem;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 10px 27px 20px 27px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.modal-all-content-scrollable {
  background-color: #f4f4f4;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 27px 27px 27px;
  border-bottom-left-radius: 15px;
}

.col-content p.main-text {
  font-family: 'Barlow Regular', sans-serif;
  font-size: 1.05rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  color: #333;
}

.key-concepts-heading {
  font-family: 'Barlow Medium', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #d43559;
  margin: 0 0 1px 0;
}

.key-concepts-box {
  background: #e8e8e8;
  border: solid 1px #fff;
  border-radius: 10px;
  padding: 16px 20px;
}

.key-concepts-list {
  margin: 0;
  padding-left: 1.2rem;
  font-family: 'Barlow Regular', sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #333;
}

.key-concepts-list li + li {
  margin-top: 12px;
}

#solutionsModalExtraBlocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-image-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.modal-image-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.col-img {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  flex-basis: auto;
  width: auto;
}

.col-img img {
  width: auto;
  height: auto;
  max-height: 720px;
  display: block;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.modal-close {
  background: url('../images/close.png') no-repeat;
  background-color: #fff;
  color: #ffffff;
  text-shadow: none;
  background-position: center;
  background-size: 45%;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  position: absolute;
  border: none;
  right: -42px;
  top: 0;
  height: 32px;
  width: 36px;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.modal-close:hover {
  background-color: #49b8d0;
}

.modal-content {
  border-radius: 0;
  border: none;
}

/* Hotspot drag/dev mode */
body.hotspot-drag-mode .hotspot-category {
  cursor: grab;
}

body.hotspot-drag-mode .hotspot-category.dragging {
  cursor: grabbing;
}

.hotspot-drag-label {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  max-width: 260px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1300;
  pointer-events: auto;
}

body.hotspot-drag-mode .hotspot-drag-label {
  display: flex;
}

.drag-label-title {
  font-family: 'Barlow SemiBold', sans-serif;
  font-size: 0.75rem;
}

.drag-label-values {
  font-family: 'Barlow Regular', sans-serif;
}

.hotspot-drag-label button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.hotspot-drag-label button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hotspot-dev-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 260px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  z-index: 2000;
  font-family: 'Barlow Regular', sans-serif;
  backdrop-filter: blur(4px);
}

.hotspot-dev-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.hotspot-dev-panel__header button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.hotspot-dev-panel__header button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hotspot-dev-panel__output {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.68rem;
  padding: 6px;
  resize: none;
}

.hotspot-dev-panel__tip {
  font-size: 0.65rem;
  margin-top: 6px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
}

.hotspot-dev-panel__tip code {
  font-family: 'Barlow SemiBold', sans-serif;
  color: #ffcf88;
}
