/* ============================================================
   NOVI MARINE · USE-CASE LANDING PAGES
   Ported from htmlversions/usecase-cable-laying.html. Generic, so any
   future use case (survey, dive support, patrol) reuses these classes.
   All rules are `nmuc-` prefixed to avoid collisions with the sitewide
   sheet. Signature device: the cable-corridor route, a buoy-marker line
   tracing sea → shore. The order is real, so the sequence is
   information, not decoration.
   ============================================================ */

:root {
  --nmuc-ink:    #031d30;
  --nmuc-navy:   #051f30;
  --nmuc-body:   #5a7080;
  --nmuc-muted:  #8fa5b5;
  --nmuc-line:   #e8edf2;
  --nmuc-accent: #0088cc;
  --nmuc-accent2:#00c6ff;
  --nmuc-buoy:   #ff6a2c; /* sampled from the marker buoys in the photography */
  --nmuc-ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- shell + eyebrow (colour by background, styleguide §1) ---------- */
.nmuc-shell { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 48px; }

.nmuc-hero-cover .nm-eyebrow,
.nmuc-dark .nm-eyebrow { color: var(--nmuc-accent2) !important; }
.nmuc-white .nm-eyebrow { color: var(--nmuc-accent) !important; }
.nmuc-hero-cover .nm-eyebrow,
.nmuc-dark .nm-eyebrow,
.nmuc-white .nm-eyebrow {
  display: inline-flex; align-items: center;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 12px; font-weight: 600;
  font-family: 'Titillium Web', sans-serif;
  margin: 0;
}

/* section head: eyebrow + hairline rule */
.nmuc-sechead {
  display: flex !important; align-items: center; gap: 16px;
  margin-bottom: 14px !important;
}
.nmuc-sechead::after {
  content: ""; height: 1px; flex: 1; background: var(--nmuc-line);
}
.nmuc-dark .nmuc-sechead::after { background: rgba(255,255,255,0.14); }

/* ---------- hero: full-bleed cover photo ---------- */
.nmuc-hero-cover {
  position: relative;
  min-height: 74vh !important;
  display: flex; align-items: flex-end !important;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
  overflow: hidden;
}
.nmuc-hero-cover .wp-block-cover__image-background { object-fit: cover; }
.nmuc-hero-cover .wp-block-cover__background {
  background:
    linear-gradient(to top, #031d30 1%, rgba(3,29,48,0.25) 38%, transparent 68%),
    linear-gradient(to right, rgba(3,29,48,0.94), rgba(3,29,48,0.62) 42%, rgba(3,29,48,0.12)) !important;
  opacity: 1 !important;
}
.nmuc-hero-cover .wp-block-cover__inner-container {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 160px 48px 60px;
}
.nmuc-hero-title {
  font-family: 'Titillium Web', sans-serif !important;
  /* Same size as .nmcp-hero-title (custom-projects.css): all cover-hero
     titles sitewide share one scale. */
  font-size: clamp(2.6rem, 5.5vw, 4rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.0 !important;
  letter-spacing: -0.015em;
  margin: 20px 0 22px !important;
}
.nmuc-hero-title .nmuc-dot { color: var(--nmuc-accent2); }
.nmuc-hero-sub {
  color: rgba(255,255,255,0.72) !important;
  font-size: 1.22rem !important;
  line-height: 1.6 !important;
  max-width: 600px;
  margin: 0 0 34px !important;
}
.nmuc-hero-cover .wp-block-buttons { gap: 14px; }

/* ---------- generic sections ---------- */
.nmuc-white, .nmuc-dark {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
  padding: 104px 0 !important;
}
.nmuc-white { background: #ffffff; }
.nmuc-dark  { background: var(--nmuc-navy); color: #ffffff; position: relative; overflow: hidden; }

.nmuc-title {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  line-height: 1.05 !important;
  margin: 0 0 22px !important;
}
.nmuc-white .nmuc-title { color: var(--nmuc-ink) !important; }
.nmuc-dark .nmuc-title  { color: #ffffff !important; }

.nmuc-lead {
  font-size: 1.12rem !important;
  line-height: 1.75 !important;
  margin: 0 0 18px !important;
}
.nmuc-white .nmuc-lead { color: var(--nmuc-body) !important; }
.nmuc-dark .nmuc-lead  { color: rgba(255,255,255,0.72) !important; }
.nmuc-white .nmuc-lead .nmuc-inline-link {
  color: var(--nmuc-accent) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.16em;
}

/* ---------- overview: copy + image, then the model callout ---------- */
.nmuc-ov-grid {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.nmuc-ov-img { border-radius: 22px; overflow: hidden; border: 1px solid var(--nmuc-line); box-shadow: 0 36px 80px rgba(0,60,110,0.16); }
.nmuc-ov-img figure, .nmuc-ov-img .wp-block-image { margin: 0 !important; }
.nmuc-ov-img img {
  width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform .8s var(--nmuc-ease);
}
.nmuc-ov-img:hover img { transform: scale(1.05); }

/* Featured projects: plain photography without a card frame or hover zoom. */
.nmuc-dark .nmuc-ov-img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.nmuc-dark .nmuc-ov-img img,
.nmuc-dark .nmuc-ov-img:hover img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: none;
}

.nmuc-callout {
  background: var(--nmuc-navy); color: #fff;
  border-radius: 22px; padding: 38px 36px;
  position: relative; overflow: hidden;
  box-shadow: 0 36px 80px rgba(0,40,75,0.2);
  margin-top: 64px !important;
  display: grid !important;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px; align-items: center;
}
.nmuc-callout::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,136,204,0.3), transparent 70%);
  pointer-events: none;
}
.nmuc-callout-label {
  font-size: 12px !important; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--nmuc-accent2) !important; font-weight: 700 !important;
  font-family: 'Titillium Web', sans-serif;
  margin: 0 0 14px !important;
}
.nmuc-callout h3 {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 1.7rem !important; font-weight: 800 !important;
  line-height: 1.1 !important; color: #fff !important; margin: 0 !important;
}
.nmuc-callout p:not(.nmuc-callout-label) {
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.8 !important; font-size: 1.05rem !important; margin: 0 !important;
}

/* ---------- SIGNATURE: cable-corridor route ---------- */
.nmuc-route-cap {
  display: block; font-size: 13.5px !important; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55) !important;
  max-width: 560px; margin: 0 0 48px !important;
}
.nmuc-route {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.nmuc-route::before {
  content: ""; position: absolute; top: 14px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(to right, rgba(255,106,44,0), rgba(0,198,255,.55) 12%, rgba(0,198,255,.55) 88%, rgba(255,106,44,0));
}
.nmuc-stage { text-align: center; position: relative; }
.nmuc-node {
  width: 30px; height: 30px; margin: 0 auto 24px;
  border-radius: 50%; background: var(--nmuc-navy);
  border: 2px solid rgba(0,198,255,.45);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.nmuc-buoy {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--nmuc-buoy); box-shadow: 0 0 0 4px rgba(255,106,44,.16);
  animation: nmuc-bob 4s ease-in-out infinite;
}
.nmuc-stage:nth-child(2) .nmuc-buoy { animation-delay: .7s; }
.nmuc-stage:nth-child(3) .nmuc-buoy { animation-delay: 1.4s; }
.nmuc-stage:nth-child(4) .nmuc-buoy { animation-delay: 2.1s; }
@keyframes nmuc-bob { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
.nmuc-zone {
  font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase;
  color: var(--nmuc-accent2) !important; font-weight: 700 !important;
  margin: 0 0 8px !important; font-family: 'Titillium Web', sans-serif;
}
.nmuc-stage h3 {
  font-size: 1.18rem !important; font-weight: 700 !important; color: #fff !important;
  margin: 0 0 9px !important; font-family: 'Titillium Web', sans-serif; line-height: 1.2 !important;
}
.nmuc-stage p:not(.nmuc-zone) {
  font-size: 13.5px !important; line-height: 1.6 !important;
  color: rgba(255,255,255,.62) !important;
  max-width: 240px; margin: 0 auto !important;
}

/* ---------- mobilisation checklist: two ruled columns ---------- */
.nmuc-mob-cols { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 80px; }
.nmuc-mob-label {
  font-family: 'Titillium Web', sans-serif;
  font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--nmuc-accent) !important;
  margin: 0 0 4px !important;
}
.nmuc-mob-list { list-style: none; border-bottom: 1px solid var(--nmuc-line); margin: 0; padding: 0; }
.nmuc-mob-list li {
  display: flex; align-items: flex-start; gap: 15px;
  padding: 16px 2px; border-top: 1px solid var(--nmuc-line);
  font-size: 15.5px; line-height: 1.5; color: var(--nmuc-ink);
  transition: padding-left .25s var(--nmuc-ease);
}
.nmuc-mob-list li:hover { padding-left: 6px; }
.nmuc-mob-list .nmuc-tick {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,136,204,0.08); border: 1px solid rgba(0,136,204,0.25);
  color: var(--nmuc-accent); transition: all .25s ease;
}
.nmuc-mob-list li:hover .nmuc-tick { background: var(--nmuc-accent); border-color: var(--nmuc-accent); color: #fff; }

/* ---------- vessels: the homepage's Featured Vessels slider, filtered ----------
   #nm-vessel-track / #nm-vessel-prev / #nm-vessel-next / .nm-vessel-card are
   all sitewide classes+IDs (novimarine.css + initVesselCarousel() in
   novimarine.js) — reused verbatim so behavior and look are identical to
   the homepage, not a second implementation. Only this section's own
   nav-row layout and empty-state message are specific to this page. */
.nmuc-vessel-slider-nav {
  display: flex; justify-content: flex-end; gap: 12px;
  margin: -8px 0 8px;
}
/* .nm-vessel-track carries its own 48px horizontal padding on the homepage
   (where the slider sits directly in an alignfull section with no other
   inset). Here it's nested inside .nmuc-shell, which already insets 48px,
   so that padding would double up and shove the first card in from the
   left, out of alignment with the heading/copy above it. Zero it here. */
.nmuc-vessels .nm-vessel-track { padding-left: 0 !important; padding-right: 0 !important; }
/* The whole card is an <a> here (unlike the homepage's plain <div> card,
   where only the CTA is a link), so it needs the same underline reset the
   stock page applies to its anchor-card variant (.nm-stock-grid .nm-vessel-card):
   every bit of text in the card otherwise inherits the browser's default link underline. */
.nmuc-vessels .nm-vessel-card,
.nmuc-vessels .nm-vessel-card * {
  text-decoration: none !important;
}
.nmuc-vessels-empty {
  margin-top: 32px !important;
  color: rgba(255,255,255,0.55) !important;
  font-size: 1rem !important;
}

/* ---------- enquiry: same grid as the custom projects page ---------- */
.nmuc-form-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: start;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nmuc-ov-grid { grid-template-columns: 1fr; gap: 40px; }
  .nmuc-callout { grid-template-columns: 1fr; gap: 24px; }
  .nmuc-mob-cols { gap: 0 48px; }
  .nmuc-form-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 860px) {
  .nmuc-mob-cols { grid-template-columns: 1fr; }
  .nmuc-mob-col + .nmuc-mob-col { margin-top: 34px; }
  /* the route turns vertical: the corridor still reads sea → shore, top to bottom */
  .nmuc-route { grid-template-columns: 1fr; gap: 0; }
  .nmuc-route::before {
    top: 0; bottom: 0; left: 14px; right: auto; width: 2px; height: auto;
    background: linear-gradient(to bottom, rgba(255,106,44,0), rgba(0,198,255,.55) 6%, rgba(0,198,255,.55) 94%, rgba(255,106,44,0));
  }
  .nmuc-stage { text-align: left; display: grid; grid-template-columns: 30px 1fr; gap: 20px; padding-bottom: 38px; }
  .nmuc-node { margin: 0; }
  .nmuc-stage p:not(.nmuc-zone) { max-width: none; margin: 0 !important; }
}
@media (max-width: 640px) {
  .nmuc-shell { padding-left: 24px; padding-right: 24px; }
  .nmuc-hero-cover { min-height: 64vh !important; }
  .nmuc-hero-cover .wp-block-cover__inner-container { padding: 140px 24px 48px; }
  .nmuc-white, .nmuc-dark { padding: 80px 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .nmuc-buoy { animation: none !important; }
  .nmuc-mob-list li, .nmuc-mob-list .nmuc-tick, .nmuc-ov-img img { transition: none !important; }
}

/* ---------- vloot als raster (block-attribuut layout: grid) ----------
   Dezelfde .nm-vessel-card als de slider, maar in het rasterformaat van de
   voorraadpagina. De regels staan hier in plaats van vessel-overview.css in
   te laden: daar zit ook de filterbalk- en hero-styling van /voorraad/ in,
   die op een use-case-pagina niets te zoeken heeft. Breekpunten gelijk aan
   .nm-stock-grid, zodat beide rasters zich identiek gedragen. */
.nmuc-vessels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 8px;
}
.nmuc-vessels-grid .nm-vessel-card {
  width: auto;
  min-width: 0;
  border: none;
}
@media (max-width: 1024px) {
  .nmuc-vessels-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nmuc-vessels-grid { grid-template-columns: 1fr; }
}
