/* =========================================================================
   KRK Marine - Dark / Parallax theme
   Scoped to <body class="theme-dark"> so the remaining light pages are safe.
   ========================================================================= */

body.theme-dark {
  --ink: #05090f;
  --ink-2: #080f1b;
  --ink-3: #0d1728;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --brand: #293891;
  --brand-2: #4a63d8;
  --aqua: #2fd9d0;
  --aqua-soft: rgba(47, 217, 208, 0.16);
  --text: #e8eefa;
  --muted: #92a3bd;
  --radius: 18px;
  --shell: min(1280px, 92vw);

  background-color: var(--ink);
  color: var(--text);
  overflow-x: hidden;
}

body.theme-dark::before {
  /* fixed atmospheric wash behind every section */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(41, 56, 145, 0.55), transparent 60%),
    radial-gradient(800px 620px at 92% 12%, rgba(47, 217, 208, 0.12), transparent 62%),
    radial-gradient(1000px 700px at 50% 105%, rgba(41, 56, 145, 0.35), transparent 65%),
    var(--ink);
}

body.theme-dark::after {
  /* subtle scanline veil */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
}

body.theme-dark p,
body.theme-dark li {
  color: var(--muted);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
  color: var(--text);
  letter-spacing: -0.02em;
}

body.theme-dark #preloader {
  background-color: var(--ink);
  color: var(--muted);
  gap: 1rem;
}

body.theme-dark .spinner {
  border-color: rgba(255, 255, 255, 0.08);
  border-right-color: var(--aqua);
}

body.theme-dark ::selection {
  background: var(--aqua);
  color: #04222c;
}

/* ---------- shared shell ---------- */
.dk-shell {
  width: var(--shell);
  margin-inline: auto;
}

.dk-section {
  position: relative;
  padding: clamp(72px, 9vw, 140px) 0;
}

.dk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 18px;
}

.dk-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aqua));
}

.dk-title {
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  margin-bottom: 18px;
}

.dk-title .accent {
  background: linear-gradient(100deg, var(--aqua), #7f9cff 65%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dk-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 62ch;
}

.dk-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 14px 40px -18px rgba(74, 99, 216, 0.9);
}

.dk-btn i {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dk-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -18px rgba(74, 99, 216, 1);
  color: #fff !important;
}

.dk-btn:hover i {
  transform: translate(4px, -4px);
}

.dk-btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.dk-btn--ghost:hover {
  border-color: var(--aqua);
  background: var(--aqua-soft);
  box-shadow: none;
}

/* Reveal-on-scroll (driven by IntersectionObserver in krk-dark.js). The .dk-js
   guard is set by an inline script, so content is never hidden without JS. */
.dk-js .dk-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.dk-js .dk-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- header ----------
   Stacking order for the whole theme:
     header / navbar (and its dropdowns)  30
     sticky anchor rail                    4
     page content                          0
   The base stylesheet puts the header at 1-2, which let the anchor rail on the
   services and facilities pages cover the open dropdown menus. */
body.theme-dark .mainHeader,
body.theme-dark .navbar,
body.theme-dark .navbar.navbar-shadow {
  z-index: 30;
}

body.theme-dark .mainHeader,
body.theme-dark .navbar {
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

body.theme-dark .top-header {
  background-color: rgba(5, 9, 15, 0.55);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  font-size: 14px;
}

body.theme-dark .top-header p,
body.theme-dark .top-header a,
body.theme-dark .top-header i {
  color: var(--text);
}

body.theme-dark .top-header a:hover {
  color: var(--aqua);
}

body.theme-dark .navbar.navbar-shadow {
  background-color: rgba(5, 9, 15, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 0 var(--line), 0 18px 40px -30px #000;
}

body.theme-dark .navbar .navbar-nav .nav-item .nav-link {
  color: var(--text);
}

body.theme-dark .navbar .navbar-nav .nav-item .nav-link:hover,
body.theme-dark .navbar .navbar-nav .nav-item .nav-link.active {
  color: var(--aqua);
}

body.theme-dark .nav-item .nav-link:before,
body.theme-dark .dropdown-item:before {
  background: var(--aqua);
}

body.theme-dark .navbar .navbar-nav .nav-item .dropdown-menu {
  background-color: rgba(9, 16, 28, 0.96) !important;
  border: 1px solid var(--line) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -40px #000;
}

body.theme-dark .navbar .navbar-nav .nav-item .dropdown-menu .dropdown-item {
  color: var(--muted);
}

body.theme-dark .navbar .navbar-nav .nav-item .dropdown-menu .dropdown-item:hover,
body.theme-dark .dropdown-item.active {
  color: var(--aqua);
}

body.theme-dark .navbar .navbar-toggler i {
  color: var(--text);
}

body.theme-dark .navbar-brand img.dk-logo {
  transform: none;
  height: 52px;
  width: auto;
  max-width: none;
}

@media (max-width: 767px) {
  body.theme-dark .navbar-brand img.dk-logo {
    height: 38px;
  }
}

body.theme-dark .btn-primary {
  background: linear-gradient(120deg, var(--brand-2), var(--brand)) !important;
  border-radius: 999px;
  padding-inline: 26px;
}

body.theme-dark .burger-inside-links i,
body.theme-dark .burger-inside-links p,
body.theme-dark .burger-inside-links a {
  color: var(--text);
}

@media (max-width: 991px) {
  body.theme-dark .navbar-collapse {
    background: rgba(5, 9, 15, 0.97);
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-inline: 8px;
  }
}

/* ---------- hero ---------- */
.dk-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.dk-hero__media {
  position: absolute;
  inset: -14% 0;
  z-index: -3;
  will-change: transform;
}

.dk-hero__media video,
.dk-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1) contrast(1.08) brightness(0.95);
}

.dk-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Heavy on the left, where the headline sits; the right stays open so the
     footage reads as footage. */
  background:
    linear-gradient(180deg, rgba(5, 9, 15, 0.82) 0%, rgba(5, 9, 15, 0.06) 32%, rgba(5, 9, 15, 0.42) 78%, var(--ink) 100%),
    linear-gradient(100deg,
      rgba(5, 9, 15, 0.94) 0%,
      rgba(5, 9, 15, 0.82) 24%,
      rgba(5, 9, 15, 0.34) 46%,
      transparent 66%);
}

/* Phones put the copy over the full width, so the footage goes back under a
   full scrim there. */
@media (max-width: 767px) {
  .dk-hero__media video,
  .dk-hero__media img {
    filter: saturate(0.8) contrast(1.05) brightness(0.6);
  }

  .dk-hero__scrim {
    background:
      linear-gradient(180deg, rgba(5, 9, 15, 0.9) 0%, rgba(5, 9, 15, 0.42) 34%, rgba(5, 9, 15, 0.72) 74%, var(--ink) 100%),
      linear-gradient(100deg, rgba(5, 9, 15, 0.86) 0%, rgba(5, 9, 15, 0.6) 60%, rgba(5, 9, 15, 0.45) 100%);
  }
}

.dk-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 45%, #000 30%, transparent 100%);
}

.dk-hero__inner {
  width: var(--shell);
  margin-inline: auto;
  padding-block: 170px 96px;
  position: relative;
}

.dk-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 26px;
}

.dk-hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  animation: dk-ping 2.4s ease-out infinite;
}

@keyframes dk-ping {
  0% { box-shadow: 0 0 0 0 rgba(47, 217, 208, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(47, 217, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 217, 208, 0); }
}

.dk-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 22px;
  max-width: 18ch;
}

.dk-hero__rotator {
  display: block;
  position: relative;
  min-height: 1.1em;
}

.dk-hero__rotator span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(100deg, var(--aqua), #8fa6ff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.dk-hero__rotator span.is-active {
  opacity: 1;
  transform: none;
}

.dk-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  max-width: 56ch;
  color: #c3d0e4 !important;
  line-height: 1.75;
}

.dk-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.dk-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.dk-hero__stats .stat {
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(12px);
  padding: 24px;
  transition: background 0.4s ease;
}

.dk-hero__stats .stat:hover {
  background: rgba(20, 32, 54, 0.9);
}

.dk-hero__stats .num {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.dk-hero__stats .num .suffix {
  color: var(--aqua);
}

.dk-hero__stats .lbl {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dk-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.dk-hero__scroll .rail {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--line-strong));
  position: relative;
  overflow: hidden;
}

.dk-hero__scroll .rail::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--aqua);
  animation: dk-rail 2.2s ease-in-out infinite;
}

@keyframes dk-rail {
  0% { top: -30%; }
  100% { top: 110%; }
}

/* ---------- marquee ---------- */
.dk-marquee {
  border-block: 1px solid var(--line);
  background: rgba(6, 11, 20, 0.65);
  overflow: hidden;
  padding: 18px 0;
}

.dk-marquee__track {
  display: flex;
  width: max-content;
  animation: dk-marquee 42s linear infinite;
}

.dk-marquee:hover .dk-marquee__track {
  animation-play-state: paused;
}

.dk-marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 238, 250, 0.5);
  white-space: nowrap;
}

.dk-marquee__track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  opacity: 0.75;
}

@keyframes dk-marquee {
  to { transform: translateX(-50%); }
}

/* ---------- about / gear ---------- */
.dk-about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.dk-gear {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.dk-gear::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(74, 99, 216, 0.35), transparent 68%);
  filter: blur(10px);
}

.dk-gear__ring {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: dk-spin 46s linear infinite;
}

.dk-gear__ring--inner {
  inset: 14%;
  border-style: solid;
  border-color: rgba(47, 217, 208, 0.18);
  animation-duration: 30s;
  animation-direction: reverse;
}

/* both stack in the same grid cell, so they stay concentric */
.dk-gear__cog,
.dk-gear__core {
  grid-area: 1 / 1;
}

.dk-gear__cog {
  /* bigger than the photo collage so a full ring of teeth stays in view */
  width: 118%;
  animation: dk-spin 30s linear infinite;
  opacity: 0.9;
  filter: drop-shadow(0 0 40px rgba(74, 99, 216, 0.65));
}

.dk-gear__core {
  width: 70%;
  border-radius: 14px;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.85));
}

@keyframes dk-spin {
  to { transform: rotate(360deg); }
}

.dk-pillars {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.dk-pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, background 0.4s ease;
}

.dk-pillar:hover {
  transform: translateX(8px);
  border-color: rgba(47, 217, 208, 0.4);
  background: var(--surface-2);
}

.dk-pillar__ico {
  flex: 0 0 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(74, 99, 216, 0.35), rgba(47, 217, 208, 0.12));
  border: 1px solid var(--line);
}

.dk-pillar__ico img {
  width: 26px;
  filter: brightness(0) invert(1);
}

.dk-pillar h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.dk-pillar p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- capability cards ---------- */
.dk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 54px;
}

.dk-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.5s ease;
}

.dk-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: grayscale(0.65) brightness(0.4);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.dk-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 9, 15, 0.1) 0%, rgba(5, 9, 15, 0.86) 66%, rgba(5, 9, 15, 0.96) 100%);
}

.dk-card:hover,
.dk-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(47, 217, 208, 0.42);
}

.dk-card:hover .dk-card__bg,
.dk-card:focus-within .dk-card__bg {
  transform: scale(1.16);
  filter: grayscale(0) brightness(0.62);
}

.dk-card__no {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(232, 238, 250, 0.45);
}

.dk-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.dk-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.5s ease;
}

.dk-card:hover p,
.dk-card:focus-within p {
  max-height: 220px;
  opacity: 1;
}

.dk-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---------- identity tabs ---------- */
.dk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.dk-tabs::-webkit-scrollbar {
  display: none;
}

.dk-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.4s ease;
}

.dk-tab:hover {
  color: var(--text);
}

.dk-tab.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  box-shadow: 0 12px 32px -18px rgba(74, 99, 216, 1);
}

.dk-panel {
  display: none;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
}

.dk-panel.is-active {
  display: grid;
  animation: dk-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dk-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.dk-panel__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.dk-panel__media img {
  width: 100%;
  display: block;
  filter: brightness(0.85) saturate(0.9);
}

.dk-panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 9, 15, 0.75));
}

.dk-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.dk-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.65;
}

.dk-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--aqua);
  background: var(--aqua-soft);
}

/* ---------- locations / globe ---------- */
.dk-locations {
  position: relative;
  overflow: hidden;
}

.dk-locations__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 460px at 70% 40%, rgba(47, 217, 208, 0.12), transparent 70%),
    radial-gradient(600px 400px at 20% 70%, rgba(74, 99, 216, 0.18), transparent 70%);
}

.dk-globe__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: 46px;
}

.dk-globe__stage {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  touch-action: pan-y;
  cursor: grab;
}

.dk-globe__stage.is-dragging {
  cursor: grabbing;
}

.dk-globe__stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dk-globe__hint {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(146, 163, 189, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.dk-globe__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dk-globe__tag {
  position: absolute;
  transform: translate(-50%, -140%);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.dk-globe__tag.is-visible {
  opacity: 1;
}

.dk-globe__tag.is-active {
  border-color: var(--aqua);
  color: #04222c;
  background: var(--aqua);
}

.dk-loc__cards {
  display: grid;
  gap: 14px;
}

.dk-loc {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dk-loc__trigger {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.dk-loc__trigger:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: -4px;
  border-radius: var(--radius);
}

.dk-loc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--aqua), var(--brand-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dk-loc:hover {
  border-color: rgba(47, 217, 208, 0.35);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.dk-loc.is-active {
  border-color: rgba(47, 217, 208, 0.55);
  background: rgba(47, 217, 208, 0.07);
}

.dk-loc.is-active::before {
  transform: scaleY(1);
}

.dk-loc__pin {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(74, 99, 216, 0.32), rgba(47, 217, 208, 0.1));
  font-size: 1.1rem;
  color: var(--aqua);
}

.dk-loc__name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dk-loc__role {
  display: block;
  margin-top: 3px;
  font-size: 0.88rem;
  color: var(--muted);
}

.dk-loc__meta {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dk-loc__time {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

.dk-loc__tz {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.dk-loc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dk-loc.is-active .dk-loc__body {
  grid-template-rows: 1fr;
}

.dk-loc__bodyInner {
  overflow: hidden;
}

.dk-loc__bodyInner > *:last-child {
  margin-bottom: 22px;
}

.dk-loc__body p {
  margin: 0 22px 0;
  padding-top: 2px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.dk-loc__address {
  color: var(--text) !important;
}

.dk-loc__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 22px 0;
}

.dk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  color: var(--text) !important;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.dk-chip:hover {
  border-color: var(--aqua);
  background: var(--aqua-soft);
  color: #fff !important;
}

.dk-loc__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 22px 0;
  padding: 0;
}

.dk-loc__services li {
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* ---------- facilities parallax band ---------- */
.dk-band {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.dk-band__media {
  position: absolute;
  inset: -18% 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.7);
  will-change: transform;
}

.dk-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--ink), rgba(5, 9, 15, 0.35) 35%, rgba(5, 9, 15, 0.4) 60%, var(--ink)),
    radial-gradient(600px 340px at 50% 50%, rgba(41, 56, 145, 0.4), transparent 70%);
}

.dk-band__inner {
  width: var(--shell);
  text-align: center;
  padding-block: 90px;
}

.dk-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.dk-metric {
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 12, 22, 0.6);
  backdrop-filter: blur(10px);
}

.dk-metric .num {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.dk-metric .num .suffix {
  color: var(--aqua);
}

.dk-metric p {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- contact block (shared getquote.php) ---------- */
.dk-contact__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  padding: clamp(22px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -60px #000;
}

.dk-contact__card .dk-title {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.dk-contact__list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.dk-contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
}

.dk-contact__list a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.dk-contact__list a:hover {
  color: var(--aqua);
}

.dk-contact__list a + a::before {
  content: "|";
  margin: 0 8px;
  color: var(--line-strong);
}

body.theme-dark .icon-circle {
  /* centres its own icon: the old markup leaned on Bootstrap flex classes */
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background-color: rgba(74, 99, 216, 0.18);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--aqua);
}

body.theme-dark .icon-circle i {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.dk-field {
  margin-bottom: 16px;
  min-width: 0;
}

.dk-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.theme-dark .dk-contact .form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.theme-dark .dk-contact .form-control {
  width: 100%;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
}

body.theme-dark .dk-contact textarea.form-control {
  height: auto;
  resize: vertical;
}

body.theme-dark .dk-contact .form-control:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(47, 217, 208, 0.14);
  background-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .dk-contact .form-control::placeholder {
  color: #7f90aa !important;
}

body.theme-dark .dk-contact .error-text {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  color: #ff8b8b;
}

.dk-btn--block {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .dk-contact__card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dk-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dk-contact__list a + a::before {
    display: none;
  }

  .dk-contact__list a {
    display: block;
  }
}

/* ---------- footer ---------- */
body.theme-dark footer .footer {
  background-color: transparent;
  border-top: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(41, 56, 145, 0.12), transparent 60%);
}

body.theme-dark footer .footer a {
  color: var(--muted);
  transition: color 0.3s ease;
}

body.theme-dark footer .footer a:hover {
  color: var(--aqua);
}

body.theme-dark footer .footer .social-media a {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

body.theme-dark footer .footer .social-media a:hover {
  border-color: var(--aqua);
}

body.theme-dark .footer-bottom {
  background-color: rgba(3, 6, 11, 0.9);
  border-top: 1px solid var(--line);
}

body.theme-dark .footer-bottom p,
body.theme-dark .footer-bottom a {
  color: var(--muted) !important;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .dk-about__grid,
  .dk-globe__layout,
  .dk-panel.is-active {
    grid-template-columns: 1fr;
  }

  .dk-gear {
    /* leaves room for the oversized cog without pushing past the viewport */
    max-width: min(340px, 84%);
    margin-inline: auto;
  }

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

@media (max-width: 767px) {
  .dk-hero__inner {
    padding-block: 140px 110px;
  }

  .dk-hero h1 {
    max-width: 100%;
  }

  .dk-hero__rotator span {
    white-space: normal;
  }

  .dk-loc__trigger {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px;
  }

  .dk-loc__meta {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .dk-loc__body p,
  .dk-loc__contact,
  .dk-loc__services {
    margin-inline: 18px;
  }

  .dk-loc__tz {
    margin-top: 0;
  }

  .dk-band {
    min-height: 520px;
  }

  .dk-hero__scroll {
    display: none;
  }

  /* keep the tab pills on one scrollable line instead of stacking */
  .dk-tabs {
    flex-wrap: nowrap;
    width: 100%;
    border-radius: 16px;
  }

  .dk-tab {
    padding: 11px 20px;
    font-size: 0.9rem;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dk-js .dk-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .dk-marquee__track,
  .dk-gear__ring,
  .dk-gear__cog,
  .dk-hero__scroll .rail::after,
  .dk-hero__badge .dot {
    animation: none !important;
  }

  .dk-hero__media,
  .dk-band__media {
    transform: none !important;
  }
}

/* =========================================================================
   Inner pages: hero, anchor rail, alternating splits, prose, 404
   ========================================================================= */

.dk-pagehero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 62vh, 660px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.dk-pagehero__media {
  position: absolute;
  inset: -12% 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) saturate(0.75);
  will-change: transform;
}

.dk-pagehero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 9, 15, 0.9) 0%, rgba(5, 9, 15, 0.35) 40%, rgba(5, 9, 15, 0.85) 80%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5, 9, 15, 0.85) 0%, transparent 60%);
}

.dk-pagehero__inner {
  width: var(--shell);
  margin-inline: auto;
  padding-block: 170px 70px;
}

.dk-pagehero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 18px;
  max-width: 18ch;
}

.dk-pagehero .dk-lead {
  color: #c3d0e4 !important;
}

.dk-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dk-crumbs a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.dk-crumbs a:hover {
  color: var(--aqua);
}

.dk-crumbs span[aria-current] {
  color: var(--aqua);
}

/* --- sticky anchor rail --- */
.dk-anchors {
  position: sticky;
  /* clears the navbar, which is what stays fixed once the page scrolls */
  top: 76px;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 15, 0.85);
  backdrop-filter: blur(16px);
}

.dk-anchors__track {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.dk-anchors__track::-webkit-scrollbar {
  display: none;
}

.dk-anchors a {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.dk-anchors a:hover,
.dk-anchors a.is-current {
  color: #fff !important;
  border-color: rgba(47, 217, 208, 0.5);
  background: var(--aqua-soft);
}

/* --- alternating split rows --- */
.dk-splits {
  display: grid;
  gap: clamp(60px, 8vw, 130px);
  padding: clamp(64px, 8vw, 120px) 0;
}

.dk-split {
  /* clears the fixed navbar plus the sticky rail on an anchor jump */
  scroll-margin-top: 160px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: var(--shell);
  margin-inline: auto;
}

.dk-split--flip .dk-split__media {
  order: 2;
}

.dk-split__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.dk-split__media img {
  position: absolute;
  inset: -9% 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.9);
  transition: filter 0.6s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.dk-split:hover .dk-split__media img {
  filter: brightness(1) saturate(1);
}

.dk-split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(47, 217, 208, 0.08), rgba(5, 9, 15, 0.5) 70%);
  pointer-events: none;
}

.dk-split__no {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--aqua);
  margin-bottom: 14px;
}

.dk-split__body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.dk-split__body h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--aqua), transparent);
}

.dk-split__body p {
  line-height: 1.8;
  margin-bottom: 14px;
}

.dk-split__body h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--aqua);
  margin: 18px 0 8px;
}

.dk-split__cta {
  margin-top: 24px;
}

/* --- prose pages (privacy, terms) --- */
.dk-prose {
  width: min(880px, 92vw);
  margin-inline: auto;
}

.dk-prose h2,
.dk-prose h3 {
  margin: 42px 0 14px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
}

.dk-prose h2:first-child,
.dk-prose h3:first-child {
  margin-top: 0;
}

.dk-prose p,
.dk-prose li {
  line-height: 1.85;
  margin-bottom: 14px;
}

.dk-prose ul,
.dk-prose ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.dk-prose a {
  color: var(--aqua);
}

.dk-prose__meta {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 34px;
}

/* --- 404 --- */
.dk-404 {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 170px 0 90px;
}

.dk-404 .code {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  background: linear-gradient(120deg, var(--aqua), #7f9cff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- responsive --- */
@media (max-width: 900px) {
  .dk-split {
    grid-template-columns: 1fr;
  }

  .dk-split--flip .dk-split__media {
    order: 0;
  }

  .dk-pagehero {
    min-height: 420px;
  }

  .dk-pagehero__inner {
    padding-block: 150px 56px;
  }
}

/* --- callout + fact strip (inner pages) --- */
.dk-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(74, 99, 216, 0.16), rgba(47, 217, 208, 0.06)),
    rgba(8, 14, 24, 0.6);
}

.dk-callout p {
  margin: 0;
  flex: 1 1 420px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.dk-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.dk-fact {
  background: rgba(8, 14, 24, 0.72);
  padding: 30px 24px;
  transition: background 0.4s ease;
}

.dk-fact:hover {
  background: rgba(20, 32, 54, 0.9);
}

.dk-fact .num {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.dk-fact .num .suffix {
  color: var(--aqua);
}

.dk-fact p {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- 404 --- */
.dk-404 .dk-shell {
  text-align: center;
}

.dk-404 .dk-lead {
  max-width: 52ch;
}

/* centred eyebrows keep their rule on both sides */
.dk-eyebrow[style*="center"]::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--aqua), transparent);
}

@media (max-width: 991px) {
  .dk-anchors {
    top: 62px;
  }

  .dk-split {
    scroll-margin-top: 150px;
  }
}

/* --- certificate lightbox ---------------------------------------------------
   The stock lightbox theme points its controls at an images/ folder that this
   site never shipped, so close/prev/next rendered blank (four 404s per page).
   Inline SVGs replace them and the chrome is restyled for the dark theme. */
body.theme-dark .lb-outerContainer,
body.theme-dark .lb-dataContainer {
  background: var(--ink-2);
  border-radius: 12px;
}

body.theme-dark .lb-image {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.theme-dark .lb-data .lb-caption,
body.theme-dark .lb-data .lb-number {
  color: var(--text);
}

body.theme-dark .lb-close {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

body.theme-dark .lb-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 18px center;
  background-size: 30px 30px;
}

body.theme-dark .lb-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 30px 30px;
}

body.theme-dark .lb-cancel {
  background-image: none;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-right-color: var(--aqua);
  border-radius: 50%;
  animation: spinner-d3wgkg 0.9s infinite linear;
}

/* footer phone list: three numbers that wrap cleanly in a narrow column */
body.theme-dark .footer-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

body.theme-dark .footer-phones a + a::before {
  content: "|";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 575px) {
  body.theme-dark .footer-phones {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  body.theme-dark .footer-phones a + a::before {
    display: none;
  }
}

/* bottom bar: the three blocks collided once they wrapped below ~900px */
body.theme-dark .footer-bottom .d-flex {
  gap: 12px 28px;
}

/* --- keyboard focus -------------------------------------------------------
   Browser defaults are hard to see on this palette, so every interactive
   element gets the same visible ring when reached by keyboard. */
body.theme-dark a:focus-visible,
body.theme-dark button:focus-visible,
body.theme-dark input:focus-visible,
body.theme-dark textarea:focus-visible,
body.theme-dark [tabindex]:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

body.theme-dark .dk-btn:focus-visible,
body.theme-dark .dk-chip:focus-visible,
body.theme-dark .dk-anchors a:focus-visible,
body.theme-dark .dk-tab:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

body.theme-dark .dk-card:focus-within {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

/* =========================================================================
   Chat assistant widget
   ========================================================================= */
.krk-chat {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 40;
  font-family: "Barlow", sans-serif;
}

.krk-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 18px 44px -18px rgba(74, 99, 216, 1);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.krk-chat__launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -18px rgba(74, 99, 216, 1);
}

.krk-chat.is-open .krk-chat__launcher {
  opacity: 0;
  pointer-events: none;
}

.krk-chat__launcherIcon {
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.krk-chat__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(390px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 14, 24, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -40px #000;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.krk-chat.is-open .krk-chat__panel {
  opacity: 1;
  transform: none;
}

.krk-chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(74, 99, 216, 0.22), transparent);
}

.krk-chat__avatar {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(47, 217, 208, 0.12);
  color: var(--aqua);
}

.krk-chat__title {
  flex: 1;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.2;
}

.krk-chat__title small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.krk-chat__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.krk-chat__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.krk-chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.krk-chat__log::-webkit-scrollbar {
  width: 6px;
}

.krk-chat__log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.krk-msg {
  display: flex;
}

.krk-msg--user {
  justify-content: flex-end;
}

.krk-msg__bubble {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.krk-msg--bot .krk-msg__bubble {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border-bottom-left-radius: 5px;
}

.krk-msg--user .krk-msg__bubble {
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  color: #fff;
  border-bottom-right-radius: 5px;
}

.krk-msg--system .krk-msg__bubble {
  max-width: 100%;
  border: 1px solid rgba(47, 217, 208, 0.4);
  background: rgba(47, 217, 208, 0.09);
  color: var(--text);
}

.krk-msg--typing .krk-msg__bubble {
  display: inline-flex;
  gap: 5px;
  padding: 15px;
}

.krk-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  opacity: 0.5;
  animation: krk-typing 1.2s infinite ease-in-out;
}

.krk-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.krk-msg--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes krk-typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.krk-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 0;
}

.krk-chat__action {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(47, 217, 208, 0.45);
  background: rgba(47, 217, 208, 0.1);
  color: var(--text) !important;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.krk-chat__action:hover {
  background: rgba(47, 217, 208, 0.2);
  border-color: var(--aqua);
}

.krk-chat__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px 6px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.krk-chat__input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.5;
  font-family: inherit;
}

.krk-chat__input::placeholder {
  color: #7f90aa;
}

.krk-chat__input:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(47, 217, 208, 0.14);
}

.krk-chat__send {
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.krk-chat__send:hover:not(:disabled) {
  transform: translateY(-2px);
}

.krk-chat__send:disabled {
  opacity: 0.5;
  cursor: default;
}

.krk-chat__note {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(146, 163, 189, 0.8) !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .krk-chat__launcherText {
    display: none;
  }

  .krk-chat__launcher {
    padding: 15px;
  }

  .krk-chat__panel {
    width: calc(100vw - 28px);
    height: min(520px, calc(100vh - 100px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .krk-chat__panel,
  .krk-chat__launcher,
  .krk-chat__send {
    transition: none;
  }

  .krk-msg--typing span {
    animation: none;
  }
}

/* --- chat: brand mark + starter chips ---
   The mark is inlined by js/krk-chat.js rather than loaded as a file, so it
   cannot 404 and its fills follow `color` like any other text. */
.krk-chat__mark {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.krk-chat__launcherIcon {
  display: block;
  width: 26px;
  height: 24px;
  color: #fff;
}

.krk-chat__avatar .krk-chat__mark {
  width: 22px;
  height: 20px;
  color: var(--aqua);
}

.krk-chat__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.krk-chat__chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.krk-chat__chip:hover {
  border-color: rgba(47, 217, 208, 0.55);
  background: rgba(47, 217, 208, 0.12);
  transform: translateY(-1px);
}

.krk-chat__chip:active {
  transform: none;
}

@media (max-width: 480px) {
  .krk-chat__launcher {
    padding: 14px;
  }

  .krk-chat__chip {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* --- chat: lead form ------------------------------------------------------
   Shown when a visitor would rather fill fields than talk. Sits inside the
   message log so the conversation stays visible above it. */
.krk-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(47, 217, 208, 0.3);
  border-radius: 14px;
  background: rgba(47, 217, 208, 0.05);
}

.krk-form__intro {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text) !important;
}

.krk-form__field {
  display: grid;
  gap: 5px;
}

.krk-form__field > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.krk-form__field input,
.krk-form__field textarea,
.krk-form__field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
}

.krk-form__field textarea {
  resize: vertical;
  min-height: 64px;
}

.krk-form__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.krk-form__field select option {
  background: #0b1421;
  color: var(--text);
}

.krk-form__field input:focus,
.krk-form__field textarea:focus,
.krk-form__field select:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(47, 217, 208, 0.14);
}

.krk-form__error {
  font-style: normal;
  font-size: 0.78rem;
  color: #ff8b8b;
}

.krk-form__error:empty {
  display: none;
}

.krk-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.krk-form__submit {
  flex: 1 1 auto;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.krk-form__submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.krk-form__submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.krk-form__cancel {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.krk-form__cancel:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.krk-chat__formLink {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--aqua);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.krk-chat__formLink:hover {
  color: #7cffee;
}

/* --- country flags on the location cards ---------------------------------
   Drawn inline by flags.php. The hairline ring keeps a white or light band
   from bleeding into the dark card. */
.dk-flag {
  display: block;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 2px 5px rgba(0, 0, 0, 0.45);
}

body.theme-dark .dk-loc__pin {
  background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .dk-loc.is-active .dk-loc__pin,
body.theme-dark .dk-loc:hover .dk-loc__pin {
  border-color: rgba(47, 217, 208, 0.45);
}

@media (max-width: 767px) {
  .dk-flag {
    width: 25px;
    height: 18px;
  }
}

/* --- hub list in the top bar and burger menu ----------------------------- */
.dk-hubs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dk-hubs li {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* hairline between hubs, replacing the old pipe characters */
.dk-hubs li + li::before {
  content: "";
  width: 1px;
  height: 12px;
  margin-right: 7px;
  background: rgba(255, 255, 255, 0.22);
}

.dk-hubs .dk-flag {
  width: 19px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* The nav sits tight between the logo and the Contact button at some widths,
   which was breaking "About Us" onto two lines. */
body.theme-dark .navbar .navbar-nav .nav-item .nav-link {
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199px) {
  body.theme-dark .navbar-nav {
    gap: 1.4rem !important;
  }
}

@media (max-width: 991px) {
  .burger-inside-links .dk-hubs {
    gap: 10px 16px;
  }
}
