/* =========================================================================
   Home page, hero, intro, services preview, map, achievement, CTA
   ========================================================================= */

/* ----------------------- HERO ----------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #07193A 0%, #0a2864 60%, #0B3D7C 100%);
  color: #FFFFFF;
  padding-block: 0;
  min-height: 720px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero .horizon {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 70% 0%, rgba(212,13,36,0.10), transparent 60%),
    radial-gradient(900px 500px at 20% 30%, rgba(77,168,218,0.20), transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 40%, rgba(2,12,30,0.4) 100%);
}
.hero .port-silhouette {
  position: absolute;
  left: 0; right: 0;
  bottom: 130px;
  height: 240px;
  opacity: 0.95;
}
.hero .port-silhouette svg { width: 100%; height: 100%; display: block; }

/* Ship moving */
.hero .ship {
  position: absolute;
  bottom: 168px;
  width: 110px;
  height: 36px;
  left: -150px;
  opacity: 0.85;
  animation: ship-sail 38s linear infinite;
}
.hero .ship svg { width: 100%; height: 100%; }

@keyframes ship-sail {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

/* Waves */
.hero .waves {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  display: block;
}
.hero .wave { transform-origin: center; }
.hero .w1 { animation: wave-shift 11s ease-in-out infinite; }
.hero .w2 { animation: wave-shift 9s  ease-in-out infinite reverse; }
.hero .w3 { animation: wave-shift 13s ease-in-out infinite; }

@keyframes wave-shift {
  0%, 100% { transform: translateX(0)   translateY(0); }
  50%      { transform: translateX(-40px) translateY(6px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 240px;
}

.hero-meta { margin-bottom: 24px; }
.hero-meta .tag {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
}
.hero-meta .tag .dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero-title {
  color: #FFFFFF;
  max-width: 1100px;
}
.hero-title .line {
  display: block;
}
.hero-title .line-accent {
  font-style: italic;
  font-weight: 400;
  font-family: var(--font-display);
  color: #C5D9F2;
  position: relative;
}
.hero-title .line-accent::after {
  content: "";
  display: inline-block;
  width: 96px;
  height: 8px;
  vertical-align: middle;
  margin-left: 18px;
  background: var(--accent);
  border-radius: 999px;
}

.hero-lede {
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin-top: 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero-cta .btn-primary:hover {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.hero-cta .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}
.hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* Stats docked at bottom of hero */
.hero-stats {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 32px;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  z-index: 3;
}
.hero-stats .stat {
  background: rgba(7,25,58,0.65);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.hero-stats .stat-num .suf {
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 700;
}
.hero-stats .stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 820px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-bottom: 320px; }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 460px; padding-top: 56px; }
  .hero-title .line-accent::after { width: 60px; margin-left: 12px; }
}

/* ----------------------- INTRO ----------------------- */
.intro h2 { max-width: 540px; }
.intro .checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 8px;
}
.intro .checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink);
}
.intro .checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ----------------------- SERVICES PREVIEW ----------------------- */
.services-preview { background: var(--mist); }
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head .h-eyebrow { margin-bottom: 12px; display: block; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy), var(--sea));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-num { color: #fff; }
.service-card .service-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.service-card h3 {
  margin-top: 60px;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.services-cta {
  margin-top: 48px;
  text-align: center;
}

/* ----------------------- MAP SECTION ----------------------- */
.map-section { background: var(--paper); }
.map-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }

.map {
  height: 500px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
/* Fix Leaflet z-index conflicts with sticky nav */
.map .leaflet-top { z-index: 400; }
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  border: 1px solid #D8DEE8 !important;
}
.leaflet-popup-tip { background: #fff !important; }

.port-list {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  z-index: 0;
}
.port-list h4 {
  color: var(--wave);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-bottom: 18px;
}
.port-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}
.port-list li {
  background: var(--navy);
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  transition: background 0.2s ease;
}
.port-list li:hover,
.port-list li.active {
  background: color-mix(in srgb, var(--accent) 20%, var(--navy));
}
.port-list li.active .code { color: #fff; }
.port-list .code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.port-list .name { color: #fff; font-weight: 500; }
.port-list .loc {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}

/* ----------------------- ACHIEVEMENT ----------------------- */
.achievement { background: var(--mist); }
.achievement-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .achievement-grid { grid-template-columns: 1fr; } }

.achievement-image {
  width: 100%;
  border-radius: var(--radius-lg);
}

.achievement-body h2 { margin-top: 16px; margin-bottom: 20px; }
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 36px;
  justify-content: start;
}
@media (max-width: 560px) { .metric-row { grid-template-columns: 1fr; gap: 20px; } }
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-num .suf { color: var(--accent); }
.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

/* ----------------------- VALUES ----------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all 0.25s ease;
}
.value-card:hover {
  border-top-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -18px rgba(0,40,85,0.3);
}
.value-card .value-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
  text-transform: lowercase;
}
.value-card h4 { margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--ink-muted); }

/* ----------------------- CLIENT LOGO STRIP ----------------------- */
.clients-strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}
.clients-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 1100px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

.client-tile {
  background: var(--paper);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  transition: background 0.2s ease;
}
.client-tile::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}
.client-tile:hover { background: var(--mist); }
.client-tile:hover::after { transform: scaleX(1); }
.client-code {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.client-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-top: 4px;
}
.client-loc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ----------------------- NEWS TEASER ----------------------- */
.news-teaser { background: var(--mist); }
.news-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1020px) { .news-teaser-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .news-teaser-grid { grid-template-columns: 1fr; } }

.news-teaser-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.news-teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -16px rgba(0,40,85,0.16);
}
.ntc-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.ntc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.news-teaser-card:hover .ntc-thumb img { transform: scale(1.04); }
.ntc-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ntc-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.ntc-body h3 {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}
.ntc-body p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}
.ntc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
  transition: gap 0.2s ease;
  text-decoration: none;
}
.ntc-link:hover { gap: 12px; }
.news-teaser-footer {
  margin-top: 40px;
  text-align: center;
}

/* ----------------------- CAREERS TEASER ----------------------- */
.careers-teaser {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.careers-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 100% 60%, rgba(77,168,218,0.18), transparent 60%),
    radial-gradient(600px 300px at 0% 40%, rgba(212,13,36,0.14), transparent 60%);
  pointer-events: none;
}
.careers-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1080px) {
  .careers-inner { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .careers-inner .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .careers-inner { grid-template-columns: 1fr; gap: 28px; }
}
.careers-text h2 { color: #fff; max-width: 560px; margin-top: 8px; }
.careers-text p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin-top: 12px;
  max-width: 440px;
  line-height: 1.6;
}
.careers-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 320px;
}
.role-pill {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: default;
}
.role-pill:hover {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ----------------------- CTA STRIP ----------------------- */
.cta-strip {
  background: var(--navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 300px at 80% 50%, rgba(212,13,36,0.15), transparent 60%),
    radial-gradient(600px 300px at 10% 50%, rgba(77,168,218,0.12), transparent 60%);
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
@media (max-width: 700px) {
  .cta-inner { grid-template-columns: 1fr; gap: 24px; }
}
.cta-strip h2 { color: #fff; max-width: 720px; margin-top: 8px; }
.cta-strip .btn-accent:hover { background: #fff; color: var(--navy); border-color: #fff; }
