:root {
  --navy: #083366;
  --red: #771115;
  --bright: #ed1f24;
}

.main-nav {
  font-size: 18px;
  font-weight: 1000;
  gap: 28px;
}

.main-nav a {
  font-weight: 1000;
  letter-spacing: .02em;
}

.hero-slider {
  height: 720px;
  margin-bottom: 72px;
  overflow: visible !important;
}

.hero-slide {
  justify-content: center;
  text-align: center;
  background-image: var(--hero-image) !important;
  background-position: center !important;
  background-size: cover !important;
  background-color: transparent !important;
  background-blend-mode: normal !important;
}

.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
}

.hero-content {
  z-index: 2;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 51, 102, .32), rgba(119, 17, 21, .30), rgba(8, 51, 102, .30)),
    radial-gradient(circle at 52% 55%, rgba(119, 17, 21, .30), transparent 38%),
    radial-gradient(circle at 18% 45%, rgba(8, 51, 102, .24), transparent 40%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 51, 102, .16);
  pointer-events: none;
}

.hero-content {
  margin: 0 auto !important;
  padding: 0 24px;
  max-width: 1000px !important;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(54px, 5.8vw, 94px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.055em;
}

.hero-content p {
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 51, 102, .88), rgba(8, 51, 102, .60), rgba(119, 17, 21, .38)),
    var(--page-image) center/cover !important;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--page-image) center/cover no-repeat;
  opacity: .34;
  z-index: -2;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 51, 102, .72), rgba(8, 51, 102, .44), rgba(255,255,255,.18)),
    radial-gradient(circle at 72% 35%, rgba(255,255,255,.22), transparent 34%);
  z-index: -1;
}

.page-hero > div {
  position: relative;
  z-index: 1;
}

.header-actions .btn {
  font-size: 11px;
  padding: 14px 24px;
}

.profile-strip {
  grid-template-columns: 70% 30%;
  align-items: center;
  width: min(1260px, 88vw);
  text-align: left;
  left: 50%;
  right: auto;
  bottom: -68px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 51, 102, .18);
  border: 1px solid rgba(8, 51, 102, .08);
  min-height: 118px;
  overflow: hidden !important;
  transform: translateX(-50%) !important;
}

.profile-strip.reveal,
.profile-strip.reveal.visible {
  transform: translateX(-50%) !important;
}

.profile-panel {
  min-height: 118px;
  height: 100%;
  background:
    linear-gradient(110deg, rgba(8, 51, 102, .94), rgba(119, 17, 21, .72)),
    url("images/service-transportation.png") center/cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 48px !important;
}

.profile-panel strong {
  font-size: 30px;
  line-height: 1.14;
}

.profile-panel span {
  font-size: 15px;
  color: rgba(255,255,255,.88);
}

.profile-actions {
  min-height: 118px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 24px 34px !important;
}

.tracking-strip.profile-strip .profile-actions {
  background: #fff !important;
  color: var(--navy);
}

.profile-actions span {
  display: none;
  color: var(--muted);
  font-weight: 800;
  max-width: 380px;
}

.profile-strip .btn {
  margin: 0;
  white-space: nowrap;
  background: var(--bright);
  color: #fff;
  padding: 16px 38px;
}

.profile-strip .btn:hover {
  background: var(--red);
  color: #fff;
}

.hero-arrow {
  width: 62px !important;
  height: 62px !important;
  background: var(--bright) !important;
  font-size: 26px;
}

.home-image-stack {
  grid-template-columns: 1fr .72fr;
  align-items: end;
}

.home-image-stack img:nth-child(1) {
  grid-row: 1 / span 2;
}

.home-image-stack img:nth-child(3) {
  height: 250px;
}

.tf-gap-mark {
  height: 124px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 18px;
}

.tf-gap-mark img {
  width: 145px;
  height: auto !important;
  border: 0;
  box-shadow: none;
  object-fit: contain;
}

.home-about-modern {
  gap: 70px;
  align-items: center;
  overflow: hidden;
}

.home-about-visual {
  position: relative;
  min-height: 560px;
}

.home-about-visual::before {
  content: "";
  position: absolute;
  left: -26px;
  bottom: -24px;
  width: 70%;
  height: 74%;
  border: 2px solid var(--bright);
  border-radius: 14px;
  z-index: 0;
}

.home-about-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 58px rgba(8, 51, 102, .16);
}

.home-about-mini-card {
  position: absolute;
  z-index: 6;
  right: -132px;
  bottom: 132px;
  width: min(430px, 56%);
  height: 132px;
  padding: 10px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(8, 51, 102, .18);
  display: block;
}

.home-about-mini-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 999px;
}

.home-about-modern .reveal:last-child {
  position: relative;
  z-index: 3;
}

.home-about-modern h2 {
  text-transform: capitalize;
  max-width: 760px;
}

.home-about-modern p:not(.eyebrow) {
  font-size: 18px;
  font-weight: 700;
  color: #6c6f76;
}

.about-feature-pill {
  margin: 34px 0 34px;
  padding: 24px 34px 24px 96px;
  background: #f5f1ed;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  position: relative;
}

.about-feature-pill .experience-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
}

.about-feature-pill .experience-card strong {
  display: block;
  font-size: 48px;
  color: var(--bright);
  line-height: .95;
}

.about-feature-pill .experience-card span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.15;
}

.about-feature-pill .check-list {
  margin: 0;
  gap: 12px;
  font-size: 15px;
}

.about-feature-pill .check-list li {
  white-space: nowrap;
}

.logo-track span {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 12px 28px rgba(8, 51, 102, .08);
  padding: 18px 24px;
  width: 210px !important;
  height: 108px !important;
}

.logo-track span img {
  height: 62px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.service-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border: 0;
  background: transparent;
}

.service-showcase-grid.compact-services {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  border: 0;
  background: transparent;
}

.service-tile {
  min-height: 340px;
  background: var(--navy) !important;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 51, 102, .12);
  border-radius: 18px;
  display: flex;
  align-items: end;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.service-tile__image {
  border-radius: 18px;
}

.service-tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  transform: scale(1);
  transition: transform .35s ease, opacity .35s ease;
}

.service-showcase-grid.compact-services .service-tile {border-radius:18px}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 51, 102, .78);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
}

.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 51, 102, .08) 0%, rgba(4, 22, 45, .24) 42%, rgba(4, 22, 45, .88) 100%);
  pointer-events: none;
  z-index: 1;
}

.service-tile:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--red);
  box-shadow: 0 20px 48px rgba(8, 51, 102, .22);
}

.service-tile:hover .service-tile__image {
  transform: scale(1.06);
}

.service-tile:hover::before {
  opacity: .72;
}

.service-tile div {
  position: relative;
  z-index: 2;
  padding: 34px;
}

.service-tile h3 {
  font-family: Oswald, Manrope, sans-serif;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.service-tile p {
  color: rgba(255,255,255,.9);
  margin-bottom: 22px;
}

.service-tile button {
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  padding: 11px 21px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
}

.service-subscribe-tile {
  grid-column: span 2;
  min-height: 340px;
  background: linear-gradient(135deg, var(--navy), #20315d 50%, var(--red));
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 34px;
}

.service-subscribe-tile h3 {
  font-size: 34px;
  line-height: 1.08;
  color: #fff;
}

.service-subscribe-tile p {
  color: rgba(255,255,255,.86);
}

.service-subscribe-tile form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}

.service-subscribe-tile input {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
}

.service-subscribe-tile button {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  padding: 14px 20px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.service-subscribe-tile button:hover {
  background: var(--red);
  color: #fff;
}

.process-grid article {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.process-grid article:hover {
  transform: translateY(-8px);
  border-color: var(--red);
  box-shadow: 0 24px 55px rgba(8, 51, 102, .20);
  background: linear-gradient(180deg, #fff, #f9f1f2);
}

.process-grid article:hover b {
  color: var(--red);
}

.service-tile:hover button {
  background: var(--red);
  border-color: var(--red);
}

.management-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.message-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.message-card-large {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-card p {
  color: var(--muted);
}

.message-card h3 {
  margin: 18px 0 2px;
  color: var(--navy);
}

.message-card span {
  color: var(--red);
  font-weight: 900;
}

.career-cta-card,
.career-page-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: 18px;
  padding: 46px;
  box-shadow: var(--shadow);
}

.career-cta-card h2,
.career-page-grid h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.career-cta-card p,
.career-page-grid p {
  color: var(--muted);
  max-width: 780px;
}

.career-page-grid {
  grid-template-columns: 1fr .8fr;
}

.career-page-grid img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 14px;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  font-size: 28px;
  font-weight: 1000;
}

.instagram-icon {
  width: 26px;
  height: 26px;
  border: 3px solid currentColor;
  border-radius: 8px;
  display: inline-block;
  position: relative;
}

.instagram-icon::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 3px solid currentColor;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.instagram-icon i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  right: 4px;
  top: 4px;
}

.topbar .instagram-icon {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-radius: 5px;
}

.topbar .instagram-icon::before {
  width: 5px;
  height: 5px;
  border-width: 2px;
}

.topbar .instagram-icon i {
  width: 3px;
  height: 3px;
  right: 2px;
  top: 2px;
}

.footer-social a:hover {
  background: var(--red);
}

.tracking-modal,
.career-modal,
.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 22, 45, .62);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tracking-modal.open,
.career-modal.open,
.service-modal.open {
  display: flex;
}

.tracking-modal__panel,
.career-modal__panel,
.service-modal__panel {
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(4,22,45,.32);
  padding: 42px;
  position: relative;
}

.tracking-modal__panel,
.career-modal__panel {
  width: min(520px, 100%);
}

.service-modal__panel h2,
.career-modal__panel h2,
.tracking-modal__panel h2 {
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.service-modal__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 24px;
}

.scroll-progress {
  top: auto !important;
  bottom: 24px !important;
  right: 24px !important;
}

.service-modal__panel p,
.service-modal__panel li,
.career-modal__panel p,
.tracking-modal__panel p {
  color: var(--muted);
}

.service-modal__panel h4 {
  color: var(--navy);
  font-size: 20px;
  margin: 24px 0 8px;
}

.service-modal__panel table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 10px;
}

.service-modal__panel th,
.service-modal__panel td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.service-modal__panel th {
  background: var(--navy);
  color: #fff;
}

.tracking-modal__panel form,
.career-modal__panel form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.tracking-modal__panel input,
.career-modal__panel input {
  border: 1px solid var(--line);
  background: #f8f5f2;
  border-radius: 8px;
  padding: 15px 17px;
  outline: none;
  width: 100%;
}

.tracking-modal__close,
.career-modal__close,
.service-modal__close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: var(--navy);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tracking-modal__close:hover,
.career-modal__close:hover,
.service-modal__close:hover {
  background: var(--red);
}

@media (max-width: 1180px) {
  .main-nav {
    font-size: 16px;
    gap: 18px;
  }

  .service-showcase-grid,
  .service-showcase-grid.compact-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .main-nav {
    font-size: 21px;
  }

  .profile-strip,
  .career-cta-card,
  .career-page-grid,
  .management-grid {
    grid-template-columns: 1fr;
  }

  .profile-strip .btn {
    margin: 24px 30px 30px;
  }

  .profile-actions {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px !important;
    gap: 18px;
  }

  .profile-panel {
    min-height: auto;
    padding: 30px 28px !important;
  }

  .profile-panel strong {
    font-size: 26px;
  }

  .message-card-large {
    grid-column: auto;
    grid-row: auto;
  }

  .service-showcase-grid,
  .service-showcase-grid.compact-services {
    grid-template-columns: 1fr;
  }

  .service-subscribe-tile {
    grid-column: span 1;
  }

  .service-tile {
    min-height: 310px;
  }

  .home-image-stack {
    grid-template-columns: 1fr;
  }

  .home-about-modern {
    gap: 44px;
  }

  .home-about-visual {
    min-height: auto;
  }

  .home-about-main-img {
    height: 420px;
  }

  .home-about-mini-card {
    right: 24px;
    bottom: 24px;
    width: min(420px, 82%);
  }

  .about-feature-pill {
    border-radius: 22px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .main-nav {
    font-size: 20px;
  }

  .profile-strip {
    bottom: -96px;
  }

  .profile-strip > div {
    padding: 24px;
  }

  .service-tile div,
  .career-cta-card,
  .career-page-grid,
  .message-card {
    padding: 26px;
  }

  .home-about-main-img {
    height: 310px;
  }

  .home-about-mini-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
    border-radius: 20px;
    grid-template-columns: 1fr auto;
  }

  .home-about-mini-card img {
    border-radius: 16px;
  }

  .home-about-visual::before {
    display: none;
  }

  .about-feature-pill {
    padding: 24px;
  }

  .service-modal__panel,
  .tracking-modal__panel,
  .career-modal__panel {
    padding: 30px 22px;
  }
}

/* Mobile stability overrides */
.mobile-nav-cta {
  display: none;
}

.sticky-contact-rail {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 180;
  display: grid;
  gap: 10px;
}

.sticky-contact-rail a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 10px 28px rgba(8, 51, 102, .24);
  border: 2px solid rgba(255,255,255,.85);
}

.sticky-email {
  background: var(--navy);
}

.sticky-whatsapp {
  background: #19b65a;
}

.sticky-contact-rail a:hover {
  background: var(--red);
  transform: translateX(3px);
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .mainbar {
    width: 100%;
  }

  .brand {
    width: min(210px, 62vw);
  }

  .brand img {
    max-width: 100%;
    object-fit: contain;
  }

  .main-nav {
    top: 78px !important;
    width: min(86vw, 360px) !important;
    padding: 26px 28px 38px !important;
    gap: 0 !important;
  }

  .main-nav a {
    font-size: 18px;
    line-height: 1.2;
  }

  .main-nav .mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 22px;
    padding: 16px 20px !important;
    border: 0;
    border-radius: 999px;
    background: var(--bright);
    color: #fff !important;
    font-weight: 1000;
    text-align: center;
  }

  .main-nav .mobile-nav-cta::after {
    display: none !important;
  }

  .hero-slider {
    height: 660px !important;
    margin-bottom: 250px !important;
  }

  .hero-content {
    padding: 0 22px;
    transform: translateY(-24px);
  }

  .hero-content h1 {
    font-size: clamp(38px, 11vw, 58px) !important;
    line-height: 1.08 !important;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-arrow {
    width: 46px !important;
    height: 46px !important;
    font-size: 20px;
  }

  .hero-prev {
    left: 12px !important;
  }

  .hero-next {
    right: 12px !important;
  }

  .profile-strip,
  .profile-strip.reveal,
  .profile-strip.reveal.visible {
    width: calc(100% - 32px) !important;
    left: 50% !important;
    bottom: -214px !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    transform: translateX(-50%) !important;
    border-radius: 18px;
  }

  .profile-panel,
  .profile-actions {
    min-height: 0 !important;
    padding: 24px !important;
  }

  .profile-panel strong {
    font-size: 23px !important;
  }

  .profile-panel span {
    font-size: 14px !important;
  }

  .profile-actions {
    align-items: stretch;
  }

  .profile-strip .btn {
    width: 100%;
    margin: 0 !important;
    padding: 15px 18px;
  }

  .section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .home-about-modern,
  .about-preview,
  .mission-vision,
  .maritime-accordion,
  .contact-form-card,
  .career-page-grid,
  .management-grid {
    grid-template-columns: 1fr !important;
  }

  .home-about-modern h2,
  .section-title h2,
  .mission-vision h2,
  .maritime-accordion h2,
  .why-copy h2 {
    font-size: clamp(32px, 9vw, 44px) !important;
  }

  .about-feature-pill .check-list li {
    white-space: normal;
  }

  .contact-cards,
  .process-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-top,
  .footer-contact,
  .copyright {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-slider {
    height: 620px !important;
    margin-bottom: 270px !important;
  }

  .hero-content {
    transform: translateY(-10px);
  }

  .profile-strip,
  .profile-strip.reveal,
  .profile-strip.reveal.visible {
    bottom: -235px !important;
  }

  .service-showcase-grid,
  .service-showcase-grid.compact-services,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .service-subscribe-tile {
    grid-column: span 1 !important;
  }

  .service-subscribe-tile form {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: 300px !important;
  }

  .page-hero {
    height: 260px !important;
  }

  .page-hero h1 {
    font-size: 44px !important;
  }

  .sticky-contact-rail {
    left: 8px;
    gap: 8px;
  }

  .sticky-contact-rail a {
    width: 42px;
    height: 42px;
  }
}
