/* ============================================================
   SHIPVEST Home Page Redesign — additive stylesheet
   Loaded after css/style.css. Does not modify brand colors or
   typography ('Bebas Neue' / Poppins, navy/teal/sky palette) defined there.
   ============================================================ */

/* ---------- 1. Navbar refinements ---------- */
@media (min-width: 1024px) {
  .site-header .header-row { justify-content: space-between; }
  .site-header .brand-link { order: 1; }
  .site-header .primary-nav { order: 2; margin-left: auto; }
  .site-header .info-toggle { order: 3; margin-left: 1.25rem; }
}
.site-header .nav-link {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.site-header .nav-link.is-active { font-weight: 600; }

/* Info icon: sits after Contact on desktop, next to the hamburger on
   mobile (nav is hidden there, so it carries its own auto-margin). */
.info-toggle { margin-left: auto; transition: color .2s ease, background-color .2s ease; }
header.site-header .info-toggle { color: #fff; }
header.site-header.is-scrolled .info-toggle { color: #03045e; }
.info-toggle:hover { background-color: rgba(255,255,255,.12); }
header.site-header.is-scrolled .info-toggle:hover { background-color: rgba(3,4,94,.06); }

/* Transparent header still needs to read over any hero video frame,
   bright or dark, so it always carries its own soft scrim. */
header.site-header:not(.is-scrolled)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(1,2,31,.55) 0%, rgba(1,2,31,.28) 60%, rgba(1,2,31,0) 100%);
  pointer-events: none;
}
header.site-header { position: relative; }

/* ---------- 2. Hero ---------- */
.hero-section { height: 100vh; min-height: 100vh; max-height: 100vh; }
.hero-headline {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.06;
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw + 1rem, 4.75rem);
}
.hero-accent { color: #48cae4; }
.hero-sub {
  margin-top: 1.35rem;
  max-width: 40rem;
  font-size: clamp(1rem, .5vw + .9rem, 1.2rem);
  line-height: 1.6;
  color: rgba(202,240,248,.9);
}
.hero-tagline {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
.hero-tagline.is-active { display: block; }
.hero-tagline.is-visible { opacity: 1; transform: translateY(0); }
.hero-scroll-cue {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease;
}
.hero-scroll-cue:hover { opacity: 1; transform: translateY(3px); }
.hero-scroll-cue:hover .hero-scroll-circle {
  border-color: rgba(72,202,228,.9);
  background: rgba(72,202,228,.18);
}
.hero-scroll-cue:hover .hero-scroll-label { color: #fff; }
.hero-scroll-cue:focus-visible {
  outline: 2px solid rgba(72,202,228,.9);
  outline-offset: 6px;
  border-radius: 12px;
}
.hero-scroll-circle {
  transition: border-color .3s ease, background-color .3s ease;
  display: grid;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.4);
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
.hero-scroll-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (max-width: 640px) {
  .hero-scroll-cue { display: none; }
}
/* Hero stat counters */
.hero-stats {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-stat {
  min-width: 9.5rem;
  padding: 1.15rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(1,2,31,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s ease, transform .3s ease, background-color .3s ease;
}
.hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(72,202,228,.55);
  background: rgba(1,2,31,.58);
}
.hero-stat-value {
  display: block;
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.6rem);
  line-height: 1;
  letter-spacing: .01em;
  color: #fff;
}
.hero-stat-label {
  display: block;
  margin-top: .5rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(202,240,248,.72);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero-stats { margin-top: 2rem; gap: .6rem; }
  .hero-stat { flex: 1 1 42%; min-width: 0; padding: .85rem 1rem; }
  .hero-stat-label { font-size: .6rem; letter-spacing: .08em; white-space: normal; }
}

.hero-dots {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: .6rem;
}
.hero-dot {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,.35);
  transition: all .3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-dot.is-active { width: 26px; background: #00b4d8; }

/* ---------- 3. Sticky "Enquire Now" button ---------- */
#enquireFabWrap {
  transition: opacity .3s ease, transform .3s ease;
}
#enquireFabWrap.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.enquire-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0077B6 0%, #03045E 130%);
  box-shadow:
    0 14px 30px -10px rgba(3,4,94,.55),
    0 2px 0 0 rgba(255,255,255,.18) inset,
    0 -6px 14px -8px rgba(0,0,0,.35) inset;
  overflow: hidden;
  isolation: isolate;
  animation: enquire-bob 4.2s ease-in-out infinite;
  text-decoration: none;
}
.enquire-fab::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 55%);
  opacity: .55;
  z-index: -1;
}
.enquire-fab::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg) translateX(-160%);
  transition: transform .7s ease;
  z-index: 0;
}
.enquire-fab:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 40px -10px rgba(3,4,94,.6), 0 2px 0 0 rgba(255,255,255,.22) inset; }
.enquire-fab:hover::after { transform: skewX(-20deg) translateX(320%); }
.enquire-fab .enquire-icon {
  display: grid;
  place-items: center;
  height: 1.6rem;
  width: 1.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.enquire-fab .enquire-icon svg { animation: enquire-wave 2.6s ease-in-out infinite; }
@keyframes enquire-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes enquire-wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}
@media (max-width: 640px) {
  .enquire-fab { padding: .8rem 1.05rem; font-size: 0; gap: 0; }
  .enquire-fab .enquire-icon { height: 1.5rem; width: 1.5rem; }
  .enquire-fab .enquire-label { display: none; }
}

/* ---------- 4. Dual Fuel section visual ---------- */
.fuel-orb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  background: radial-gradient(circle at 32% 28%, rgba(0,180,216,.35), rgba(3,4,94,0) 60%), rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.fuel-orb-ring {
  position: absolute;
  inset: 8%;
  border-radius: 9999px;
  border: 1px dashed rgba(0,180,216,.35);
  animation: fuel-spin 24s linear infinite;
}
.fuel-orb-ring.ring-2 { inset: 20%; border-color: rgba(0,119,182,.4); animation-duration: 18s; animation-direction: reverse; }
@keyframes fuel-spin { to { transform: rotate(360deg); } }
.fuel-orb-icon { position: relative; z-index: 2; height: 46%; width: 46%; color: #00B4D8; }
.fuel-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 600;
  color: #caf0f8;
  white-space: nowrap;
  animation: fuel-float 6s ease-in-out infinite;
}
@keyframes fuel-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 5. Industries stagger ---------- */
.industry-tile { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }

/* ---------- 6. Global Presence — light interactive world map ---------- */
.world-map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid #cde9f6;
  background: #f7fbfe;
  padding: 0;
  box-shadow: 0 30px 70px -40px rgba(3,4,94,.35);
}

.world-map-glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(50px);
  opacity: .5;
  animation: map-glow-drift 14s ease-in-out infinite;
}
.world-map-glow-a {
  width: 34%; height: 55%;
  left: 52%; top: 18%;
  background: radial-gradient(circle, rgba(0,119,182,.22), transparent 70%);
}
.world-map-glow-b {
  width: 30%; height: 50%;
  left: 6%; top: 40%;
  background: radial-gradient(circle, rgba(0,119,182,.2), transparent 70%);
  animation-delay: -7s;
}
@keyframes map-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -3%) scale(1.08); }
}

#worldMapStage { transform-style: preserve-3d; }
.map-grid-layer { opacity: .9; }

.continent-group { }
.world-map-svg .continent {
  fill: #e3eff8;
  stroke: #a9d6ea;
  stroke-width: 0.14;
}

.route-group { }
.world-map-svg .route-halo {
  fill: none;
  stroke: rgba(0,119,182,.16);
  stroke-width: .42;
  stroke-linecap: round;
}
.world-map-svg .route-line {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: .26;
  stroke-linecap: round;
  stroke-dasharray: 1.2 2.2;
  opacity: .7;
  animation: route-dash 5.2s linear infinite;
}
@keyframes route-dash { to { stroke-dashoffset: -17; } }

/* always-visible location markers with labelled chips */
.map-place {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.map-place-dot {
  position: relative;
  height: 11px;
  width: 11px;
  flex: none;
  border-radius: 9999px;
  background: #0077b6;
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(3,4,94,.3);
}
.map-place-dot::before,
.map-place-dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  border: 1.5px solid rgba(0,119,182,.6);
  animation: place-ping 3.2s cubic-bezier(.2,.6,.3,1) infinite;
}
.map-place-dot::after { animation-delay: 1.6s; }
@keyframes place-ping {
  0% { transform: scale(1); opacity: .75; }
  100% { transform: scale(3.6); opacity: 0; }
}
.map-place-hq .map-place-dot {
  height: 15px;
  width: 15px;
  background: #0077B6;
  box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0,119,182,.5);
}
.map-place-hq .map-place-dot::before,
.map-place-hq .map-place-dot::after { border-color: rgba(0,119,182,.6); }

.map-place-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: .3rem .6rem;
  border-radius: 10px;
  border: 1px solid #cde9f6;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px -16px rgba(3,4,94,.55);
  white-space: nowrap;
  text-align: left;
}
.map-place-right .map-place-chip { left: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.map-place-left .map-place-chip { right: calc(100% + 10px); top: 50%; transform: translateY(-50%); text-align: right; align-items: flex-end; }
.map-place-top .map-place-chip { bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); text-align: center; align-items: center; }
.map-place-bottom .map-place-chip { top: calc(100% + 10px); left: 50%; transform: translateX(-50%); text-align: center; align-items: center; }
.map-place-name { font-size: .72rem; font-weight: 700; color: #03045e; line-height: 1.2; }
.map-place-sub { font-size: .6rem; font-weight: 500; color: #5b7fae; line-height: 1.2; }
.map-place-hq .map-place-name { color: #005f92; }

/* cargo pulses travelling the trade lanes */
.route-pulse circle { fill: #0077B6; stroke: none; opacity: .45; }

@media (max-width: 900px) {
  .map-place-sub { display: none; }
  .map-place-chip { padding: .2rem .45rem; }
}
@media (max-width: 640px) {
  .map-place-chip { display: none; }
}

/* hub summary cards below the map */
.presence-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  border-radius: 18px;
  border: 1px solid #dcedf8;
  background: #fff;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 18px 40px -32px rgba(3,4,94,.45);
}
.presence-card-name { font-weight: 700; font-size: .95rem; color: #03045e; }
.presence-card-sub { font-size: .8rem; line-height: 1.5; color: #4a6e9e; }

@media (prefers-reduced-motion: reduce) {
  .world-map-glow, .world-map-svg .route-line, .map-place-dot::before, .map-place-dot::after { animation: none; }
}
@media (max-width: 640px) {
  .world-map-glow-b { display: none; }
}

/* ---------- 7. Let's Work Together — anchor drop ---------- */
@media (min-width: 1024px) {
  .together-grid { grid-template-columns: 0.8fr 1.2fr; }
}
.together-headline {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #fff;
  font-size: clamp(1.9rem, 3vw + 1rem, 3.25rem);
}
.anchor-scene {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.anchor-chain {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, rgba(202,240,248,.05), rgba(202,240,248,.6));
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  transition: transform .5s ease;
}
.anchor-svg {
  position: relative;
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-200px) rotate(0deg);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}
.anchor-scene.is-visible .anchor-chain { transform: translateX(-50%) scaleY(1); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.anchor-scene.is-visible .anchor-svg {
  animation: anchor-drop-swing 5.7s cubic-bezier(.33,0,.2,1) forwards;
}
@keyframes anchor-drop-swing {
  0%   { opacity: 0; transform: translateY(-200px) rotate(0deg); }
  8%   { opacity: 1; transform: translateY(-175px) rotate(0deg); }
  37%  { opacity: 1; transform: translateY(0) rotate(0deg); animation-timing-function: ease-in-out; }
  48%  { opacity: 1; transform: translateY(0) rotate(9deg); }
  61%  { opacity: 1; transform: translateY(0) rotate(-7deg); }
  73%  { opacity: 1; transform: translateY(0) rotate(4deg); }
  84%  { opacity: 1; transform: translateY(0) rotate(-2deg); }
  93%  { opacity: 1; transform: translateY(0) rotate(1deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
.together-bg-rays {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(0,180,216,.16), transparent 70%),
    radial-gradient(40% 60% at 85% 100%, rgba(0,119,182,.14), transparent 70%);
}
.together-bubble {
  position: absolute;
  bottom: -5%;
  border-radius: 9999px;
  background: rgba(144,224,239,.35);
  animation: rise-bubble ease-in-out infinite;
}

/* ---------- 8. Footer alignment polish ---------- */
footer .footer-col-heading { letter-spacing: .18em; }
footer .footer-grid { row-gap: 3rem; column-gap: 2.5rem; }
@media (min-width: 1024px) {
  footer .footer-grid { align-items: start; }
}

/* ---------- 9. Info drawer (social + contact) ---------- */
.info-drawer { visibility: hidden; }
.info-drawer.is-open { visibility: visible; }
.info-drawer .info-drawer-backdrop {
  opacity: 0;
  transition: opacity .3s ease;
}
.info-drawer.is-open .info-drawer-backdrop { opacity: 1; }
.info-drawer .info-drawer-panel {
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.info-drawer.is-open .info-drawer-panel { transform: translateX(0); }
.info-drawer-heading {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #48cae4;
}
.social-btn {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.15);
  color: #caf0f8;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.social-btn:hover {
  background-color: rgba(0,119,182,.2);
  border-color: #00b4d8;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- 3D anchor drop canvas ---------- */
.anchor-scene-3d {
  height: 420px;
  align-items: stretch;
}
.anchor-scene-3d #anchor3d {
  width: 100%;
  height: 100%;
  display: block;
}
.together-ray {
  position: absolute;
  top: -12%;
  height: 130%;
  background: linear-gradient(180deg, rgba(144,224,239,.28), rgba(144,224,239,0) 78%);
  transform: skewX(-12deg);
  filter: blur(16px);
  mix-blend-mode: screen;
  animation: together-ray-pulse ease-in-out infinite;
}
@keyframes together-ray-pulse {
  0%, 100% { opacity: .16; }
  50% { opacity: .4; }
}

html { scroll-behavior: smooth; }
