:root {
  --navy: #06183c;
  --navy-2: #0b2a64;
  --red: #e01122;
  --red-2: #ff3445;
  --ink: #111827;
  --muted: #667085;
  --line: #e7ebf2;
  --soft: #f3f5f8;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(6, 24, 60, 0.16);
  --deep-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--white);
  background: var(--red);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 40px rgba(6, 24, 60, 0.08);
  backdrop-filter: blur(22px);
}

.top-strip {
  color: var(--white);
  background: linear-gradient(90deg, #06183c, #09295f 58%, #121a2d);
  font-size: 13px;
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.strip-inner span {
  color: rgba(255, 255, 255, 0.72);
}

.strip-inner a {
  font-weight: 800;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.brand img {
  width: 124px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 36px rgba(6, 24, 60, 0.08);
  backdrop-filter: blur(18px);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #24324b;
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--red);
  background: rgba(224, 17, 34, 0.08);
  transform: translateY(-1px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-links .nav-cta,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #bd0715);
  box-shadow: 0 18px 36px rgba(224, 17, 34, 0.28);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.button.full {
  width: 100%;
}

.button:hover {
  transform: translateY(-2px);
}

.nav-toggle,
.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 124px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-video,
.hero-video-fallback,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 24, 60, 0.14), rgba(224, 17, 34, 0.08)),
    url("assets/port-compliance-hero.png") center / cover;
  transform: scale(1.04);
  animation: cinematic-pan 18s ease-in-out infinite alternate;
}

.hero-video-fallback {
  z-index: 0;
  background: radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.09), transparent 28%);
}

.video-grain,
.terminal-light,
.freight-card {
  position: absolute;
  pointer-events: none;
}

.video-grain {
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mix-blend-mode: screen;
}

.terminal-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3344;
  box-shadow: 0 0 0 10px rgba(255, 51, 68, 0.12), 0 0 28px rgba(255, 51, 68, 0.7);
  animation: pulse-light 2.8s ease-in-out infinite;
}

.light-one {
  right: 14%;
  top: 28%;
}

.light-two {
  right: 31%;
  top: 58%;
  animation-delay: 0.7s;
}

.light-three {
  right: 8%;
  bottom: 18%;
  animation-delay: 1.4s;
}

.freight-card {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(5, 19, 47, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: drift-card 9s ease-in-out infinite alternate;
}

.card-terminal {
  right: 12%;
  top: 17%;
}

.card-vessel {
  right: 28%;
  bottom: 28%;
  animation-delay: 0.8s;
}

.card-air {
  right: 6%;
  top: 47%;
  animation-delay: 1.5s;
}

.card-trade {
  left: 56%;
  bottom: 14%;
  animation-delay: 2.2s;
}

.scene,
.cargo-line {
  position: absolute;
  pointer-events: none;
}

.scene {
  width: 26vw;
  min-width: 260px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(5px);
}

.scene-one {
  right: 7%;
  top: 20%;
}

.scene-two {
  right: 16%;
  bottom: 18%;
}

.scene-three {
  left: 54%;
  top: 54%;
}

.cargo-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  animation: trade-line 5s linear infinite;
}

.line-a {
  top: 28%;
  left: 44%;
  width: 42%;
}

.line-b {
  top: 62%;
  left: 52%;
  width: 34%;
  animation-delay: 1s;
}

.line-c {
  top: 74%;
  left: 38%;
  width: 46%;
  animation-delay: 2s;
}

.hero-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 78% 25%, rgba(224, 17, 34, 0.22), transparent 25%),
    linear-gradient(90deg, rgba(3, 11, 31, 0.94) 0%, rgba(3, 11, 31, 0.84) 44%, rgba(3, 11, 31, 0.48) 72%, rgba(3, 11, 31, 0.32) 100%),
    linear-gradient(0deg, rgba(3, 11, 31, 0.45), rgba(3, 11, 31, 0.04));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.6fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 124px);
  padding: 74px 0;
}

.eyebrow,
.section-kicker,
.form-label {
  margin: 0 0 14px;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.96;
  font-weight: 950;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 950;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.22;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.quote-card,
.contact-form {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(22px);
}

.quote-card h2 {
  color: var(--white);
  font-size: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(224, 17, 34, 0.7);
  box-shadow: 0 0 0 4px rgba(224, 17, 34, 0.12);
}

.form-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.stats-band {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  min-height: 142px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
}

.stat strong::after {
  color: var(--red);
  content: "+";
}

.stat:first-child strong::after {
  content: "h";
}

.stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 106px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 46px;
}

.section-heading p,
.resources-grid > .section-heading p,
.contact-grid p {
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.resource-card {
  position: relative;
  min-height: 296px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(6, 24, 60, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card::after,
.resource-card::after {
  position: absolute;
  inset: auto -20% -42% 20%;
  height: 160px;
  background: radial-gradient(circle, rgba(224, 17, 34, 0.14), transparent 65%);
  content: "";
}

.service-card:hover,
.resource-card:hover {
  border-color: rgba(224, 17, 34, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--red));
  font-weight: 950;
}

.service-card p,
.resource-card p {
  color: var(--muted);
}

.map-section {
  padding: 106px 0;
  background: #f1f1f1;
}

.country-tools {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.search-box {
  color: #374151;
}

.search-box input {
  border-color: var(--line);
  background: var(--white);
}

.selected-country {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 16px 32px rgba(6, 24, 60, 0.06);
}

.selected-country strong {
  color: var(--navy);
  font-size: 18px;
}

.selected-country span {
  color: var(--muted);
  font-weight: 800;
}

.world-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 42px;
}

.world-map,
.country-detail {
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(6, 24, 60, 0.08);
}

.world-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 24px;
}

.world-map svg {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.land {
  fill: #d6dde8;
  stroke: #ffffff;
  stroke-width: 3;
}

.active-region {
  fill: #bac8dc;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(224, 17, 34, 0.16), 0 12px 26px rgba(6, 24, 60, 0.22);
  color: transparent;
  transform: translate(-50%, -50%);
}

.map-pin:hover,
.map-pin.active {
  box-shadow: 0 0 0 13px rgba(224, 17, 34, 0.18), 0 18px 34px rgba(6, 24, 60, 0.28);
  transform: translate(-50%, -50%) scale(1.18);
}

.country-detail {
  padding: 32px;
}

.country-detail h3 {
  font-size: 34px;
}

.country-detail dl {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.country-detail div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.country-detail dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-detail dd {
  margin: 5px 0 0;
  color: var(--navy);
  font-weight: 900;
}

.country-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px 30px;
}

.country-list button {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  min-height: 116px;
  padding: 20px 24px;
  border: 0;
  border-radius: 5px;
  background: var(--white);
  color: #20242d;
  text-align: left;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.18;
  box-shadow: 0 10px 24px rgba(6, 24, 60, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.country-list button::before {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--flag, linear-gradient(90deg, #0b7a43, #f8d347, #df1e26));
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.42), inset 0 -5px 10px rgba(0, 0, 0, 0.22), 0 4px 8px rgba(0, 0, 0, 0.18);
  content: "";
}

.country-list button:hover,
.country-list button.active {
  color: var(--navy);
  box-shadow: 0 18px 40px rgba(6, 24, 60, 0.12);
  transform: translateY(-4px);
}

.country-list button.active {
  outline: 2px solid rgba(224, 17, 34, 0.16);
}

.country-list button[hidden] {
  display: none;
}

.resources-section {
  background: var(--white);
}

.resources-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  min-height: 230px;
}

.faq-section {
  padding: 106px 0;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.faq-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 24, 60, 0.05);
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--navy);
  font-weight: 950;
}

details p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
}

.contact-section {
  padding: 106px 0;
}

.contact-card {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f8fafc;
}

.contact-card a {
  color: var(--navy);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.contact-card p {
  margin-bottom: 0;
}

.contact-form {
  border-color: var(--line);
  background: var(--navy);
}

.contact-form h3 {
  color: var(--white);
  font-size: 30px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  background: #18b45b;
  box-shadow: 0 20px 44px rgba(24, 180, 91, 0.36);
  font-weight: 950;
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 15% 0%, rgba(224, 17, 34, 0.2), transparent 30%),
    linear-gradient(135deg, #05132f, #071d49 58%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 42px;
  padding: 70px 0 44px;
}

.footer img {
  width: 128px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
}

.footer h2,
.footer h3 {
  color: var(--white);
}

.footer h2 {
  margin-bottom: 8px;
  font-size: 27px;
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin-bottom: 22px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p,
.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cinematic-pan {
  0% {
    transform: scale(1.04) translate3d(-1%, -1%, 0);
  }

  100% {
    transform: scale(1.11) translate3d(2%, 1%, 0);
  }
}

@keyframes trade-line {
  0% {
    opacity: 0;
    transform: translateX(-22%);
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(28%);
  }
}

@keyframes pulse-light {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.86);
  }

  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes drift-card {
  0% {
    transform: translate3d(-8px, 0, 0);
  }

  100% {
    transform: translate3d(12px, -10px, 0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .country-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid,
  .resource-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .strip-inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .strip-inner span {
    display: none;
  }

  .navbar {
    min-height: 78px;
  }

  .brand img {
    width: 108px;
    height: 62px;
  }

  .menu-button {
    display: grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 12px 10px;
    border: 1px solid rgba(6, 24, 60, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    height: 2px;
    background: var(--navy);
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
  }

  .nav-links a {
    justify-content: center;
    min-height: 48px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .hero-grid,
  .world-panel,
  .resources-grid,
  .faq-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 68px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .country-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .top-strip {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding: 58px 0;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .hero-actions,
  .form-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .quote-card,
  .contact-form {
    padding: 24px;
    border-radius: 22px;
  }

  .section,
  .map-section,
  .faq-section,
  .contact-section {
    padding: 72px 0;
  }

  .service-grid,
  .resource-cards,
  .country-list {
    grid-template-columns: 1fr;
  }

  .country-list button {
    min-height: 102px;
    font-size: 18px;
  }

  .world-map {
    min-height: 310px;
  }

  .world-map svg {
    min-height: 260px;
  }

  .selected-country {
    align-items: flex-start;
    flex-direction: column;
  }
}
