:root {
  --fsq-navy: #071444;
  --fsq-blue: #172a8a;
  --fsq-blue-dark: #101b54;
  --fsq-cyan: #0b7189;
  --fsq-amber: #f2a900;
  --fsq-ink: #172033;
  --fsq-muted: #68707d;
  --fsq-mist: #f4f7fa;
  --fsq-shadow: 0 1rem 2.5rem rgba(16, 27, 84, 0.1);
  --bs-primary: #172a8a;
  --bs-primary-rgb: 23, 42, 138;
  --bs-warning: #f2a900;
  --bs-warning-rgb: 242, 169, 0;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --bs-link-color: #172a8a;
  --bs-link-hover-color: #101b54;
  --bs-focus-ring-color: rgba(242, 169, 0, 0.45);
  --fsq-topbar-h: 2.25rem;
  --fsq-navbar-h: 4.25rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--fsq-topbar-h) + var(--fsq-navbar-h) + 0.5rem);
  overflow-x: clip;
}

body {
  overflow-x: clip;
  color: var(--fsq-ink);
  background: #f7f9fc;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  transform: translateY(-200%);
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--fsq-amber);
  color: var(--fsq-ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--fsq-shadow);
  transition: transform 0.16s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Top contact bar */
.fsq-topbar {
  min-height: var(--fsq-topbar-h);
  background: var(--fsq-navy);
  font-size: 0.78rem;
  font-weight: 600;
}

.fsq-topbar-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.fsq-topbar-scroll::-webkit-scrollbar {
  display: none;
}

.fsq-topbar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.fsq-topbar a:hover {
  color: var(--fsq-amber);
}

.fsq-topbar .text-white-50::before {
  content: "·";
  margin-right: 0.65rem;
  opacity: 0.45;
}

/* Navbar */
.fsq-navbar {
  min-height: var(--fsq-navbar-h);
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0.35rem 1.25rem rgba(16, 27, 84, 0.07);
}

.fsq-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--fsq-blue) !important;
  text-decoration: none;
}

.fsq-brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.fsq-nav-link {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #243044 !important;
  padding: 0.5rem 0.65rem !important;
  border-radius: 0.35rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.fsq-nav-link:hover,
.fsq-nav-link:focus-visible,
.fsq-nav-link.active {
  color: var(--fsq-blue) !important;
  background: rgba(23, 42, 138, 0.06);
}

.fsq-offcanvas {
  --bs-offcanvas-width: min(20rem, 88vw);
  border-right: 1px solid #d9dee7;
}

.fsq-offcanvas .offcanvas-header {
  border-bottom: 1px solid #e9eef6;
  background: linear-gradient(135deg, rgba(23, 42, 138, 0.05), #fff);
}

.fsq-offcanvas .list-group-item {
  border: 0;
  border-left: 3px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.85rem 1.25rem;
}

.fsq-offcanvas .list-group-item:hover,
.fsq-offcanvas .list-group-item:focus-visible,
.fsq-offcanvas .list-group-item.active {
  border-left-color: var(--fsq-amber);
  background: rgba(23, 42, 138, 0.06);
  color: var(--fsq-blue);
}

/* Buttons */
.btn-fsq-primary {
  --bs-btn-color: var(--fsq-ink);
  --bs-btn-bg: var(--fsq-amber);
  --bs-btn-border-color: var(--fsq-amber);
  --bs-btn-hover-color: var(--fsq-ink);
  --bs-btn-hover-bg: #ffbc24;
  --bs-btn-hover-border-color: #ffbc24;
  font-weight: 800;
}

.btn-fsq-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

/* Typography helpers */
.fsq-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.fsq-section-muted {
  background: var(--fsq-mist);
}

.fsq-section-navy {
  background: linear-gradient(135deg, var(--fsq-blue), var(--fsq-blue-dark));
  color: #fff;
}

.fsq-section-navy .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

.fsq-section-navy h2,
.fsq-section-navy h3 {
  color: #fff;
}

/* Landing page — wallpaper, glass, viewport fit */
.fsq-landing {
  min-height: 100dvh;
  background: var(--fsq-navy);
}

.fsq-landing main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 10, 32, 0.9) 0%, rgba(3, 10, 32, 0.66) 44%, rgba(3, 10, 32, 0.22) 100%),
    url("/assets/maritime-three-vessels-hero.png") center / cover no-repeat;
}

.fsq-landing main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(3, 10, 34, 0.72), rgba(9, 27, 82, 0.42)),
    linear-gradient(0deg, rgba(3, 10, 32, 0.72), rgba(3, 10, 32, 0) 46%);
}

.fsq-landing .fsq-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.fsq-hero-logo {
  display: block;
  width: clamp(5.5rem, 13vw, 9.75rem);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 1.125rem 1.875rem rgba(0, 0, 0, 0.22));
}

.fsq-landing h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.fsq-landing .fsq-intro {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

/* Apple-style glass panels */
.fsq-glass {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.125rem 2.625rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.fsq-stat-card {
  min-height: 7.25rem;
  padding: 1.125rem;
  color: #fff;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.fsq-stat-card strong {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 900;
  line-height: 1.05;
}

.fsq-stat-card span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
}

.fsq-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 169, 0, 0.65);
  background: rgba(255, 255, 255, 0.16);
}

.fsq-choice-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 13rem;
  padding: clamp(1.35rem, 3.5vw, 2.35rem);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.fsq-choice-card:hover,
.fsq-choice-card:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(242, 169, 0, 0.9);
  background: rgba(255, 255, 255, 0.16);
}

.fsq-choice-card .fsq-choice-label {
  color: var(--fsq-amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fsq-choice-card .fsq-choice-title {
  display: block;
  max-width: 32rem;
  margin-top: 0.65rem;
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.15;
}

.fsq-choice-card .fsq-choice-note {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 800;
}

.fsq-wpqr-spotlight {
  position: relative;
  display: grid;
  gap: 0.5rem;
  max-width: 33.75rem;
  margin-top: 1.75rem;
  padding: 1.125rem 1.25rem 1.125rem 1.375rem;
  overflow: hidden;
  border: 1px solid rgba(242, 169, 0, 0.52);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(242, 169, 0, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(7, 20, 68, 0.48);
  box-shadow: 0 1.125rem 2.625rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.fsq-wpqr-spotlight::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--fsq-amber);
}

.fsq-wpqr-spotlight::after {
  content: "WPQR";
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  max-width: 42%;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 0.9;
  pointer-events: none;
}

.fsq-wpqr-spotlight:hover,
.fsq-wpqr-spotlight:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(242, 169, 0, 0.92);
  background:
    linear-gradient(135deg, rgba(242, 169, 0, 0.28), rgba(255, 255, 255, 0.12)),
    rgba(7, 20, 68, 0.54);
}

.fsq-wpqr-spotlight > * {
  position: relative;
  z-index: 1;
}

.fsq-wpqr-spotlight .fsq-wpqr-label {
  color: var(--fsq-amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fsq-wpqr-spotlight strong {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.1;
}

.fsq-wpqr-spotlight small {
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.fsq-thick {
  font-weight: 900;
}

.fsq-kicker {
  color: var(--fsq-amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

h2.display-thick,
.fsq-section h2 {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (min-width: 992px) {
  .fsq-landing {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .fsq-landing main {
    padding-block: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .fsq-landing {
    max-height: none;
    overflow-x: clip;
    overflow-y: auto;
  }

  .fsq-landing main {
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  .fsq-landing h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .fsq-landing .lead {
    font-size: 0.95rem;
    margin-bottom: 0.75rem !important;
  }
}

@media (max-height: 720px) and (min-width: 992px) {
  .fsq-hero-logo {
    height: 3.5rem;
    margin-bottom: 0.5rem !important;
  }

  .fsq-landing h1 {
    font-size: 2.5rem;
    margin-bottom: 0.35rem !important;
  }

  .fsq-landing .lead {
    font-size: 1rem;
    margin-bottom: 0.75rem !important;
  }

  .fsq-choice-card .card-body,
  .fsq-stat-card .card-body {
    padding: 0.65rem !important;
  }
}

/* Page heroes */
.fsq-page-hero {
  position: relative;
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}

.fsq-page-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  z-index: 0;
}

.fsq-page-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 10, 32, 0.9) 0%, rgba(3, 10, 32, 0.55) 50%, rgba(3, 10, 32, 0.2) 100%);
}

.fsq-page-hero .container {
  position: relative;
  z-index: 1;
}

.fsq-page-hero h1 {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.05;
  font-weight: 900;
}

.fsq-hero-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
}

/* Cards */
.fsq-service-card {
  border: 0;
  border-top: 4px solid var(--fsq-amber);
  box-shadow: var(--fsq-shadow);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fsq-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1.25rem 2.75rem rgba(16, 27, 84, 0.14);
}

.fsq-step-card {
  border: 0;
  box-shadow: 0 0.35rem 1rem rgba(16, 27, 84, 0.08);
  height: 100%;
}

.fsq-step-card .card-body {
  padding: 0.85rem;
}

@media (min-width: 768px) {
  .fsq-step-card .card-body {
    padding: 1.25rem;
  }
}

.fsq-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  font-size: 0.75rem;
  font-weight: 900;
}

/* Gallery / lightbox triggers */
.fsq-img-trigger {
  cursor: zoom-in;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #e9eef6;
  overflow: hidden;
  position: relative;
}

.fsq-img-trigger::after {
  content: "";
  position: absolute;
  inset: auto 0.5rem 0.5rem auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(7, 20, 68, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 1.5A.5.5 0 0 1 2 1h3.5a.5.5 0 0 1 0 1H3.707L8.5 6.793V6.5a.5.5 0 0 1 1 0v3.5a.5.5 0 0 1-.5.5H5.5a.5.5 0 0 1 0-1h.293L1.207 2.707A.5.5 0 0 1 1.5 1.5zm9.793 6.793-4.5 4.5A.5.5 0 0 1 6 12.5v-3a.5.5 0 0 1 1 0v1.793l4.146-4.147a.5.5 0 0 1 .707.708z'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fsq-img-trigger:hover::after,
.fsq-img-trigger:focus-visible::after {
  opacity: 1;
}

.fsq-gallery-card {
  border: 0;
  box-shadow: var(--fsq-shadow);
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.fsq-gallery-card:hover {
  transform: translateY(-2px);
}

.fsq-gallery-card .card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Lightbox modal */
#fsqLightbox .modal-content {
  background: #0a1230;
  min-height: min(80vh, 100%);
}

#fsqLightbox .carousel-item img {
  max-height: min(72vh, 100dvh - 8rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

#fsqLightbox .carousel-control-prev,
#fsqLightbox .carousel-control-next {
  width: 12%;
}

#fsqLightbox .carousel-indicators {
  margin-bottom: 0.25rem;
}

/* Timeline / workflow */
.fsq-timeline .list-group-item {
  border-left: 3px solid var(--fsq-amber);
  margin-bottom: 0.5rem;
  border-radius: 0 0.5rem 0.5rem 0 !important;
}

/* Footer */
.fsq-footer {
  background: linear-gradient(180deg, #0a1230, var(--fsq-navy));
  margin-top: auto;
}

.fsq-footer-logo {
  height: 2.5rem;
  width: auto;
  max-width: 5rem;
  object-fit: contain;
}

.fsq-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.fsq-footer a:hover {
  color: var(--fsq-amber);
}

.fsq-footer h2 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Animations */
.fsq-animate {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fsq-animate.fsq-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fsq-animate {
    opacity: 1;
    transform: none;
  }
}

/* Contact form */
.fsq-contact-card {
  border: 0;
  box-shadow: var(--fsq-shadow);
}

.fsq-contact-card .form-label {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Capacity table as Bootstrap list */
.fsq-capacity-item {
  border-left: 3px solid var(--fsq-cyan);
}

/* Scrubber method steps — original boxed style */
.fsq-method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.875rem;
  counter-reset: fsq-method;
}

.fsq-method-step {
  min-height: 15rem;
  padding: 1.375rem;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--fsq-shadow);
}

.fsq-method-step::before {
  counter-increment: fsq-method;
  content: "0" counter(fsq-method);
  display: inline-grid;
  place-items: center;
  width: 2.625rem;
  height: 2.625rem;
  margin-bottom: 1.5rem;
  color: var(--fsq-blue-dark);
  background: var(--fsq-amber);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 900;
}

.fsq-method-step h3 {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.2;
}

.fsq-method-step p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--fsq-muted);
  font-size: 0.95rem;
}

/* Why FSQ — glass cards on navy */
.fsq-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fsq-capability-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.fsq-capability-card .fsq-cap-num {
  display: inline-flex;
  margin-bottom: 1.15rem;
  color: var(--fsq-amber);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.fsq-capability-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}

.fsq-capability-card p {
  margin-top: 0.65rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

@media (max-width: 1199.98px) {
  .fsq-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 575.98px) {
  .fsq-method-grid,
  .fsq-capability-grid {
    grid-template-columns: 1fr;
  }

  .fsq-method-step {
    min-height: auto;
  }
}

/* Water canvas on landing */
#waterCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.38;
  background: transparent;
  mix-blend-mode: screen;
  pointer-events: none;
}
