/* Home page sections. */

/* ---------- Hero carousel ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(114deg, #081a30 0%, #0d2440 50%, #143357 83.33%);
  color: var(--surface-white);
  --hero-inline: max(calc(var(--gutter) + 8px), calc((100% - var(--page-max)) / 2 + var(--gutter) + 8px));
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 15, 31, 0) 0%, rgba(5, 15, 31, 0) 70%, rgba(5, 15, 31, 0.55) 100%),
    linear-gradient(90deg, rgba(5, 15, 31, 0.88) 0%, rgba(5, 15, 31, 0.45) 45%, rgba(5, 15, 31, 0.05) 75%, rgba(5, 15, 31, 0) 100%);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 183px var(--hero-inline) 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.06;
}

.hero__title .line {
  display: block;
}

.hero__text {
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.hero__actions .text-link {
  color: var(--surface-white);
}

.hero__actions .text-link:hover {
  color: var(--brand-orange);
}

.hero__tabs {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 22px var(--hero-inline) 26px;
}

.hero__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: rgba(255, 255, 255, 0.36);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ease);
}

.hero__tab::before {
  content: "";
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background-color var(--ease);
}

.hero__tab:hover {
  color: rgba(255, 255, 255, 0.75);
}

.hero__tab[aria-current="true"] {
  font-weight: 600;
  color: var(--surface-white);
}

.hero__tab[aria-current="true"]::before {
  background: var(--brand-orange);
}

/* Pause/play control: only visible when focused with the keyboard. */
.hero__toggle {
  position: absolute;
  right: var(--hero-inline);
  bottom: 80px;
  padding: 8px 12px;
  background: rgba(5, 15, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--surface-white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.hero__toggle:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Company introduction ---------- */

.intro {
  display: flex;
  align-items: flex-start;
  gap: 72px;
}

.intro__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  padding-top: 8px;
}

.intro__title {
  max-width: 520px;
  font-size: 34px;
  line-height: 1.22;
}

.intro__text {
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-ink);
}

.intro__media {
  flex-shrink: 0;
  width: 577px;
  aspect-ratio: 577 / 367;
}

.intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Core services ---------- */

.services {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.service-list {
  border-top: 1px solid var(--border-line);
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-block: 32px;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-ink);
  transition: background-color var(--ease);
}

.service-row:hover {
  background: rgba(242, 102, 33, 0.06);
}

.service-row__num {
  flex-shrink: 0;
  width: 56px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
}

.service-row__title {
  flex-shrink: 0;
  width: 420px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
}

.service-row__text {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.68;
}

.service-row__arrow {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: var(--brand-orange);
  opacity: 0;
  transition: opacity var(--ease);
}

.service-row:hover .service-row__arrow {
  opacity: 1;
}

/* ---------- Sectors ---------- */

.sectors {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.sectors__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.sector-list {
  width: fit-content;
  min-width: 289px;
  border-top: 1px solid var(--border-line);
}

.sector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border-line);
  line-height: normal;
  white-space: nowrap;
  transition: background-color var(--ease);
}

.sector-row__label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 500;
}

.sector-row__num {
  font-size: 12px;
  color: var(--brand-orange);
}

.sector-row__name {
  font-size: 17px;
  color: var(--text-ink);
}

.sector-row__arrow {
  font-size: 15px;
  color: var(--text-slate);
  transition: color var(--ease);
}

.sector-row:hover {
  background: rgba(242, 102, 33, 0.06);
}

.sector-row:hover .sector-row__name {
  font-weight: 700;
}

.sector-row:hover .sector-row__arrow {
  color: var(--brand-orange);
}

.sectors__media {
  position: relative;
  flex-shrink: 0;
  width: 520px;
  aspect-ratio: 520 / 395;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(108deg, rgba(10, 31, 66, 0.8) 0%, rgba(23, 56, 94, 0.8) 80%);
}

.sectors__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* ---------- Fleet highlight ---------- */

.fleet-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.fleet-panels {
  display: flex;
  gap: 24px;
  width: 100%;
}

.fleet-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--surface-white);
}

.fleet-panel--land { background: linear-gradient(114deg, #081a30 0%, #17385e 80%); }
.fleet-panel--marine { background: linear-gradient(114deg, rgba(8, 26, 48, 0.8) 0%, rgba(23, 56, 94, 0.8) 80%); }

.fleet-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.fleet-panel__body {
  position: absolute;
  top: 230px;
  left: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fleet-panel__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 1.3px;
}

.fleet-panel__count {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
}

.fleet-panel__text {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- How we operate ---------- */

.operate {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ---------- Safety band ---------- */

.safety {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  color: var(--surface-white);
}

.safety__bg,
.safety__tint,
.safety__gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.safety__bg { object-fit: cover; }

.safety__tint {
  background: #0d2447;
  mix-blend-mode: color;
  opacity: 0.85;
}

.safety__gradient {
  background: linear-gradient(90deg, rgba(8, 20, 43, 0.92) 0%, rgba(8, 20, 43, 0.62) 35%, rgba(8, 20, 43, 0.15) 58%, rgba(8, 20, 43, 0) 80%);
}

.safety__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 150px max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter))) 53px;
}

.safety__title {
  font-size: 36px;
  line-height: 1.16;
  color: var(--surface-white);
}

.safety__text {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-dark-70);
}

/* ---------- Selected operations ---------- */

.operations {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.op-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.op-card__media {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
}

/* Shown instead of a photo when an operation has no featured image set yet. */
.op-card__media--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(118deg, #081a30 0%, #17385e 76.92%);
}

.op-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.op-card__placeholder {
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.63px;
  color: rgba(255, 255, 255, 0.5);
}

.op-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
}

.op-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: var(--text-ink);
}

.op-card__text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-slate);
}

.operations__note {
  font-size: 12px;
  line-height: normal;
  color: var(--brand-orange);
}

/* ---------- Tablet ---------- */

@media (max-width: 1200px) {
  .service-row__title { width: 320px; }
  .intro { gap: 48px; }
  .intro__media { width: 46%; }
  .sectors { gap: 48px; }
  .sectors__media { width: 46%; }
}

@media (max-width: 1024px) {
  .hero { min-height: 600px; }
  .hero__content { padding-top: 140px; }
  .hero__title { font-size: 48px; }

  .intro { flex-direction: column; }
  .intro__media { width: 100%; }

  .service-row { gap: 24px; }
  .service-row__num { width: 40px; }
  .service-row__title { width: 240px; }

  .sectors { flex-direction: column; }
  .sectors__body { width: 100%; }
  .sectors__media { width: 100%; }

  .fleet-panel__body { top: auto; bottom: 24px; }

  .op-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero__content { padding-top: 72px; gap: 16px; }
  .hero__title { font-size: 36px; line-height: 1.1; }
  .hero__title .line { display: inline; }
  .hero__text { font-size: 15.5px; }

  .hero__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 56px;
    padding-bottom: 22px;
  }

  .hero__tab {
    font-size: 11.5px;
    white-space: normal;
  }

  .hero__tab::before { width: 100%; }

  .intro__title { font-size: 28px; }
  .intro__text { font-size: 15px; line-height: 1.7; }

  .services { gap: 32px; }
  .services__head { flex-direction: column; align-items: flex-start; }

  .service-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px 12px;
    padding-block: 24px;
  }

  .service-row__num { width: auto; font-size: 18px; }
  .service-row__title { width: auto; font-size: 18px; }
  .service-row__text { grid-column: 2; }
  .service-row__arrow { display: none; }

  .sector-list { width: 100%; min-width: 0; }

  .fleet-panels { flex-direction: column; }
  .fleet-panel { flex: none; height: 300px; }
  .fleet-panel__body { left: 20px; right: 20px; bottom: 20px; }

  /* The design's left-to-right gradients leave text over bright photo on narrow screens. */
  .hero__overlay { background: rgba(5, 15, 31, 0.62); }
  .safety__gradient { background: rgba(8, 20, 43, 0.72); }

  .safety__content { padding-block: 64px; }
  .safety__title { font-size: 28px; }
  .safety__text { font-size: 15px; }

  .op-cards { grid-template-columns: 1fr; gap: 36px; }
  .op-card__media { height: 220px; }
}
