/* Ports section — page-specific layout (extends styles.css) */

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  height: 2.25rem;
  max-width: 150px;
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Overview hero band */
.ports-hero {
  position: relative;
  min-height: clamp(18rem, 42vw, 28rem);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-height);
  overflow: hidden;
}

.ports-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 14, 0.55) 0%, rgba(11, 15, 14, 0.92) 100%),
    url("/assets/car-shipping.jpg") center / cover no-repeat;
}

.ports-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 15, 14, 0.7) 0%, rgba(26, 33, 30, 0.5) 50%, rgba(11, 15, 14, 0.85) 100%);
}

.ports-hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 8vw, 5rem);
  max-width: 42rem;
}

.ports-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.ports-hero-content p {
  color: var(--text-2);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 36rem;
}

/* Global reach visual */
.global-reach {
  margin-bottom: 3rem;
}

.global-reach-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  aspect-ratio: 16 / 7;
  width: 100%;
  max-width: 100%;
}

.global-reach-map {
  width: 100%;
  height: 100%;
  display: block;
}

.global-reach-map .ocean {
  fill: var(--bg-0);
}

.global-reach-map .land {
  fill: var(--bg-2);
  stroke: var(--border);
  stroke-width: 0.5;
}

.global-reach-map .route {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  opacity: 0.6;
}

.global-reach-map .hub {
  fill: var(--brand);
}

.global-reach-map .port-dot {
  fill: rgba(118, 192, 67, 0.85);
}

.global-reach-map .port-dot.pulse {
  animation: port-pulse 2.5s ease-in-out infinite;
}

.global-reach-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.global-reach-label span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.global-reach-label span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
}

@keyframes port-pulse {
  0%,
  100% {
    opacity: 0.85;
    r: 3;
  }
  50% {
    opacity: 1;
    r: 4.5;
  }
}

/* Destination card grid */
.ports-destinations {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.ports-destinations .service-card {
  grid-column: span 12;
}

.ports-destinations a.service-card {
  display: block;
  color: inherit;
  cursor: pointer;
}

.ports-destinations .service-card h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.ports-destinations .service-card .port-name {
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.ports-destinations .service-card.is-static {
  cursor: default;
}

.ports-destinations .service-card.is-static:hover,
.ports-destinations .service-card.is-static:focus-within {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

@media (min-width: 640px) {
  .global-reach-frame {
    min-height: 12rem;
  }

  .ports-destinations .service-card {
    grid-column: span 6;
  }
}

@media (min-width: 900px) {
  .ports-destinations .service-card {
    grid-column: span 4;
  }
}

/* Detail page layout */
.port-detail-hero {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-2);
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--muted);
}

.port-detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 48rem;
}

.port-detail-body {
  background: var(--bg-0);
}

.port-detail-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.port-detail-copy p + p {
  margin-top: 1rem;
  color: var(--text-2);
}

.port-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.port-detail-actions .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.port-detail-actions .back-link:hover,
.port-detail-actions .back-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(118, 192, 67, 0.35);
}

@media (min-width: 900px) {
  .port-detail-grid {
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-reach-map .port-dot.pulse {
    animation: none;
  }
}
