:root {
  --ink: #102033;
  --muted: #64748b;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --line: #d9e2ec;
  --navy: #09243f;
  --navy-2: #123b5f;
  --steel: #7aa7c7;
  --red: #b71c2b;
  --gold: #c9923e;
  --green: #1f7a55;
  --shadow: 0 20px 55px rgba(9, 36, 63, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 35px rgba(9, 36, 63, 0.09);
}

.topline {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  background: var(--navy);
  color: #dbe8f3;
  font-size: 0.78rem;
  padding: 0.42rem 1rem;
}

.topline a {
  color: #fff;
  text-decoration: none;
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand strong,
.footer-brand span {
  display: block;
  letter-spacing: 0;
  color: var(--navy);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: -0.12rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.88rem;
}

.primary-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  color: #25364a;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: #edf3f8;
  color: var(--navy);
}

.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--red);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.hero {
  min-height: 660px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 20, 36, 0.92) 0%, rgba(5, 20, 36, 0.78) 41%, rgba(5, 20, 36, 0.2) 74%),
    image-set(url("assets/adria-cargo-port-hero.png") type("image/png"));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-inner,
.section-inner {
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero-inner {
  padding: 7rem 0 3.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #dce8f3;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: 5.1rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero .lede,
.page-hero .lede {
  max-width: 760px;
  color: #dce8f3;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  margin: 1.2rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.76rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.button.light {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.hero-stats {
  margin-top: 3.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 31, 54, 0.7);
  backdrop-filter: blur(8px);
}

.hero-stats div {
  padding: 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  color: #dce8f3;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(9, 36, 63, 0.98), rgba(18, 59, 95, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(122, 167, 199, 0.26), transparent 32%);
  color: #fff;
  padding: 3.8rem 0 2.7rem;
}

.section {
  padding: 4.6rem 0;
}

.section.tight {
  padding: 3rem 0;
}

.section.white {
  background: #fff;
}

.section.dark {
  background: var(--navy);
  color: #fff;
}

.section.alt {
  background: #eaf0f5;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.02;
}

.section-header p {
  max-width: 620px;
  color: var(--muted);
  margin: 0;
}

.dark .section-header p,
.dark .muted {
  color: #c7d6e4;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.metric-card,
.document-card,
.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.03);
}

.card {
  padding: 1.25rem;
}

.card h3,
.metric-card h3,
.document-card h3,
.news-card h3 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  line-height: 1.12;
}

.card p,
.metric-card p,
.document-card p,
.news-card p {
  color: var(--muted);
  margin: 0;
}

.metric-card {
  padding: 1.2rem;
}

.metric-card strong {
  display: block;
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.operations-board {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.board-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: #fff;
  background: var(--navy);
}

.board-top strong {
  display: block;
}

.board-top span {
  color: #c7d6e4;
  font-size: 0.86rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #43556b;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: #f5f7fb;
}

td {
  color: #25364a;
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #edf3f8;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill.green {
  color: #12543a;
  background: #dff4ea;
}

.pill.gold {
  color: #6a4614;
  background: #f7ead2;
}

.pill.red {
  color: #7a101b;
  background: #f6d9de;
}

.feature-band {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.route-panel {
  min-height: 360px;
  background:
    linear-gradient(140deg, rgba(9, 36, 63, 0.96), rgba(18, 59, 95, 0.88)),
    url("assets/adria-cargo-port-hero.png");
  background-size: cover;
  background-position: center right;
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.route-panel h3 {
  font-size: 2rem;
  margin: 0 0 0.65rem;
  line-height: 1;
}

.route-panel p {
  max-width: 540px;
  color: #dce8f3;
}

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.4rem;
}

.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.plain-list li::before {
  content: "";
  width: 8px;
  height: 2px;
  background: var(--steel);
  position: absolute;
  left: 0;
  top: 0.75rem;
}

.timeline {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 0.3rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.fact-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  border-bottom: 1px solid var(--line);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row dt,
.fact-row dd {
  margin: 0;
  padding: 0.95rem 1rem;
}

.fact-row dt {
  background: #f5f7fb;
  color: #43556b;
  font-weight: 700;
}

.document-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.document-tools select,
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.78rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.document-card {
  padding: 1.1rem;
}

.document-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.document-card a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.news-card {
  padding: 1.15rem;
}

.news-card time {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.86rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  color: #43556b;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-output {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #badfcd;
  background: #e7f6ee;
  color: #12543a;
  border-radius: 6px;
}

.callout {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.35rem;
}

.callout h3 {
  margin: 0 0 0.6rem;
}

.callout p {
  color: #dce8f3;
}

.text-link {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

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

.site-footer {
  background: #06192d;
  color: #dce8f3;
  padding: 3.2rem 0;
}

.footer-grid {
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr 1fr;
  gap: 1.4rem;
}

.footer-grid h2 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.footer-grid p {
  color: #b8c8d8;
  margin: 0.25rem 0 0.9rem;
}

.footer-brand {
  margin-bottom: 0.7rem;
}

.footer-brand span {
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 0.36rem;
}

.footer-links a,
.site-footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .topline {
    display: none;
  }

  .nav-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 68px;
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    white-space: normal;
  }

  .hero-stats,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three,
  .feature-panel,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 610px;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 1.5rem, 1240px);
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .page-hero h1 {
    font-size: 2.65rem;
  }

  .hero-stats,
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .section-header,
  .document-tools {
    display: block;
  }

  .section-header p,
  .document-tools label {
    margin-top: 0.8rem;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .fact-row dd {
    padding-top: 0.35rem;
  }

  th,
  td {
    padding: 0.82rem 0.75rem;
  }
}
