/* Sea Freight Page */
.sea-freight-page {
  background: #ffffff;
}

.sea-freight-page .service-detail-shell {
  padding: 0;
}

.sea-freight-page .header {
  position: fixed;
}

body.sea-freight-page .home-hero-copy,
body:not(.td-loader-done).sea-freight-page .home-hero-copy {
  opacity: 1 !important;
  transform: none !important;
  filter: blur(0) !important;
  -webkit-filter: blur(0) !important;
}

.sea-service-hero .home-hero-title {
  max-width: 12ch !important;
}

.sea-service-hero .home-hero-video video {
  filter: saturate(0.72) contrast(1.08) brightness(0.7);
}

.sea-advantage {
  position: relative;
  min-height: 100svh;
  padding: clamp(6rem, 11vw, 10rem) clamp(1.25rem, 7vw, 8rem);
  overflow: hidden;
  background: #ffffff;
  color: #101214;
}

.sea-advantage::before {
  position: absolute;
  top: -14vw;
  left: -7vw;
  width: min(48rem, 48vw);
  height: min(13rem, 13vw);
  background: linear-gradient(180deg, #141719, #2a2d2f);
  box-shadow: 0 1.6rem 2.4rem rgba(16, 18, 20, 0.16);
  content: "";
  transform: rotate(-14deg);
  transform-origin: left center;
}

.sea-advantage__header,
.sea-service-card {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 760ms ease,
    transform 920ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 760ms ease;
  filter: blur(10px);
}

.sea-advantage__header {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  margin: 0 auto clamp(3rem, 7vw, 6.5rem);
}

.sea-advantage__header.is-visible,
.sea-service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.sea-advantage__header > p {
  margin: 0 0 1.25rem;
  color: rgba(16, 18, 20, 0.42);
  font-family: var(--ff-secondary);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sea-advantage__header h2 {
  max-width: 13ch;
  margin: 0;
  color: #101214;
  font-family: var(--ff-secondary);
  font-size: clamp(3.3rem, 6.1vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.98;
  text-transform: none;
}

.sea-service-cards {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 92rem);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem);
  align-items: stretch;
}

.sea-service-card {
  display: flex;
  min-height: clamp(31rem, 36vw, 38rem);
  padding: clamp(1.35rem, 2vw, 2rem);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(0, 76, 101, 0.08);
  border-radius: 14px;
  background: #f3f3f3;
  color: #071416;
  box-shadow: 0 1rem 3rem rgba(17, 24, 39, 0.06);
}

.sea-service-card img {
  display: block;
  width: 100%;
  height: clamp(12rem, 16vw, 16rem);
  margin: 0 auto clamp(2rem, 4vw, 4rem);
  object-fit: contain;
  transform: translateY(0) scale(1);
  transition:
    filter 300ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sea-service-card__body {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(7, 20, 22, 0.12);
}

.sea-service-card__body span,
.sea-service-card__body a {
  color: currentColor;
  font-family: var(--ff-secondary);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.sea-service-card__body a {
  opacity: 0;
  transform: translateX(0.75rem);
  transition: opacity 260ms ease, transform 260ms ease;
  white-space: nowrap;
}

.sea-service-card p {
  max-width: 31rem;
  min-height: 5.4rem;
  margin: 1rem 0 0;
  color: rgba(17, 24, 39, 0.68);
  font-family: var(--ff-secondary);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.55;
}

.sea-service-card:hover,
.sea-service-card:focus-within {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #2f8cff 0%, #0057b7 58%, #003a84 100%);
  color: #ffffff;
  box-shadow: 0 2.1rem 4rem rgba(0, 87, 183, 0.2);
  transform: translateY(-0.35rem);
}

.sea-service-card:hover img,
.sea-service-card:focus-within img {
  filter: drop-shadow(0 1.6rem 1.25rem rgba(0, 33, 72, 0.18));
  transform: translateY(-0.35rem) scale(1.03);
}

.sea-service-card:hover .sea-service-card__body,
.sea-service-card:focus-within .sea-service-card__body {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.sea-service-card:hover .sea-service-card__body a,
.sea-service-card:focus-within .sea-service-card__body a {
  opacity: 1;
  transform: translateX(0);
}

.sea-service-card:hover p,
.sea-service-card:focus-within p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 63.98rem) {
  .sea-freight-page .service-detail-shell {
    padding: 0;
  }

  .sea-service-hero .home-hero-title {
    max-width: 11ch !important;
  }

  .sea-advantage {
    padding: clamp(5rem, 15vw, 7rem) 1rem;
  }

  .sea-advantage::before {
    width: 70vw;
    height: 6rem;
  }

  .sea-advantage__header {
    margin-bottom: 2rem;
  }

  .sea-advantage__header h2 {
    max-width: 12ch;
    font-size: clamp(3rem, 13vw, 5.6rem);
  }

  .sea-service-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sea-service-card {
    min-height: 0;
  }

  .sea-service-card__body {
    align-items: flex-start;
    flex-direction: column;
  }

  .sea-service-card__body a {
    opacity: 1;
    transform: none;
  }

  .sea-service-card p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sea-advantage__header,
  .sea-service-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 63.98rem) {
  .sea-service-hero .home-hero-copy {
    inset: auto 1rem clamp(2.25rem, 9vw, 4rem) 1rem !important;
    display: grid;
    gap: clamp(1.15rem, 5vw, 2rem);
    width: auto;
  }

  .sea-service-hero .home-hero-title {
    max-width: 8.5ch !important;
    margin: 0;
    font-size: clamp(3.15rem, 15.5vw, 5.9rem) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.07em !important;
    text-wrap: balance;
  }

  .sea-service-hero .home-hero-summary {
    max-width: 20rem;
    margin: 0;
    font-size: clamp(1.02rem, 4.6vw, 1.28rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.025em;
  }

  .sea-service-hero .home-hero-actions {
    display: grid;
    gap: 1rem;
    max-width: min(100%, 23rem);
  }

  .sea-service-hero .home-hero-cta {
    min-height: 3.25rem;
    border-radius: 0.85rem;
  }

  .sea-advantage {
    padding: clamp(4.8rem, 15vw, 7rem) 1.1rem;
  }

  .sea-advantage__header {
    width: min(100%, 31rem);
    margin-bottom: clamp(1.75rem, 8vw, 3rem);
  }

  .sea-advantage__header > p {
    margin-bottom: 0.8rem;
    font-size: 0.76rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
  }

  .sea-advantage__header h2 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 14vw, 5.25rem) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.07em !important;
    text-wrap: balance;
  }

  .sea-service-cards {
    width: min(100%, 31rem);
    gap: 1rem;
  }

  .sea-service-card {
    min-height: auto;
    padding: clamp(1rem, 5vw, 1.35rem);
    border-radius: 1.2rem;
  }

  .sea-service-card img {
    height: clamp(9.5rem, 42vw, 13rem);
    margin-bottom: clamp(1.4rem, 7vw, 2.2rem);
  }

  .sea-service-card__body {
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .sea-service-card__body span {
    font-size: clamp(1.35rem, 6.8vw, 2rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
  }

  .sea-service-card__body a {
    font-size: 0.92rem;
  }

  .sea-service-card p {
    margin-top: 0.8rem;
    font-size: clamp(0.98rem, 4.1vw, 1.1rem);
    line-height: 1.45;
    letter-spacing: -0.018em;
  }
}

@media (max-width: 35.98rem) {
  .sea-service-hero .home-hero-title {
    font-size: clamp(3rem, 16vw, 4.6rem) !important;
  }

  .sea-advantage__header h2 {
    font-size: clamp(2.65rem, 14.5vw, 4.25rem) !important;
  }
}

/* SERVICE PAGES MOBILE — FINAL OVERRIDES, edit here only */
@media (max-width: 63.98rem) {
  .service-detail-page,
  .service-detail-shell {
    width: 100%;
    min-width: 0;
    overflow-x: hidden !important;
  }

  .sea-service-hero {
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  .sea-service-hero .home-hero-copy {
    position: absolute !important;
    inset: auto 1rem clamp(2rem, 7vw, 3.5rem) 1rem !important;
    display: grid !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 1rem !important;
  }

  .sea-service-hero .home-hero-title {
    max-width: 10ch !important;
    font-size: clamp(2.65rem, 13vw, 4.8rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.05em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .sea-service-hero .home-hero-summary,
  .sea-service-hero .home-hero-actions,
  .sea-service-hero .home-hero-cta {
    width: 100% !important;
    max-width: 24rem !important;
  }

  .sea-service-hero .home-hero-actions {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    gap: 1rem !important;
    margin-top: 0.25rem !important;
    transform: none !important;
  }

  .sea-service-hero .home-hero-summary {
    position: static !important;
    margin: 0 !important;
    font-size: clamp(1rem, 4.6vw, 1.25rem) !important;
    line-height: 1.18 !important;
  }

  .sea-service-hero .home-hero-cta {
    position: static !important;
    min-height: 3.25rem !important;
    justify-content: center !important;
  }

  .sea-advantage {
    min-height: auto !important;
    padding: clamp(4rem, 13vw, 6rem) 1rem !important;
    overflow: hidden !important;
  }

  .sea-advantage::before {
    display: none !important;
  }

  .sea-advantage__header,
  .sea-service-card {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .sea-advantage__header {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .sea-advantage__header h2 {
    max-width: 100% !important;
    font-size: clamp(2.05rem, 9.5vw, 3.6rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.04em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .sea-service-cards {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .sea-service-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    padding: 1rem !important;
  }

  .sea-service-card img {
    width: 100% !important;
    height: clamp(9rem, 42vw, 13rem) !important;
    object-fit: contain !important;
  }

  .sea-service-card__body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .sea-service-card__body span {
    font-size: clamp(1.2rem, 5.8vw, 1.8rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
  }

  .sea-service-card__body a {
    opacity: 1 !important;
    transform: none !important;
    white-space: normal !important;
  }

  .sea-service-card p {
    min-height: 0 !important;
  }
}

@media (max-width: 35.98rem) {
  .sea-service-hero .home-hero-title {
    font-size: clamp(2.35rem, 12.5vw, 3.7rem) !important;
  }

  .sea-advantage__header h2 {
    font-size: clamp(1.95rem, 9.2vw, 3.05rem) !important;
  }
}


/* Shared service-detail RTL support */
html[dir="rtl"] .service-detail-page {
  font-family: "Noto Kufi Arabic", var(--ff-secondary), sans-serif;
  text-align: start;
}

html[dir="rtl"] .sea-service-hero .home-hero-title {
  max-width: 14ch !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

html[dir="rtl"] .sea-service-hero .home-hero-actions,
html[dir="rtl"] .sea-service-hero .home-hero-summary,
html[dir="rtl"] .sea-advantage__header,
html[dir="rtl"] .sea-service-card {
  text-align: start;
}

html[dir="rtl"] .sea-advantage::before {
  right: -7vw;
  left: auto;
  transform: rotate(14deg);
  transform-origin: right center;
}

html[dir="rtl"] .sea-advantage__header > p,
html[dir="rtl"] .sea-advantage__header h2,
html[dir="rtl"] .sea-service-card__body span,
html[dir="rtl"] .sea-service-card__body a,
html[dir="rtl"] .sea-service-card p {
  letter-spacing: 0 !important;
  text-transform: none;
  word-break: normal;
}

html[dir="rtl"] .sea-advantage__header h2 {
  max-width: 16ch;
  line-height: 1.28 !important;
}

html[dir="rtl"] .sea-service-card__body {
  direction: rtl;
}

html[dir="rtl"] .sea-service-card p {
  line-height: 1.8;
}

@media (max-width: 63.98rem) {
  html[dir="rtl"] .sea-service-hero .home-hero-title {
    max-width: 12ch !important;
    font-size: clamp(2.45rem, 11vw, 4.35rem) !important;
    line-height: 1.28 !important;
  }

  html[dir="rtl"] .sea-service-hero .home-hero-summary {
    line-height: 1.65 !important;
  }

  html[dir="rtl"] .sea-advantage__header h2 {
    max-width: 100% !important;
    font-size: clamp(2rem, 8.8vw, 3.45rem) !important;
    line-height: 1.35 !important;
  }

  html[dir="rtl"] .sea-service-card__body span {
    font-size: clamp(1.2rem, 5.4vw, 1.75rem) !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
  }
}
