/**
 * Navitronix Core Theme Styles
 * Cinematic Space-to-Seabed Marine Technology
 */

:root {
  --scene-dark: #1d3045;
  --scene-light: #ffffff;
  --signal: #59d6e8;
  --signal-glow: rgba(89, 214, 232, 0.4);
  --mist: #eef3f5;
  --danger: #b13b3b;
  --danger-soft: #ff7a7a;
  --deep: #040b14;
  --deep-raised: #0a1826;
  --steel: #8b9aa8;
  --steel-border: rgba(139, 154, 168, 0.18);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--deep);
  color: var(--scene-light);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--deep);
  color: var(--scene-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}

/* Background & Visual FX */
.bg-deep { background-color: var(--deep); }
.bg-deep-raised { background-color: var(--deep-raised); }
.text-scene-light { color: var(--scene-light); }
.text-signal { color: var(--signal); }
.text-steel { color: var(--steel); }
.border-signal { border-color: var(--signal); }
.border-steel { border-color: var(--steel-border); }

.bg-scene-vignette {
  background: linear-gradient(90deg, rgba(4, 11, 20, 0.85) 0%, rgba(4, 11, 20, 0.3) 60%, transparent 100%),
              linear-gradient(0deg, var(--deep) 0%, transparent 30%);
}

.tech-grid {
  background-image:
    linear-gradient(rgba(89, 214, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 214, 232, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
}

.scene-seam-top {
  background: linear-gradient(to bottom, var(--deep) 0%, rgba(4, 11, 20, 0.55) 45%, transparent 100%);
}

.scene-seam-bottom {
  background: linear-gradient(to top, var(--deep) 0%, rgba(4, 11, 20, 0.6) 50%, transparent 100%);
}

.signal-path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  animation: signal-flow 1.6s linear infinite;
}

.signal-bar {
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  background-size: 200% 100%;
  animation: signal-sweep 2.4s linear infinite;
}

@keyframes signal-flow {
  to { stroke-dashoffset: -32; }
}

@keyframes signal-sweep {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* 3D Dimensional Isometric Glyphs */
.icon-3d {
  position: relative;
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  perspective: 500px;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-3d-depth, .icon-3d-face {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(89, 214, 232, 0.55);
}

.icon-3d-depth {
  background: color-mix(in srgb, var(--signal) 18%, var(--deep));
  transform: translate(8px, 8px) rotateX(8deg) rotateY(-8deg);
  box-shadow: 0 14px 32px rgba(89, 214, 232, 0.16);
}

.icon-3d-face {
  display: grid;
  place-items: center;
  color: var(--signal);
  background: linear-gradient(145deg, color-mix(in srgb, var(--scene-light) 9%, var(--deep-raised)), var(--deep));
  transform: rotateX(8deg) rotateY(-8deg);
}

.icon-3d-face svg {
  width: 25px;
  height: 25px;
  filter: drop-shadow(3px 5px 4px rgba(4, 11, 20, 0.8));
}

.icon-3d-glint {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(-9deg);
}

.group:hover .icon-3d,
.industry-card:hover .icon-3d,
.service-card:hover .icon-3d {
  transform: translateY(-5px) rotateY(-7deg);
}

.icon-3d-compact {
  width: 52px;
  height: 52px;
}

.icon-3d-compact .icon-3d-face svg {
  width: 20px;
  height: 20px;
}

.service-icon-3d {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--signal);
  border: 1px solid rgba(89, 214, 232, 0.5);
  background: linear-gradient(145deg, color-mix(in srgb, var(--signal) 16%, var(--deep-raised)), var(--deep));
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--signal) 12%, var(--deep)), 12px 16px 30px rgba(4, 11, 20, 0.7);
  transform: rotateX(7deg) rotateY(-7deg);
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon-3d svg {
  width: 21px;
  height: 21px;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  background-color: transparent;
}

.site-header.scrolled {
  background-color: rgba(4, 11, 20, 0.9);
  border-bottom: 1px solid rgba(139, 154, 168, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .header-container {
    padding: 1.25rem 3rem;
  }
}

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

.site-logo svg,
.site-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover {
  color: var(--signal);
}

.nav-item-dropdown {
  position: relative;
}

/* Invisible bridge extending down from nav link toward dropdown menu */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 40px;
  background: transparent;
  pointer-events: auto;
}

.nav-item-dropdown .nav-link svg {
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .nav-link,
.nav-item-dropdown.is-active .nav-link {
  color: var(--signal);
}

.nav-item-dropdown:hover .nav-link svg,
.nav-item-dropdown.is-active .nav-link svg {
  transform: rotate(180deg);
}

.catalogue-dropdown-menu {
  position: fixed;
  left: 50%;
  top: 65px;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 60;
  width: min(980px, calc(100vw - 3rem));
  background-color: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: visible;
}

/* Invisible bridge above dropdown menu connecting up to header nav links */
.catalogue-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: transparent;
  pointer-events: auto;
}

.nav-item-dropdown:hover .catalogue-dropdown-menu,
.nav-item-dropdown:focus-within .catalogue-dropdown-menu,
.nav-item-dropdown.is-active .catalogue-dropdown-menu,
.catalogue-dropdown-menu.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.dropdown-sidebar {
  background-color: rgba(4, 11, 20, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem;
}

.dropdown-tab-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 2px solid transparent;
  color: rgba(255, 255, 255, 0.75);
}

.dropdown-tab-link:hover,
.dropdown-tab-link.active {
  border-left-color: var(--signal);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--signal);
}

.dropdown-content-pane {
  padding: 2rem 2.25rem;
  min-height: 330px;
  position: relative;
}

.dropdown-groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.dropdown-group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  min-height: 54px;
  background-color: rgba(4, 11, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--scene-light);
}

.dropdown-group-card:hover {
  border-color: var(--signal);
  background-color: rgba(4, 11, 20, 0.9);
  color: var(--signal);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-quote {
  display: none;
  border: 1px solid var(--signal);
  padding: 0.65rem 1.25rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--signal);
}

@media (min-width: 640px) {
  .btn-quote {
    display: inline-block;
  }
}

.btn-quote:hover {
  background-color: var(--signal);
  color: var(--deep);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scene-light);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--deep);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 2rem;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--scene-light);
}

.mobile-nav-link:hover {
  color: var(--signal);
}

/* Cinematic Full-screen Scenes */
.cinematic-scene {
  position: relative;
  height: 100svh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background-color: var(--deep);
}

.scene-video,
.scene-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity, filter;
  transition: transform 2.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 2.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 2.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.14);
  opacity: 0;
  filter: blur(6px);
}

.cinematic-scene.is-visible .scene-video,
.cinematic-scene.is-visible .scene-bg-img {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
}

.scene-content-wrap {
  position: relative;
  z-index: 20;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .scene-content-wrap {
    padding: 0 3rem;
  }
}

.scene-content-inner {
  max-width: 48rem;
  transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(3.5rem) scale(0.98);
  opacity: 0;
  filter: blur(2px);
}

.cinematic-scene.is-visible .scene-content-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

.scene-align-right .scene-content-inner {
  margin-left: auto;
  text-align: left;
}

/* Typography & Labels */
.scene-label {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--signal);
}

.scene-label .line {
  display: inline-block;
  height: 1px;
  width: 2rem;
  background-color: var(--signal);
}

.scene-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

.scene-description {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* CTAs & Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.cta-btn-primary {
  background-color: var(--signal);
  color: var(--deep);
}

.cta-btn-primary:hover {
  background-color: var(--scene-light);
  color: var(--deep);
}

.cta-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--scene-light);
}

.cta-btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* Radar Hotspots */
.radar-hotspot {
  position: absolute;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .radar-hotspot {
    display: flex;
  }
}

.hotspot-dot-box {
  position: relative;
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
}

.hotspot-ping {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: rgba(89, 214, 232, 0.5);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hotspot-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--signal);
}

.hotspot-label {
  border: 1px solid rgba(89, 214, 232, 0.4);
  background-color: rgba(4, 11, 20, 0.7);
  padding: 0.35rem 0.75rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--scene-light);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s;
}

.radar-hotspot:hover .hotspot-label {
  border-color: var(--signal);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Depth Gauge */
.depth-gauge {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .depth-gauge {
    display: flex;
  }
}

.depth-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.depth-tick {
  display: inline-block;
  height: 1px;
  width: 1.5rem;
  background-color: var(--signal);
}

/* Live ROV View Button & Telemetry HUD Modal */
.btn-live-rov {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(89, 214, 232, 0.5);
  background-color: rgba(4, 11, 20, 0.6);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--signal);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s;
}

.btn-live-rov:hover {
  border-color: var(--signal);
}

.rec-pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--danger-soft);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.rov-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(4, 11, 20, 0.95);
  padding: 1rem;
}

.rov-modal.active {
  display: flex;
}

.rov-modal-inner {
  position: relative;
  width: 100%;
  max-width: 80rem;
  border: 1px solid rgba(89, 214, 232, 0.4);
}

.rov-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.25);
  display: block;
}

.rov-telemetry-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--signal);
}

.rov-reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(89, 214, 232, 0.6);
}

.btn-close-rov {
  position: absolute;
  top: -3rem;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--scene-light);
}

/* Telemetry Grid (Control Room) */
.telemetry-grid {
  margin-top: 2.5rem;
  display: grid;
  max-width: 28rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.telemetry-cell {
  background-color: rgba(4, 11, 20, 0.7);
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.telemetry-cell p:first-child {
  margin: 0;
  color: var(--steel);
}

.telemetry-cell p:last-child {
  margin: 0.25rem 0 0 0;
  color: var(--signal);
}

/* Sections & Page Layout */
.section-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 1.5rem;
}

@media (min-width: 768px) {
  .section-wrapper {
    padding: 8rem 3rem;
  }
}

.section-head {
  margin-bottom: 3.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .section-head {
    grid-template-columns: 120px 1fr;
  }
}

.section-number {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--signal);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 200;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--scene-light);
  margin: 0;
}

.section-sub {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--steel);
  line-height: 1.6;
}

/* Tabs */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.15);
  margin-bottom: 1px;
}

.tab-btn {
  flex: 1;
  white-space: nowrap;
  padding: 1rem 1.25rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background-color: var(--deep);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
  text-align: center;
}

.tab-btn:hover {
  color: var(--signal);
}

.tab-btn.active {
  background-color: var(--signal);
  color: var(--deep);
  font-weight: 600;
}

/* Catalogue Showcase Slider Card */
.catalogue-feature-card {
  margin-bottom: 1px;
  overflow: hidden;
  background-color: var(--deep-raised);
}

.catalogue-feature-grid {
  display: grid;
  min-height: 330px;
}

@media (min-width: 1024px) {
  .catalogue-feature-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.catalogue-feature-image-box {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.catalogue-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 1s ease;
}

.catalogue-feature-image-box:hover .catalogue-feature-img {
  transform: scale(1.05);
}

.catalogue-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, transparent, var(--deep-raised));
}

.product-icon-travel {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  animation: product-icon-travel 7s ease-in-out infinite;
}

@keyframes product-icon-travel {
  0%, 100% { transform: translateX(0) rotateY(-8deg); }
  50% { transform: translateX(calc(100% - 64px)) rotateY(12deg); }
}

.catalogue-feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
}

.catalogue-groups-pills {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.catalogue-pill {
  border: 1px solid rgba(139, 154, 168, 0.2);
  padding: 0.75rem 1rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
}

.catalogue-pill:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* Detailed Catalogue Articles Stack */
.catalogue-articles-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.15);
}

.catalogue-article-item {
  background-color: var(--deep);
  padding: 3rem 1.5rem;
  scroll-margin-top: 7rem;
}

@media (min-width: 768px) {
  .catalogue-article-item {
    padding: 3rem 2.5rem;
  }
}

.catalogue-article-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .catalogue-article-grid {
    grid-template-columns: 220px 1fr;
  }
}

.catalogue-groups-cards-grid {
  display: grid;
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.15);
}

@media (min-width: 1024px) {
  .catalogue-groups-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.catalogue-group-subcard {
  background-color: var(--deep-raised);
  padding: 1.5rem;
  scroll-margin-top: 7rem;
}

.catalogue-group-subcard h4 {
  margin: 0 0 1.25rem 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--signal);
}

.catalogue-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.catalogue-items-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.catalogue-bullet {
  margin-top: 0.5rem;
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  background-color: var(--signal);
}

/* Industries 8-card grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.15);
}

@media (min-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.industry-card {
  background-color: var(--deep);
  padding: 2rem;
  transition: background-color 0.3s;
}

.industry-card:hover {
  background-color: var(--deep-raised);
}

.industry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.industry-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--signal);
}

.industry-title {
  margin-top: 2.5rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--scene-light);
}

/* Services 6-card grid */
.services-grid {
  display: grid;
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.15);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--deep);
  padding: 2rem;
}

.service-code {
  display: block;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--signal);
}

.service-title {
  margin: 0.75rem 0 0 0;
  font-size: 1.25rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--scene-light);
}

.service-text {
  margin-top: 1rem;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--steel);
}

/* Technology Layer Bar */
.technology-layers-bar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.15);
}

@media (min-width: 768px) {
  .technology-layers-bar {
    flex-direction: row;
  }
}

.tech-layer-card {
  position: relative;
  flex: 1;
  background-color: var(--deep);
  padding: 2rem;
}

.tech-layer-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--signal);
}

.tech-layer-title {
  margin-top: 2rem;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* About / Lifecycle Section */
.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lifecycle-stages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.15);
  margin-top: 1.5rem;
}

.lifecycle-stage-cell {
  background-color: var(--deep);
  padding: 1rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--scene-light);
}

/* Scenarios 3-card grid */
.scenarios-grid {
  display: grid;
  gap: 1px;
  background-color: rgba(139, 154, 168, 0.15);
}

@media (min-width: 1024px) {
  .scenarios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scenario-card {
  background-color: var(--deep);
  padding: 2rem;
}

.scenario-title {
  margin: 0 0 2rem 0;
  font-size: 1.25rem;
  font-weight: 300;
}

.scenario-item {
  border-left: 1px solid rgba(89, 214, 232, 0.4);
  padding: 0.75rem 0 0.75rem 1rem;
}

.scenario-item-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--signal);
  margin: 0;
}

.scenario-item-text {
  margin: 0.25rem 0 0 0;
  font-size: 14px;
  color: var(--steel);
}

/* Contact / Enquiry Form */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  scroll-margin-top: 5rem;
}

.contact-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(4, 11, 20, 0.7);
}

.contact-container {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 4rem;
}

@media (min-width: 768px) {
  .contact-container {
    padding: 0 3rem;
  }
}

@media (min-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr 1.4fr;
  }
}

.enquiry-form-grid {
  display: grid;
  gap: 1rem 2rem;
}

@media (min-width: 640px) {
  .enquiry-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(139, 154, 168, 0.4);
  background: transparent;
  padding: 0.75rem 0;
  font-size: 14px;
  color: var(--scene-light);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-field::placeholder {
  color: var(--steel);
}

.form-field:focus {
  outline: none;
  border-bottom-color: var(--signal);
}

select.form-field option {
  background-color: var(--deep);
  color: var(--scene-light);
}

.form-full-col {
  grid-column: 1 / -1;
}

.btn-submit-enquiry {
  background-color: var(--signal);
  color: var(--deep);
  padding: 1rem 2rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit-enquiry:hover {
  opacity: 0.9;
}

.btn-submit-enquiry:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.enquiry-success-msg {
  border: 1px solid rgba(89, 214, 232, 0.4);
  padding: 2rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--scene-light);
}

/* Fluent Forms version of the contact section enquiry form. */
.contact-section .fluentform,
.contact-section .frm-fluent-form,
.contact-section .frm-fluent-form fieldset {
  width: 100% !important;
  max-width: none !important;
}

.contact-section .frm-fluent-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  grid-template-areas:
    "name name"
    "email company"
    "vessel phone"
    "country solution"
    "message message"
    "submit submit";
}

.contact-section .frm-fluent-form fieldset > [data-type="name-element"] {
  grid-area: name;
}

.contact-section .frm-fluent-form fieldset > .ff-el-group:has(#ff_3_email) {
  grid-area: email;
}

.contact-section .frm-fluent-form fieldset > .ff-el-group:has(#ff_3_subject) {
  grid-area: company;
}

.contact-section .frm-fluent-form fieldset > .ff-el-group:has(#ff_3_input_text_1) {
  grid-area: vessel;
}

.contact-section .frm-fluent-form fieldset > .ff-el-group:has(#ff_3_input_text) {
  grid-area: phone;
}

.contact-section .frm-fluent-form fieldset > .ff-el-group:has(#ff_3_input_text_2) {
  grid-area: country;
}

.contact-section .frm-fluent-form fieldset > .ff-el-group:has(#ff_3_dropdown) {
  grid-area: solution;
}

.contact-section .frm-fluent-form fieldset > .ff-el-group:has(#ff_3_message) {
  grid-area: message;
}

.contact-section .frm-fluent-form fieldset > .ff_submit_btn_wrapper {
  grid-area: submit;
}

.contact-section .frm-fluent-form .ff-t-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.contact-section .frm-fluent-form .ff-el-input--label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-section .frm-fluent-form .ff-el-group {
  margin: 0;
}

.contact-section .frm-fluent-form .ff-el-form-control {
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid rgba(139, 154, 168, 0.4) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--scene-light) !important;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 0.75rem 0 !important;
}

.contact-section .frm-fluent-form .ff-el-form-control::placeholder {
  color: var(--steel);
}

.contact-section .frm-fluent-form .ff-el-form-control:focus {
  border-bottom-color: var(--signal) !important;
  outline: none;
}

.contact-section .frm-fluent-form .ff-btn-submit {
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--signal) !important;
  color: var(--deep) !important;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 639px) {
  .contact-section .frm-fluent-form fieldset {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "email"
      "company"
      "vessel"
      "phone"
      "country"
      "solution"
      "message"
      "submit";
  }

  .contact-section .frm-fluent-form .ff-t-container {
    grid-template-columns: 1fr;
  }
}

/* Floating Marine Advisor */
.floating-marine-advisor {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--signal);
  padding: 0.75rem 1rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--deep);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

@media (min-width: 640px) {
  .floating-marine-advisor {
    bottom: 2rem;
    left: 2rem;
  }
}

.floating-marine-advisor:hover {
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(139, 154, 168, 0.15);
  padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 2.5rem 3rem;
  }
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--steel);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
